/* ============================================================
   CONTACT PAGE — ADVANCED MOBILE POLISH
   Additive only. Zero original rules modified.
   ============================================================ */

/* ── GLOBAL BASE ─────────────────────────────────────────── */


:root {
    --green:      #0f5132;
    --green-dark: #0c3d26;
    --light:      #f8f9fa;
    --shadow:     0 8px 30px rgba(0,0,0,0.12);
    --grey-dark:  #1a1a1a;
    --white:      #ffffff;
    --green-light: #90EE90;
    --green-primary: #0f5132;
    --shadow-soft: 0 4px 15px rgba(0,0,0,0.1);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

*, *::before, *::after {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-width: 0;
}

img, video, iframe, embed {
    max-width: 100%;
    height: auto;
    display: block;
}

a, button, input, select, textarea, [role="button"] {
    -webkit-tap-highlight-color: transparent;
}

/* ── CONTACT HEADER — height reduction desktop & mobile ─── */

/* Desktop base — remove forced height, tighten padding */
.contact-header {
    min-height: auto;
    padding: 50px 20px 42px;
}

.contact-header .header-content {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 16px;
}

.contact-header .main-heading {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    margin-bottom: 0.8rem;
    line-height: 1.2;
}

.contact-header .intro-advert {
    font-size: 1.05rem;
    margin-bottom: 1.4rem;
    line-height: 1.65;
}

.contact-header .offer-heading {
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    margin-bottom: 0.65rem;
}

.contact-header .advert-statement {
    font-size: 1rem;
    margin-bottom: 1.8rem;
    padding: 1rem 1.1rem;
}

.contact-header .cta-buttons {
    gap: 1rem;
}

.contact-header .cta-btn {
    padding: 0.95rem 2.2rem;
    font-size: 1rem;
}


   /* Quick Contact Cards */
.quick-contact {
padding:60px 0;
background:white;
}

.quick-contact .container {
display:grid;
grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
gap:25px;
}

.contact-card {
background:white;
padding:35px;
border-radius:12px;
text-align:center;
cursor:pointer;
box-shadow:0 5px 20px rgba(0,0,0,0.08);
transition:0.3s;
}

.contact-card span {
font-size:30px;
}

.contact-card:hover {
transform:translateY(-6px);
background:#0f5132;
color:white;
}

        /* Main Contact Section */
        #main {
            background: linear-gradient(to bottom, #f9fbfa, white);
        }

        #main .split {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 60px;
            align-items: start;
        }

        @media (max-width: 980px) {
            #main .split { grid-template-columns: 1fr; gap: 50px; }
        }

      /* Contact Main */
.contact-main {
padding:0px 0;
}

.grid {
display:grid;
grid-template-columns:1fr 1fr;
gap:40px;
}

.form-section h2 {
margin-bottom:20px;
}

.input-group {
position:relative;
margin-bottom:25px;
}

.input-group input,
.input-group textarea,
.input-group select {
width:100%;
padding:14px;
border:1px solid #ccc;
border-radius:6px;
outline:none;
}

.input-group label {
position:absolute;
left:12px;
top:14px;
background:white;
padding:0 5px;
color:#777;
transition:0.3s;
pointer-events:none;
}

.input-group input:focus + label,
.input-group input:valid + label,
.input-group textarea:focus + label,
.input-group textarea:valid + label,
.input-group select:focus + label,
.input-group select:valid + label {
top:-8px;
font-size:12px;
color:#0f5132;
}

.cta-btn-primary {
    background: #ffffff !important;
    color: #0f5132 !important;
    font-weight: 700;
}

.cta-btn-primary:hover {
    background: #FFD700 !important;
    color: #0f5132 !important;
}

        /* Map + Info */
        .map-area img {
            width: 100%;
            border-radius: 16px;
            box-shadow: var(--shadow);
            margin-bottom: 28px;
        }

        .details p {
            margin: 14px 0;
            font-size: 1.05rem;
        }

        .details strong {
            color: var(--grey-dark);
        }

        /* Office Locations */
        #offices .cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 32px;
        }

        #offices .office-card {
            background: white;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: all 0.35s ease;
        }

        #offices .office-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 16px 40px rgba(10,92,54,0.18);
        }

        #offices .office-card img {
            width: 100%;
            height: 220px;
            object-fit: cover;
        }

        #offices .office-card .info {
            padding: 24px;
            text-align: center;
        }

        #offices .office-card h3 {
            font-family: 'Playfair Display', serif;
            font-size: 1.9rem;
            margin-bottom: 12px;
            color: var(--grey-dark);
        }

        #offices .office-card button {
            background: var(--green);
            color: white;
            border: none;
            padding: 12px 28px;
            border-radius: 8px;
            margin-top: 12px;
            cursor: pointer;
            transition: all 0.3s;
        }

        #offices .office-card button:hover {
            background: var(--green-dark);
        }

        /* CTA */
        #cta {
            text-align: center;
            background: var(--light);
        }

        #cta .buttons {
            display: flex;
            justify-content: center;
            gap: 24px;
            flex-wrap: wrap;
            margin-top: 32px;
        }

        #cta button {
            background: var(--green);
            color: white;
            border: none;
            padding: 16px 36px;
            font-size: 1.15rem;
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.3s;
            min-width: 220px;
        }

        #cta button:hover {
            background: var(--green-dark);
            transform: translateY(-3px);
        }

        /* Fade-in Animation */
        .fade-in {
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.7s ease, transform 0.7s ease;
        }

        .fade-in.visible {
            opacity: 1;
            transform: translateY(0);
        }
        
     #offices.fade-in,
