/* ============================================================
   Flannery Construction — site.css
   Corporate Charcoal. Brand accent = logo blue.
   Single stylesheet, no framework, no external fonts.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600;700;800&display=swap');

:root {
  --ink:      #16181c;   /* near-black charcoal — nav, footer, dark bands */
  --ink-2:    #1f2329;   /* raised charcoal surface                       */
  --ink-3:    #2b3038;   /* hairline on dark                              */
  --paper:    #ffffff;   /* page background                               */
  --paper-2:  #f4f6f8;   /* light section band                            */
  --paper-3:  #eceff3;   /* card border / light hairline                  */
  --body:     #333840;   /* body text                                     */
  --muted:    #6b7280;   /* secondary text                                */
  --accent:   #1a75c0;   /* Flannery blue (from the logo triangle)        */
  --accent-2: #29abe2;   /* cyan highlight                                */
  --accent-d: #135a95;   /* darker blue for hovers                        */
  --line:     #e4e7ec;   /* hairlines / borders on light                  */

  --wrap: 1200px;
  --gap: clamp(1.25rem, 3vw, 2.5rem);
  --sans: "Inter Tight", "Helvetica Neue", Helvetica, Arial, "Segoe UI", Roboto, system-ui, sans-serif;
  --display: var(--sans);   /* Inter Tight across the board -- headings differ by weight/size, not family */
  --shadow: 0 1px 2px rgba(16,24,40,.04), 0 8px 24px rgba(16,24,40,.06);
  --shadow-lg: 0 24px 60px rgba(16,24,40,.18);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-d); }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.12; font-weight: 800; letter-spacing: .01em; text-transform: uppercase; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 2rem); }
