/*
 * Talon Consulting - site styles
 * Author: iani@talonconsulting.com
 * Brand: Talon Navy #273D71, Talon Blue #4E62A9, Signal Yellow #FFCC00 (CTA fill only),
 *        Charcoal #2D2D2D, Ink #252525 (text on yellow), Silver #DBDEE2, Cloud #F7F7F7. Typeface: Lato Light, Regular, Bold.
 */

@font-face { font-family: "Lato"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/lato-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/lato-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/lato-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/lato-latin-700-normal.woff2") format("woff2"); }

:root {
    --navy: #273D71;
    --blue: #4E62A9;
    --yellow: #FFCC00;
    --ink: #252525;

    --bg: #FFFFFF;
    --surface: #F7F7F7;
    --line: #DBDEE2;
    --text: #2D2D2D;
    --text-muted: #5A606B;
    --heading: #273D71;
    --link: #4E62A9;
    --band: #273D71;
    --band-text: #FFFFFF;
    --band-muted: #C9D0EA;
    --footer-bg: #444444;
    --footer-text: #E4E6EA;
    --numeral: #4E62A9;
    --photo-ring: #FFFFFF;

    --font: "Lato", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --measure: 66ch;
    --wrap: 1180px;
    --gutter: clamp(1.25rem, 4vw, 2.5rem);
    --section: clamp(4rem, 9vw, 7.5rem);

    color-scheme: light;
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #10172A;
        --surface: #172138;
        --line: #2A3758;
        --text: #E4E7EF;
        --text-muted: #A7AFC2;
        --heading: #EEF1FA;
        --link: #A3B0E0;
        --band: #1D2D57;
        --band-text: #FFFFFF;
        --band-muted: #C3CBE6;
        --footer-bg: #0B1121;
        --footer-text: #C9CFDD;
        --numeral: #A3B0E0;
        --photo-ring: #10172A;
        color-scheme: dark;
    }
}

:root[data-theme="dark"] {
    --bg: #10172A;
    --surface: #172138;
    --line: #2A3758;
    --text: #E4E7EF;
    --text-muted: #A7AFC2;
    --heading: #EEF1FA;
    --link: #A3B0E0;
    --band: #1D2D57;
    --band-text: #FFFFFF;
    --band-muted: #C3CBE6;
    --footer-bg: #0B1121;
    --footer-text: #C9CFDD;
    --numeral: #A3B0E0;
    --photo-ring: #10172A;
    color-scheme: dark;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 5rem);
    -webkit-text-size-adjust: 100%;
}

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 1.125rem;
    line-height: 1.65;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    inset: 0 0 auto;
    height: env(safe-area-inset-top, 0px);
    z-index: 30;
    background: var(--bg);
}

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

