/* =========================================================================
   MAYOGA — shared design system & layout chrome
   Page-specific styles live in their own files (index.css, about.css, ...).
   ========================================================================= */

/* ---------- Fonts (self-hosted, OFL) ---------- */
@font-face {
    font-family: "DM Serif Display";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../assets/fonts/dm-serif-display-latin.woff2") format("woff2");
}

@font-face {
    font-family: "DM Serif Display";
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url("../assets/fonts/dm-serif-display-italic-latin.woff2") format("woff2");
}

@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url("../assets/fonts/manrope-variable-latin.woff2") format("woff2");
}

/* ---------- Design tokens ---------- */
:root {
    --color-primary: #173B32;
    --color-primary-dark: #0F2A23;
    --color-primary-light: #315D4B;
    --color-sage: #91A995;
    --color-sage-light: #DCE5DC;
    --color-background: #FAF8F3;
    --color-sand: #EDE6D9;
    --color-sand-light: #F4EFE6;
    --color-gold: #C5A46D;
    --color-gold-dark: #7A5A26;
    --color-lotus: #C9332C;
    --color-text: #26332D;
    --color-text-muted: #5C6A61;
    --color-white: #FFFFFF;
    --color-border: #DFE5DD;

    --font-serif: "DM Serif Display", "Noto Serif Malayalam", Georgia, "Times New Roman", serif;
    --font-sans: "Manrope", "Noto Sans Malayalam", "Nirmala UI", "Malayalam Sangam MN", "Kartika", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --fs-h1: clamp(2.25rem, 1.55rem + 3vw, 4.25rem);
    --fs-h2: clamp(1.85rem, 1.4rem + 1.9vw, 3rem);
    --fs-h3: clamp(1.25rem, 1.12rem + 0.55vw, 1.6rem);
    --fs-lead: clamp(1.05rem, 1rem + 0.3vw, 1.25rem);
    --fs-small: 0.875rem;

    --space-section: clamp(4rem, 2.8rem + 5vw, 7.5rem);
    --gutter: clamp(1rem, 4vw, 2.5rem);
    --container: 1220px;
    --container-narrow: 820px;

    --radius-sm: 10px;
    --radius: 18px;
    --radius-lg: 28px;
    --radius-pill: 999px;

    --shadow-sm: 0 2px 10px rgba(23, 59, 50, 0.06);
    --shadow: 0 18px 40px -20px rgba(23, 59, 50, 0.3);
    --shadow-lg: 0 34px 70px -30px rgba(15, 42, 35, 0.45);

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --header-height: 76px;
}

@media (min-width: 1180px) {
    :root {
        --header-height: 88px;
    }
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--color-background);
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
    line-height: 1.7;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

body.is-locked {
    overflow: hidden;
}

img,
svg,
video,
iframe {
    display: block;
    max-width: 100%;
}

img,
video {
    height: auto;
}

h1,
h2,
h3,
h4 {
    margin: 0 0 0.6em;
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -0.01em;
    color: var(--color-primary);
    overflow-wrap: break-word;
}

h1 {
    font-size: var(--fs-h1);
}

h2 {
    font-size: var(--fs-h2);
}

h3 {
    font-size: var(--fs-h3);
    line-height: 1.25;
}

h4 {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0;
}

p {
    margin: 0 0 1.1em;
}

a {
    color: var(--color-primary-light);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 0.2s var(--ease);
}

a:hover {
    color: var(--color-primary);
}

ul,
ol {
    margin: 0;
    padding: 0;
}

button {
    font: inherit;
    color: inherit;
}

address {
    font-style: normal;
}

:lang(ml) {
    line-height: 1.8;
}

::selection {
    background: var(--color-sage-light);
    color: var(--color-primary-dark);
}

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

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -100px;
    z-index: 200;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-sm);
    background: var(--color-primary);
    color: var(--color-white);
    font-weight: 700;
    text-decoration: none;
}

.skip-link:focus {
    top: 1rem;
    color: var(--color-white);
}

main:focus {
    outline: none;
}

.icon {
    width: 1.15em;
    height: 1.15em;
    flex: none;
}

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: calc(var(--container) + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.container--narrow {
    max-width: calc(var(--container-narrow) + 2 * var(--gutter));
}

.section {
    padding-block: var(--space-section);
}

.section--tight {
    padding-block: calc(var(--space-section) * 0.6);
}

.section--sand {
    background: var(--color-sand-light);
}

.section--forest {
    background: var(--color-primary);
    color: rgba(255, 255, 255, 0.86);
}

.section--forest h2,
.section--forest h3 {
    color: var(--color-white);
}

.section-head {
    max-width: 720px;
    margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem);
}

