/* ============================================
   MAGNETIC PLUMBING — STYLES
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --blue-primary:  #1a5fa8;
    --blue-dark:     #0f3f7a;
    --blue-light:    #2470c2;
    --blue-mid:      #1a4d8a;
    --gold:          #f5c518;
    --gold-dark:     #d4a800;
    --gold-light:    #ffe066;
    --white:         #ffffff;
    --off-white:     #f4f7fc;
    --light-gray:    #e2e8f4;
    --dark-text:     #0f1e35;
    --body-text:     #2c3550;
    --shadow:        0 4px 24px rgba(15,63,122,0.18);
    --radius:        12px;
    --radius-sm:     8px;
    --max-width:     480px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--off-white);
    color: var(--body-text);
    -webkit-font-smoothing: antialiased;
}

/* Constrain to mobile width */
body > * {
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

@media (min-width: 520px) {
    body { background: #b8c8db; }
    body > * { box-shadow: var(--shadow); }
}

/* ---------- Buttons ---------- */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 17px 24px;
    border-radius: var(--radius);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
    border: none;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
    background: linear-gradient(135deg, var(--blue-light) 0%, var(--blue-dark) 100%);
    color: var(--white);
    box-shadow: 0 4px 18px rgba(26,95,168,0.45);
    animation: pulse-glow 2.5s ease-in-out infinite;
}

.btn-primary:hover {
    filter: brightness(1.1);
    animation: none;
    box-shadow: 0 6px 24px rgba(26,95,168,0.6);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
    color: var(--dark-text);
    box-shadow: 0 4px 14px rgba(245,197,24,0.45);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    box-shadow: 0 6px 20px rgba(245,197,24,0.55);
}

.btn-wide { margin-top: 8px; }
.btn i { font-size: 1.05rem; }

/* ---------- TOP HEADER ---------- */
.top-header {
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 18px;
    border-bottom: 3px solid var(--blue-primary);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-box {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--blue-primary);
}

.logo-icon {
    background: linear-gradient(135deg, var(--blue-light), var(--blue-dark));
    color: var(--white);
    width: 38px;
    height: 38px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(26,95,168,0.3);
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--dark-text);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.2s;
}

.header-phone:hover { color: var(--blue-primary); }
.header-phone i { color: var(--blue-primary); }

/* ---------- HERO SECTION ---------- */
.hero {
    background: linear-gradient(165deg, #1060b0 0%, #0b3260 60%, #071f44 100%);
    color: var(--white);
    padding: 28px 20px 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* subtle grid texture */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

.hero-content { position: relative; z-index: 1; }

/* Urgency pill */
.urgency-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245,197,24,0.18);
    border: 1px solid rgba(245,197,24,0.45);
    color: var(--gold-light);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.urgency-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 3px rgba(74,222,128,0.3);
    animation: blink 1.4s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.hero-headline {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.18;
    margin-bottom: 10px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.35);
    letter-spacing: -0.5px;
}

.hero-subheadline {
    font-size: 0.95rem;
    font-weight: 600;
    opacity: 0.88;
    margin-bottom: 16px;
    letter-spacing: 0.2px;
}

/* Trust bar */
.trust-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 8px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.trust-bar .divider { opacity: 0.45; }

/* ==============================
   TRUST BADGES — KEY FIX
   Both badges use IDENTICAL card structure.
   Left = white card, Right = dark blue card.
   Typography sizes are matched.
   ============================== */

.badges-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 24px;
}

