/* ==========================================================================
   New Edge Institute of Commerce — site styles
   Colours are taken from the NEIC logo: the navy of the letters and the
   marigold of the book spine. The hero uses ruled "ledger paper" lines as a
   nod to accountancy.
   ========================================================================== */

:root {
    /* Brand palette */
    --navy-900: #14254F;   /* deep ink: hero, footer accents */
    --navy-700: #2D4B9E;   /* logo blue: links, primary buttons */
    --navy-600: #3A5BB5;
    --marigold: #F2A541;   /* logo book spine: accent buttons, highlights */
    --marigold-dark: #D98A22;
    --paper: #F4F7FC;      /* cool ledger-paper tint for alternate sections */
    --rule: #DCE3F0;       /* hairlines */

    --ink: #1B2433;
    --ink-soft: #4A5568;
    --white: #FFFFFF;
    --danger: #B42318;
    --success: #067647;

    --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    --font-sans: 'Public Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 18px;

    --shadow-card: 0 1px 2px rgba(20, 37, 79, 0.06), 0 8px 24px rgba(20, 37, 79, 0.08);
    --header-h: 76px;
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 12px);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--white);
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: var(--font-serif);
    color: var(--navy-900);
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -0.01em;
}

h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.2rem; }

p { max-width: 68ch; }

a { color: var(--navy-700); text-decoration: none; }
a:hover { color: var(--navy-900); }

ul, ol { list-style: none; }

img { display: block; max-width: 100%; height: auto; }

:focus-visible {
    outline: 3px solid var(--marigold);
    outline-offset: 3px;
    border-radius: 4px;
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: 16px; top: -60px;
    z-index: 2000;
    background: var(--navy-900);
    color: var(--white);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: var(--white); }

.muted { color: var(--ink-soft); }

/* --- Buttons -------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 12px 24px;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
    white-space: nowrap;
}

.btn-primary { background: var(--navy-700); color: var(--white); }
.btn-primary:hover { background: var(--navy-900); color: var(--white); }

.btn-accent { background: var(--marigold); color: var(--navy-900); }
.btn-accent:hover { background: var(--marigold-dark); color: var(--navy-900); }

.btn-outline-light { border-color: rgba(255, 255, 255, .45); color: var(--white); }
.btn-outline-light:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); color: var(--white); }

.btn-ghost { border-color: var(--rule); color: var(--navy-700); }
.btn-ghost:hover { border-color: var(--navy-700); }

.btn-lg { min-height: 54px; padding: 16px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }

.btn[disabled] { opacity: .7; cursor: progress; }

/* --- Top bar -------------------------------------------------------------- */
.topbar {
    background: var(--navy-900);
    color: rgba(255, 255, 255, .82);
    font-size: .875rem;
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    min-height: 38px;
}

.topbar i { color: var(--marigold); margin-right: 6px; }
.topbar a { color: var(--white); font-weight: 600; }
.topbar a:hover { color: var(--marigold); }
.topbar-right { display: flex; gap: 28px; }

/* --- Header --------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid transparent;
    transition: border-color .2s, box-shadow .2s;
}

.site-header.is-scrolled {
    border-bottom-color: var(--rule);
    box-shadow: 0 6px 20px rgba(20, 37, 79, .06);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 32px;
    height: var(--header-h);
}

.brand img { height: 46px; width: auto; }

.main-nav {
    display: flex;
    gap: 28px;
    margin-left: auto;
}

.main-nav > a {
    color: var(--ink);
    font-weight: 500;
    font-size: .975rem;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: color .2s, border-color .2s;
}

.main-nav > a:hover { color: var(--navy-700); }
.main-nav > a.is-active { color: var(--navy-700); border-bottom-color: var(--marigold); }

.nav-mobile-actions { display: none; }

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.link-signin {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid var(--rule);
    color: var(--navy-700);
    font-size: 0;            /* hides any text inside; the title/aria-label still say "ERP login" */
    line-height: 0;
    overflow: hidden;
    flex-shrink: 0;
    transition: background-color .2s, color .2s, border-color .2s;
}
.link-signin i { font-size: 1.05rem; line-height: 1; margin: 0; }
.link-signin:hover { background: var(--navy-700); border-color: var(--navy-700); color: var(--white); }

