/* css/styles.css */

:root {
  --navy: #0f1b2b;
  --navy-2: #16233b; /* reserved for later tasks (e.g. gradients/hover states on navy sections) */
  --gold: #c7a250;
  --gold-dark: #a9843e;
  --cream: #f8f6f2;
  --cream-2: #f0ece3;
  --ink: #1c1a17;
  --slate: #5b6472;
  --line: #e4ded2;

  --font-display: Georgia, "Times New Roman", Times, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.1; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.2; }
p { margin: 0 0 1em; max-width: 62ch; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }

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

/* ---- Header / nav ---- */
.site-header { background: var(--navy); color: var(--cream); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: .9rem; padding-bottom: .9rem; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand-logo { height: 42px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.site-nav a { color: var(--cream); text-decoration: none; font-size: .92rem; }
.site-nav a:hover { color: var(--gold); }
.site-nav .nav-cta { background: var(--gold); color: var(--navy); padding: .5rem 1rem; border-radius: 2px; font-weight: 700; }
.site-nav .nav-cta:hover { background: var(--gold-dark); color: var(--navy); }
.site-nav .nav-divider { width: 1px; height: 18px; background: rgba(248,246,242,.25); }
.site-nav .nav-secondary { color: rgba(248,246,242,.65); font-size: .85rem; }
.nav-toggle { display: none; background: none; border: 0; color: var(--cream); font-size: 1.4rem; cursor: pointer; }

@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy); flex-direction: column; align-items: flex-start;
    padding: 1rem 1.5rem 1.5rem; gap: .9rem;
    border-top: 1px solid rgba(248,246,242,.15);
  }
  .site-nav.nav-open { display: flex; }
  .site-nav .nav-divider { display: none; }
}

/* ---- Footer ---- */
.site-footer { background: var(--navy); color: rgba(248,246,242,.75); margin-top: 4rem; }
.site-footer .wrap { padding-top: 2.6rem; padding-bottom: 2.2rem; }
.footer-brand { font-family: var(--font-display); color: var(--cream); font-size: 1.2rem; margin-bottom: .4rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.2rem; margin: 1.2rem 0; }
.footer-links a { color: rgba(248,246,242,.75); text-decoration: none; font-size: .88rem; }
.footer-links a:hover { color: var(--gold); }
.footer-copy { font-size: .8rem; color: rgba(248,246,242,.5); margin: 0; }

/* ---- Hero ---- */
.hero { background: var(--navy); color: var(--cream); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; padding-top: 4rem; padding-bottom: 4rem; }
.hero .eyebrow, .page-intro .eyebrow { display: block; font-family: var(--font-body); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.hero p.sub { color: #c3cbd6; font-size: 1.05rem; max-width: 40ch; }
.hero-media img { border-radius: 2px; aspect-ratio: 4/3; object-fit: cover; }
@media (max-width: 780px) { .hero .wrap { grid-template-columns: 1fr; padding-top: 2.6rem; padding-bottom: 2.6rem; } }

.page-intro { background: var(--navy); color: var(--cream); padding: 3.4rem 0; }
.page-intro p.sub { color: #c3cbd6; }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.5rem; border-radius: 2px; font-weight: 700; font-size: .92rem; text-decoration: none; border: 0; cursor: pointer; font-family: var(--font-body); }
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-dark); }
/* .btn-outline: reserved for later tasks — secondary CTA style on dark (.hero/.cta-band) sections */
.btn-outline { background: transparent; color: var(--cream); border: 1px solid rgba(248,246,242,.4); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

/* ---- Stats ---- */
.stats { display: flex; gap: 2.2rem; margin-top: 2rem; flex-wrap: wrap; }
.stats .stat-num { font-family: var(--font-display); font-size: 2rem; color: var(--gold); line-height: 1; }
.stats .stat-label { display: block; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: #9aa6b4; margin-top: .35rem; }

/* ---- Sections ---- */
.section { padding: 4rem 0; }
.section-alt { background: var(--cream-2); }
.section .section-head { max-width: 62ch; margin-bottom: 2.4rem; }
.section .section-head p { color: var(--slate); }

/* ---- Cards ---- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.6rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 3px; padding: 1.8rem; }
.card h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.card p { color: var(--slate); margin-bottom: 0; font-size: .95rem; }

/* ---- Credibility strip ---- */
.credibility { display: grid; grid-template-columns: .9fr 1.1fr; gap: 2.6rem; align-items: center; }
.credibility img { border-radius: 2px; aspect-ratio: 4/3; object-fit: cover; }
.credibility blockquote { margin: 0; font-family: var(--font-display); font-size: 1.4rem; line-height: 1.4; color: var(--navy); }
@media (max-width: 780px) { .credibility { grid-template-columns: 1fr; } }

/* ---- CTA band ---- */
.cta-band { background: var(--navy); color: var(--cream); text-align: center; padding: 3.6rem 0; }
.cta-band .wrap { max-width: 640px; }
.cta-band p { color: #c3cbd6; margin-left: auto; margin-right: auto; }

/* ---- About: story + timeline ---- */
.about-story { display: grid; grid-template-columns: .8fr 1.2fr; gap: 2.6rem; align-items: start; }
.about-story img { border-radius: 3px; aspect-ratio: 1/1; object-fit: cover; }
@media (max-width: 780px) { .about-story { grid-template-columns: 1fr; } }

.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 1.8rem 1.6rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: .3rem; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); }
.timeline .tl-year { display: block; font-family: var(--font-display); color: var(--navy); font-size: 1.05rem; }
.timeline p { color: var(--slate); margin: .2rem 0 0; }

/* ---- Work / case study ---- */
.case-study { border: 1px solid var(--line); border-radius: 3px; overflow: hidden; background: #fff; margin-bottom: 2.6rem; }
.case-study-hero { aspect-ratio: 16/7; object-fit: cover; }
.case-study-body { padding: 2rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .8rem; margin-top: 1.4rem; }
.gallery img { aspect-ratio: 4/3; object-fit: cover; border-radius: 2px; }

/* ---- Forms ---- */
.contact-layout { display: grid; grid-template-columns: 1.3fr .7fr; gap: 3rem; align-items: start; }
@media (max-width: 780px) { .contact-layout { grid-template-columns: 1fr; } }
form.lead-form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-size: .82rem; font-weight: 700; color: var(--navy); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: .95rem; padding: .7rem .8rem;
  border: 1px solid var(--line); border-radius: 2px; background: #fff; color: var(--ink);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.hp-field { position: absolute; left: -9999px; top: -9999px; }
.contact-aside { background: var(--cream-2); border: 1px solid var(--line); border-radius: 3px; padding: 1.8rem; }
.contact-aside h3 { font-size: 1.05rem; }
.contact-aside a { color: var(--navy); font-weight: 700; }

/* ---- Coming soon stubs ---- */
.coming-soon { text-align: center; padding: 5rem 0; }
.coming-soon .kicker { color: var(--gold); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }

/* ---- Scroll reveal ---- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- Accessibility utilities ---- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.section, .page-intro {
  scroll-margin-top: 5rem;
}
