/* =====================================================================
   AJS Water Equipment and Supply — public site
   =====================================================================

   Built on the palette the existing site already uses: teal #2CA6B1,
   navy #123F5A, sky #5BC0DE, light blue #CFEAF2. Those four are now
   settings, injected as custom properties by the layout, so a rebrand
   is a form field rather than a stylesheet edit. Everything below
   derives from them — there are no other hard-coded brand colours.

   What changed from the original stylesheet, and why:

   - One spacing and radius scale instead of ad-hoc pixel values, so
     cards, sections and buttons line up with each other.
   - Fluid type with clamp(), so headings stop being either enormous on
     a phone or timid on a desktop.
   - Every image slot has an aspect-ratio. The old page reserved no
     space for its images, so the whole layout jumped as each of the
     thirty-seven photographs arrived — the single biggest thing wrong
     with how it felt to load.
   - Real focus-visible rings. The original had none, which makes the
     site unusable by keyboard.
   - prefers-reduced-motion honoured throughout.
   ===================================================================== */

/* ---------------------------------------------------------------------
   Tokens
   --------------------------------------------------------------------- */

:root {
    /* The four brand colours arrive from the database — see
       layouts/site.php. These are the fallbacks if a setting is blank. */
    --teal: #2CA6B1;
    --navy: #123F5A;
    --sky: #5BC0DE;
    --light-blue: #CFEAF2;

    /* Derived tints. colour-mix keeps them in step with the brand
       colours automatically; a browser without it falls back to the
       literal values declared immediately before each one. */
    --teal-dark: #24868f;
    --teal-dark: color-mix(in srgb, var(--teal) 82%, #000);
    --teal-light: #eaf6f8;
    --teal-light: color-mix(in srgb, var(--teal) 10%, #fff);
    --teal-border: #bfe3e7;
    --teal-border: color-mix(in srgb, var(--teal) 25%, #fff);

    --navy-soft: #1B4F72;
    --navy-soft: color-mix(in srgb, var(--navy) 85%, var(--sky));

    --surface: #ffffff;
    --surface-sunken: #f6fafb;
    --surface-sunken: color-mix(in srgb, var(--light-blue) 22%, #fff);

    --ink: #12222e;
    --ink-muted: #5a6b78;
    --ink-faint: #8595a1;

    --line: #e3ecf0;
    --line: color-mix(in srgb, var(--navy) 12%, #fff);

    /* Spacing scale. */
    --sp-1: .25rem;
    --sp-2: .5rem;
    --sp-3: .75rem;
    --sp-4: 1rem;
    --sp-5: 1.5rem;
    --sp-6: 2rem;
    --sp-7: 3rem;
    --sp-8: 4rem;

    --radius-sm: .5rem;
    --radius: .875rem;
    --radius-lg: 1.25rem;
    --radius-xl: 1.75rem;
    --radius-pill: 999px;

    /* Shadows, tinted navy rather than grey so they sit in the palette
       instead of muddying it. */
    --shadow-sm: 0 1px 2px rgba(18, 63, 90, .06), 0 2px 8px rgba(18, 63, 90, .05);
    --shadow: 0 4px 12px rgba(18, 63, 90, .07), 0 12px 32px rgba(18, 63, 90, .07);
    --shadow-lg: 0 12px 28px rgba(18, 63, 90, .10), 0 28px 64px rgba(18, 63, 90, .10);

    --ring: 0 0 0 3px rgba(44, 166, 177, .35);

    --section-pad: clamp(3.5rem, 7vw, 6rem);
    --container-max: 1200px;

    --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------------------------------------------------------------------
   Base
   --------------------------------------------------------------------- */

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

html {
    scroll-behavior: smooth;
    /* The navbar is sticky, so an anchor jump would otherwise land with
       the heading hidden underneath it. */
    scroll-padding-top: 5.5rem;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--surface);
    /* Stops a long unbroken product code from pushing a card wider than
       the viewport, which is what produced the horizontal scroll on the
       old page's package text. */
    overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--navy);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.015em;
    margin: 0 0 var(--sp-3);
    text-wrap: balance;
}

h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.5vw, 2.35rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); }

p { margin: 0 0 var(--sp-4); }

/* Paragraphs read better capped; 68ch is about 12 words a line. */
.prose p { max-width: 68ch; }

a {
    color: var(--teal-dark);
    text-decoration-thickness: 1px;
    text-underline-offset: .2em;
}

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

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

hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: var(--sp-6) 0;
}

/* One visible focus style for everything. The original had none at
   all, which makes a site impossible to use without a mouse. */
:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Skip link — the first thing a keyboard or screen reader user meets. */
.skip-link {
    position: absolute;
    left: var(--sp-4);
    top: -100px;
    z-index: 2000;
    padding: var(--sp-3) var(--sp-5);
    background: var(--navy);
    color: #fff;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    transition: top .2s var(--ease);
}

.skip-link:focus {
    top: var(--sp-4);
    color: #fff;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--sp-4);
}

.section {
    padding-block: var(--section-pad);
    position: relative;
}

.section--sunken { background: var(--surface-sunken); }

.section--tinted {
    background: linear-gradient(180deg, var(--light-blue) 0%, var(--surface) 78%);
}

/* ---------------------------------------------------------------------
   Utility
   --------------------------------------------------------------------- */

.text-navy  { color: var(--navy) !important; }
.text-teal  { color: var(--teal-dark) !important; }
.text-muted { color: var(--ink-muted) !important; }
.text-faint { color: var(--ink-faint) !important; }

.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;
}