.section-head--center {
    margin-inline: auto;
    text-align: center;
}

.section-head__title {
    margin-bottom: 0.4em;
}

.section-head__lead {
    font-size: var(--fs-lead);
    color: var(--color-text-muted);
    margin: 0;
}

.section--forest .section-head__lead {
    color: rgba(255, 255, 255, 0.78);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 1rem;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-gold-dark);
}

.eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: currentColor;
}

.section-head--center .eyebrow::after {
    content: "";
    width: 28px;
    height: 1px;
    background: currentColor;
}

.section--forest .eyebrow {
    color: var(--color-gold);
}

.lead {
    font-size: var(--fs-lead);
    color: var(--color-text-muted);
}

.prose {
    max-width: 68ch;
}

.prose p:last-child {
    margin-bottom: 0;
}

/* ---------- Buttons ---------- */
.btn {
    --btn-bg: var(--color-primary);
    --btn-fg: var(--color-white);
    --btn-border: var(--color-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 48px;
    padding: 0.8rem 1.6rem;
    border: 1.5px solid var(--btn-border);
    border-radius: var(--radius-pill);
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.2;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn:hover {
    --btn-bg: var(--color-primary-light);
    --btn-border: var(--color-primary-light);
    color: var(--btn-fg);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn:active {
    transform: translateY(0);
}

.btn .icon {
    transition: transform 0.25s var(--ease);
}

.btn:hover .icon--arrow {
    transform: translateX(3px);
}

.btn--outline {
    --btn-bg: transparent;
    --btn-fg: var(--color-primary);
    --btn-border: var(--color-primary);
}

.btn--outline:hover {
    --btn-bg: var(--color-primary);
    --btn-fg: var(--color-white);
    --btn-border: var(--color-primary);
}

.btn--gold {
    --btn-bg: var(--color-gold);
    --btn-fg: var(--color-primary-dark);
    --btn-border: var(--color-gold);
}

.btn--gold:hover {
    --btn-bg: #D4B783;
    --btn-border: #D4B783;
    --btn-fg: var(--color-primary-dark);
}

.btn--light {
    --btn-bg: transparent;
    --btn-fg: var(--color-white);
    --btn-border: rgba(255, 255, 255, 0.6);
}

.btn--light:hover {
    --btn-bg: var(--color-white);
    --btn-fg: var(--color-primary);
    --btn-border: var(--color-white);
}

.btn--sm {
    min-height: 42px;
    padding: 0.6rem 1.15rem;
    font-size: 0.875rem;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    border-bottom: 1.5px solid var(--color-gold);
    padding-bottom: 2px;
}

.text-link:hover {
    color: var(--color-primary-light);
    border-bottom-color: var(--color-primary-light);
}

.text-link:hover .icon--arrow {
    transform: translateX(3px);
}

.text-link .icon {
    transition: transform 0.25s var(--ease);
}

/* ---------- Top bar ---------- */
.topbar {
    display: none;
    background: var(--color-primary-dark);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.82rem;
}

.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 40px;
}

.topbar__contact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.6rem;
    list-style: none;
}

.topbar a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: inherit;
    text-decoration: none;
}

.topbar a:hover {
    color: var(--color-gold);
}

.topbar .icon {
    color: var(--color-gold);
}

@media (min-width: 900px) {
    .topbar {
        display: block;
    }
}

/* ---------- Social icons ---------- */
.social {
    display: flex;
    gap: 0.5rem;
    list-style: none;
}

.social a {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.85);
    transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.social a:hover {
    background: var(--color-gold);
    border-color: var(--color-gold);
    color: var(--color-primary-dark);
}

.social--compact a {
    width: 28px;
    height: 28px;
    border: 0;
}

.social--compact .icon {
    color: inherit;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 248, 243, 0.94);
    border-bottom: 1px solid transparent;
    transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}

@supports (backdrop-filter: blur(12px)) {
    .site-header {
        background: rgba(250, 248, 243, 0.82);
        backdrop-filter: saturate(160%) blur(14px);
    }
}

