/*
Theme Name:   watervale.layerly.dev (Layerly)
Template:     layerly-base
Version:      1.0.0
Layerly Site: watervale-layerly-dev
Description:  Per-site theme for watervale.layerly.dev. Holds ONLY this site's own CSS, bespoke sections and page templates. The framework lives in the parent and is updated fleet-wide — never copy a framework file in here without recording it as a fork.
*/

/* Per-site tokens and CSS below. Override the NUMBERED tokens; never edit the framework's own table. */
/* ═══════════════════════════════════════════════════════════════════════════
   Watervale Search Partners — per-site stylesheet (child of layerly-base).
   Deterministic port of the approved HTML design, watervale4/index.src.html
   (v4 "Two doors", round 2, 2026-10-19). The design's own CSS is carried over
   with its values intact; the only changes are (1) the colours and fonts are
   expressed through the framework's numbered tokens, (2) class names are BEM
   rooted at a functional family, (3) framework rules that would fight the
   design (section padding, button hover, image height, link colour) are
   overridden here, in the child, never in the framework.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 1. Tokens — the approved :root, mapped onto the numbered tokens ──────── */
:root {
    --color-1: #053363;   /* navy — ground, headings */
    --color-2: #0E1B2A;   /* ink — body text */
    --color-3: #EEF2F7;   /* paper — page background */
    --color-4: #FFFFFF;   /* white — cards, surfaces */
    --color-5: #C9D2DE;   /* rule — borders */
    --color-6: #780924;   /* maroon — the accent, primary CTA */
    --color-7: #04284E;   /* navy-deep — process + about ground */
    --color-8: #E2E8F0;   /* tint — hover fills, image placeholders */

    --color-primary:    var(--color-6);
    --color-accent:     var(--color-1);
    --color-text:       var(--color-2);
    --color-text-muted: rgba(14,27,42,.72);
    --color-bg:         var(--color-3);
    --color-surface:    var(--color-4);
    --color-border:     var(--color-5);
    --color-primary-hover: #5E0719;

    /* the design's own names, aliased so its CSS reads as written */
    --navy: var(--color-1); --navy-deep: var(--color-7); --maroon: var(--color-6); --ink: var(--color-2);
    --paper: var(--color-3); --tint: var(--color-8); --rule: var(--color-5); --white: var(--color-4);
    --muted: var(--color-text-muted); --muted-on-navy: rgba(255,255,255,.78);

    --font-1: "Newsreader", Georgia, serif;
    --font-2: "Figtree", system-ui, sans-serif;
    --font-3: "Archivo Narrow", "Arial Narrow", sans-serif;
    --font-display: var(--font-1);
    --font-body: var(--font-2);
    --font-subheading: var(--font-3);
    --display: var(--font-1); --body: var(--font-2); --utility: var(--font-3);

    --text-md: 17px;
    --text-h1: clamp(38px, 5.4vw, 70px);
    --text-h2: clamp(30px, 3.8vw, 50px);
    --text-h3: clamp(22px, 2vw, 28px);
    --weight-reg: 400; --weight-med: 500; --weight-bold: 600;

    --container-max: 1200px;
    --measure: 1200px; --gutter: clamp(16px, 4vw, 50px); --col-gap: clamp(16px, 3vw, 60px);
    --pad: clamp(72px, 10vw, 140px);
    --space-xxl: var(--pad);
    --radius-md: 6px; --radius-full: 999px;

    --wave-navy: rgba(5,51,99,.16); --wave-maroon: rgba(120,9,36,.14); --wave-white: rgba(255,255,255,.13);

    /* framework knobs */
    --mobile-menu-bg: var(--color-1); --mobile-menu-fg: var(--color-4);
    --footer-copyright-bg: transparent; --footer-copyright-fg: var(--color-text-muted);
    --field-bg: var(--color-3); --field-fg: var(--color-2); --field-border: var(--color-5);
    --field-radius: var(--radius-md); --field-focus: var(--color-6); --label-color: var(--color-text-muted);
    --form-gap: 18px; --form-cols: 2;
}

