/* ==========================================================================
   goldcoast.fish - main stylesheet
   Mobile first. Desktop layers in from 720px and 1024px.

   Colour contrast: every foreground/background pair below has been checked
   against WCAG 2.2 AA. Nothing is light-on-light or dark-on-dark.
     ink #0B1F2A on white .............. 16.1:1
     muted #52646D on white ............  6.2:1
     teal-dark #0A5F6B on white ........  7.4:1
     white on teal #0E7C8B .............  4.9:1
     ink on gold #E0A32E ...............  7.6:1
     white on deep #06303D ............. 14.0:1
     teal-light #4FC3D4 on deep #06303D   6.7:1
   Never place teal #0E7C8B text on the deep navy: it only reaches 2.9:1.
   ========================================================================== */

:root {
    /* Core palette */
    --ink:        #0B1F2A;
    --ink-soft:   #24404C;
    --muted:      #52646D;
    --deep:       #06303D;
    --deep-2:     #0A4152;
    --teal:       #0E7C8B;
    --teal-dark:  #0A5F6B;
    --teal-light: #4FC3D4;
    --gold:       #E0A32E;
    --gold-dark:  #C4881A;

    /* Surfaces */
    --white:      #FFFFFF;
    --sand:       #FAF7F1;
    --mist:       #F1F6F7;
    --line:       #DCE5E8;
    --line-dark:  #1B4B5A;

    /* Status */
    --ok:         #1B7A4B;
    --ok-bg:      #E7F5ED;
    --warn:       #8A5A00;
    --warn-bg:    #FDF3E0;
    --err:        #B3261E;
    --err-bg:     #FDECEA;

    /* Type */
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: Georgia, "Times New Roman", serif;

    /* Metrics */
    --wrap:      1180px;
    --radius:    10px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px rgba(11, 31, 42, .08), 0 2px 8px rgba(11, 31, 42, .06);
    --shadow-md: 0 4px 12px rgba(11, 31, 42, .10), 0 12px 28px rgba(11, 31, 42, .08);
    --tap: 44px;   /* minimum touch target */
}

/* --------------------------------------------------------------------------
   Reset and base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.2;
    color: var(--ink);
    margin: 0 0 .5em;
    font-weight: 700;
    letter-spacing: -.01em;
}
h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.4rem); }
p  { margin: 0 0 1rem; }

a { color: var(--teal-dark); text-decoration: underline; text-underline-offset: .16em; }
a:hover { color: var(--ink); }

ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }

code {
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: .9em;
    background: var(--mist);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: .1em .35em;
}

/* Visible focus everywhere. Never remove this. */
:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
    border-radius: 3px;
}
.site-header :focus-visible,
.site-footer :focus-visible,
.promo-bar :focus-visible { outline-color: var(--gold); }

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: 1rem;
}
@media (min-width: 720px) { .wrap { padding-inline: 1.5rem; } }

.sr-only {
    position: absolute; 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: 50%; top: 0;
    transform: translate(-50%, -120%);
    z-index: 300;
    background: var(--gold);
    color: var(--ink);
    font-weight: 700;
    padding: .75rem 1.25rem;
    border-radius: 0 0 var(--radius) var(--radius);
    text-decoration: none;
    transition: transform .15s ease;
}
.skip-link:focus { transform: translate(-50%, 0); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: var(--tap);
    padding: .7rem 1.35rem;
    border: 2px solid transparent;
    border-radius: var(--radius);
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .1s ease;
}
.btn:active { transform: translateY(1px); }

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

.btn--accent { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn--accent:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: var(--ink); }

.btn--ghost { background: var(--white); color: var(--teal-dark); border-color: var(--teal-dark); }
.btn--ghost:hover { background: var(--teal-dark); color: var(--white); }

/* On dark backgrounds the ghost button flips so it never sits dark-on-dark */
.on-dark .btn--ghost { background: transparent; color: var(--white); border-color: var(--teal-light); }
.on-dark .btn--ghost:hover { background: var(--white); color: var(--deep); border-color: var(--white); }