.menu-toggle {
    display: none;
    width: 44px; height: 44px;
    margin-left: auto;
    border: 1px solid var(--rule);
    border-radius: var(--radius-sm);
    background: var(--white);
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 20px; height: 2px;
    background: var(--navy-900);
    border-radius: 2px;
    transition: transform .25s var(--ease), opacity .2s;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Hero ----------------------------------------------------------------- */
.hero {
    position: relative;
    background-color: var(--navy-900);
    /* ruled ledger lines + a double margin rule, like an account book */
    background-image:
        linear-gradient(90deg, transparent 0 calc(50% - 600px + 6px), rgba(242, 165, 65, .35) calc(50% - 600px + 6px) calc(50% - 600px + 7px), transparent calc(50% - 600px + 7px) calc(50% - 600px + 11px), rgba(242, 165, 65, .35) calc(50% - 600px + 11px) calc(50% - 600px + 12px), transparent calc(50% - 600px + 12px)),
        repeating-linear-gradient(180deg, transparent 0 43px, rgba(255, 255, 255, .055) 43px 44px);
    color: var(--white);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 64px;
    align-items: center;
    padding-top: 88px;
    padding-bottom: 96px;
}

.hero-kicker {
    font-size: .95rem;
    font-weight: 600;
    color: var(--marigold);
    margin-bottom: 18px;
}

.hero h1 {
    color: var(--white);
    font-size: clamp(2.4rem, 5.2vw, 4.1rem);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.02em;
    max-width: 17ch;
    margin-bottom: 24px;
}

.hero-lead {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, .82);
    max-width: 54ch;
    margin-bottom: 36px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 52px;
}

.hero-facts {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, .16);
    padding-top: 24px;
}

.hero-facts li {
    padding-right: 28px;
    margin-right: 28px;
    border-right: 1px solid rgba(255, 255, 255, .16);
}

.hero-facts li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }

.hero-facts strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
}

.hero-facts span { font-size: .9rem; color: rgba(255, 255, 255, .68); }

/* Portrait in an arch, like a book spine standing on the shelf */
.hero-portrait {
    position: relative;
    justify-self: center;
    width: min(100%, 360px);
}

.portrait-arch {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: 200px 200px var(--radius-lg) var(--radius-lg);
    background: linear-gradient(180deg, #FBE2BC 0%, var(--marigold) 100%);
    overflow: hidden;
    border: 6px solid rgba(255, 255, 255, .08);
}

.portrait-arch img {
    position: absolute;
    inset: auto 0 0 0;
    width: 100%;
    height: 92%;
    object-fit: cover;
    object-position: center top;
    mix-blend-mode: multiply;
}

.hero-portrait figcaption {
    position: absolute;
    left: -28px;
    bottom: 28px;
    background: var(--white);
    color: var(--ink);
    padding: 14px 20px;
    border-radius: var(--radius);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
    border-left: 4px solid var(--marigold);
}

.hero-portrait figcaption strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--navy-900);
}

.hero-portrait figcaption span { font-size: .875rem; color: var(--ink-soft); }

/* One orchestrated load sequence, hero only */
@media (prefers-reduced-motion: no-preference) {
    .hero-copy > * { animation: rise .7s var(--ease) both; }
    .hero-copy > :nth-child(2) { animation-delay: .08s; }
    .hero-copy > :nth-child(3) { animation-delay: .16s; }
    .hero-copy > :nth-child(4) { animation-delay: .24s; }
    .hero-copy > :nth-child(5) { animation-delay: .32s; }
    .hero-portrait { animation: rise .9s var(--ease) .2s both; }
}