.stack > * + * { margin-top: var(--sp-4); }

/* ---------------------------------------------------------------------
   Section headings
   --------------------------------------------------------------------- */

.section-head {
    max-width: 46rem;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

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

.kicker {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--teal-dark);
    margin-bottom: var(--sp-3);
}

.kicker::before {
    content: "";
    width: 1.75rem;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
}

.section-head--center .kicker::before { display: none; }

.section-head p {
    color: var(--ink-muted);
    font-size: 1.0625rem;
    margin-bottom: 0;
}

/* ---------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------- */

.btn {
    --btn-bg: var(--teal);
    --btn-fg: #fff;
    --btn-border: var(--teal);

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    padding: .75rem 1.5rem;
    border: 1px solid var(--btn-border);
    border-radius: var(--radius-pill);
    background: var(--btn-bg);
    color: var(--btn-fg);
    font: inherit;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease);
}

.btn:hover {
    color: var(--btn-fg);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

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

.btn--primary {
    --btn-bg: var(--teal);
    --btn-border: var(--teal);
    box-shadow: 0 4px 14px rgba(44, 166, 177, .28);
}

.btn--primary:hover {
    --btn-bg: var(--teal-dark);
    --btn-border: var(--teal-dark);
}

.btn--navy {
    --btn-bg: var(--navy);
    --btn-border: var(--navy);
}

.btn--navy:hover {
    --btn-bg: var(--navy-soft);
    --btn-border: var(--navy-soft);
}

.btn--outline {
    --btn-bg: transparent;
    --btn-fg: var(--navy);
    --btn-border: var(--teal-border);
}

.btn--outline:hover {
    --btn-bg: var(--teal-light);
    --btn-fg: var(--navy);
    --btn-border: var(--teal);
}

.btn--ghost {
    --btn-bg: rgba(255, 255, 255, .14);
    --btn-fg: #fff;
    --btn-border: rgba(255, 255, 255, .3);
}

.btn--lg { padding: .95rem 1.9rem; font-size: 1.0625rem; }
.btn--sm { padding: .5rem 1rem; font-size: .875rem; }
.btn--block { width: 100%; }

/* ---------------------------------------------------------------------
   Badges and chips
   --------------------------------------------------------------------- */

.chip {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    padding: .3rem .7rem;
    border-radius: var(--radius-pill);
    font-size: .8125rem;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}

.chip--teal   { background: var(--teal); color: #fff; }
.chip--navy   { background: var(--navy); color: #fff; }
.chip--soft   { background: var(--teal-light); color: var(--navy); border: 1px solid var(--teal-border); }
.chip--ghost  { background: rgba(255, 255, 255, .18); color: #fff; border: 1px solid rgba(255, 255, 255, .32); }

.eyebrow-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    padding: .5rem 1rem;
    border-radius: var(--radius-pill);
    background: var(--teal-light);
    border: 1px solid var(--teal-border);
    color: var(--navy);
    font-size: .875rem;
    font-weight: 600;
}

/* ---------------------------------------------------------------------
   Top bar
   --------------------------------------------------------------------- */

.topbar {
    background: linear-gradient(90deg, var(--navy), var(--navy-soft));
    color: rgba(255, 255, 255, .92);
    font-size: .875rem;
}

.topbar__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3) var(--sp-5);
    padding-block: .6rem;
}

.topbar__group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sp-2) var(--sp-5);
}