#cta.fade-in {
    transform: translateY(0) !important;
}

#offices.fade-in.visible,
#cta.fade-in.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

#offices > .container {
    padding-top:    40px !important;
    padding-bottom: 40px !important;
}

#cta > .container {
    padding-top:    40px !important;
    padding-bottom: 40px !important;
}

        @media (max-width: 768px) {
            .container { padding: 50px 20px; }
            #quick .cards { gap: 20px; }
            #cta .buttons { flex-direction: column; gap: 16px; }
        }

/* Large desktop */
@media (min-width: 1200px) {
    .contact-header         { padding: 55px 20px 46px; }
    .contact-header .main-heading   { font-size: clamp(2.8rem, 4.5vw, 4rem); }
    .contact-header .offer-heading  { font-size: clamp(1.9rem, 3vw, 2.6rem); }
}


/* Tablet */
@media (max-width: 1024px) {
    .contact-header         { padding: 44px 20px 36px; }
    .contact-header .main-heading   { font-size: clamp(2.2rem, 5.5vw, 3.2rem); margin-bottom: 0.7rem; }
    .contact-header .intro-advert   { font-size: 1rem; margin-bottom: 1.2rem; }
    .contact-header .offer-heading  { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 0.6rem; }
    .contact-header .advert-statement { font-size: 0.97rem; margin-bottom: 1.5rem; }
    .contact-header .cta-btn        { padding: 0.9rem 2rem; }
}


/* Mobile */
@media (max-width: 768px) {
    .contact-header {
        padding: 36px 16px 30px;
    }
    .contact-header .header-content { padding: 0 10px; }
    .contact-header .main-heading   { font-size: clamp(1.9rem, 7vw, 2.6rem); margin-bottom: 0.65rem; line-height: 1.18; }
    .contact-header .intro-advert   { font-size: 0.95rem; margin-bottom: 1rem; line-height: 1.6; }
    .contact-header .offer-heading  { font-size: clamp(1.45rem, 5vw, 1.9rem); margin-bottom: 0.55rem; }
    .contact-header .advert-statement { font-size: 0.92rem; padding: 0.85rem 0.95rem; margin-bottom: 1.3rem; }
    .contact-header .cta-buttons    { flex-direction: column; align-items: center; gap: 0.7rem; }
    .contact-header .cta-btn        { width: 100%; max-width: 300px; justify-content: center; padding: 0.88rem 1.6rem; font-size: 0.95rem; min-height: 48px; }
}


/* Small mobile */
@media (max-width: 480px) {
    .contact-header {
        padding: 28px 14px 24px;
    }
    .contact-header .header-content { padding: 0 6px; }
    .contact-header .main-heading   { font-size: clamp(1.7rem, 7.5vw, 2.2rem); margin-bottom: 0.6rem; }
    .contact-header .intro-advert   { font-size: 0.88rem; margin-bottom: 0.9rem; }
    .contact-header .offer-heading  { font-size: clamp(1.3rem, 5.5vw, 1.6rem); margin-bottom: 0.5rem; }
    .contact-header .advert-statement { font-size: 0.85rem; padding: 0.78rem 0.88rem; margin-bottom: 1.1rem; margin-left: 2px; margin-right: 2px; }
    .contact-header .cta-btn        { max-width: 280px; padding: 0.82rem 1.4rem; font-size: 0.9rem; }
}


/* Extra small */
@media (max-width: 360px) {
    .contact-header         { padding: 24px 12px 20px; }
    .contact-header .main-heading   { font-size: clamp(1.55rem, 8vw, 1.9rem); }
    .contact-header .offer-heading  { font-size: clamp(1.2rem, 6vw, 1.45rem); }
    .contact-header .intro-advert   { font-size: 0.84rem; }
    .contact-header .advert-statement { font-size: 0.82rem; padding: 0.72rem 0.8rem; }
    .contact-header .cta-btn        { max-width: 100%; font-size: 0.87rem; padding: 0.78rem 1.2rem; }
}


/* Safe area */
@supports (padding: env(safe-area-inset-bottom)) {
    .contact-header {
        padding-left: max(14px, env(safe-area-inset-left));
        padding-right: max(14px, env(safe-area-inset-right));
    }
}