a { color: var(--link); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

h1, h2, h3 { color: var(--heading); line-height: 1.12; margin: 0; text-wrap: balance; }
h1 { font-weight: 700; font-size: clamp(2.6rem, 6.4vw, 4.75rem); letter-spacing: -0.015em; }
h2 { font-weight: 700; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.01em; }
h3 { font-weight: 700; font-size: 1.375rem; line-height: 1.3; }
p { margin: 0 0 1.1em; max-width: var(--measure); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--surface { background: var(--surface); }

.lead { font-size: clamp(1.2rem, 2vw, 1.4rem); font-weight: 300; line-height: 1.55; }
.section-intro { margin-top: 1.25rem; color: var(--text-muted); }

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    background: var(--yellow);
    color: var(--ink);
    padding: 0.75rem 1rem;
    font-weight: 700;
    z-index: 50;
}
.skip-link:focus { top: calc(env(safe-area-inset-top, 0px) + 1rem); }

/* Buttons: square corners, uppercase letter-spaced labels per brand standard */
.btn {
    display: inline-block;
    padding: 0.95rem 1.6rem;
    border: 2px solid transparent;
    border-radius: 0;
    font-family: var(--font);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1.2;
    cursor: pointer;
}
.btn--primary { background: var(--yellow); color: var(--ink); }
.btn--primary:hover { background: #FFD633; }
.btn--ghost { border-color: currentColor; color: var(--band-text); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn--small { padding: 0.65rem 1.1rem; font-size: 0.75rem; }

/* Header */
.site-header {
    position: sticky;
    top: env(safe-area-inset-top, 0px);
    z-index: 20;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 5.25rem; padding-top: 0.4rem; padding-bottom: 0.4rem; }

.wordmark { display: inline-flex; align-items: baseline; gap: 0.4em; text-decoration: none; color: var(--heading); line-height: 1; }
.wordmark__name { font-weight: 700; font-size: 1.35rem; letter-spacing: 0.16em; }
.wordmark__sub { font-weight: 300; font-size: 1.05rem; letter-spacing: 0.14em; }
.wordmark img { height: 4rem; width: auto; }
.wordmark picture { display: block; }
.site-footer .wordmark img { height: 3.6rem; }

.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.6rem; }
.nav a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
.nav a:not(.btn):hover { color: var(--link); }

.nav-toggle {
    display: none;
    background: none;
    border: 2px solid var(--line);
    color: var(--heading);
    font: 700 0.8rem/1 var(--font);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.65rem 0.9rem;
    cursor: pointer;
}

@media (max-width: 860px) {
    .nav-toggle { display: inline-block; }
    .nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: var(--bg);
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.5rem var(--gutter) 1.5rem;
    }
    .nav.is-open { display: flex; }
    .nav ul { flex-direction: column; gap: 0; }
    .nav ul a { display: block; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
    .nav .btn { margin-top: 1.25rem; text-align: center; }
}

/* Hero */
.hero { background: var(--band); color: var(--band-text); overflow: hidden; }
.hero .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3rem);
    padding-top: clamp(3.5rem, 8vw, 6.5rem);
    padding-bottom: clamp(3.5rem, 8vw, 6.5rem);
}
.hero h1 { color: #FFFFFF; text-transform: uppercase; letter-spacing: 0.04em; font-size: clamp(2.2rem, 5.2vw, 3.9rem); line-height: 1.15; }
.hero .lead { color: var(--band-muted); margin-top: 1.5rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.25rem; }
.hero__art { width: 100%; height: auto; }

@media (max-width: 860px) {
    .hero .wrap { grid-template-columns: 1fr; }
    .hero__art { order: -1; max-width: 340px; margin-bottom: -0.5rem; }
}

/* Chaos-to-order line art: drawn once on load */
.hero__art path { fill: none; stroke-width: 2; stroke-linecap: round; }
.hero__art .l-a { stroke: rgba(255, 255, 255, 0.55); }
.hero__art .l-b { stroke: #9FAEE3; }

@media (prefers-reduced-motion: no-preference) {
    .hero__art path {
        stroke-dasharray: 1;
        stroke-dashoffset: 1;
        animation: draw 2.2s cubic-bezier(0.55, 0, 0.25, 1) forwards;
    }
    .hero__art path:nth-child(3n + 1) { animation-delay: 0.1s; }
    .hero__art path:nth-child(3n + 2) { animation-delay: 0.3s; }
    .hero__art path:nth-child(3n) { animation-delay: 0.5s; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Services */
.services { margin-top: clamp(2.5rem, 5vw, 4rem); }
.service {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(1.5rem, 4vw, 4rem);
    padding: clamp(2rem, 4vw, 3rem) 0;
    border-top: 1px solid var(--line);
}
.service:last-child { border-bottom: 1px solid var(--line); }
.service h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; }
.service__summary { margin-top: 0.85rem; color: var(--text-muted); }
.service__examples { margin: 1.25rem 0 0; padding: 0; list-style: none; }
.service__examples li { position: relative; padding-left: 1.4rem; margin-bottom: 0.6rem; }
.service__examples li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 0.65rem;
    height: 2px;
    background: var(--blue);
}
.service__label { font-weight: 700; color: var(--heading); margin: 1.4rem 0 0.4rem; }

@media (max-width: 760px) {
    .service { grid-template-columns: 1fr; }
}

/* Approach: a true sequence, so numbered */
.steps { list-style: none; margin: clamp(2.5rem, 5vw, 4rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3.5rem); counter-reset: step; }
.step { counter-increment: step; }
.step::before {
    content: counter(step);
    display: block;
    font-weight: 700;
    font-size: clamp(3.5rem, 7vw, 5.5rem);
    line-height: 1;
    color: var(--numeral);
    margin-bottom: 1rem;
}
.step h3 { margin-bottom: 0.75rem; }
.step p { color: var(--text-muted); }
.step blockquote { margin: 1.25rem 0 0; font-style: italic; color: var(--text); border-left: 3px solid var(--yellow); padding-left: 1rem; }

@media (max-width: 860px) {
    .steps { grid-template-columns: 1fr; }
}

/* Values */
.values__lead {
    margin-top: clamp(2rem, 4vw, 3rem);
    font-size: clamp(1.9rem, 4.4vw, 3.4rem);
    font-weight: 300;
    line-height: 1.2;
    color: var(--heading);
    max-width: 26ch;
}
.values__lead strong { font-weight: 700; }
.values__list { list-style: none; margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem clamp(2rem, 5vw, 4rem); }
.values__list h3 { font-size: 1.25rem; }
.values__list p { margin-top: 0.45rem; color: var(--text-muted); }

@media (max-width: 700px) {
    .values__list { grid-template-columns: 1fr; }
}

/* About */
.about { display: grid; grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.about__photo { margin: 0; }
.about__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--surface); }
.about__photo figcaption { margin-top: 0.75rem; font-size: 0.95rem; color: var(--text-muted); }
.about h2 { margin-bottom: 1.5rem; }
.creds { list-style: none; margin: 1.75rem 0 0; padding: 1.5rem 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem 2rem; }
.creds li strong { display: block; color: var(--heading); }
.creds li strong { margin-bottom: 0.35rem; }
.creds li span { display: block; font-size: 0.95rem; line-height: 1.45; color: var(--text-muted); margin-bottom: 0.3rem; }

@media (max-width: 820px) {
    .about { grid-template-columns: 1fr; }
    .about__photo { max-width: 15rem; }
}
@media (max-width: 520px) {
    .creds { grid-template-columns: 1fr; }
    .creds li { display: block; }
}

/* People and relationships */
.people { margin-top: clamp(2.5rem, 5vw, 3.5rem); display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; gap: 1.25rem; align-items: start; }
.people figure { margin: 0; position: relative; }
.people img { width: 100%; height: auto; object-fit: cover; background: var(--line); }
.people figure:first-child { grid-row: span 2; }
.people figure:first-child img { aspect-ratio: 4 / 3.4; }
.people figure:not(:first-child) img { aspect-ratio: 16 / 10; }
.people figcaption { margin-top: 0.5rem; font-size: 0.9rem; color: var(--text-muted); }

@media (max-width: 760px) {
    .people { grid-template-columns: 1fr; }
    .people figure:first-child { grid-row: auto; }
}

.giving { margin-top: clamp(3rem, 6vw, 4.5rem); display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 4vw, 4rem); }
.giving ul { list-style: none; margin: 0; padding: 0; }
.giving li { padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.giving li:first-child { padding-top: 0; }
.giving li strong { color: var(--heading); }
.giving li span { display: block; font-size: 0.95rem; color: var(--text-muted); }

@media (max-width: 760px) {
    .giving { grid-template-columns: 1fr; }
}

/* Testimonials */
.quotes { margin-top: clamp(2.5rem, 5vw, 3.5rem); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3rem); }
.quote { margin: 0; display: flex; flex-direction: column; }
.quote--featured { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 clamp(1.5rem, 4vw, 3rem); align-items: start; padding-bottom: clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line); }
.quote blockquote { margin: 0; }
.quote blockquote p { font-size: 1.15rem; line-height: 1.6; max-width: none; }
.quote--featured blockquote p { font-size: clamp(1.35rem, 2.6vw, 1.85rem); font-weight: 300; line-height: 1.45; color: var(--heading); }
.quote figcaption { display: flex; align-items: center; gap: 1rem; margin-top: auto; padding-top: 0.5rem; }
.quote--featured figcaption { grid-column: 2; }
.quote img { width: 4rem; height: 4rem; border-radius: 50%; object-fit: cover; background: var(--line); flex-shrink: 0; }
.quote--featured .quote__portrait { width: clamp(5.5rem, 10vw, 7rem); height: clamp(5.5rem, 10vw, 7rem); grid-row: span 2; }
.quote cite { font-style: normal; line-height: 1.35; }
.quote cite strong { display: block; color: var(--heading); }
.quote cite span { font-size: 0.95rem; color: var(--text-muted); }

