/* ============================================================
   Brooke Maloney — brookemaloney site
   Design tokens & shared styles (from design handoff README)
   ============================================================ */

:root {
  --bg-base: #DDD8CC;        /* warm stone page background */
  --bg-panel: #E9E5DE;       /* panels, nav, inset cards */
  --ink: #1F1E1A;            /* primary text */
  --ink-body: #33322C;       /* body copy */
  --muted: #8A8776;          /* sub-labels, captions */
  --terracotta: #C0492A;     /* accent — DIO, hovers, CTA */
  --rust: #8A4A30;           /* eyebrow accent */
  --cream: #F2E7D5;          /* text over terracotta/dark */
  --olive: #8A7F56;          /* Business page accent */
  --hairline: rgba(31, 30, 26, .16);
  --serif: 'EB Garamond', Georgia, serif;
  --sans: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg-base);
  font-family: var(--sans);
  color: var(--ink);
}

::selection { background: #1F1E1A; color: #E9E5DE; }

a { color: #1F1E1A; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

img { max-width: 100%; }

/* ---------- Shared text utilities (from mocks) ---------- */

.cap {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 10.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: #1F1E1A;
}

.rule { height: 1px; background: rgba(31,30,26,.35); }

.body-txt {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 12.5px;
  line-height: 1.7;
  color: #33322C;
}

.num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: #1F1E1A;
}

.role-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
}

/* ---------- Display headings (clamp so they scale on mobile) ---------- */

.hero-title {          /* Home "Brooke Maloney" — 64px desktop */
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(42px, 8.5vw, 64px);
  line-height: 1.02;
  letter-spacing: .01em;
}

.page-title {          /* Section pages — 52px desktop */
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 7vw, 52px);
  line-height: 1.05;
}

.cs-title {            /* Case-study pages — 56px desktop */
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px, 7.5vw, 56px);
  line-height: 1.02;
}

/* ---------- Buttons ---------- */