.section { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section--dark { background: var(--ink); color: #c7ccd4; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--muted { background: var(--paper-2); }
.center { text-align: center; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--muted); max-width: 62ch; }
.center .lead { margin-left: auto; margin-right: auto; }

/* eyebrow / kicker labels -- removed site-wide per brand direction (no mini-headings) */
.kicker, .hero__tag, .eyebrow { display: none !important; }
.kicker {
  align-items: center; gap: .6rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
}
.kicker::before { content: ""; width: 34px; height: 2px; background: var(--accent); display: inline-block; }
.section--dark .kicker { color: var(--accent-2); }
.section--dark .kicker::before { background: var(--accent-2); }

/* muted (non-blue) eyebrow + subtitle */
.eyebrow { font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 .9rem; }
.section--dark .eyebrow { color: #9aa2ad; }
.subtitle { font-size: clamp(1.05rem, 1.7vw, 1.3rem); font-weight: 600; color: var(--muted); margin: -.15rem 0 1.2rem; }

.rule { width: 64px; height: 3px; background: var(--accent); border: 0; margin: 1.2rem 0 0; }
.center .rule { margin-left: auto; margin-right: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font: inherit; font-weight: 700; font-size: .95rem; letter-spacing: .02em;
  padding: .85rem 1.6rem; border-radius: 2px; cursor: pointer;
  border: 2px solid transparent; transition: all .18s ease; white-space: nowrap;
}
.btn--primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn--primary:hover { background: var(--accent-d); border-color: var(--accent-d); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }
.btn--dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--dark:hover { background: var(--ink-2); border-color: var(--ink-2); color: #fff; }
.btn--lg { padding: 1rem 2rem; font-size: 1rem; }

/* ============================================================
   NAV  (injected by site.js into #site-header)
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: var(--ink);
  border-bottom: 1px solid var(--ink-3);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 116px; gap: 1.5rem;
}
.nav__logo img { height: 135px; width: auto; }
@media (max-width: 560px) { .nav__inner { height: 92px; } .nav__logo img { height: 58px; } }
.nav__links { display: flex; align-items: center; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  display: block; color: #d7dbe1; font-weight: 600; font-size: .93rem; letter-spacing: .01em;
  padding: .55rem .85rem; border-radius: 2px; transition: color .15s, background .15s;
}
.nav__links a:hover { color: #fff; }
.nav__links a.is-active { color: #fff; }
.nav__links a.is-active::after {
  content: ""; display: block; height: 2px; background: var(--accent-2); margin-top: 5px;
}
.nav__cta { margin-left: .5rem; }
.nav__toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: .4rem;
  width: 44px; height: 44px;
}
.nav__toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px auto; transition: .25s; }
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 116px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--ink); border-bottom: 1px solid var(--ink-3); padding: .75rem 1.25rem 1.5rem;
    gap: 0; transform: translateY(-120%); transition: transform .28s ease; box-shadow: var(--shadow-lg);
  }
  .nav.is-open .nav__links { transform: translateY(0); }
  .nav__links a { padding: .95rem .5rem; border-bottom: 1px solid var(--ink-3); font-size: 1.05rem; }
  .nav__links a.is-active::after { display: none; }
  .nav__cta { margin: 1rem .5rem 0; }
  .nav__cta .btn { width: 100%; justify-content: center; }
}
@media (max-width: 560px) { .nav__links { inset: 92px 0 auto 0; } }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: var(--ink);
  display: flex; flex-direction: column;
  min-height: clamp(27rem, 58vh, 34rem);
}
/* shorter image header for inner pages (distinct from the flat charcoal nav) */
.hero--page { min-height: clamp(15rem, 32vh, 21rem); }
.hero--page .hero__lead { color: #e7eaef; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,14,18,.62) 0%, rgba(12,14,18,.55) 40%, rgba(12,14,18,.86) 100%);
}
.hero__inner { position: relative; flex: 1 1 auto; display: flex; align-items: center;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.hero__inner .wrap { max-width: 62rem; }
/* two-column hero: stacked heading left, narrative right */
.hero__inner .wrap.hero__grid { max-width: var(--wrap); }
.hero__grid { display: flex; justify-content: center; align-items: center; gap: 0; }
.hero__grid h1 { margin-bottom: 0; }
@media (max-width: 860px) { .hero__grid { flex-direction: column; align-items: flex-start; gap: 1.75rem; } }

/* Design / Develop / Deliver -- process timeline: words far left, long connector
   lines to a spine of nodes, and an arrow from the middle node to the CTA. */
.ddd {
  position: relative; display: flex; flex-direction: column;
  gap: clamp(1.7rem, 3.2vw, 2.8rem); padding: .3em 0;
  font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1; --node: 18px;
  flex: 0 0 auto;
}
.ddd__row { position: relative; display: flex; align-items: center; justify-content: flex-end; }
.ddd__word { flex: 0 0 auto; white-space: nowrap; }
.ddd__line { flex: 0 0 auto; width: 2cm; height: 3px; margin-left: .9rem;
  background: var(--accent-2); }
.ddd__node { flex: 0 0 auto; width: var(--node); height: var(--node); border-radius: 50%;
  margin-left: .5rem; background: var(--accent-2); position: relative; z-index: 2;
  box-shadow: 0 0 0 4px var(--ink), 0 0 0 6px rgba(41,171,226,.30); }
/* vertical spine linking the nodes */
.ddd::after { content: ""; position: absolute; right: calc(var(--node)/2 - 1.5px);
  top: .7em; bottom: .7em; width: 3px; border-radius: 2px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent)); z-index: 0; }
/* bridge arrow from the middle node across to the CTA */
.ddd__bridge { flex: 0 0 auto; align-self: center; position: relative;
  width: clamp(2.4rem, 5vw, 4.5rem); height: 3px; background: var(--accent-2); margin-right: 1.1rem; }
.ddd__bridge::after { content: ""; position: absolute; right: -1px; top: 50%; transform: translateY(-50%);
  border-left: 12px solid var(--accent-2); border-top: 8px solid transparent; border-bottom: 8px solid transparent; }

/* hero CTA -- both buttons on one line */
.hero__cta { position: relative; display: flex; align-items: center; gap: .8rem; flex: 0 0 auto; }
@media (max-width: 860px) {
  .ddd__bridge { display: none; }
  .hero__cta { flex-wrap: wrap; }
}
.hero h1 { color: #fff; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.hero__logo { margin: 0 0 1.8rem; line-height: 0; }
.hero__logo img { width: auto; max-width: 100%; height: auto; margin: 0 auto; filter: drop-shadow(0 4px 22px rgba(0,0,0,.55)); }
/* centred hero variant -- logo, text and buttons all on the centre line */
.hero--center .wrap { text-align: center; }
.hero--center .hero__lead { margin-left: auto; margin-right: auto; }
.hero--center .hero__actions { justify-content: center; }
.hero__sub { font-size: clamp(1.05rem, 2.2vw, 1.5rem); font-weight: 600; letter-spacing: .02em; color: #e7eaef; margin: .5rem 0 0; }
.hero__sub .dot { color: var(--accent-2); margin: 0 .5rem; }
.hero__lead { font-size: clamp(1.1rem, 1.9vw, 1.4rem); color: #dfe3e9; max-width: 46ch; margin: 1.4rem 0 2.2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero__tag {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 1.1rem;
}

/* ============================================================
   STATS / CREDIBILITY STRIP
   ============================================================ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--ink-3); border: 1px solid var(--ink-3); }
.stats__item { background: var(--ink); padding: 2rem 1.5rem; text-align: center; }
.stats__num { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: #fff; line-height: 1; letter-spacing: -.02em; }
.stats__num span { color: var(--accent-2); }
.stats__label { display: block; margin-top: .5rem; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: #9aa2ad; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   FEATURE ROWS (alternating image / text)
   ============================================================ */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.feature + .feature { margin-top: clamp(3rem, 6vw, 5rem); }
.feature__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; box-shadow: var(--shadow); }
.feature--flip .feature__media { order: 2; }
@media (max-width: 820px) { .feature { grid-template-columns: 1fr; } .feature--flip .feature__media { order: 0; } }

/* ============================================================
   PROJECT GRID + CARDS
   ============================================================ */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2.5rem; }
.filter {
  font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer;
  padding: .55rem 1.15rem; border-radius: 100px; border: 1px solid var(--line);
  background: #fff; color: var(--body); transition: all .16s;
}
.filter:hover { border-color: var(--accent); color: var(--accent); }
.filter.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.1rem, 2.5vw, 1.9rem); }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