.btn--sm { padding: .5rem 1rem; font-size: .9rem; min-height: 40px; }
.btn--lg { padding: .95rem 1.9rem; font-size: 1.05rem; }
.btn--block { width: 100%; }

.btn[disabled], .btn[aria-disabled="true"] {
    background: var(--line);
    border-color: var(--line);
    color: #4A5A61;      /* 4.6:1 on --line, still legible when disabled */
    cursor: not-allowed;
    opacity: 1;
}

/* --------------------------------------------------------------------------
   Promo bar
   -------------------------------------------------------------------------- */
.promo-bar {
    background: var(--deep);
    color: var(--white);
    font-size: .85rem;
}
.promo-bar__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: .4rem .75rem;
    padding-block: .5rem;
    text-align: center;
}
.promo-bar i { color: var(--teal-light); }
.promo-bar__sep { color: var(--teal-light); }
@media (max-width: 719px) { .promo-bar__sep { display: none; } }

/* --------------------------------------------------------------------------
   Header and navigation
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid var(--line);
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); }

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 72px;
    padding-block: .6rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    text-decoration: none;
    color: var(--ink);
}
.brand__mark {
    display: grid;
    place-items: center;
    width: 42px; height: 42px;
    flex: 0 0 42px;
    background: var(--teal-dark);
    color: var(--white);
    border-radius: 50%;
    font-size: 1.1rem;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--ink);
}
.brand__dot { color: var(--gold-dark); }
.brand__tag {
    font-size: .72rem;
    color: var(--muted);
    letter-spacing: .02em;
}
@media (max-width: 400px) { .brand__tag { display: none; } }

.nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-height: var(--tap);
    padding: .5rem .9rem;
    background: var(--white);
    color: var(--teal-dark);
    border: 2px solid var(--teal-dark);
    border-radius: var(--radius);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.nav-toggle[aria-expanded="true"] { background: var(--teal-dark); color: var(--white); }

.primary-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}
.primary-nav__link {
    display: block;
    padding: .85rem .25rem;
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid var(--line);
}
.primary-nav__link:hover { color: var(--teal-dark); }
.primary-nav__link.is-current { color: var(--teal-dark); }

/* ---- Mobile navigation (below 900px) ---- */
@media (max-width: 899px) {
    .primary-nav {
        display: none;
        position: absolute;
        left: 0; right: 0;
        top: 100%;
        background: var(--white);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-md);
        padding: .5rem 1rem 1rem;
    }
    .primary-nav.is-open { display: block; }
    .primary-nav__link.is-current {
        border-left: 4px solid var(--gold);
        padding-left: .75rem;
        background: var(--mist);
    }
}

/* ---- Desktop navigation ---- */
@media (min-width: 900px) {
    .nav-toggle { display: none; }
    /* Nav links and the social icons sit on one row */
    .primary-nav { display: flex; align-items: center; }
    .primary-nav__list { flex-direction: row; align-items: center; gap: .35rem; }
    .primary-nav__link {
        border-bottom: 0;
        padding: .55rem .8rem;
        border-radius: var(--radius);
    }
    .primary-nav__link:hover { background: var(--mist); }
    .primary-nav__link.is-current {
        background: var(--teal-dark);
        color: var(--white);
    }
}

/* --------------------------------------------------------------------------
   Social icons

   Two treatments, because the same one cannot work on both backgrounds:
     header - filled brand-colour discs with white glyphs, on white
     footer - light discs with dark brand glyphs, on the deep navy
   TikTok's brand colour is black, so it is never used as a disc fill on the
   dark footer. That would be the exact dark-on-dark case we avoid.
   -------------------------------------------------------------------------- */