/* ── 2. Base ─────────────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); font-size: var(--text-md); line-height: 1.6; color: var(--color-text); background: var(--color-bg); overflow-x: hidden; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--color-6); outline-offset: 3px; }
.on-navy :focus-visible, .hero :focus-visible, .niche :focus-visible, .statement :focus-visible { outline-color: #fff; }
.skip-link { background: var(--color-1); color: #fff; font-family: var(--font-3); letter-spacing: .08em; text-transform: uppercase; font-size: 13px; }

.wrap { max-width: var(--measure); margin-inline: auto; padding-inline: var(--gutter); position: relative; z-index: 1; }
.grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--col-gap); row-gap: 32px; }
.c4 { grid-column: span 4; } .c5 { grid-column: span 5; } .c6 { grid-column: span 6; } .c7 { grid-column: span 7; } .c8 { grid-column: span 8; } .c12 { grid-column: span 12; }
.c5--right { grid-column: 8 / span 5; } .c4--right { grid-column: 9 / span 4; } .c6--right { grid-column: 7 / span 6; } .c3--mid { grid-column: 7 / span 3; } .c3--right { grid-column: 10 / span 3; }
@media (max-width: 900px) { .grid > * { grid-column: 1 / -1 !important; } }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.05; margin: 0; color: var(--color-1); letter-spacing: -.01em; }
h1 { font-size: var(--text-h1); } h2 { font-size: var(--text-h2); } h3 { font-size: var(--text-h3); line-height: 1.2; }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 400; color: var(--color-6); }
.on-navy h1 em, .on-navy h2 em, .hero h2 em, .hero h1 em, .niche h2 em { color: #fff; }
p { margin: 0 0 1em; max-width: 60ch; }
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; }
.muted { color: var(--color-text-muted); }
.label { font-family: var(--font-3); font-weight: 600; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--color-6); display: block; margin-bottom: 14px; }

/* every section this site composes owns its vertical rhythm; the framework's default pad is off */
.section { --section-pad-y: 0; }