.card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--paper-3); border-radius: 4px;
  transition: transform .2s ease, box-shadow .2s ease; text-decoration: none; color: inherit;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: inherit; }
.card__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--paper-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.05); }
.card__tag {
  position: absolute; top: .8rem; left: .8rem; z-index: 2;
  font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: #fff; background: rgba(22,24,28,.82); padding: .3rem .6rem; border-radius: 2px;
}
.card__body { padding: 1.15rem 1.25rem 1.35rem; }
.card__title { font-size: 1.12rem; font-weight: 800; color: var(--ink); margin: 0 0 .25rem; }
.card__meta { font-size: .88rem; color: var(--muted); margin: 0; }
.card__arrow { margin-top: .8rem; font-size: .85rem; font-weight: 700; color: var(--accent); letter-spacing: .02em; }
.card--flag { border-color: var(--accent); }
.card--flag .card__tag { background: var(--accent); }

/* project gallery (detail pages) */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
@media (max-width: 700px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.gallery button { padding: 0; border: 0; background: var(--paper-2); cursor: pointer; overflow: hidden; border-radius: 3px; aspect-ratio: 3/2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s, opacity .2s; }
.gallery button:hover img { transform: scale(1.05); opacity: .92; }

/* fact list */
.facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.facts li { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.facts dt, .facts .facts__k { color: var(--muted); font-size: .92rem; }
.facts .facts__v { color: var(--ink); font-weight: 700; text-align: right; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lb { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center;
  background: rgba(10,11,14,.92); padding: 4vh 4vw; }
.lb.is-open { display: flex; }
.lb img { max-width: 100%; max-height: 92vh; width: auto; object-fit: contain; box-shadow: var(--shadow-lg); }
.lb__btn { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; opacity: .8; transition: opacity .15s; }
.lb__btn:hover { opacity: 1; }
.lb__close { top: 1.4rem; right: 1.8rem; font-size: 2.4rem; line-height: 1; }
.lb__prev, .lb__next { top: 50%; transform: translateY(-50%); font-size: 3rem; padding: 1rem; }
.lb__prev { left: 1rem; } .lb__next { right: 1rem; }
.lb__count { position: absolute; bottom: 1.4rem; left: 0; right: 0; text-align: center; color: #cfd3da; font-size: .9rem; letter-spacing: .05em; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta {
  background: var(--ink); color: #fff; text-align: center;
  background-image: radial-gradient(120% 120% at 50% 0%, #232830 0%, var(--ink) 55%);
}
.cta h2 { color: #fff; }
.cta p { color: #b9bfc8; max-width: 54ch; margin-left: auto; margin-right: auto; }
.cta__actions { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; margin-top: 1.8rem; }

/* ============================================================
   FOOTER  (injected by site.js into #site-footer)
   ============================================================ */
.footer { background: #0f1114; color: #9aa2ad; padding: clamp(3rem,6vw,4.5rem) 0 2rem; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; }
@media (max-width: 820px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__logo img { height: 64px; margin-bottom: 1.1rem; }
.footer h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 1.1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: .6rem; }
.footer a { color: #9aa2ad; }
.footer a:hover { color: #fff; }
.footer__contact p { margin: 0 0 .5rem; }
.footer__affil { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .8rem; }
.footer__affil span { font-size: .68rem; letter-spacing: .08em; border: 1px solid var(--ink-3); padding: .25rem .5rem; border-radius: 2px; color: #79818c; }
.footer__bar {
  border-top: 1px solid var(--ink-3); margin-top: 2.8rem; padding-top: 1.5rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .85rem; color: #6b7280;
}
.footer__bar a { color: #6b7280; }

/* ============================================================
   CONTACT / FORM
   ============================================================ */
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.form label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: .4rem; }
.form input, .form textarea, .form select {
  width: 100%; font: inherit; font-size: 1rem; padding: .8rem .9rem;
  border: 1px solid var(--line); border-radius: 3px; background: #fff; color: var(--body);
}
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { display: flex; gap: .9rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.info-list strong { display: block; color: var(--ink); }

/* ---------- utilities ---------- */
.stack > * + * { margin-top: 1.1rem; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: start; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.badge-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.badge { font-size: .8rem; font-weight: 600; color: var(--body); background: var(--paper-2); border: 1px solid var(--line); padding: .35rem .8rem; border-radius: 100px; }

/* full-width autoplay video band */
.videoband { width: 100%; background: #000; line-height: 0; }
.videoband__vid { width: 100%; height: clamp(20rem, 62vh, 44rem); object-fit: cover; display: block; }

/* skip link (a11y) */
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff; padding: .6rem 1rem; z-index: 200; }
.skip:focus { left: .5rem; top: .5rem; }