.socials { display: flex; align-items: center; gap: .75rem; }
.socials__list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 0;
    padding: 0;
}
.socials__link {
    display: grid;
    place-items: center;
    width: var(--tap);
    height: var(--tap);
    border-radius: 50%;
    font-size: 1.15rem;
    text-decoration: none;
    border: 2px solid transparent;
    transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.socials__link:hover { transform: translateY(-2px); }

/* ---- Header variant: filled brand colours on white ---- */
.socials--header .socials__link { color: var(--white); }
.socials--header .socials__link--facebook { background: #1665D8; }   /* 4.9:1 with white */
.socials--header .socials__link--youtube  { background: #D40000; }   /* 5.2:1 with white */
.socials--header .socials__link--tiktok   { background: #0B1F2A; }   /* 16:1 with white  */
.socials--header .socials__link--facebook:hover { background: #0F4EA8; }
.socials--header .socials__link--youtube:hover  { background: #A50000; }
.socials--header .socials__link--tiktok:hover   { background: #000000; }

/* ---- Footer variant: light discs, dark glyphs, on the deep navy ---- */
.socials--footer { flex-direction: column; align-items: flex-start; gap: .6rem; margin-top: 1.25rem; }
.socials--footer .socials__label {
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--teal-light);
}
.socials--footer .socials__link {
    background: #DCEAEE;
    border-color: #DCEAEE;
}
.socials--footer .socials__link--facebook { color: #0F4EA8; }
.socials--footer .socials__link--youtube  { color: #A50000; }
.socials--footer .socials__link--tiktok   { color: #0B1F2A; }
.socials--footer .socials__link:hover { background: var(--white); border-color: var(--white); }

/* ---- Placement in the header ---- */
@media (min-width: 900px) {
    .socials--header { margin-left: .85rem; padding-left: .85rem; border-left: 1px solid var(--line); }
}
@media (max-width: 899px) {
    /* Sits under the collapsed menu links */
    .socials--header { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
    .socials--header .socials__list { gap: .75rem; }
}

/* --------------------------------------------------------------------------
   Sections and layout helpers
   -------------------------------------------------------------------------- */
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section--mist { background: var(--mist); }
.section--sand { background: var(--sand); }
.section--deep { background: var(--deep); color: var(--white); }
.section--deep h2, .section--deep h3 { color: var(--white); }
.section--deep p { color: #DCEAEE; }   /* 12.3:1 on deep */

.section__head { max-width: 62ch; margin-bottom: 2rem; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__eyebrow {
    display: block;
    font-family: var(--font);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--teal-dark);
    margin-bottom: .5rem;
}
.section--deep .section__eyebrow { color: var(--teal-light); }
.section__lede { font-size: 1.075rem; color: var(--muted); }
.section--deep .section__lede { color: #DCEAEE; }

.grid { display: grid; gap: 1.25rem; }
@media (min-width: 620px)  { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 620px)  { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px)  { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 620px)  { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
    background:
        radial-gradient(1200px 500px at 15% -10%, rgba(79, 195, 212, .22), transparent 60%),
        linear-gradient(160deg, var(--deep) 0%, var(--deep-2) 55%, #0C5567 100%);
    color: var(--white);
    padding-block: clamp(3rem, 9vw, 6rem);
}
/* Photo hero. The scrim below is what keeps the white text legible, so the
   opacity values are a contrast requirement, not a style preference.
   Over the brightest pixels in the photograph the text still measures 5.8:1. */
.hero--photo { position: relative; isolation: isolate; background: var(--deep); }

.hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 60%;
    z-index: -2;
}

/* Lighter over the right-hand side so the tank rack reads clearly, and heavier
   behind the text column. Measured against the brightest pixels in the photo,
   the text band never drops below 6.1:1. Do not lift the 0% to 55% stops. */
.hero__scrim {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(6, 48, 61, .88) 0%, rgba(6, 48, 61, .80) 40%, rgba(6, 48, 61, .48) 100%),
        radial-gradient(900px 420px at 12% 0%, rgba(79, 195, 212, .16), transparent 65%);
}

/* On narrow screens the text spans the full width, so it has to stay even. */
@media (max-width: 899px) {
    .hero__scrim {
        background:
            linear-gradient(180deg, rgba(6, 48, 61, .86) 0%, rgba(6, 48, 61, .80) 100%),
            radial-gradient(600px 320px at 50% 0%, rgba(79, 195, 212, .14), transparent 70%);
    }
}

/* Small extra margin of safety for the largest text over the photo. */
.hero--photo h1,
.hero--photo .hero__lede { text-shadow: 0 1px 3px rgba(3, 24, 31, .45); }

.hero__grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.1fr .9fr; gap: 3rem; } }

.hero h1 { color: var(--white); }
.hero__lede {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    color: #DCEAEE;
    max-width: 54ch;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero__points {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0;
    display: grid;
    gap: .6rem;
}
.hero__points li { display: flex; gap: .65rem; align-items: flex-start; color: #DCEAEE; }
.hero__points i { color: var(--teal-light); margin-top: .3rem; flex: 0 0 auto; }

/* Sits over the lighter right-hand side of the photo, so it needs a solid
   backing of its own rather than a light translucent wash. */
.hero__panel {
    background: rgba(6, 48, 61, .82);
    border: 1px solid rgba(79, 195, 212, .45);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    backdrop-filter: blur(6px);
    box-shadow: 0 10px 30px rgba(3, 24, 31, .35);
}
.hero__panel h2 { font-size: 1.2rem; color: var(--white); margin-bottom: 1rem; }
.hero__stat { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid rgba(220, 234, 238, .2); }
.hero__stat:last-child { border-bottom: 0; }
.hero__stat dt { color: #DCEAEE; }
.hero__stat dd { margin: 0; font-weight: 700; color: var(--teal-light); text-align: right; }

/* --------------------------------------------------------------------------
   Category tiles
   -------------------------------------------------------------------------- */
.tile {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding: 1.6rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--ink);
    box-shadow: var(--shadow-sm);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--teal);
    color: var(--ink);
}
.tile__icon {
    display: grid;
    place-items: center;
    width: 52px; height: 52px;
    border-radius: var(--radius);
    background: var(--mist);
    color: var(--teal-dark);
    font-size: 1.35rem;
    margin-bottom: .35rem;
}
.tile h3 { margin: 0; }
.tile p { color: var(--muted); margin: 0; font-size: .95rem; }
.tile__more { margin-top: auto; padding-top: .75rem; font-weight: 700; color: var(--teal-dark); }
.tile:hover .tile__more { text-decoration: underline; }

/* --------------------------------------------------------------------------
   Value props
   -------------------------------------------------------------------------- */
.value { text-align: center; padding: 1.25rem; }
.value__icon {
    display: grid; place-items: center;
    width: 56px; height: 56px;
    margin: 0 auto .85rem;
    border-radius: 50%;
    background: var(--teal-dark);
    color: var(--white);
    font-size: 1.35rem;
}
.section--deep .value__icon { background: var(--teal-light); color: var(--deep); }
.value h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.value p { color: var(--muted); font-size: .95rem; margin: 0; }
.section--deep .value p { color: #DCEAEE; }

/* --------------------------------------------------------------------------
   Product cards
   -------------------------------------------------------------------------- */
.product-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

.card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card--out { opacity: .96; }

.card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--mist);
    overflow: hidden;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card--out .card__media img { filter: grayscale(.75); }

.card__badges {
    position: absolute;
    top: .6rem; left: .6rem;
    display: flex; flex-wrap: wrap; gap: .35rem;
    max-width: calc(100% - 1.2rem);
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .02em;
    padding: .28rem .6rem;
    border-radius: 999px;
    border: 1px solid transparent;
}
.badge--in     { background: var(--ok-bg);   color: #14603A; border-color: #B6E0C8; }
.badge--low    { background: var(--warn-bg); color: var(--warn); border-color: #EFD5A6; }
.badge--out    { background: #EEF1F2;        color: #45555C; border-color: #D3DBDE; }
.badge--pickup { background: var(--deep);    color: var(--white); }
.badge--post   { background: var(--white);   color: var(--teal-dark); border-color: var(--teal-dark); }

.card__body { display: flex; flex-direction: column; gap: .4rem; padding: 1rem 1.1rem 1.2rem; flex: 1; }
.card__title { font-size: 1.08rem; margin: 0; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a:hover { color: var(--teal-dark); text-decoration: underline; }
.card__sci { font-style: italic; color: var(--muted); font-size: .85rem; margin: 0; }
.card__desc { color: var(--muted); font-size: .92rem; margin: .2rem 0 0; }
.card__meta {
    display: flex; align-items: baseline; justify-content: space-between; gap: .75rem;
    margin-top: auto; padding-top: .85rem;
}
.card__price { font-size: 1.2rem; font-weight: 700; color: var(--ink); }
.card__size { font-size: .85rem; color: var(--muted); }
.card__action { margin-top: .75rem; }

/* --------------------------------------------------------------------------
   Product detail
   -------------------------------------------------------------------------- */
.product { display: grid; gap: 2rem; }
@media (min-width: 900px) { .product { grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; } }

.product__media {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--mist);
    aspect-ratio: 4 / 3;
}
.product__media img { width: 100%; height: 100%; object-fit: cover; }

.product__price { font-size: 2rem; font-weight: 700; color: var(--ink); margin: .25rem 0 .5rem; }
.product__sci { font-style: italic; color: var(--muted); margin-top: -.4rem; }
.product__badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.product__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0; }

.care-table { width: 100%; border-collapse: collapse; margin: 1rem 0 0; font-size: .95rem; }
.care-table caption { text-align: left; font-weight: 700; padding-bottom: .5rem; color: var(--ink); }
.care-table th, .care-table td { padding: .65rem .8rem; border: 1px solid var(--line); text-align: left; }
.care-table th { background: var(--mist); width: 45%; font-weight: 600; color: var(--ink); }

.notice {
    display: flex; gap: .75rem;
    padding: 1rem 1.1rem;
    border-radius: var(--radius);
    border-left: 4px solid var(--teal-dark);
    background: var(--mist);
    color: var(--ink);
    font-size: .95rem;
}
.notice i { color: var(--teal-dark); margin-top: .2rem; }
.notice--gold { border-left-color: var(--gold-dark); background: var(--warn-bg); }
.notice--gold i { color: var(--warn); }
.notice p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Breadcrumbs, page head, filters
   -------------------------------------------------------------------------- */
.page-head { background: var(--mist); padding-block: clamp(1.75rem, 4vw, 3rem); border-bottom: 1px solid var(--line); }
.page-head h1 { margin-bottom: .35rem; }
.page-head p { color: var(--muted); max-width: 65ch; margin: 0; }

.crumbs { font-size: .875rem; margin-bottom: .75rem; color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.crumbs li::after { content: "/"; margin-left: .4rem; color: var(--line-dark); opacity: .6; }
.crumbs li:last-child::after { content: ""; }
.crumbs a { color: var(--teal-dark); }

.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.75rem; }
.filter {
    display: inline-flex; align-items: center; gap: .45rem;
    min-height: 40px;
    padding: .45rem 1rem;
    border: 2px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    color: var(--ink);
    font-weight: 600;
    font-size: .92rem;
    text-decoration: none;
}
.filter:hover { border-color: var(--teal-dark); color: var(--teal-dark); }
.filter.is-active { background: var(--teal-dark); border-color: var(--teal-dark); color: var(--white); }
.filter.is-active:hover { color: var(--white); }

.result-count { color: var(--muted); font-size: .95rem; margin-bottom: 1.25rem; }

.empty-state { text-align: center; padding: 3rem 1rem; border: 2px dashed var(--line); border-radius: var(--radius-lg); }
.empty-state i { font-size: 2.5rem; color: var(--teal); margin-bottom: 1rem; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .35rem; }
.field__label { font-weight: 700; color: var(--ink); }
.field__req { color: var(--err); font-weight: 700; }
.field__hint { font-size: .85rem; color: var(--muted); }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
    width: 100%;
    min-height: var(--tap);
    padding: .7rem .85rem;
    font: inherit;
    color: var(--ink);
    background: var(--white);
    border: 2px solid #B9C7CC;   /* 3.1:1 against white, meets non-text contrast */
    border-radius: var(--radius);
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--teal-dark); }
.field input:focus, .field select:focus, .field textarea:focus {
    border-color: var(--teal-dark);
    outline: 3px solid var(--gold);
    outline-offset: 1px;
}
.field--error input, .field--error select, .field--error textarea { border-color: var(--err); }
.field__error { color: var(--err); font-size: .875rem; font-weight: 600; }
.field__error::before { content: "\26A0"; margin-right: .35rem; }

/* Honeypot. Hidden from people, reachable by naive bots. */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px; height: 1px;
    overflow: hidden;
}

.alert {
    display: flex; gap: .7rem; align-items: flex-start;
    padding: .9rem 1.1rem;
    border-radius: var(--radius);
    border: 1px solid transparent;
    margin: 1.25rem 0;
    font-weight: 500;
}
.alert--success { background: var(--ok-bg);  color: #14603A;    border-color: #B6E0C8; }
.alert--error   { background: var(--err-bg); color: #8C1D18;    border-color: #F2C2BE; }
.alert--info    { background: var(--mist);   color: var(--ink); border-color: var(--line); }

.form-footnote { font-size: .85rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   Contact layout
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.25fr .75fr; gap: 3rem; align-items: start; } }

.info-card {
    background: var(--mist);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}
.info-card h2 { font-size: 1.2rem; }
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.info-list li { display: flex; gap: .8rem; align-items: flex-start; }
.info-list i { color: var(--teal-dark); width: 20px; text-align: center; margin-top: .25rem; flex: 0 0 20px; }
.info-list strong { display: block; color: var(--ink); }
.info-list span { color: var(--muted); font-size: .95rem; }

/* --------------------------------------------------------------------------
   Prose (care guides, legal pages)
   -------------------------------------------------------------------------- */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2.25rem; }
.prose h3 { margin-top: 1.75rem; }
.prose ul, .prose ol { padding-left: 1.35rem; }
.prose li { margin-bottom: .45rem; }
.prose blockquote {
    margin: 1.5rem 0;
    padding: .5rem 0 .5rem 1.25rem;
    border-left: 4px solid var(--gold);
    color: var(--ink-soft);
    font-style: italic;
}

.accordion { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: .75rem; background: var(--white); }
.accordion summary {
    padding: 1rem 1.15rem;
    font-weight: 700;
    cursor: pointer;
    color: var(--ink);
    list-style: none;
    display: flex; justify-content: space-between; gap: 1rem; align-items: center;
    min-height: var(--tap);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "\002B"; color: var(--teal-dark); font-size: 1.3rem; line-height: 1; }
.accordion[open] summary::after { content: "\2212"; }
.accordion summary:hover { background: var(--mist); }
.accordion__body { padding: 0 1.15rem 1.15rem; color: var(--ink-soft); }
.accordion__body p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--deep); color: #DCEAEE; margin-top: 0; }
.site-footer__grid { display: grid; gap: 2rem; padding-block: clamp(2.5rem, 5vw, 3.5rem); }
@media (min-width: 700px)  { .site-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; } }

.brand--footer { margin-bottom: .9rem; }
.brand--footer .brand__name { color: var(--white); }
.brand--footer .brand__mark { background: var(--teal-light); color: var(--deep); }
.brand--footer .brand__dot { color: var(--gold); }

.site-footer__blurb { color: #C4DDE3; font-size: .95rem; max-width: 42ch; }
.site-footer__heading { font-size: 1rem; color: var(--white); margin-bottom: .9rem; font-family: var(--font); letter-spacing: .04em; text-transform: uppercase; }
.site-footer__list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .55rem; }
.site-footer__list a { color: #DCEAEE; text-decoration: none; }
.site-footer__list a:hover { color: var(--white); text-decoration: underline; }
.site-footer__list--plain li { display: flex; gap: .6rem; align-items: flex-start; font-size: .93rem; }
.site-footer__list--plain i { color: var(--teal-light); margin-top: .3rem; flex: 0 0 auto; }
.site-footer__note { font-size: .82rem; color: #A9C6CE; margin: .75rem 0 0; }

.site-footer__bar { border-top: 1px solid var(--line-dark); }
.site-footer__bar-inner {
    display: flex; flex-wrap: wrap; gap: .75rem 1.5rem;
    justify-content: space-between; align-items: center;
    padding-block: 1.15rem;
    font-size: .875rem;
}
.site-footer__bar p { margin: 0; color: #C4DDE3; }
.site-footer__legal { list-style: none; display: flex; flex-wrap: wrap; gap: 1.25rem; margin: 0; padding: 0; }
.site-footer__legal a { color: #DCEAEE; text-decoration: none; }
.site-footer__legal a:hover { color: var(--white); text-decoration: underline; }

.site-footer__credit { margin: 0; color: #C4DDE3; }
.site-footer__credit a { color: var(--teal-light); text-decoration: none; font-weight: 600; }
.site-footer__credit a:hover { color: var(--white); text-decoration: underline; }
.site-footer__credit i { font-size: .72em; margin-left: .4em; vertical-align: baseline; }
@media (max-width: 699px) { .site-footer__bar-inner { justify-content: center; text-align: center; } }

/* --------------------------------------------------------------------------
   Back to top
   -------------------------------------------------------------------------- */
.to-top {
    position: fixed;
    right: 1rem; bottom: 1rem;
    z-index: 90;
    width: var(--tap); height: var(--tap);
    display: grid; place-items: center;
    background: var(--teal-dark);
    color: var(--white);
    border: 2px solid var(--white);
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    cursor: pointer;
}
.to-top:hover { background: var(--deep); }

/* --------------------------------------------------------------------------
   Modal (favicon warning)
   -------------------------------------------------------------------------- */
.modal-backdrop {
    position: fixed; inset: 0;
    z-index: 500;
    background: rgba(6, 48, 61, .62);
    display: grid;
    place-items: center;
    padding: 1rem;
}
.modal-backdrop[hidden] { display: none; }
.modal {
    background: var(--white);
    color: var(--ink);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    max-width: 520px;
    width: 100%;
    padding: 1.75rem;
    border-top: 5px solid var(--gold);
}
.modal__title { font-size: 1.25rem; display: flex; gap: .6rem; align-items: center; }
.modal__title i { color: var(--warn); }
.modal__body { color: var(--ink-soft); }
.modal__actions { display: flex; justify-content: flex-end; gap: .75rem; margin-top: 1.25rem; }

/* --------------------------------------------------------------------------
   Error pages
   -------------------------------------------------------------------------- */
.error-page { text-align: center; padding-block: clamp(3rem, 10vw, 6rem); }
.error-page__code { font-size: clamp(4rem, 16vw, 8rem); line-height: 1; color: var(--teal); font-family: var(--font-display); margin: 0; }
.error-page__actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1.75rem; }

/* --------------------------------------------------------------------------
   High contrast and forced colours
   -------------------------------------------------------------------------- */
@media (prefers-contrast: more) {
    :root { --muted: #3A4A52; --line: #94A7AD; }
    .btn { border-width: 3px; }
}
@media (forced-colors: active) {
    .btn, .filter, .card, .tile { border: 1px solid ButtonBorder; }
    .badge { border: 1px solid CanvasText; }
}

/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */
@media print {
    .promo-bar, .site-header, .site-footer, .to-top, .hero__actions, .modal-backdrop { display: none !important; }
    body { color: #000; background: #fff; }
    a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; }
}
