/* Simply Third Sector - one stylesheet for the whole site. Colours are taken from the logo's
   puzzle-heart: navy, teal, mid blue and cream. Kept as a single cached file (rather than per-page
   style blocks) because a marketing site's visitors mostly view one or two pages. */

@font-face { font-family: "Arvo"; font-weight: 400; font-display: swap; src: url("fonts/arvo-400.woff2") format("woff2"); }
@font-face { font-family: "Arvo"; font-weight: 700; font-display: swap; src: url("fonts/arvo-700.woff2") format("woff2"); }

:root {
    --navy: #1b3157;
    --navy-deep: #12233f;
    --teal: #3a868b;
    --teal-dark: #2c6a6e;
    --teal-tint: #e3f0f0;
    --blue: #245b7d;
    --cream: #eeecda;
    --cream-soft: #f7f6ee;
    --ink: #1f2933;
    --muted: #52606d;
    --line: #dfe3e8;
    --white: #ffffff;
    --error: #b42318;

    --radius: 14px;
    --shadow: 0 6px 24px rgba(18, 35, 63, .10);
    --shadow-lift: 0 18px 40px rgba(18, 35, 63, .18);
    --ease: cubic-bezier(.2, .7, .2, 1);
    --font-head: "Arvo", Georgia, serif;
    --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    /* The wave edge between colour bands, used as a mask so it takes whatever colour the band is. */
    --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 60V34C180 6 360 0 560 18s420 40 620 22c110-10 190-26 260-36v62z'/%3E%3C/svg%3E");
}

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

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

body {
    margin: 0;
    background: var(--white);
    color: var(--ink);
    font: 17px/1.65 var(--font-body);
    overflow-x: hidden; /* the hero's zooming photo and the decorative blobs must never cause sideways scroll */
}

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

h1, h2, h3 { font-family: var(--font-head); color: var(--navy); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

a { color: var(--blue); text-underline-offset: 2px; }
a:hover { color: var(--teal-dark); }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--muted); }
.eyebrow {
    font: 700 .82rem/1.3 var(--font-body); text-transform: uppercase; letter-spacing: .12em;
    color: var(--cream); margin-bottom: .7rem;
}
.eyebrow.dark { color: var(--teal); }