.topbar__item {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
}

.topbar a {
    color: inherit;
    text-decoration: none;
}

.topbar a:hover {
    color: #fff;
    text-decoration: underline;
}

@media (max-width: 991.98px) {
    .topbar { display: none; }
}

/* ---------------------------------------------------------------------
   Navigation
   --------------------------------------------------------------------- */

.site-nav {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .2s var(--ease), background-color .2s var(--ease);
}

/* Set by JS once the page has scrolled, so the bar only earns its
   shadow when there is something underneath it. */
.site-nav.is-stuck {
    background: rgba(255, 255, 255, .97);
    box-shadow: var(--shadow-sm);
}

.site-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
    min-height: 4.5rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-3);
    text-decoration: none;
    color: var(--navy);
    font-weight: 700;
    line-height: 1.15;
}

.brand__mark {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--radius);
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(44, 166, 177, .25);
    flex: none;
    background: var(--teal-light);
}

.brand__name { font-size: 1rem; }

.brand__tag {
    display: block;
    font-size: .75rem;
    font-weight: 500;
    color: var(--ink-muted);
    letter-spacing: .01em;
}

@media (max-width: 400px) {
    .brand__name { font-size: .9375rem; }
    .brand__tag { display: none; }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--sp-1);
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    display: block;
    padding: .55rem .85rem;
    border-radius: var(--radius-sm);
    color: var(--navy);
    font-weight: 600;
    font-size: .9375rem;
    text-decoration: none;
    opacity: .82;
    transition: opacity .15s var(--ease), background-color .15s var(--ease);
}

.nav-links a:hover {
    opacity: 1;
    background: var(--teal-light);
}

/* Applied by the scroll spy in site.js. */
.nav-links a.is-active {
    opacity: 1;
    color: var(--teal-dark);
    background: var(--teal-light);
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--navy);
    font-size: 1.35rem;
    cursor: pointer;
}

@media (max-width: 991.98px) {
    .nav-toggle { display: inline-flex; }

    .nav-panel {
        position: fixed;
        inset: 4.5rem 0 auto;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-lg);
        padding: var(--sp-4) var(--sp-4) var(--sp-5);
        /* Hidden by clip rather than display:none so it can animate and
           so the links stay focusable in the right order once open. */
        max-height: calc(100dvh - 4.5rem);
        overflow-y: auto;
        transform: translateY(-8px);
        opacity: 0;
        visibility: hidden;
        transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
    }

    .nav-panel.is-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links {
        flex-direction: column;
        align-items: stretch;
        gap: var(--sp-1);
    }

    .nav-links a {
        padding: .75rem var(--sp-3);
        font-size: 1rem;
    }

    .nav-cta { margin-top: var(--sp-3); }
    .nav-cta .btn { width: 100%; }
}

@media (min-width: 992px) {
    .nav-panel {
        display: flex !important;
        align-items: center;
        gap: var(--sp-4);
    }
}

/* ---------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------- */

.hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(3rem, 6vw, 5.5rem);
    background:
        radial-gradient(56rem 30rem at 12% 8%, rgba(91, 192, 222, .22), transparent 62%),
        radial-gradient(44rem 26rem at 92% 4%, rgba(44, 166, 177, .18), transparent 60%),
        linear-gradient(180deg, #fff 0%, var(--light-blue) 100%);
}

/* A single decorative wave instead of the three stacked radial blobs
   the original used. Those read as smudges at any size. */
.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 4.5rem;
    background: var(--surface);
    clip-path: ellipse(72% 100% at 50% 100%);
    pointer-events: none;
}

.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(2.5rem, 5vw, 4rem);
    align-items: center;
    position: relative;
    z-index: 1;
}

@media (min-width: 992px) {
    .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
}

.hero__title { margin-bottom: var(--sp-4); }

.hero__lead {
    font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
    color: var(--ink-muted);
    max-width: 34rem;
    margin-bottom: var(--sp-5);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-3);
    margin-bottom: var(--sp-6);
}

.hero__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    gap: var(--sp-3);
}

.stat-card {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-3);
    padding: var(--sp-4);
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.stat-card__icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-sm);
    background: var(--teal);
    color: #fff;
    font-size: 1.15rem;
}