@keyframes rise {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: none; }
}

/* --- Sections ------------------------------------------------------------- */
.section { padding: 96px 0; }
.section-tint { background: var(--paper); }

.section-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: end;
    margin-bottom: 44px;
}

.section-head p { color: var(--ink-soft); font-size: 1.075rem; }

/* --- Courses ledger ------------------------------------------------------- */
.ledger {
    border-top: 2px solid var(--navy-900);
    border-bottom: 2px solid var(--navy-900);
}

.ledger-row {
    display: grid;
    grid-template-columns: 1.15fr 1.2fr 1.5fr 120px;
    gap: 28px;
    align-items: center;
    padding: 28px 8px;
    border-bottom: 1px solid var(--rule);
}

.ledger-row:last-child { border-bottom: 0; }

.ledger-header {
    padding-top: 14px;
    padding-bottom: 14px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--ink-soft);
    border-bottom: 1px solid var(--navy-900);
}

.ledger-row:not(.ledger-header) { transition: background-color .2s; }
.ledger-row:not(.ledger-header):hover { background: var(--paper); }

.ledger-name {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ledger-icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: #E8EDF8;
    color: var(--navy-700);
    font-size: 1.15rem;
}

.ledger-name h3 { font-size: 1.3rem; }
.ledger-row > p { color: var(--ink-soft); font-size: 1rem; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.chips li {
    font-size: .875rem;
    font-weight: 500;
    color: var(--navy-900);
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: 999px;
    padding: 5px 12px;
}

.row-link {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    color: var(--navy-700);
    border-bottom: 2px solid var(--marigold);
    line-height: 1.2;
    padding-bottom: 2px;
}

.ledger-row > div:last-child { text-align: right; }

/* --- About ---------------------------------------------------------------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: start;
}

.about-copy h2 { margin-bottom: 22px; }
.about-copy p { color: var(--ink-soft); margin-bottom: 18px; font-size: 1.1rem; }

.principles { display: grid; gap: 4px; }

.principles li {
    display: flex;
    gap: 18px;
    padding: 22px 24px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--rule);
}

.principles i {
    color: var(--marigold-dark);
    font-size: 1.2rem;
    margin-top: 4px;
    width: 22px;
    text-align: center;
}

.principles h3 { font-size: 1.15rem; margin-bottom: 4px; }
.principles p { color: var(--ink-soft); font-size: .975rem; }

/* --- Practical learning --------------------------------------------------- */
.practical-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}

.practical-photo {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 5;
    box-shadow: var(--shadow-card);
}

.practical-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* keep the focus on the students on the left of the photo */
    object-position: 30% center;
}

.practical-copy h2 { margin-bottom: 18px; }
.practical-copy > p { color: var(--ink-soft); font-size: 1.1rem; margin-bottom: 32px; }

.feature-block {
    padding: 22px 0 22px 24px;
    border-left: 3px solid var(--marigold);
    margin-bottom: 20px;
}

.feature-block h3 { margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.feature-block h3 i { color: var(--navy-700); font-size: 1rem; }
.feature-block p { color: var(--ink-soft); }

/* --- Admission steps (a real sequence, so numbered) ----------------------- */
#admission { background: var(--paper); }

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    counter-reset: step;
}

.steps li {
    position: relative;
    counter-increment: step;
    padding: 28px 28px 30px;
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
}

.steps li::before {
    content: counter(step);
    display: grid;
    place-items: center;
    width: 40px; height: 40px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: var(--navy-900);
    color: var(--marigold);
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.15rem;
}

.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--ink-soft); font-size: 1rem; }