/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .contact-header .main-heading,
    .contact-header .intro-advert,
    .contact-header .offer-heading,
    .contact-header .advert-statement,
    .contact-header .cta-buttons {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* ── CONTAINER EDGE GUARD ────────────────────────────────── */
@media (max-width: 768px) {
    .container {
        padding: 32px 16px;
    }

    h2 {
        font-size: clamp(1.7rem, 6vw, 2.4rem);
        margin-bottom: 24px;
        line-height: 1.25;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 24px 14px;
    }

    h2 {
        font-size: clamp(1.5rem, 6.5vw, 2rem);
        margin-bottom: 20px;
    }
}


/* ── QUICK CONTACT CARDS ─────────────────────────────────── */
@media (max-width: 768px) {
    .quick-contact {
        padding: 36px 0;
    }

    .quick-contact .container {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 0 16px;
    }

    .contact-card {
        padding: 22px 14px;
        border-radius: 10px;
    }

    .contact-card span {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .quick-contact {
        padding: 28px 0;
    }

    .quick-contact .container {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 14px;
    }

    .contact-card {
        padding: 18px 10px;
        border-radius: 8px;
    }

    .contact-card span {
        font-size: 22px;
    }
}

@media (max-width: 360px) {
    .quick-contact .container {
        grid-template-columns: 1fr;
    }
}


/* ── MAIN CONTACT SPLIT GRID ─────────────────────────────── */
@media (max-width: 980px) {
    #main .split {
        gap: 32px;
    }

    #main {
        padding: 0;
    }
}

@media (max-width: 768px) {
    #main .split {
        gap: 24px;
    }

    .contact-main {
        padding: 32px 0;
    }
}

@media (max-width: 480px) {
    #main .split {
        gap: 20px;
    }

    .contact-main {
        padding: 24px 0;
    }
}


/* ── FORM GRID — stack on mobile ─────────────────────────── */
@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-section h2 {
        margin-bottom: 16px;
    }

    .input-group {
        margin-bottom: 20px;
    }

    .input-group input,
    .input-group textarea,
    .input-group select {
        padding: 13px 12px;
        font-size: 0.97rem;
        /* 44px minimum tap target */
        min-height: 48px;
        border-radius: 6px;
    }

    .input-group textarea {
        min-height: 110px;
    }
}

@media (max-width: 480px) {
    .input-group {
        margin-bottom: 16px;
    }

    .input-group input,
    .input-group select {
        padding: 12px 11px;
        font-size: 0.93rem;
        min-height: 46px;
    }

    .input-group textarea {
        padding: 12px 11px;
        font-size: 0.93rem;
        min-height: 100px;
    }

    .btn-primary {
        padding: 14px;
        font-size: 0.97rem;
        min-height: 48px;
        border-radius: 6px;
        letter-spacing: 0.3px;
    }
}


/* ── MAP & DETAILS ───────────────────────────────────────── */
@media (max-width: 768px) {
    .map-area img {
        border-radius: 12px;
        margin-bottom: 20px;
    }

    .details p {
        font-size: 0.97rem;
        margin: 11px 0;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    .map-area img {
        border-radius: 10px;
        margin-bottom: 16px;
    }

    .details p {
        font-size: 0.92rem;
        margin: 9px 0;
    }
}


/* ── OFFICE LOCATIONS ────────────────────────────────────── */
@media (max-width: 768px) {
    #offices .cards {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 4px;
    }

    #offices .office-card img {
        height: 190px;
    }

    #offices .office-card .info {
        padding: 18px 16px;
    }

    #offices .office-card h3 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    #offices .office-card button {
        padding: 11px 24px;
        font-size: 0.95rem;
        min-height: 44px;
        border-radius: 7px;
        width: 100%;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    #offices .cards {
        gap: 16px;
        padding: 0 2px;
    }

    #offices .office-card img {
        height: 170px;
    }

    #offices .office-card .info {
        padding: 16px 14px;
    }

    #offices .office-card h3 {
        font-size: 1.3rem;
        margin-bottom: 8px;
    }

    #offices .office-card button {
        padding: 10px 20px;
        font-size: 0.9rem;
        min-height: 44px;
    }
}


/* ── CTA SECTION ─────────────────────────────────────────── */
@media (max-width: 768px) {
    #cta {
        padding: 36px 16px;
    }

    #cta .buttons {
        gap: 12px;
        margin-top: 24px;
        padding: 0 4px;
    }

    #cta button {
        width: 100%;
        min-width: unset;
        max-width: 320px;
        padding: 14px 24px;
        font-size: 1rem;
        min-height: 50px;
        border-radius: 8px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    #cta {
        padding: 28px 14px;
    }

    #cta .buttons {
        gap: 10px;
        margin-top: 20px;
    }

    #cta button {
        max-width: 100%;
        padding: 13px 20px;
        font-size: 0.95rem;
        min-height: 48px;
        border-radius: 7px;
    }
}


/* ── SAFE AREA (iPhone notch / home bar) ─────────────────── */
@supports (padding: env(safe-area-inset-bottom)) {
    #cta {
        padding-bottom: calc(28px + env(safe-area-inset-bottom));
    }
    .container {
        padding-left: max(14px, env(safe-area-inset-left));
        padding-right: max(14px, env(safe-area-inset-right));
    }
}


/* ── REDUCED MOTION ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .fade-in {
        transition: none;
        opacity: 1;
        transform: none;
    }

    .contact-card,
    #offices .office-card,
    #cta button {
        transition: none;
    }
}