.site-header.is-scrolled {
    border-bottom-color: var(--color-border);
    box-shadow: 0 10px 30px -22px rgba(15, 42, 35, 0.45);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: var(--header-height);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    text-decoration: none;
    color: var(--color-primary);
}

.brand__logo {
    width: auto;
    height: 52px;
}

.brand__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    font-family: var(--font-serif);
    font-size: 1.12rem;
    line-height: 1.15;
    white-space: nowrap;
}

.brand__text small {
    font-family: var(--font-sans);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

@media (max-width: 520px) {
    .brand {
        flex: 1 1 auto;
        gap: 0.5rem;
    }

    .brand__text {
        max-width: 8.5rem;
        font-size: 1rem;
        white-space: normal;
    }

    .brand__text small {
        display: none;
    }

    .brand__logo {
        height: 44px;
    }
}

@media (max-width: 359px) {
    .brand__text {
        display: none;
    }
}

@media (min-width: 1180px) {
    .brand__logo {
        height: 60px;
    }

    /* The desktop menu needs the full row; the logo itself carries the MAYOGA wordmark. */
    .brand__text {
        display: none;
    }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.icon-btn {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    background: var(--color-white);
    color: var(--color-primary);
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.icon-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

.icon-btn .icon {
    width: 22px;
    height: 22px;
}

/* Desktop navigation */
.primary-nav {
    display: none;
}

@media (min-width: 1180px) {
    .primary-nav {
        display: block;
    }

    .nav-toggle,
    .header-call {
        display: none;
    }
}

.primary-nav__list {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    list-style: none;
}

.primary-nav__item {
    position: relative;
    display: flex;
    align-items: center;
}

.primary-nav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 0.7rem;
    border-radius: var(--radius-pill);
    color: var(--color-text);
    font-size: 0.92rem;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.primary-nav__item.has-children .primary-nav__link {
    padding-right: 0.15rem;
}

.primary-nav__link::after {
    content: "";
    position: absolute;
    left: 0.7rem;
    right: 0.7rem;
    bottom: 0.32rem;
    height: 1.5px;
    background: var(--color-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease);
}

.primary-nav__item.has-children .primary-nav__link::after {
    right: 0.15rem;
}

.primary-nav__link:hover {
    color: var(--color-primary);
}

.primary-nav__link:hover::after,
.primary-nav__item.is-active > .primary-nav__link::after {
    transform: scaleX(1);
}

.primary-nav__item.is-active > .primary-nav__link {
    color: var(--color-primary);
}

.primary-nav__link--cta {
    margin-left: 0.5rem;
    padding: 0.7rem 1.3rem;
    background: var(--color-primary);
    color: var(--color-white);
}

.primary-nav__link--cta::after {
    display: none;
}

.primary-nav__link--cta:hover,
.primary-nav__item.is-active > .primary-nav__link--cta {
    background: var(--color-primary-light);
    color: var(--color-white);
}

.submenu-toggle {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
}

.submenu-toggle .icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s var(--ease);
}

.submenu-toggle[aria-expanded="true"] .icon {
    transform: rotate(180deg);
}

.submenu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    min-width: 280px;
    padding: 0.6rem;
    list-style: none;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-white);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
}

.submenu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -0.6rem;
    height: 0.6rem;
}

.primary-nav__item.is-open > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s;
}

@media (hover: hover) and (pointer: fine) {
    .primary-nav__item.has-children:hover > .submenu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s;
    }
}

.submenu a {
    display: block;
    padding: 0.7rem 0.9rem;
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.submenu a:hover,
.submenu a[aria-current="page"] {
    background: var(--color-sand-light);
    color: var(--color-primary);
}

/* Mobile drawer */
.mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 150;
    visibility: hidden;
    transition: visibility 0s linear 0.4s;
}

.mobile-nav.is-open {
    visibility: visible;
    transition: visibility 0s;
}

.mobile-nav__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    padding: 0;
    width: 100%;
    background: rgba(15, 42, 35, 0.55);
    opacity: 0;
    cursor: pointer;
    transition: opacity 0.4s var(--ease);
}

.mobile-nav.is-open .mobile-nav__backdrop {
    opacity: 1;
}

.mobile-nav__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    width: min(400px, 88vw);
    background: var(--color-background);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.mobile-nav.is-open .mobile-nav__panel {
    transform: translateX(0);
}

.mobile-nav__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
}