/* --- Contact -------------------------------------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 64px;
    align-items: start;
}

.contact-info h2 { margin-bottom: 14px; max-width: 16ch; }
.contact-lead { color: var(--ink-soft); font-size: 1.1rem; margin-bottom: 36px; }

.info-list { display: grid; gap: 24px; margin-bottom: 32px; }

.info-list dt {
    font-weight: 600;
    color: var(--navy-900);
    margin-bottom: 4px;
}

.info-list dt i { color: var(--marigold-dark); width: 20px; margin-right: 6px; }
.info-list dd { color: var(--ink-soft); padding-left: 32px; }
.info-list dd a { font-weight: 600; }

.social { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.social a {
    display: inline-grid;
    place-items: center;
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid var(--rule);
    color: var(--navy-900);
    transition: background-color .2s, color .2s, border-color .2s;
}

.social a:hover { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }

.social a.map-link {
    width: auto;
    display: inline-flex;
    gap: 8px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 600;
    font-size: .95rem;
}

.form-card {
    background: var(--white);
    border: 1px solid var(--rule);
    border-top: 4px solid var(--marigold);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-card);
}

.form-card h3 { font-size: 1.5rem; margin-bottom: 24px; }

.field { margin-bottom: 18px; }

.field label {
    display: block;
    font-weight: 600;
    font-size: .95rem;
    color: var(--navy-900);
    margin-bottom: 6px;
}

.optional { font-weight: 400; color: var(--ink-soft); }

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    font: inherit;
    font-size: 1rem;
    color: var(--ink);
    background: var(--white);
    border: 1.5px solid #C9D3E6;
    border-radius: var(--radius-sm);
    transition: border-color .2s, box-shadow .2s;
}

.field textarea { resize: vertical; min-height: 96px; }

.field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2314254F' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.field input::placeholder,
.field textarea::placeholder { color: #8A94A6; }

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--navy-700);
    box-shadow: 0 0 0 4px rgba(45, 75, 158, .15);
}

.field.has-error input,
.field.has-error select { border-color: var(--danger); }

.field-error {
    display: block;
    min-height: 0;
    color: var(--danger);
    font-size: .875rem;
    margin-top: 4px;
}

.field-error:empty { display: none; }

.form-message {
    display: none;
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: .975rem;
}

.form-message.success { display: block; background: #ECFDF3; color: var(--success); border: 1px solid #ABEFC6; }
.form-message.error { display: block; background: #FEF3F2; color: var(--danger); border: 1px solid #FECDCA; }

.map-wrap {
    margin-top: 64px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--rule);
    height: 360px;
    background: var(--paper);
}

.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

/* --- Footer --------------------------------------------------------------- */
.site-footer {
    background: var(--paper);
    border-top: 1px solid var(--rule);
    padding-top: 64px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-brand img { height: 44px; width: auto; margin-bottom: 18px; }
.footer-brand p { color: var(--ink-soft); max-width: 40ch; }

.footer-col h3 {
    font-family: var(--font-sans);
    font-size: .95rem;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 14px;
}

.footer-col a {
    display: block;
    color: var(--ink-soft);
    padding: 5px 0;
}

.footer-col a:hover { color: var(--navy-700); }

.footer-bottom {
    border-top: 1px solid var(--rule);
    padding-top: 20px;
    padding-bottom: 24px;
    font-size: .9rem;
    color: var(--ink-soft);
}

/* --- Mobile action bar ---------------------------------------------------- */
.mobile-bar { display: none; }

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 1080px) {
    .main-nav { gap: 20px; }
}