/* Shared badge base */
.badge {
    border-radius: 14px;
    padding: 16px 12px 14px;
    text-align: center;
    flex: 1;
    max-width: 175px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

/* ---- Icon ring (shared) ---- */
.badge-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

/* ---- Shared text classes ---- */
.badge-title {
    font-size: 1rem;        /* <-- same size on both sides */
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 4px;
    letter-spacing: -0.2px;
}

.badge-big-number {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 4px;
}

.badge-stars-row {
    font-size: 0.82rem;
    margin-bottom: 4px;
}

.badge-sub-upper {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 6px;
    opacity: 0.8;
}

.badge-sub {
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.35;
    opacity: 0.75;
}

/* ---- LEFT badge: white card (Homeowner Verified) ---- */
.rating-badge {
    background: var(--white);
    color: var(--dark-text);
}

.rating-icon-wrap {
    background: linear-gradient(135deg, #fff7e0, #ffe57a);
    color: var(--gold-dark);
    gap: 1px;
}

.rating-icon-wrap i:nth-child(2) {
    color: var(--gold);
}

.rating-badge .badge-title {
    color: var(--dark-text);
}

.rating-badge .badge-big-number {
    color: var(--blue-dark);
}

.rating-badge .badge-stars-row {
    color: #f5a623;
}

.rating-badge .badge-sub {
    color: #666;
    opacity: 1;
}

/* ---- RIGHT badge: dark blue card (Experience) ---- */
.exp-badge {
    background: linear-gradient(160deg, #1a3a6e 0%, #0a2247 100%);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.1);
}

.exp-icon-wrap {
    background: rgba(245,197,24,0.18);
    color: var(--gold);
    font-size: 1.4rem;
    border: 1px solid rgba(245,197,24,0.35);
}

.exp-badge .badge-title {
    color: var(--gold);
    font-size: 1.35rem;   /* slightly bigger for "10+ Years" impact */
}

.exp-badge .badge-sub-upper {
    color: rgba(255,255,255,0.75);
}

.exp-badge .badge-sub {
    color: rgba(255,255,255,0.65);
}

/* CTA Group */
.cta-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ---------- INFO SECTION ---------- */
.info-section {
    background: var(--white);
    padding: 0 0 32px;
}

.info-image-wrap {
    width: 100%;
    height: 260px;
    background: var(--light-gray);
    position: relative;
    overflow: hidden;
}

.info-image {
    width: 100%;
    height: 100%;
    background: url('../images/plumber.jpg') center center / cover no-repeat,
                linear-gradient(135deg, #1a5fa8, #0b3260);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
}

#photo-placeholder { display: none; }

.info-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: linear-gradient(transparent, rgba(255,255,255,0.95));
    pointer-events: none;
}

.image-overlay-text {
    text-align: center;
    color: var(--blue-primary);
    opacity: 0.5;
}

.image-overlay-text p {
    margin-top: 10px;
    font-weight: 700;
    font-size: 0.9rem;
}

.info-content { padding: 28px 20px 0; }

.info-heading {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--blue-primary);
    margin-bottom: 18px;
    line-height: 1.25;
}

.info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.info-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--body-text);
}

.info-list li i {
    color: var(--blue-primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* ---------- TESTIMONIALS SECTION ---------- */
.testimonials-section {
    background: var(--off-white);
    padding: 32px 20px;
}

.section-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--blue-primary);
    text-align: center;
    margin-bottom: 20px;
}

.testimonials-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 18px;
    border-left: 4px solid var(--blue-primary);
    box-shadow: 0 2px 12px rgba(26,95,168,0.08);
}

.testimonial-stars {
    color: #f5a623;
    font-size: 0.82rem;
    margin-bottom: 8px;
}

.testimonial-text {
    font-size: 0.88rem;
    color: var(--body-text);
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 8px;
}

.testimonial-author {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--blue-primary);
}

/* ---------- FINAL CTA SECTION ---------- */
.final-cta-section {
    background: linear-gradient(165deg, #1060b0 0%, #071f44 100%);
    color: var(--white);
    padding: 36px 20px;
    text-align: center;
}

.final-cta-section h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.final-cta-section p {
    font-size: 0.95rem;
    opacity: 0.85;
    margin-bottom: 22px;
}

.final-trust-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 8px;
    margin-top: 20px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.75;
}

.final-trust-bar .divider { opacity: 0.4; }

/* ---------- FOOTER ---------- */
.site-footer {
    background: var(--dark-text);
    color: rgba(255,255,255,0.65);
    text-align: center;
    padding: 24px 20px;
    font-size: 0.8rem;
    line-height: 1.8;
}

.footer-phone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gold);
    font-weight: 700;
    text-decoration: none;
    margin-top: 6px;
    font-size: 0.9rem;
}

.footer-phone:hover { color: var(--white); }

/* ---------- Pulse animation ---------- */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 4px 18px rgba(26,95,168,0.45); }
    50%       { box-shadow: 0 6px 30px rgba(26,95,168,0.75); }
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 360px) {
    .hero-headline      { font-size: 1.65rem; }
    .badges-row         { gap: 8px; }
    .badge              { padding: 13px 10px 12px; }
    .badge-title        { font-size: 0.9rem; }
    .exp-badge .badge-title { font-size: 1.2rem; }
    .badge-big-number   { font-size: 1.75rem; }
}