.icon { width: 1.6rem; height: 1.6rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---- Buttons ---- */
.btn {
    display: inline-block;
    padding: .85rem 1.5rem;
    border-radius: 999px;
    border: 2px solid transparent;
    font: 700 1rem/1.2 var(--font-body);
    text-decoration: none;
    cursor: pointer;
    text-align: center;
    transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(18, 35, 63, .2); }
.btn:active { transform: none; box-shadow: none; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--blue); color: #fff; }
.btn-accent { background: var(--teal); color: #fff; }
.btn-accent:hover { background: var(--teal-dark); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--cream); color: var(--navy); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-block { display: block; width: 100%; }

/* ---- Header ---- */
.site-header {
    background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50;
    transition: box-shadow .25s, border-color .25s;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(18, 35, 63, .12); border-bottom-color: transparent; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand img { width: 230px; }
@media (min-width: 1200px) { .brand img { width: 280px; } }

/* Six links and the phone button need about 1100px in a row; below that the menu folds behind the toggle. */
.site-nav { display: flex; align-items: center; gap: 1.1rem; }
@media (min-width: 1200px) { .site-nav { gap: 1.4rem; } }
.site-nav a:not(.btn) { color: var(--navy); text-decoration: none; font-weight: 600; padding: .3rem 0; position: relative; }
.site-nav a:not(.btn)::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--teal);
    transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.site-nav a:not(.btn):hover::after, .site-nav a.active::after { transform: scaleX(1); }

.nav-toggle { display: none; background: none; border: 0; padding: .6rem; cursor: pointer; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
    display: block; width: 26px; height: 3px; background: var(--navy); border-radius: 2px; position: relative; content: "";
}
.nav-toggle .bars::before { position: absolute; top: -8px; }
.nav-toggle .bars::after { position: absolute; top: 8px; }

@media (max-width: 1099px) {
    .site-header .header-inner { flex-wrap: wrap; }
    .js .nav-toggle { display: block; }
    .site-nav { flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 1rem; }
    .site-nav a:not(.btn) { padding: .75rem 0; border-bottom: 1px solid var(--line); }
    .site-nav a:not(.btn)::after { display: none; }
    .site-nav a.active { color: var(--teal-dark); }
    .site-nav .nav-call { margin-top: 1rem; }
    .js .site-nav { display: none; }
    .js .site-nav.open { display: flex; }
}

.landing-header .header-inner { flex-wrap: nowrap; }
.landing-header .brand img { width: 190px; }
@media (min-width: 600px) { .landing-header .brand img { width: 260px; } }
@media (max-width: 599px) { .hide-sm { display: none; } }

/* ---- Heroes ----
   The photo sits on its own layer so it can drift slowly in (a gentle zoom-out on load) without
   moving the text. The curved bottom edge is what separates the hero from the page below. */
.hero, .lp-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: #fff;
    background: var(--navy-deep);
}
.hero::before, .lp-hero::before {
    content: ""; position: absolute; inset: 0; z-index: -2;
    background: var(--hero-img) center / cover no-repeat;
    animation: hero-drift 16s var(--ease) both;
}
.hero::after, .lp-hero::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(circle at 85% 20%, rgba(58, 134, 139, .45), transparent 45%),
        linear-gradient(120deg, rgba(18, 35, 63, .94) 20%, rgba(36, 91, 125, .7));
}
.hero { border-radius: 0 0 50% 50% / 0 0 clamp(24px, 5vw, 70px) clamp(24px, 5vw, 70px); }
.hero h1, .lp-hero h1 { color: #fff; }
.hero-inner { padding: clamp(4.5rem, 12vw, 8.5rem) 16px clamp(6rem, 14vw, 10rem); max-width: 900px; }
.hero-inner h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

/* Hero text rises in on load, one line after another. */
.hero-inner > *, .lp-hero-copy > *, .lp-form { animation: rise .8s var(--ease) both; }
.hero-inner > :nth-child(2), .lp-hero-copy > :nth-child(2) { animation-delay: .12s; }
.hero-inner > :nth-child(3), .lp-hero-copy > :nth-child(3) { animation-delay: .24s; }
.lp-hero-copy > :nth-child(4) { animation-delay: .36s; }
.lp-form { animation-delay: .3s; }

@keyframes hero-drift { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

.lp-hero-inner { display: grid; gap: 2rem; padding-top: 2.5rem; padding-bottom: 3.5rem; align-items: start; }
@media (min-width: 960px) { .lp-hero-inner { grid-template-columns: 1.15fr 1fr; padding-top: 4rem; padding-bottom: 5rem; } }
.lp-hero .lead { color: #e3ebf2; }
.lp-form { color: var(--ink); }
.lp-form h2 { margin-bottom: .8rem; }

.ticks { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.ticks li { padding-left: 2rem; position: relative; margin-bottom: .55rem; font-weight: 600; }
.ticks li::before {
    content: ""; position: absolute; left: 0; top: .2em; width: 1.25rem; height: 1.25rem; border-radius: 50%;
    background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='white' stroke-width='3' d='M5 10.5l3.2 3L15 6.5'/%3E%3C/svg%3E") center / 80% no-repeat;
}

/* Credentials strip that overlaps the bottom of the home hero. */
.trust { position: relative; z-index: 2; margin-top: clamp(-4.5rem, -8vw, -3rem); }
.trust-list {
    list-style: none; margin: 0; padding: 1.4rem; display: grid; gap: 1.2rem;
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lift);
    animation: rise .8s .4s var(--ease) both;
}
@media (min-width: 800px) { .trust-list { grid-template-columns: repeat(3, 1fr); padding: 1.6rem 2rem; } }
.trust-list li { display: flex; align-items: center; gap: .9rem; font-weight: 600; color: var(--navy); line-height: 1.35; }
.trust-list .icon-badge { width: 3rem; height: 3rem; }

.page-head {
    position: relative; isolation: isolate; overflow: hidden; color: #fff;
    background: linear-gradient(120deg, var(--navy-deep), var(--blue));
    padding: clamp(3rem, 8vw, 5rem) 0 clamp(3.5rem, 8vw, 5.5rem);
    border-radius: 0 0 50% 50% / 0 0 clamp(18px, 4vw, 48px) clamp(18px, 4vw, 48px);
}
/* Soft brand-colour shapes behind the title - echoes of the logo's puzzle heart. */
.page-head::before, .page-head::after { content: ""; position: absolute; border-radius: 50%; z-index: -1; }
.page-head::before { width: 420px; height: 420px; right: -120px; top: -180px; background: radial-gradient(circle, rgba(58, 134, 139, .65), transparent 70%); }
.page-head::after { width: 260px; height: 260px; right: 18%; bottom: -170px; background: radial-gradient(circle, rgba(238, 236, 218, .22), transparent 70%); }
.page-head h1 { color: #fff; margin-bottom: .3em; animation: rise .7s var(--ease) both; }
.page-head .lead { color: #dbe6ee; margin: 0; animation: rise .7s .1s var(--ease) both; }

/* ---- Sections ---- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; position: relative; }
.section-tint { background: var(--cream-soft); }
.section-navy { background: var(--navy); color: #dbe3ec; }
.section-navy h2 { color: #fff; }
.section-navy .lead { color: #c3cfdb; }
.section-accent { background: var(--teal); color: #fff; }
.section-accent h2 { color: #fff; }
.section-accent .lead { color: #eef7f7; }

.section-title { margin-bottom: 1.4rem; }
.section-title::after { content: ""; display: block; width: 56px; height: 4px; border-radius: 2px; background: var(--teal); margin-top: .6rem; }
.center .section-title::after, .section-head .section-title::after { margin-left: auto; margin-right: auto; }
.section-navy .section-title::after { background: var(--cream); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.4rem; }
.section-head .section-title { margin-bottom: .8rem; }

/* Wavy top and/or bottom edge on a colour band. The edge is a pseudo-element painted in the band's
   own background (inherit) and shaped by the --wave mask, so it works on any solid-colour band. */
.wave-top::before, .wave-bottom::after {
    content: ""; position: absolute; left: 0; right: 0; height: clamp(24px, 4vw, 56px); z-index: 1;
    background: inherit; pointer-events: none;
    -webkit-mask: var(--wave) 0 0 / 100% 100% no-repeat; mask: var(--wave) 0 0 / 100% 100% no-repeat;
}
.wave-top::before { bottom: calc(100% - 1px); }
.wave-bottom::after { top: calc(100% - 1px); transform: scale(-1, -1); }

.split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; } }

.rounded { border-radius: var(--radius); box-shadow: var(--shadow); }

/* A photo with a block of brand colour offset behind it. */
.photo { position: relative; z-index: 0; margin: 0 16px 16px 0; }
.photo::before {
    content: ""; position: absolute; inset: 22px -16px -16px 22px; z-index: -1;
    border-radius: var(--radius); background: var(--teal);
}
.photo.alt::before { background: var(--cream); }
.photo-clip { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lift); }
.photo img { width: 100%; }
.profile .photo { max-width: 320px; }

/* ---- Cards ---- */
.cards { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card {
    position: relative; overflow: hidden; display: flex; flex-direction: column;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.6rem; color: var(--ink); text-decoration: none; box-shadow: var(--shadow);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--teal);
    transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
a.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); color: var(--ink); }
a.card:hover::after { transform: scaleX(1); }
.card h3 { margin-bottom: .45em; }
.card p { margin: 0; color: var(--muted); }
.card .more { margin-top: auto; padding-top: 1rem; font-weight: 700; color: var(--teal-dark); font-size: .95rem; }
.card .more::after { content: "\2192"; display: inline-block; margin-left: .35em;transition: transform .25s var(--ease); }
a.card:hover .more::after { transform: translateX(5px); }
.section-navy .card { border-color: transparent; }

.icon-badge {
    display: inline-grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 12px;
    background: var(--teal-tint); color: var(--teal-dark); margin-bottom: 1rem; flex: none;
    transition: background-color .3s, color .3s, transform .3s var(--ease);
}
.trust-list .icon-badge { margin-bottom: 0; }
a.card:hover .icon-badge { background: var(--teal); color: #fff; transform: rotate(-6deg) scale(1.06); }

/* ---- Service write-ups (What We Do, Additional Services) ---- */
.services { display: grid; gap: 1.6rem; }
.service {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
    padding: clamp(1.4rem, 4vw, 2.4rem); scroll-margin-top: 110px;
    display: grid; gap: 0 1.6rem; align-items: start;
}
@media (min-width: 700px) { .service { grid-template-columns: auto 1fr; } }
.service .icon-badge { width: 3.8rem; height: 3.8rem; border-radius: 16px; }
.service .icon-badge .icon { width: 1.9rem; height: 1.9rem; }
.service > div > :last-child { margin-bottom: 0; }
.service:nth-child(even) .icon-badge { background: var(--cream); color: var(--navy); }
.service:target { box-shadow: 0 0 0 3px var(--teal), var(--shadow-lift); }
.service-img { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 800px) { .service-img { grid-template-columns: 1.3fr 1fr; } }
.badge { display: inline-block; background: var(--cream); color: var(--navy); font-weight: 700; font-size: .9rem; padding: .3rem .9rem; border-radius: 999px; }

.profile { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 800px) { .profile { grid-template-columns: 320px 1fr; gap: 3.5rem; } }
.role { color: var(--teal); font-weight: 700; }

/* ---- Testimonials carousel ----
   A horizontal scroll-snap row: one quote (with the next peeking in) on phones, two side by side on
   wider screens. The top padding leaves room for the quote badges; the side padding for the shadows. */
.carousel-track {
    display: grid; grid-auto-flow: column; grid-auto-columns: 88%; gap: 1.2rem; align-items: stretch;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    padding: 2rem 6px 1.6rem; margin: 0 -6px; scroll-padding-inline: 6px;
}
@media (min-width: 900px) { .carousel-track { grid-auto-columns: calc((100% - 1.6rem) / 2); gap: 1.6rem; } }
.carousel-track > * { scroll-snap-align: start; }
.carousel-track:focus-visible { outline-offset: -3px; }
/* With the arrows and dots on hand the scrollbar is clutter; without JavaScript it's the only control, so it stays. */
.js .carousel-track { scrollbar-width: none; }
.js .carousel-track::-webkit-scrollbar { display: none; }

.carousel-controls { display: none; align-items: center; justify-content: center; gap: 1rem; margin-top: .4rem; }
.js .carousel-controls { display: flex; }
.carousel.static .carousel-controls { display: none; }
.carousel-btn {
    display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; cursor: pointer;
    border: 2px solid var(--navy); background: #fff; color: var(--navy);
    transition: background-color .2s, color .2s, opacity .2s, transform .2s var(--ease);
}
.carousel-btn .icon { width: 1.3rem; height: 1.3rem; stroke-width: 2.2; }
.carousel-btn:hover:not(:disabled) { background: var(--navy); color: #fff; transform: scale(1.06); }
.carousel-btn:disabled { opacity: .3; cursor: default; }
.carousel-dots { display: flex; flex-wrap: wrap; justify-content: center; }
/* Small dots with a finger-sized hit area around each (the padding, outside the painted background). */
.carousel-dots button {
    width: calc(.7rem + 16px); height: calc(.7rem + 16px); padding: 8px; border: 0; cursor: pointer;
    background: #b9c4cf; background-clip: content-box; border-radius: 999px;
    transition: width .3s var(--ease), background-color .3s;
}
.carousel-dots button[aria-current="true"] { width: calc(2rem + 16px); background-color: var(--teal); }

.testimonial {
    margin: 0; background: #fff; border-radius: var(--radius); padding: 2.6rem 1.9rem 1.9rem; box-shadow: var(--shadow);
    position: relative; display: flex; flex-direction: column; border-top: 5px solid var(--teal);
}
.testimonial:nth-child(even) { border-top-color: var(--navy); }
.testimonial::before {
    content: "\201C"; font: 700 3rem/1 var(--font-head); color: #fff; background: var(--teal);
    width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; padding-top: .6rem;
    position: absolute; top: -1.6rem; left: 1.6rem; box-shadow: var(--shadow);
}
.testimonial:nth-child(even)::before { background: var(--navy); }
.testimonial blockquote { margin: 0; position: relative; }
.testimonial figcaption { margin-top: auto; padding-top: 1.2rem; border-top: 1px solid var(--line); color: var(--muted); }
.testimonial figcaption strong { display: block; color: var(--navy); }

/* The Testimonials page: every quote at once, packed into columns like a masonry wall. The cards are
   inline-flex because a block's top margin is dropped at the top of a column, and the margin is the
   room the quote badge needs. */
.quote-wall { columns: 2 380px; column-gap: 1.6rem; }
.quote-wall .testimonial { display: inline-flex; width: 100%; margin: 1.6rem 0; vertical-align: top; scroll-margin-top: 130px; }
.quote-wall .testimonial:target { box-shadow: 0 0 0 3px var(--teal), var(--shadow-lift); }
.read-all { margin: 1.4rem 0 0; text-align: center; }

/* A single line from a testimonial, set beside a form. */
.pull-quote { position: relative; margin: 2rem 0 0; padding: 1.5rem 1.6rem 1.4rem 4.4rem; background: var(--teal-tint); border-radius: var(--radius); }
.pull-quote::before { content: "\201C"; position: absolute; left: 1.2rem; top: 1rem; font: 700 4.2rem/1 var(--font-head); color: var(--teal); }
.pull-quote blockquote { margin: 0 0 .9rem; font: 400 1.2rem/1.5 var(--font-head); color: var(--navy); }
.pull-quote blockquote p { margin: 0; }
.pull-quote figcaption { font-size: .95rem; color: var(--muted); }
.pull-quote figcaption strong { display: block; color: var(--navy); }
.pull-quote a { display: inline-block; margin-top: .7rem; font-weight: 700; color: var(--teal-dark); }

/* ---- Contact ---- */
.contact-band { background: linear-gradient(rgba(247, 246, 238, .93), rgba(247, 246, 238, .93)), var(--band-img) center / cover no-repeat; }
.contact-details h2 { font-size: 1.2rem; margin-top: 1.2rem; }
.big { font-size: 1.25rem; font-weight: 700; }
.panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lift); padding: clamp(1.3rem, 4vw, 2.2rem); }

/* ---- Form ---- */
.enquiry-form .field { margin-bottom: 1rem; }
.field-row { display: grid; gap: 0 1rem; }
@media (min-width: 520px) { .field-row { grid-template-columns: 1fr 1fr; } }
.enquiry-form label { display: block; font-weight: 600; margin-bottom: .3rem; font-size: .95rem; }
.optional { color: var(--muted); font-weight: 400; }
.enquiry-form input, .enquiry-form textarea {
    width: 100%; padding: .75rem .9rem; border: 1px solid #b8c1cc; border-radius: 10px;
    font: inherit; font-size: 16px; /* 16px stops iOS zooming into the field */ background: #fbfcfd; color: var(--ink);
    transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.enquiry-form input:focus, .enquiry-form textarea:focus { outline: none; background: #fff; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(58, 134, 139, .2); }
.enquiry-form .invalid { border-color: var(--error); }
.validation-message { color: var(--error); font-size: .9rem; margin-top: .25rem; }
.form-error { background: #fdecea; color: var(--error); border-radius: 8px; padding: .8rem 1rem; }
.form-note { font-size: .85rem; color: var(--muted); margin: .7rem 0 0; text-align: center; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Prose (privacy) ---- */
.prose h2 { font-size: 1.3rem; margin-top: 1.8rem; }

/* ---- Footer ---- */
.site-footer { background: var(--navy-deep); color: #c9d3de; padding-top: 3.5rem; position: relative; }
.site-footer a { color: #fff; }
.site-footer h2 { color: #fff; font-size: 1.05rem; }
.footer-grid { display: grid; gap: 2rem; padding-bottom: 2rem; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-logo { background: #fff; padding: .6rem .8rem; border-radius: 8px; margin-bottom: 1rem; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 1.2rem; padding-bottom: 1.4rem; font-size: .88rem; }
.landing-footer { padding: 1.5rem 0 5.5rem; font-size: .88rem; }
@media (min-width: 700px) { .landing-footer { padding-bottom: 1.5rem; } }

/* Mobile call bar on the landing page */
.call-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: var(--teal); color: #fff; text-align: center; font-weight: 700;
    padding: 1rem; text-decoration: none; box-shadow: 0 -4px 16px rgba(0, 0, 0, .15);
}
.call-bar:hover { color: #fff; background: var(--teal-dark); }
@media (min-width: 700px) { .call-bar { display: none; } }

/* ---- Cookie banner ---- */
.consent {
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 560px;
    background: #fff; color: var(--ink); border-radius: var(--radius); box-shadow: 0 10px 40px rgba(0, 0, 0, .25);
    padding: 1.2rem 1.3rem; font-size: .95rem;
    animation: rise .5s 1s var(--ease) both;
}
.consent[hidden] { display: none; }
.consent p { margin-bottom: .9rem; }
.consent-actions { display: flex; gap: .6rem; justify-content: flex-end; }
.consent .btn { padding: .6rem 1.2rem; }

/* ---- Scroll reveal ----
   site.js adds .reveal to [data-reveal] elements (and to the children of [data-reveal="stagger"]),
   then .in as each scrolls into view: it fades up and grows slightly into place. Only site.js
   hides anything, so without JavaScript every element simply shows. */
.reveal { opacity: 0; transform: translateY(36px) scale(.96); transition: opacity .8s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
/* Once revealed, hand transform back to the element's own hover effect. */
.reveal.in.settled { transition: transform .3s var(--ease), box-shadow .3s var(--ease); transition-delay: 0s !important; }

/* Photos ease out of a slight zoom as they pass through the viewport - pure CSS where the browser
   supports scroll-driven animations, nothing at all where it doesn't. */
@supports (animation-timeline: view()) {
    .photo-clip img { animation: photo-settle linear both; animation-timeline: view(); animation-range: entry 0% cover 50%; }
    @keyframes photo-settle { from { transform: scale(1.15); } to { transform: scale(1); } }
}

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

@media print {
    .reveal { opacity: 1; transform: none; }
    .site-header, .consent, .call-bar { display: none; }
}