.mobile-nav__head img {
    height: 44px;
    width: auto;
}

.mobile-nav__list {
    list-style: none;
    padding: 0.75rem 1.25rem;
}

.mobile-nav__item {
    border-bottom: 1px solid var(--color-border);
}

.mobile-nav__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-nav__link {
    flex: 1;
    display: block;
    padding: 0.95rem 0;
    color: var(--color-primary);
    font-family: var(--font-serif);
    font-size: 1.3rem;
    line-height: 1.25;
    text-decoration: none;
}

.mobile-nav__link[aria-current="page"] {
    color: var(--color-gold-dark);
}

.mobile-nav__toggle {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    background: var(--color-white);
    color: var(--color-primary);
    cursor: pointer;
}

.mobile-nav__toggle .icon {
    transition: transform 0.3s var(--ease);
}

.mobile-nav__toggle[aria-expanded="true"] .icon {
    transform: rotate(180deg);
}

.mobile-nav__sub {
    list-style: none;
    padding: 0 0 0.9rem 1rem;
    border-left: 2px solid var(--color-gold);
    margin: 0 0 0.9rem 0.25rem;
}

.mobile-nav__sub[hidden] {
    display: none;
}

.mobile-nav__sub a {
    display: block;
    padding: 0.55rem 0;
    color: var(--color-text);
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
}

.mobile-nav__sub a[aria-current="page"] {
    color: var(--color-gold-dark);
}

.mobile-nav__footer {
    margin-top: auto;
    padding: 1.25rem;
    background: var(--color-primary);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.92rem;
}

.mobile-nav__footer ul {
    list-style: none;
    display: grid;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.mobile-nav__footer .social {
    display: flex;
    margin: 0;
}

.mobile-nav__footer a {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: inherit;
    text-decoration: none;
    word-break: break-word;
}

.mobile-nav__footer .icon {
    color: var(--color-gold);
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: flex-end;
    min-height: clamp(300px, 22rem + 8vw, 470px);
    padding-block: clamp(3rem, 2rem + 4vw, 5rem) clamp(2.5rem, 2rem + 2vw, 3.75rem);
    color: var(--color-white);
    background: var(--color-primary);
    overflow: hidden;
}

.page-hero__media {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.page-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-hero__media--top img {
    object-position: center 25%;
}

.page-hero__media--bottom img {
    object-position: center 75%;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(15, 42, 35, 0.15) 0%, rgba(15, 42, 35, 0.55) 55%, rgba(15, 42, 35, 0.9) 100%),
        linear-gradient(90deg, rgba(15, 42, 35, 0.7) 0%, rgba(15, 42, 35, 0.15) 70%);
}

.page-hero__content {
    max-width: 820px;
}

.page-hero h1 {
    margin-bottom: 0.3em;
    color: var(--color-white);
}

.page-hero .eyebrow {
    color: var(--color-gold);
}

.page-hero__lead {
    max-width: 62ch;
    margin: 0;
    font-size: var(--fs-lead);
    color: rgba(255, 255, 255, 0.86);
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
    list-style: none;
    font-size: 0.85rem;
    font-weight: 600;
}

.breadcrumb li {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: rgba(255, 255, 255, 0.75);
}

.breadcrumb li + li::before {
    content: "/";
    color: var(--color-gold);
}

.breadcrumb a {
    color: var(--color-white);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--color-gold);
}

.breadcrumb [aria-current="page"] {
    color: rgba(255, 255, 255, 0.75);
}

/* ---------- Shared content helpers ---------- */
.media-frame {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--color-sand);
}

.media-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.8rem;
    border-radius: var(--radius-pill);
    background: var(--color-sage-light);
    color: var(--color-primary);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.3;
}

.check-list {
    display: grid;
    gap: 0.65rem;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 1.85rem;
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23173B32' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 0.7rem no-repeat,
        var(--color-sage-light);
}

/* Call-to-action band (shared partial) */
.cta-band {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    padding: clamp(2rem, 1.5rem + 3vw, 4rem);
    background: var(--color-primary);
    color: rgba(255, 255, 255, 0.85);
    display: grid;
    gap: 1.75rem;
    align-items: center;
}

.cta-band::after {
    content: "";
    position: absolute;
    right: -120px;
    top: -120px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    border: 1px solid rgba(197, 164, 109, 0.35);
    box-shadow: 0 0 0 40px rgba(197, 164, 109, 0.06), 0 0 0 80px rgba(197, 164, 109, 0.04);
    pointer-events: none;
}