.btn-dark, .btn-outline, .btn-light {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 13px 26px;
  display: inline-block;
}
.btn-dark { color: #F2E7D5; background: #1F1E1A; border: 1px solid #1F1E1A; }
.btn-outline { color: #1F1E1A; border: 1px solid #1F1E1A; }
.btn-light { color: #1F1E1A; background: #E9E5DE; border: 1px solid #E9E5DE; }
.btn-dark:hover, .btn-outline:hover, .btn-light:hover { text-decoration: none; opacity: .88; }

/* ---------- Navigation ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(233, 229, 222, .94);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(31, 30, 26, .16);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 15px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: .14em;
  white-space: nowrap;
}
.wordmark:hover { text-decoration: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.navlink {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #1F1E1A;
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
}
.navlink:hover { text-decoration: none; border-bottom-color: #C0492A; }
.navlink.active { border-bottom-color: #1F1E1A; }
body.page-business .navlink:hover { border-bottom-color: #8A7F56; }
body.page-business .navlink.active { border-bottom-color: #1F1E1A; }

/* Sixth teaser tile — mobile only, completes the wrapped grid (3×2 / 2×3) */
.teaser-extra { display: none; }
@media (max-width: 820px) {
  .teaser-extra { display: block; }
}

/* Hamburger — hidden on desktop */
.nav-toggle {
  display: none;
  appearance: none;
  background: none;
  border: 0;
  padding: 10px;
  margin: -10px;
  cursor: pointer;
  color: #1F1E1A;
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #E9E5DE;
    border-bottom: 1px solid rgba(31, 30, 26, .16);
    box-shadow: 0 26px 40px -30px rgba(31, 30, 26, .55);
    padding: 6px 0 14px;
  }
  .site-nav.open .nav-links { display: flex; }

  .nav-links .navlink {
    padding: 14px 40px;             /* ≥44px tap target */
    border-bottom: none;
    border-left: 2px solid transparent;
  }
  .nav-links .navlink:hover { border-left-color: #C0492A; }
  .nav-links .navlink.active { border-left-color: #1F1E1A; }
}

/* ---------- Footer ---------- */

.site-footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 50px 40px 70px;
  text-align: center;
}
.site-footer .footer-mark {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: .14em;
  margin-bottom: 12px;
}
.site-footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* ---------- Form fields (Contact page) ---------- */

.field {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 14px;
  color: #1F1E1A;
  background: #F2EFE8;
  border: 1px solid rgba(31, 30, 26, .2);
  border-radius: 0;
  padding: 13px 15px;
  width: 100%;
  outline: none;
}
.field:focus { border-color: #C0492A; background: #fff; }
.field::placeholder { color: #9A958A; }

.flabel {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #6B6658;
  margin-bottom: 8px;
  display: block;
}

/* Pricing-guide form inputs */
.pg-input {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(31, 30, 26, .28);
  border-radius: 0;
  color: #1F1E1A;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 14px;
  padding: 13px 14px;
}
.pg-input::placeholder { color: rgba(31, 30, 26, .4); }
.pg-input:focus { outline: none; border-color: #C0492A; }

button[disabled] { opacity: .55; cursor: default; }

/* ============================================================
   Responsive rules (breakpoint intent from the mocks, refined)
   ============================================================ */

@media (max-width: 900px) {
  .pf-inner { padding-left: 22px !important; padding-right: 22px !important; }
  .pf-masonry { column-count: 2 !important; }
}

@media (max-width: 820px) {
  /* Home */
  .home-portrait { grid-template-columns: 1fr !important; }
  .home-portrait .profile-photo { width: 100% !important; max-width: 360px; }
  .home-doors { grid-template-columns: 1fr !important; }
  .home-bring { grid-template-columns: 1fr !important; gap: 6px !important; }
  .home-teaser { grid-template-columns: 1fr 1fr 1fr !important; }
  .home-films a { flex-basis: 100% !important; }

  /* Strategy / DIO */
  .dio-hero { grid-template-columns: 1fr !important; }
  .dio-hero-img { min-height: 300px !important; }
  .dio-scope, .dio-found, .dio-rev, .dio-content { grid-template-columns: 1fr 1fr !important; }
  .dio-comp, .dio-funnel, .dio-uni, .dio-music { grid-template-columns: 1fr !important; }
  .dio-posters, .dio-ads, .dio-feed { grid-template-columns: 1fr 1fr 1fr !important; }

  /* Business */
  .bd-services { grid-template-columns: 1fr 1fr !important; }
  .bd-hero { grid-template-columns: 1fr !important; }
  .bd-gm { grid-template-columns: 1fr !important; }
  .bd-gm-imgs { grid-template-columns: 1fr 1fr !important; }
  .bd-cats { grid-template-columns: 1fr 1fr !important; }
  .bd-benefits { grid-template-columns: 1fr 1fr !important; }
  .bd-about { grid-template-columns: 1fr !important; }

  /* Contact */
  .ct-grid { grid-template-columns: 1fr !important; }
  .ct-two { grid-template-columns: 1fr !important; }

  /* Case studies */
  .cs-body { grid-template-columns: 1fr !important; }
}

@media (max-width: 720px) {
  .pg-grid { grid-template-columns: 1fr !important; }
  .pg-left {
    border-right: none !important;
    border-bottom: 1px solid rgba(31, 30, 26, .16) !important;
  }
}

@media (max-width: 560px) {
  .pf-masonry { column-count: 1 !important; }
  .hero-intro { font-size: 18px !important; }
  .cs-sub { font-size: 17px !important; }
  .wordmark { font-size: 17px; }
  .home-bring > div { grid-template-columns: 1fr !important; gap: 8px !important; }
}

@media (max-width: 520px) {
  .dio-scope, .dio-found, .dio-posters, .dio-ads, .dio-rev, .dio-content, .dio-feed {
    grid-template-columns: 1fr 1fr !important;
  }
  .bd-services, .bd-cats, .bd-benefits { grid-template-columns: 1fr !important; }
  .home-teaser { grid-template-columns: 1fr 1fr !important; }
  .contact-list { grid-template-columns: 1fr !important; }
}