@media (max-width: 960px) {
    :root { --header-h: 68px; }

    .topbar-inner > span:first-child { display: none; }
    .topbar-inner { justify-content: center; }

    .menu-toggle { display: flex; }
    .header-actions { display: none; }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        padding: 8px 24px 24px;
        background: var(--white);
        border-bottom: 1px solid var(--rule);
        box-shadow: 0 16px 30px rgba(20, 37, 79, .1);
        display: none;
    }

    .main-nav.is-open { display: flex; }

    .main-nav > a {
        padding: 14px 0;
        border-bottom: 1px solid var(--rule);
        font-size: 1.05rem;
    }

    .main-nav > a.is-active { border-bottom-color: var(--rule); color: var(--navy-700); }

    .nav-mobile-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        padding-top: 20px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 56px;
        padding-top: 56px;
        padding-bottom: 72px;
    }

    .hero-portrait { width: min(100%, 300px); }
    .hero-portrait figcaption { left: auto; right: -20px; }

    .section { padding: 72px 0; }

    .section-head { grid-template-columns: 1fr; gap: 12px; }

    .ledger-header { display: none; }

    .ledger-row {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 28px 0;
    }

    .ledger-row:not(.ledger-header):hover { background: none; }
    .ledger-row > div:last-child { text-align: left; }

    .about-grid,
    .practical-grid,
    .contact-grid { grid-template-columns: 1fr; gap: 44px; }

    .practical-photo { aspect-ratio: 16 / 10; }

    .steps { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }

    /* sticky call / enquire bar on small screens */
    .mobile-bar {
        display: grid;
        grid-template-columns: 1fr 1.4fr;
        gap: 10px;
        position: fixed;
        left: 0; right: 0; bottom: 0;
        z-index: 900;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        background: var(--white);
        border-top: 1px solid var(--rule);
        box-shadow: 0 -8px 24px rgba(20, 37, 79, .08);
    }

    .mobile-bar a {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 48px;
        border-radius: var(--radius-sm);
        font-weight: 600;
        border: 1.5px solid var(--navy-700);
        color: var(--navy-700);
    }

    .mobile-bar a.mobile-bar-primary { background: var(--marigold); border-color: var(--marigold); color: var(--navy-900); }

    body { padding-bottom: 72px; }
}

@media (max-width: 600px) {
    .container { padding-left: 16px; padding-right: 16px; }
    body { font-size: 1rem; }

    .brand img { height: 38px; }

    .topbar-right { gap: 16px; font-size: .8rem; }
    .topbar-right > span { display: none; }

    .hero-cta .btn { width: 100%; }

    .hero-facts {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .hero-facts li { border-right: 0; margin-right: 0; padding-right: 0; }

    .hero-portrait { width: min(100%, 260px); }
    .hero-portrait figcaption { right: 50%; transform: translateX(50%); bottom: 14px; white-space: nowrap; }

    .form-card { padding: 24px 20px; }

    .nav-mobile-actions { grid-template-columns: 1fr; }

    .map-wrap { height: 280px; margin-top: 48px; }

    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* --- Enquiry form extras -------------------------------------------------- */
/* Spam-trap field: moved off-screen so people never see it, but bots still fill it in */
.hp-field {
    position: absolute !important;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.field-foot {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.char-count {
    margin-left: auto;
    margin-top: 4px;
    font-size: .8rem;
    color: var(--ink-soft);
    white-space: nowrap;
}

.char-count.is-near { color: var(--marigold-dark); }

.field.has-error textarea { border-color: var(--danger); }

/* Phone field with a fixed +91 in front */
.phone-input {
    display: flex;
    align-items: stretch;
    border: 1.5px solid #C9D3E6;
    border-radius: var(--radius-sm);
    background: var(--white);
    transition: border-color .2s, box-shadow .2s;
}

.phone-prefix {
    display: flex;
    align-items: center;
    padding: 0 12px 0 14px;
    font-weight: 600;
    color: var(--navy-900);
    background: var(--paper);
    border-right: 1.5px solid #C9D3E6;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.field .phone-input input {
    border: 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    letter-spacing: .04em;
}

.field .phone-input input:focus { box-shadow: none; }

.phone-input:focus-within {
    border-color: var(--navy-700);
    box-shadow: 0 0 0 4px rgba(45, 75, 158, .15);
}

.field.has-error .phone-input { border-color: var(--danger); }