/* ── 3. Buttons — the framework's .btn system, carrying the design's values ─ */
.btn { display: inline-block; font-family: var(--font-3); font-weight: 600; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; padding: 15px 26px; border-radius: var(--radius-full); border: 1px solid transparent; line-height: 1; transition: background .2s, color .2s, border-color .2s; }
.btn:hover, .btn:active { transform: none; filter: none; }
.btn--primary { background: var(--color-6); color: #fff; border-color: var(--color-6); }
.btn--primary:hover { background: var(--color-primary-hover); border-color: var(--color-primary-hover); filter: none; }
.btn--ghost { background: transparent; color: var(--color-1); border-color: var(--color-1); }
.btn--ghost:hover { background: var(--color-8); border-color: var(--color-1); }
.btn--navy { background: var(--color-1); color: #fff; border-color: var(--color-1); }
.btn--navy:hover { background: var(--color-7); }
.on-navy .btn--primary, .hero .btn--primary, .niche .btn--primary { background: #fff; color: var(--color-1); border-color: #fff; }
.on-navy .btn--primary:hover, .hero .btn--primary:hover, .niche .btn--primary:hover { background: var(--color-8); border-color: var(--color-8); }
.on-navy .btn--ghost, .hero .btn--ghost, .niche .btn--ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.on-navy .btn--ghost:hover, .hero .btn--ghost:hover, .niche .btn--ghost:hover { background: rgba(255,255,255,.1); }
.btn--link, .textlink { display: inline; padding: 0; border: 0; border-radius: 0; background: transparent; font-family: var(--font-3); font-weight: 600; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--color-2); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.btn--link:hover, .textlink:hover { color: var(--color-6); background: transparent; }
.on-navy .btn--link, .niche .btn--link { color: #fff; } .on-navy .btn--link:hover, .niche .btn--link:hover { color: var(--color-8); }
.btns { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }

/* ── 4. Wave lines — one symbol, reused; thin continuous lines, slow drift ── */
.waves { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: hidden; z-index: 0; }
.waves svg { width: 100%; height: 100%; display: block; max-width: none; }
.waves .drift { transform-box: view-box; }
@media (prefers-reduced-motion: no-preference) {
    .waves .drift { animation: wsp-drift 90s linear infinite; }
    .waves .drift--slow { animation-duration: 140s; }
}
@keyframes wsp-drift { from { transform: translateX(0); } to { transform: translateX(-1440px); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .waves .drift { animation: none !important; } .btn, .nav__link, .service-rows__link::after { transition: none !important; } }
.waves { --wa: var(--wave-navy); --wb: var(--wave-maroon); }
.on-navy .waves, .hero .waves { --wa: var(--wave-white); --wb: var(--wave-white); }
.w-a { stroke: var(--wa); } .w-b { stroke: var(--wb); }
.seam { position: relative; height: clamp(72px, 9vw, 120px); overflow: hidden; }
.seam.section { padding: 0; }

/* ── 5. Header ───────────────────────────────────────────────────────────── */
.site-header { background: var(--color-3); position: relative; z-index: 5; }
.site-header__bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 104px; gap: 24px; }
.site-header__logo { display: block; grid-column: 2; justify-self: center; }
.site-header__logo img { display: block; height: 52px; width: auto; }
.site-header__nav { grid-column: 1; grid-row: 1; }
.nav__list, .site-header__nav ul { display: flex; gap: 20px; margin: 0; padding: 0; list-style: none; }
.site-header__nav li { margin: 0; }
.site-header__nav a { font-family: var(--font-3); font-weight: 600; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--color-2); white-space: nowrap; transition: color .2s; }
.site-header__nav a:hover { color: var(--color-6); }
.site-header__right { grid-column: 3; grid-row: 1; display: flex; justify-content: flex-end; align-items: center; gap: 22px; }
.site-header__phone { font-family: var(--font-3); font-size: 14px; letter-spacing: .06em; text-decoration: none; color: var(--color-2); }
.site-header__phone:hover { color: var(--color-6); }
.site-header .ly-burger { grid-column: 3; grid-row: 1; justify-self: end; color: var(--color-2); }
.site-header__drawer-extra { display: none; }
@media (max-width: 1060px) { .site-header__phone { display: none; } .nav__list, .site-header__nav ul { gap: 14px; } }
@media (max-width: 900px) and (min-width: 769px) { .site-header__right .btn { display: none; } }
@media (max-width: 768px) {
    .site-header__bar { grid-template-columns: 1fr auto; height: auto; padding-top: 12px; padding-bottom: 12px; }
    .site-header__logo { grid-column: 1; justify-self: start; }
    .site-header__logo img { height: 44px; }
    .site-header__right { display: none; }
    .site-header .ly-burger { grid-column: 2; }
    /* the framework's full-screen drawer (locked behaviour); its look is set here */
    .site-header__nav { grid-column: auto; grid-row: auto; }
    .site-header__nav ul { flex-direction: column; }
    .site-header__nav a { font-family: var(--font-3); font-size: 18px; letter-spacing: .14em; color: #fff; }
    .site-header__drawer-extra { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-top: 8px; }
    .site-header__drawer-extra .site-header__phone { display: inline-block; color: #fff; font-size: 16px; }
    .site-header__drawer-extra .btn { display: inline-block; }
}

/* ── 6. Hero — full width, photo under a navy field, waves over the field ─── */
.hero { position: relative; background: var(--color-1); color: #fff; min-height: min(76vh, 720px); display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero__img { position: absolute; inset: 0; z-index: -2; }
.hero__img img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 78% 50%; }
.hero__field { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5,51,99,.97) 0%, rgba(5,51,99,.95) 45%, rgba(5,51,99,.72) 68%, rgba(5,51,99,.38) 100%); }
.hero .waves { z-index: 0; }
.hero__wrap { width: 100%; padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(64px, 9vw, 120px); }
.hero__title { color: #fff; max-width: 14ch; }
.hero__lead { color: var(--muted-on-navy); margin: 22px 0 32px; max-width: 52ch; }
.hero__place { font-family: var(--font-3); font-weight: 600; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: #fff; opacity: .85; display: block; margin-bottom: 18px; }
.hero .btns { gap: 12px; }
@media (max-width: 900px) {
    .hero { min-height: 0; }
    .hero__field { background: linear-gradient(180deg, rgba(5,51,99,.97) 0%, rgba(5,51,99,.9) 70%, rgba(5,51,99,.7) 100%); }
    .hero__img img { object-position: 60% 50%; }
}

/* ── 7. The two doors — two clean panels directly under the hero ─────────── */
.doors { padding: clamp(28px, 4vw, 56px) 0 0; }
.doors .grid { row-gap: 24px; }
.door { background: #fff; border: 1px solid var(--color-5); display: flex; flex-direction: column; overflow: hidden; }
.door__figure { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; background: var(--color-8); }
.door__figure img { width: 100%; height: 100%; object-fit: cover; }
.door__body { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 14px; flex: 1; }
.door__title { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1; }
.door__text { margin: 0; color: var(--color-text-muted); }
.door .btns { margin-top: auto; padding-top: 10px; gap: 12px 20px; }

/* ── 8. Services — typographic list, maroon rules; each row links to its page ─ */
.service-rows { padding: var(--pad) 0 0; position: relative; }
.service-rows .grid { align-items: end; }
.service-rows__list { list-style: none; margin: 48px 0 0; padding: 0; }
.service-rows__item { display: grid; grid-template-columns: 7fr 5fr; column-gap: var(--col-gap); align-items: baseline; padding: 24px 0; border-top: 1px solid var(--color-6); margin: 0; }
.service-rows__item:last-child { border-bottom: 1px solid var(--color-6); }
.service-rows__title { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.05; }
.service-rows__link { text-decoration: none; color: var(--color-1); display: inline-block; transition: color .2s; }
.service-rows__link::after { content: "\2192"; font-family: var(--font-2); font-size: .6em; margin-left: .45em; color: var(--color-6); opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .2s; vertical-align: .15em; display: inline-block; }
.service-rows__item:hover .service-rows__link::after, .service-rows__link:focus-visible::after { opacity: 1; transform: none; }
.service-rows__link:hover { color: var(--color-6); }
.service-rows__line { margin: 0; color: var(--color-text-muted); }
.service-rows__foot { margin-top: 28px; }
@media (max-width: 900px) { .service-rows__item { grid-template-columns: 1fr; row-gap: 8px; } }

/* ── 9. Niche — community banks, photo left on navy ──────────────────────── */
.niche { background: var(--color-1); color: #fff; display: grid; grid-template-columns: 1fr 1fr; position: relative; overflow: hidden; }
.niche__figure { margin: 0; min-height: 420px; position: relative; }
.niche__figure img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 40% 50%; }
.niche__body { padding: clamp(56px, 7vw, 110px) var(--gutter); display: flex; flex-direction: column; justify-content: center; }
.niche__inner { max-width: 520px; margin-right: auto; }
.niche__title { color: #fff; }
.niche .label { color: #fff; opacity: .85; }
.niche__text { color: var(--muted-on-navy); margin-top: 18px; }
.niche__list { margin: 20px 0 28px; padding: 0; list-style: none; }
.niche__list li { padding: 12px 0; border-top: 1px solid rgba(255,255,255,.28); color: #fff; margin: 0; }
.niche__list li:last-child { border-bottom: 1px solid rgba(255,255,255,.28); }
.niche .btns { gap: 12px 24px; }
@media (max-width: 900px) { .niche { grid-template-columns: 1fr; } .niche__figure { min-height: 0; aspect-ratio: 3 / 2; } }

/* ── 10. Process on navy-deep with waves behind ──────────────────────────── */
.on-navy { background: var(--color-1); color: #fff; }
.on-navy h2, .on-navy h3 { color: #fff; }
.on-navy .label { color: #fff; opacity: .85; }
.on-navy .muted { color: var(--muted-on-navy); }
.process { padding: var(--pad) 0; position: relative; overflow: hidden; background: var(--color-7); }
.process .grid { align-items: end; }
.process__cols { display: grid; grid-template-columns: repeat(4, 1fr); column-gap: var(--col-gap); row-gap: 28px; margin-top: 48px; }
.process__col { border-top: 1px solid rgba(255,255,255,.35); padding-top: 18px; }
.process__k { font-family: var(--font-3); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.process__col h3 { margin: 10px 0 8px; font-size: 24px; }
.process__col p { color: var(--muted-on-navy); margin: 0; font-size: 16px; }
@media (max-width: 900px) { .process__cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .process__cols { grid-template-columns: 1fr; } }

/* ── 11. About — same navy-deep ground as the process section, portrait photo ─ */
.about { padding: 0 0 var(--pad); position: relative; background: var(--color-7); }
.about .grid { align-items: center; }
.about__figure { margin: 0; aspect-ratio: 3 / 4; overflow: hidden; }
.about__figure img { width: 100%; height: 100%; object-fit: cover; }
.about .lead { color: #fff; margin-top: 18px; }
.about__person { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.35); max-width: 60ch; }
.about__person strong { font-family: var(--font-display); font-size: 26px; font-weight: 500; color: #fff; }

/* ── 12. Statement — lakeshore full-bleed, quiet ─────────────────────────── */
.statement { position: relative; min-height: min(60vh, 520px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--color-1); }
.statement__img img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 25%; }
.statement__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,40,78,.72) 0%, rgba(4,40,78,.62) 55%, rgba(4,40,78,.2) 100%), linear-gradient(180deg, rgba(4,40,78,.1) 0%, rgba(4,40,78,.4) 40%, rgba(4,40,78,.8) 62%, rgba(4,40,78,.94) 100%); }
.statement__wrap { width: 100%; padding-top: clamp(200px, 26vw, 300px); padding-bottom: clamp(40px, 5vw, 64px); }
.statement__title { color: #fff; max-width: 20ch; font-size: clamp(28px, 3.4vw, 46px); }
.statement__text { color: #fff; opacity: .9; margin: 14px 0 0; }

/* ── 13. Contact on paper; address, the Layerly form ─────────────────────── */
.contact { padding: var(--pad) 0 0; position: relative; }
.contact .grid { align-items: start; }
.contact .lead { margin-top: 18px; }
.contact__address { margin-top: 28px; font-style: normal; line-height: 1.8; }
.contact__form .form { display: block; background: #fff; border: 1px solid var(--color-5); padding: clamp(20px, 3vw, 36px); }
.form__fields { gap: var(--form-gap); }
.field__label { display: block; font-family: var(--font-3); font-weight: 600; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--color-text-muted); margin-bottom: 0; }
.field__req { display: none; }
.field__input { background: var(--color-3); border: 1px solid var(--color-5); color: var(--color-2); padding: 12px 14px; font: inherit; font-size: 16px; border-radius: var(--radius-md); }
.field__input:focus-visible { outline: 2px solid var(--color-6); outline-offset: 0; border-color: var(--color-6); box-shadow: none; }
.field__textarea { min-height: 120px; resize: vertical; }
.field--select .field__select { border: 1px solid var(--color-1); border-radius: var(--radius-full); background: var(--color-3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23053363' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 16px center; color: var(--color-1); font-family: var(--font-3); font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; padding: 12px 40px 12px 18px; appearance: none; -webkit-appearance: none; }
.form__submit { margin-top: 18px; }
.form__status { font-size: 15px; margin: 12px 0 0; }
.form__status:empty { display: none; }
@media (max-width: 600px) { .form__fields { grid-template-columns: 1fr; } }

/* ── 14. Footer with waves behind ────────────────────────────────────────── */
.site-footer { padding: var(--pad) 0 32px; position: relative; overflow: hidden; }
.site-footer .grid { align-items: start; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 8px; }
.site-footer a { text-decoration: none; } .site-footer a:hover { text-decoration: underline; }
.site-footer__logo img { height: 44px; width: auto; display: block; }
.site-footer__blurb { margin-top: 18px; }
.site-footer__address { margin-top: 16px; font-style: normal; line-height: 1.8; }
.site-footer__form { margin-bottom: clamp(40px, 5vw, 64px); }
.site-footer__form .form { background: #fff; border: 1px solid var(--color-5); padding: clamp(20px, 3vw, 36px); }
.site-footer__legal { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--color-5); font-family: var(--font-3); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--color-text-muted); display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.site-footer__legal .layerly-copyright__line { margin: 0; font-size: 12px; }
.site-footer__legal ul { display: flex; gap: 16px; } .site-footer__legal li { margin: 0; }



/* Layerly — Footer sits on the paper ground with wave lines (the framework's .site-footer paints the dark ground; the design does not) + drawer button size + mobile logo height — 2026-10-19 16:46:44 */
.site-footer { background: var(--color-3); color: var(--color-text); }
.site-footer a:hover { opacity: 1; }
.site-header__drawer-extra .btn { font-size: 14px; }
@media (max-width: 768px) { .site-header__logo img { height: 52px; } }


/* Layerly — The framework's generic .hero rule pads every hero; this design's hero sets its own rhythm on .hero__wrap — 2026-10-19 16:47:48 */
.hero.hero--field { padding-block: 0; }