.cta-band h2 {
    margin-bottom: 0.35em;
    color: var(--color-white);
    font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem);
}

.cta-band p {
    margin: 0;
}

.cta-band__tel {
    color: var(--color-gold);
    font-weight: 700;
    white-space: nowrap;
}

.cta-band__tel:hover {
    color: var(--color-white);
}

.cta-band__actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

@media (min-width: 900px) {
    .cta-band {
        grid-template-columns: 1.4fr auto;
    }
}

/* ---------- Footer ---------- */
.site-footer {
    position: relative;
    background: var(--color-primary-dark);
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.94rem;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--color-gold);
}

.footer-main {
    display: grid;
    gap: 2.5rem 2rem;
    padding-block: clamp(3.5rem, 2.5rem + 4vw, 5.5rem) 3rem;
}

@media (min-width: 640px) {
    .footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1100px) {
    .footer-main {
        grid-template-columns: 1.35fr 1fr 0.8fr 1fr;
    }
}

.footer-brand__logo {
    display: inline-block;
    padding: 0.6rem 0.9rem;
    margin-bottom: 1.25rem;
    border-radius: var(--radius);
    background: var(--color-white);
}

.footer-brand__logo img {
    height: 64px;
    width: auto;
}

.footer-brand p {
    max-width: 36ch;
}

.footer-title {
    margin: 0 0 1.1rem;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-gold);
}

.footer-list {
    display: grid;
    gap: 0.65rem;
    list-style: none;
}

.footer-list a,
.footer-contact a {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.55rem;
    word-break: break-word;
}

.footer-list .icon,
.footer-contact .icon {
    margin-top: 0.25em;
    color: var(--color-gold);
}

.footer-contact {
    display: grid;
    gap: 0.6rem;
    list-style: none;
    margin-bottom: 1.5rem;
}

.footer-centre + .footer-centre {
    margin-top: 1.25rem;
}

.footer-centre strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--color-white);
    font-weight: 700;
    letter-spacing: 0.04em;
}

.footer-hours {
    display: grid;
    gap: 0.35rem;
    list-style: none;
    margin-bottom: 1rem;
}

.footer-note {
    padding: 0.8rem 1rem;
    border-left: 2px solid var(--color-gold);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 0.88rem;
    font-style: italic;
}

.footer-managed {
    display: grid;
    gap: 1.25rem;
    align-items: center;
    padding-block: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 760px) {
    .footer-managed {
        grid-template-columns: auto 1fr;
        gap: 2rem;
    }
}

.footer-managed__logo {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    background: var(--color-white);
}

.footer-managed__logo img {
    width: 180px;
    height: auto;
}

.footer-managed p {
    margin: 0;
}

.footer-managed strong {
    color: var(--color-white);
}

.footer-bottom {
    padding-block: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
}

.footer-bottom__inner {
    /* keep clear of the floating WhatsApp button */
    padding-right: calc(var(--gutter) + 64px);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
}

.footer-bottom p {
    margin: 0;
}

/* ---------- Floating WhatsApp ---------- */
.whatsapp-float {
    position: fixed;
    right: clamp(1rem, 2vw, 1.75rem);
    bottom: clamp(1rem, 2vw, 1.75rem);
    z-index: 90;
    display: inline-grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #1F8F4E;
    color: var(--color-white);
    box-shadow: 0 14px 30px -12px rgba(15, 42, 35, 0.6);
    transition: transform 0.25s var(--ease), background-color 0.25s var(--ease);
}

.whatsapp-float:hover {
    background: #187A41;
    color: var(--color-white);
    transform: translateY(-3px);
}

.whatsapp-float .icon {
    width: 28px;
    height: 28px;
}

/* ---------- Reveal on scroll (progressive enhancement) ---------- */
.reveal-pending {
    opacity: 0;
    transform: translateY(24px);
}

.reveal-in {
    opacity: 1;
    transform: none;
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal-pending {
        opacity: 1;
        transform: none;
    }
}

/* ---------- Forced colours / print ---------- */
@media (forced-colors: active) {
    .btn {
        border: 2px solid ButtonText;
    }
}

@media print {
    .site-header,
    .topbar,
    .mobile-nav,
    .whatsapp-float,
    .site-footer {
        display: none !important;
    }
}