.stat-card__title {
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
}

.stat-card__sub {
    font-size: .875rem;
    color: var(--ink-muted);
    line-height: 1.45;
}

/* The hero picture. aspect-ratio reserves the space before the image
   arrives, which is what stops the page jumping as it loads. */
.hero__media {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--teal-light);
}

.hero__media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.hero__caption {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
    padding: var(--sp-4);
    background: #fff;
}

.hero__caption strong {
    display: block;
    color: var(--navy);
}

.hero__caption span {
    font-size: .875rem;
    color: var(--ink-muted);
}

/* ---------------------------------------------------------------------
   Cards
   --------------------------------------------------------------------- */

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.card__body { padding: var(--sp-5); }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: var(--sp-4);
}

.feature-card {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-3);
    padding: var(--sp-4);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}

.feature-card:hover {
    transform: translateY(-2px);
    border-color: var(--teal-border);
    box-shadow: var(--shadow);
}

.feature-card__icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--radius-sm);
    background: var(--teal-light);
    color: var(--teal-dark);
    font-size: 1.25rem;
}

.feature-card__title {
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
}

.feature-card__sub {
    font-size: .875rem;
    color: var(--ink-muted);
    line-height: 1.5;
}

/* The "What we do" list. */
.checklist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.checklist li {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-3);
    padding-block: var(--sp-3);
    border-bottom: 1px solid var(--line);
}

.checklist li:last-child { border-bottom: 0; }

.checklist i {
    color: var(--teal);
    font-size: 1.15rem;
    line-height: 1.5;
    flex: none;
}

.panel {
    padding: clamp(1.5rem, 3vw, 2.5rem);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

/* ---------------------------------------------------------------------
   Package cards
   --------------------------------------------------------------------- */

.package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
    gap: clamp(1rem, 2.5vw, 1.75rem);
}

.package-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    text-align: left;
    text-decoration: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
    padding: 0;
    transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}

.package-card:hover,
.package-card:focus-visible {
    transform: translateY(-4px);
    border-color: var(--teal-border);
    box-shadow: var(--shadow-lg);
    color: inherit;
}

.package-card__media {
    position: relative;
    background: var(--teal-light);
}

/* 4:5 keeps the poster photographs readable as thumbnails. They are
   portrait sheets; the old page let them set their own height, so the
   grid was ragged and every row was a different depth. */
.package-card__media img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    transition: transform .4s var(--ease);
}

.package-card:hover .package-card__media img { transform: scale(1.04); }

.package-card__badges {
    position: absolute;
    inset: var(--sp-3) var(--sp-3) auto;
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
    justify-content: space-between;
}

.package-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: var(--sp-2);
    padding: var(--sp-4);
}

.package-card__title {
    font-weight: 700;
    color: var(--navy);
    line-height: 1.35;
}

.package-card__sub {
    font-size: .875rem;
    color: var(--ink-muted);
}

.package-card__price {
    margin-top: auto;
    padding-top: var(--sp-3);
    border-top: 1px solid var(--line);
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--sp-2);
    flex-wrap: wrap;
}

.package-card__amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -.01em;
}

.package-card__terms {
    font-size: .8125rem;
    color: var(--teal-dark);
    font-weight: 600;
}

.package-card__cue {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    font-size: .8125rem;
    font-weight: 600;
    color: var(--teal-dark);
}

.package-card__cue i { transition: transform .2s var(--ease); }
.package-card:hover .package-card__cue i { transform: translateX(3px); }

/* ---------------------------------------------------------------------
   Package detail — replaces the <pre> block
   ---------------------------------------------------------------------
   The original rendered every inclusion list as preformatted text with
   bullet characters typed into it. It did not wrap on a phone, it was
   not a list to a screen reader, and it could not be styled. This is
   the same content as real groups and real lists.
   --------------------------------------------------------------------- */

.detail-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
    gap: var(--sp-4);
}

.detail-group {
    background: var(--surface-sunken);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: var(--sp-4);
}

.detail-group__head {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    margin-bottom: var(--sp-3);
    padding-bottom: var(--sp-3);
    border-bottom: 1px solid var(--line);
}

.detail-group__icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--radius-sm);
    background: var(--teal);
    color: #fff;
    font-size: 1.05rem;
}

.detail-group__title {
    margin: 0;
    font-size: .9375rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--navy);
}