@media (max-width: 760px) {
    .quotes { grid-template-columns: 1fr; }
    .quote--featured { grid-template-columns: 1fr; }
    .quote--featured figcaption { grid-column: 1; }
    .quote--featured .quote__portrait { grid-row: auto; margin-bottom: 1.25rem; }
}

.industries { margin-top: clamp(2.5rem, 5vw, 3.5rem); font-size: 1rem; color: var(--text-muted); }
.industries strong { color: var(--heading); }

/* Contact */
.contact { background: var(--band); color: var(--band-text); }
.contact h2 { color: #FFFFFF; max-width: 18ch; }
.contact .lead { color: var(--band-muted); margin-top: 1.25rem; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: end; }
.contact__methods { list-style: none; margin: 0; padding: 0; }
.contact__methods li { padding: 1.1rem 0; border-top: 1px solid rgba(255, 255, 255, 0.22); }
.contact__methods li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.22); }
.contact__methods span { display: block; font-size: 0.95rem; color: var(--band-muted); }
.contact__methods a { color: #FFFFFF; font-weight: 700; font-size: clamp(1.2rem, 2.4vw, 1.5rem); text-decoration: none; overflow-wrap: anywhere; }
.contact__methods a:hover { text-decoration: underline; }
.contact__note { margin-top: 1.75rem; color: var(--band-muted); font-size: 1rem; }

@media (max-width: 820px) {
    .contact__grid { grid-template-columns: 1fr; }
}

/* Footer */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding: 2.5rem 0; font-size: 0.95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.25rem; }
.site-footer .wordmark { color: #FFFFFF; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1.25rem; }
.site-footer a { color: var(--footer-text); }
.site-footer p { margin: 0; }

/* 404 */
.notfound { min-height: 60vh; display: flex; align-items: center; }
.notfound p { margin-top: 1.25rem; }

/* Testimonials placed beside the service they speak to */
.service__quote { margin: 2rem 0 0; padding: 1.5rem 0 0 1.5rem; border-left: 3px solid var(--yellow); }
.service__quote blockquote { margin: 0; }
.service__quote blockquote p { font-style: italic; font-size: 1.05rem; line-height: 1.6; max-width: none; }
.service__quote figcaption { display: flex; align-items: center; gap: 0.9rem; }
.service__quote img { width: 3.5rem; height: 3.5rem; border-radius: 50%; object-fit: cover; background: var(--line); flex-shrink: 0; }
.service__quote cite { font-style: normal; line-height: 1.35; }
.service__quote cite strong { display: block; color: var(--heading); }
.service__quote cite span { font-size: 0.95rem; color: var(--text-muted); }
.giving .service__quote { margin-top: 1.5rem; }

/* Icon-only contact link (LinkedIn) */
.contact__methods a.contact__icon { display: inline-flex; color: #FFFFFF; margin-top: 0.25rem; }
.contact__methods a.contact__icon svg { width: 2.25rem; height: 2.25rem; }
.contact__methods a.contact__icon:hover { color: var(--yellow); }
