/* ============================================================
   ThinkFlour — Brochure website styles
   Builds on colors_and_type.css tokens.
   ============================================================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--tf-paper);
  color: var(--tf-ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(224,160,32,.25); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }

/* ---------- Top utility strip ---------- */
.utility {
  background: var(--tf-charcoal);
  color: #EBE6D8;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.02em;
}
.utility .wrap { display: flex; justify-content: center; gap: 38px; padding-top: 9px; padding-bottom: 9px; }
.utility span { display: inline-flex; align-items: center; gap: 7px; opacity: .9; }
.utility svg { width: 14px; height: 14px; color: #C9D6AE; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,248,242,0.82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--tf-line);
}
.site-header .wrap { display: flex; align-items: center; height: 76px; gap: 30px; }
.site-header .logo { height: 30px; }
.nav { display: flex; gap: 30px; margin-left: 14px; }
.nav a {
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  color: var(--tf-ink-2); padding: 6px 0; position: relative; transition: color .2s ease;
}
.nav a:hover { color: var(--tf-gold-deep); }
.nav a.active { color: var(--tf-ink); }
.nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--tf-gold); border-radius: 2px;
}
.header-spacer { flex: 1; }

/* ---------- Mobile menu ---------- */
.menu-btn { display: none; background: var(--tf-paper-3); border: 1px solid var(--tf-line); width: 46px; height: 46px; border-radius: 13px; align-items: center; justify-content: center; cursor: pointer; }
.menu-btn svg { width: 23px; height: 23px; color: var(--tf-ink); }
.mobile-nav { display: none; flex-direction: column; padding: 6px 0 12px; border-top: 1px solid var(--tf-line); }
.mobile-nav.open { display: flex; }
.mobile-nav a { font-family: var(--font-display); font-weight: 600; font-size: 16.5px; color: var(--tf-ink); padding: 14px 32px; }
.mobile-nav a:active, .mobile-nav a:hover { background: var(--tf-paper-2); color: var(--tf-gold-deep); }
.mobile-nav .btn { margin: 10px 32px 0; justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  border-radius: 999px; padding: 13px 28px; cursor: pointer; border: none;
  display: inline-flex; align-items: center; gap: 9px;
  transition: transform .2s cubic-bezier(.22,.61,.36,1), filter .2s ease, background .2s ease, color .2s ease;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--tf-gold); color: #fff; box-shadow: var(--shadow-gold); }
.btn-primary:hover { filter: brightness(.95); transform: translateY(-1px); }
.btn-primary:active { transform: scale(.98); }
.btn-dark { background: var(--tf-grey); color: #fff; }
.btn-dark:hover { background: var(--tf-ink); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--tf-ink); border: 1.5px solid var(--tf-line-2); }
.btn-outline:hover { border-color: var(--tf-gold); color: var(--tf-gold-deep); }
.btn-ghost { background: transparent; color: var(--tf-gold-deep); padding: 13px 6px; }
.btn-ghost:hover { gap: 13px; }

/* ---------- Eyebrow / headings ---------- */
.eyebrow {
  font-family: var(--font-display); font-weight: 700; font-size: 12.5px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--tf-gold-deep);
}
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--tf-ink); margin: 0; letter-spacing: -0.02em; }
h1 { font-weight: 800; font-size: clamp(40px, 5.4vw, 62px); line-height: 1.04; }
h2 { font-weight: 800; font-size: clamp(30px, 3.6vw, 42px); line-height: 1.1; }
h3 { font-weight: 700; font-size: 22px; line-height: 1.25; }
.lead { font-size: 19px; line-height: 1.65; color: var(--tf-ink-2); }
p { line-height: 1.7; color: var(--tf-ink-2); }
.serif { font-family: var(--font-serif); letter-spacing: 0; }