.detail-group__note {
    font-size: .875rem;
    color: var(--ink-muted);
    margin: 0 0 var(--sp-3);
}

.detail-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--sp-2);
}

.detail-list li {
    display: grid;
    grid-template-columns: 1.1rem 1fr;
    gap: var(--sp-2);
    font-size: .9375rem;
    line-height: 1.55;
}

.detail-list li::before {
    content: "";
    width: .45rem;
    height: .45rem;
    margin-top: .5rem;
    border-radius: 50%;
    background: var(--teal);
}

.detail-list__detail {
    display: block;
    font-size: .8125rem;
    color: var(--ink-muted);
    line-height: 1.5;
    margin-top: .15rem;
}

/* Pricing block — a table of real numbers rather than three more
   bullets, because this is the part everybody actually reads. */
.price-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
    gap: var(--sp-4);
    padding: var(--sp-5);
    background: linear-gradient(135deg, var(--navy), var(--navy-soft));
    border-radius: var(--radius-lg);
    color: #fff;
}

.price-panel__item { min-width: 0; }

.price-panel__label {
    display: block;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .68);
    margin-bottom: var(--sp-1);
}

.price-panel__value {
    font-size: clamp(1.15rem, 1rem + .7vw, 1.6rem);
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.2;
}

.price-panel__note {
    font-size: .8125rem;
    color: rgba(255, 255, 255, .72);
}

/* ---------------------------------------------------------------------
   Products
   --------------------------------------------------------------------- */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
    gap: clamp(1rem, 2.5vw, 1.5rem);
}

.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}

.product-card:hover {
    transform: translateY(-3px);
    border-color: var(--teal-border);
    box-shadow: var(--shadow);
}

/* contain, not cover: these are cut-out product shots on transparent
   backgrounds and cropping them cuts the tap off the container. */
.product-card__media {
    display: grid;
    place-items: center;
    padding: var(--sp-4);
    background: linear-gradient(160deg, var(--teal-light), #fff);
}

.product-card__media img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
}

.product-card__body { padding: var(--sp-4); padding-top: 0; }

.product-card__title {
    font-weight: 700;
    color: var(--navy);
    line-height: 1.35;
    margin-bottom: var(--sp-1);
}

.product-card__sub {
    font-size: .875rem;
    color: var(--ink-muted);
    line-height: 1.5;
}

/* ---------------------------------------------------------------------
   Gallery
   --------------------------------------------------------------------- */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr));
    gap: var(--sp-3);
}

.gallery-tile {
    position: relative;
    display: block;
    border: 0;
    padding: 0;
    background: var(--teal-light);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: zoom-in;
}

.gallery-tile img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    transition: transform .35s var(--ease);
}

.gallery-tile:hover img,
.gallery-tile:focus-visible img { transform: scale(1.06); }

.gallery-tile__overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, rgba(18, 63, 90, 0) 40%, rgba(18, 63, 90, .55));
    color: #fff;
    font-size: 1.5rem;
    opacity: 0;
    transition: opacity .25s var(--ease);
}

.gallery-tile:hover .gallery-tile__overlay,
.gallery-tile:focus-visible .gallery-tile__overlay { opacity: 1; }

/* Lightbox. The original opened each photo in a new browser tab, which
   loses the page and gives no way back but the back button. */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: var(--sp-4);
    background: rgba(10, 30, 43, .93);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s var(--ease), visibility .2s;
}

.lightbox.is-open { opacity: 1; visibility: visible; }

.lightbox__img {
    max-width: min(100%, 1100px);
    max-height: 82vh;
    width: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.lightbox__caption {
    margin-top: var(--sp-3);
    color: rgba(255, 255, 255, .82);
    font-size: .9375rem;
    text-align: center;
    max-width: 60ch;
}

.lightbox__btn {
    position: absolute;
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font-size: 1.35rem;
    cursor: pointer;
    transition: background-color .18s var(--ease);
}

.lightbox__btn:hover { background: rgba(255, 255, 255, .22); }

.lightbox__close { top: var(--sp-4); right: var(--sp-4); }
.lightbox__prev  { left: var(--sp-4); top: 50%; transform: translateY(-50%); }
.lightbox__next  { right: var(--sp-4); top: 50%; transform: translateY(-50%); }

@media (max-width: 575.98px) {
    .lightbox__prev { left: var(--sp-2); }
    .lightbox__next { right: var(--sp-2); }
}

/* ---------------------------------------------------------------------
   Contact
   --------------------------------------------------------------------- */

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

@media (min-width: 992px) {
    .contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-3);
    padding-block: var(--sp-4);
    border-bottom: 1px solid var(--line);
}

.contact-item:last-of-type { border-bottom: 0; }

.contact-item__icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-sm);
    background: var(--teal-light);
    color: var(--teal-dark);
    font-size: 1.15rem;
}

.contact-item__label {
    font-weight: 700;
    color: var(--navy);
    font-size: .9375rem;
}

.contact-item a { font-weight: 600; }

.hours-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: .9375rem;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    gap: var(--sp-4);
    padding-block: .4rem;
    border-bottom: 1px dashed var(--line);
}

.hours-list li:last-child { border-bottom: 0; }

.hours-list__day { color: var(--ink-muted); }
.hours-list__time { font-weight: 600; color: var(--navy); }

/* Today's row, marked by the template. Answering "are they open now?"
   at a glance is most of what an opening-hours table is for. */
.hours-list li.is-today .hours-list__day,
.hours-list li.is-today .hours-list__time { color: var(--teal-dark); }

.hours-list li.is-closed .hours-list__time { color: var(--ink-faint); font-weight: 500; }

.map-frame {
    aspect-ratio: 16 / 10;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
}

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

/* ---------------------------------------------------------------------
   Forms
   --------------------------------------------------------------------- */

.field { margin-bottom: var(--sp-4); }

.field__label {
    display: block;
    font-weight: 600;
    font-size: .9375rem;
    color: var(--navy);
    margin-bottom: var(--sp-2);
}

.field__label .req { color: #c0392b; }

.field__hint {
    font-size: .8125rem;
    color: var(--ink-muted);
    margin-top: var(--sp-1);
}

.input,
.select,
.textarea {
    display: block;
    width: 100%;
    padding: .75rem 1rem;
    font: inherit;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}

.input:focus,
.select:focus,
.textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: var(--ring);
}

.textarea { min-height: 8rem; resize: vertical; }

.select {
    appearance: none;
    /* Inline SVG chevron: no extra request, and it recolours with the
       text because the stroke is set here rather than in a file. */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%235a6b78' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 2.75rem;
}

.input.is-invalid,
.select.is-invalid,
.textarea.is-invalid { border-color: #c0392b; }

.field__error {
    display: block;
    font-size: .8125rem;
    color: #c0392b;
    margin-top: var(--sp-1);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
    gap: 0 var(--sp-4);
}

.form-grid--full { grid-column: 1 / -1; }

/* The honeypot. Hidden from people without display:none, which some
   bots check for. */
.hp-field {
    position: absolute !important;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---------------------------------------------------------------------
   Alerts
   --------------------------------------------------------------------- */

.alert {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-3);
    padding: var(--sp-4);
    border-radius: var(--radius);
    border: 1px solid;
    margin-bottom: var(--sp-4);
    font-size: .9375rem;
}

.alert i { font-size: 1.15rem; line-height: 1.4; flex: none; }

.alert--success { background: #eefaf3; border-color: #b7e4cd; color: #1c6b45; }
.alert--error   { background: #fdeeed; border-color: #f5c3bf; color: #a33227; }
.alert--warning { background: #fff8e8; border-color: #f3dfae; color: #8a6316; }
.alert--info    { background: var(--teal-light); border-color: var(--teal-border); color: var(--navy); }

/* ---------------------------------------------------------------------
   CTA strip
   --------------------------------------------------------------------- */

.cta-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--teal-light), #fff);
    border: 1px solid var(--teal-border);
}

.cta-strip__title {
    font-weight: 700;
    color: var(--navy);
    font-size: 1.125rem;
    margin-bottom: var(--sp-1);
}

.cta-strip__sub {
    color: var(--ink-muted);
    font-size: .9375rem;
    margin: 0;
}

/* ---------------------------------------------------------------------
   Modal
   --------------------------------------------------------------------- */

.modal {
    position: fixed;
    inset: 0;
    z-index: 1900;
    display: grid;
    place-items: center;
    padding: var(--sp-4);
    background: rgba(10, 30, 43, .6);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s var(--ease), visibility .2s;
}

.modal.is-open { opacity: 1; visibility: visible; }

.modal__dialog {
    width: min(100%, 62rem);
    max-height: 90dvh;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transform: translateY(12px) scale(.99);
    transition: transform .22s var(--ease);
}

.modal.is-open .modal__dialog { transform: translateY(0) scale(1); }

.modal__head {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-4);
    padding: var(--sp-5);
    border-bottom: 1px solid var(--line);
}

.modal__title { margin: 0; font-size: 1.25rem; }

.modal__body {
    padding: var(--sp-5);
    overflow-y: auto;
    /* Momentum scrolling inside the dialog on iOS; without it the body
       behind scrolls instead. */
    -webkit-overflow-scrolling: touch;
}

.modal__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
    padding: var(--sp-4) var(--sp-5);
    border-top: 1px solid var(--line);
    background: var(--surface-sunken);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.modal__close {
    flex: none;
    margin-left: auto;
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--ink-muted);
    font-size: 1.1rem;
    cursor: pointer;
}