/* ---------- Page header (interior pages) ---------- */
.page-head { background: linear-gradient(180deg, var(--tf-paper-2), var(--tf-paper)); border-bottom: 1px solid var(--tf-line); }
.page-head .wrap { padding-top: 64px; padding-bottom: 64px; }
.crumb { font-family: var(--font-body); font-size: 13.5px; color: var(--tf-muted); margin-bottom: 16px; }
.crumb a:hover { color: var(--tf-gold-deep); }

/* ---------- Product card (brochure — informational) ---------- */
.range-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.pcard {
  background: var(--tf-white); border: 1px solid var(--tf-line); border-radius: 18px;
  overflow: hidden; transition: transform .24s cubic-bezier(.22,.61,.36,1), box-shadow .24s ease;
  box-shadow: var(--shadow-xs);
}
.pcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.pcard .media { aspect-ratio: 1/1; overflow: hidden; }
.pcard .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.pcard:hover .media img { transform: scale(1.04); }
.pcard .body { padding: 20px 22px 24px; }
.pcard .name { font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--tf-ink); }
.pcard .latin { font-family: var(--font-body); font-size: 13.5px; color: var(--tf-muted); margin-top: 2px; }
.pcard .benefit { font-family: var(--font-body); font-weight: 600; font-size: 14px; margin-top: 12px; display: inline-flex; align-items: center; gap: 7px; }
.pcard .benefit svg { width: 16px; height: 16px; }

/* ---------- Feature / value cards ---------- */
.feature {
  background: var(--tf-white); border: 1px solid var(--tf-line); border-radius: 18px; padding: 30px 28px;
}
.feature .ic {
  width: 50px; height: 50px; border-radius: 14px; background: var(--tf-paper-2);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.feature .ic svg { width: 23px; height: 23px; color: var(--tf-gold-deep); }
.feature h3 { font-size: 18.5px; margin-bottom: 8px; }
.feature p { font-size: 15px; color: var(--tf-muted); margin: 0; line-height: 1.6; }

/* ---------- Footer ---------- */
.site-footer { background: var(--tf-charcoal); color: #E5E0D2; margin-top: 0; }
.site-footer .grid { display: grid; grid-template-columns: 1.7fr 1fr 1.4fr; gap: 48px; padding-top: 64px; padding-bottom: 40px; }
.site-footer .logo { height: 30px; margin-bottom: 18px; }
.site-footer .tag { font-size: 14.5px; line-height: 1.7; color: rgba(229,224,210,.82); max-width: 320px; }
.site-footer .ig {
  margin-top: 22px; width: 42px; height: 42px; border-radius: 11px; background: rgba(255,255,255,.08);
  display: inline-flex; align-items: center; justify-content: center; transition: background .2s ease;
}
.site-footer .ig:hover { background: var(--tf-gold); }
.site-footer .ig svg { width: 19px; height: 19px; color: #fff; }
.site-footer .col-h { font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tf-gold); margin-bottom: 18px; }
.site-footer .col a, .site-footer .col p { display: block; font-size: 14.5px; color: rgba(229,224,210,.82); margin: 0 0 12px; line-height: 1.6; }
.site-footer .col a:hover { color: #fff; }
.site-footer .mail { color: var(--tf-gold) !important; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.1); }
.site-footer .legal .wrap { display: flex; justify-content: space-between; padding-top: 18px; padding-bottom: 22px; font-size: 12.5px; color: rgba(229,224,210,.6); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.22,.61,.36,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .range-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .site-footer .grid { grid-template-columns: 1fr; gap: 32px; }
  .nav { display: none; }
  .site-header .header-spacer { flex: 1; }
  .site-header > .wrap > .btn-dark { display: none; }
  .menu-btn { display: flex; }
  .section { padding: 60px 0; }
}
@media (max-width: 600px) {
  .range-grid { grid-template-columns: 1fr; }
  .utility .wrap { gap: 14px; font-size: 11px; padding-left: 16px; padding-right: 16px; }
  .utility span:nth-child(2) { display: none; }
  .wrap { padding: 0 20px; }
  .section { padding: 48px 0; }
  .site-header .wrap { gap: 14px; }
}