.modal__close:hover { color: var(--navy); border-color: var(--teal-border); }

/* Set on <body> while a modal or the lightbox is open. */
.is-locked { overflow: hidden; }

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */

.site-footer {
    background: linear-gradient(160deg, var(--navy), #0d2f45);
    color: rgba(255, 255, 255, .72);
    padding-block: var(--sp-7) var(--sp-5);
    margin-top: var(--sp-7);
}

.site-footer h2,
.site-footer h3,
.site-footer strong { color: #fff; }

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
    gap: var(--sp-6);
}

.footer-brand { max-width: 22rem; }

.footer-title {
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: var(--sp-4);
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--sp-2);
}

.footer-links a {
    color: rgba(255, 255, 255, .72);
    text-decoration: none;
    font-size: .9375rem;
}

.footer-links a:hover { color: #fff; text-decoration: underline; }

.footer-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    padding: .45rem .9rem;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    color: #fff;
    font-size: .875rem;
    font-weight: 600;
    text-decoration: none;
}

.footer-pill:hover { background: rgba(255, 255, 255, .2); color: #fff; }

.footer-bottom {
    margin-top: var(--sp-6);
    padding-top: var(--sp-4);
    border-top: 1px solid rgba(255, 255, 255, .14);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
    font-size: .875rem;
}

/* ---------------------------------------------------------------------
   Floating actions
   --------------------------------------------------------------------- */

.floating-actions {
    position: fixed;
    right: var(--sp-4);
    bottom: var(--sp-4);
    z-index: 1500;
    display: grid;
    gap: var(--sp-3);
    justify-items: center;
}

.chat-btn {
    display: grid;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    border: 0;
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: transform .18s var(--ease);
}

.chat-btn:hover { transform: scale(1.07); color: #fff; }

.chat-btn--messenger { background: linear-gradient(45deg, #0695FF, #A334FA); }
.chat-btn--viber     { background: #7360F2; }
.chat-btn--whatsapp  { background: #25D366; }

.chat-btn svg { width: 1.75rem; height: 1.75rem; }

.to-top {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--navy);
    font-size: 1.15rem;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}

.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------------------------------------------------------------------
   Breadcrumb
   --------------------------------------------------------------------- */

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sp-2);
    list-style: none;
    margin: 0 0 var(--sp-4);
    padding: 0;
    font-size: .875rem;
    color: var(--ink-muted);
}

.breadcrumb li { display: inline-flex; align-items: center; gap: var(--sp-2); }

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

.breadcrumb a { color: var(--ink-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--teal-dark); text-decoration: underline; }

/* ---------------------------------------------------------------------
   Empty state
   --------------------------------------------------------------------- */

.empty-state {
    text-align: center;
    padding: var(--sp-7) var(--sp-4);
    color: var(--ink-muted);
}

.empty-state i {
    font-size: 2.5rem;
    color: var(--teal-border);
    margin-bottom: var(--sp-3);
    display: block;
}

/* ---------------------------------------------------------------------
   Motion and print
   --------------------------------------------------------------------- */

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

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

@media print {
    .site-nav,
    .topbar,
    .floating-actions,
    .to-top,
    .lightbox,
    .modal,
    .cta-strip { display: none !important; }

    body { color: #000; }

    /* A package page is the thing most likely to be printed — it is a
       quotation in all but name. */
    .package-card,
    .detail-group,
    .panel { break-inside: avoid; box-shadow: none; }

    .price-panel {
        background: none;
        color: #000;
        border: 1px solid #000;
    }

    .price-panel__label,
    .price-panel__note { color: #000; }
}
