/* ============================================================
   BREWWW MARKETING SITE — style.css
   Builds on top of colors_and_type.css (imported in HTML).
   All colour values use design system tokens — no raw hex.
   ============================================================ */

/* ---------- BASE ---------- */

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--bg-elev-1);
}

img, svg {
  display: block;
  max-width: 100%;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ---------- CUSTOM PROPERTIES ---------- */

:root {
  --nav-h: 64px;
  --max-w: 1200px;
  --section-pad: clamp(64px, 8vw, 120px);
  --gutter: clamp(16px, 4vw, 48px);
  --accent-pink: var(--brewww-bubblegum);   /* #FD87B4 */
  --accent-pink-dk: var(--brewww-pink-dk);  /* #E66395 */
}

/* ---------- LAYOUT HELPERS ---------- */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: var(--section-pad) 0;
}

.section--linen {
  background: var(--brewww-linen);
}

.section--dark {
  background: var(--brewww-carbon);
  color: var(--brewww-linen);
}

.section--pink {
  background: var(--accent-pink);
  color: var(--brewww-carbon);
}

.section-label {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--fs-12);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-pink);
  margin-bottom: var(--sp-4);
}

.section--dark .section-label {
  color: var(--brewww-linen);
  opacity: 0.6;
}

.section--pink .section-label {
  color: var(--brewww-carbon);
  opacity: 0.65;
}

.section-head {
  margin-bottom: var(--sp-8);
}

.section-head h2 {
  margin-top: var(--sp-3);
}

/* ---------- BUTTONS ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--fs-15);
  line-height: 1;
  padding: 14px 24px;
  border-radius: var(--radius-3);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

/* Pink primary */
.btn-primary {
  background: var(--accent-pink);
  color: var(--brewww-carbon);
}
.btn-primary:hover {
  background: var(--accent-pink-dk);
  color: var(--brewww-carbon);
}

/* Carbon/dark */
.btn-dark {
  background: var(--brewww-carbon);
  color: var(--brewww-linen);
}
.btn-dark:hover {
  background: var(--brewww-carbon-2);
  color: var(--brewww-linen);
}

/* Outline (on light bg) */
.btn-outline {
  background: transparent;
  color: var(--brewww-carbon);
  border: 1.5px solid var(--brewww-carbon);
}
.btn-outline:hover {
  background: var(--brewww-carbon);
  color: var(--brewww-linen);
}

/* Outline (on dark bg) */
.btn-outline-light {
  background: transparent;
  color: var(--brewww-linen);
  border: 1.5px solid rgba(243, 240, 232, 0.4);
}
.btn-outline-light:hover {
  background: rgba(243, 240, 232, 0.1);
  color: var(--brewww-linen);
}

/* Small variant */
.btn-sm {
  font-size: var(--fs-13);
  padding: 10px 18px;
}

/* Focus ring */
.btn:focus-visible {
  outline: 2px solid var(--accent-pink);
  outline-offset: 2px;
}

/* ---------- SCROLL REVEAL ---------- */

.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* stagger children */
.reveal-grid > * {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}

.reveal-grid.is-visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0ms; }
.reveal-grid.is-visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 60ms; }
.reveal-grid.is-visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 120ms; }
.reveal-grid.is-visible > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 180ms; }
.reveal-grid.is-visible > *:nth-child(5) { opacity: 1; transform: none; transition-delay: 240ms; }
.reveal-grid.is-visible > *:nth-child(6) { opacity: 1; transform: none; transition-delay: 300ms; }
.reveal-grid.is-visible > *:nth-child(7) { opacity: 1; transform: none; transition-delay: 360ms; }


/* ============================================================
   NAVIGATION
   ============================================================ */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
  display: flex;
  align-items: center;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--fs-24);
  color: var(--brewww-carbon);
  text-decoration: none;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.nav-logo:hover {
  color: var(--brewww-carbon);
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-7);
}

.nav-links a {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--fs-14);
  color: var(--brewww-carbon);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}

.nav-links a:hover {
  color: var(--accent-pink);
  text-decoration: none;
}

.nav-cta {
  flex-shrink: 0;
}

/* Hamburger button */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin: -8px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--brewww-carbon);
  border-radius: 1px;
  transition: transform var(--dur-med) var(--ease-out),
              opacity var(--dur-fast) var(--ease-out);
}

.nav-hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--brewww-linen);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-7);
  opacity: 0;
  transition: opacity var(--dur-med) var(--ease-out);
}

.nav-overlay.is-open {
  opacity: 1;
}

.nav-overlay .nav-links {
  flex-direction: column;
  gap: var(--sp-6);
}

.nav-overlay .nav-links a {
  font-size: var(--fs-32);
  font-weight: 800;
  letter-spacing: -0.01em;
}

@media (max-width: 768px) {
  .nav-links,
  .nav-cta {
    display: none;
  }
  .nav-hamburger {
    display: flex;
  }
  .nav-overlay {
    display: flex;
  }
}


/* ============================================================
   HERO
   ============================================================ */

.hero {
  background: var(--brewww-carbon);
  color: var(--brewww-linen);
  padding: clamp(80px, 10vw, 140px) 0 clamp(80px, 10vw, 140px);
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  max-width: 860px;
}

.hero h1 {
  color: var(--brewww-linen);
  margin-bottom: var(--sp-6);
}

.hero-sub {
  font-size: var(--fs-18);
  line-height: 1.6;
  color: var(--brewww-paper-70);
  max-width: 640px;
  margin-bottom: var(--sp-7);
}

.hero-sub p + p {
  margin-top: var(--sp-4);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-4);
}

.hero-link {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--fs-15);
  color: var(--brewww-paper-70);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}

.hero-link:hover {
  color: var(--brewww-linen);
  text-decoration: none;
}


/* ============================================================
   SOCIAL PROOF BAR
   ============================================================ */

.proof-bar {
  background: var(--brewww-linen);
  padding: var(--sp-8) 0;
  border-bottom: 1px solid var(--hairline);
}

.proof-bar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.proof-tagline {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--fs-14);
  color: var(--fg3);
  text-align: center;
  margin-bottom: var(--sp-6);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.proof-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--sp-5);
}

.proof-logo-placeholder {
  width: 120px;
  height: 40px;
  background: var(--brewww-linen-2);
  border: 1px dashed var(--brewww-linen-3);
  border-radius: var(--radius-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-12);
  color: var(--fg-muted);
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: 0.02em;
}


/* ============================================================
   PROBLEM
   ============================================================ */

.problem {
  background: var(--bg-elev-1);
}

.problem-body {
  max-width: 680px;
}

.problem-body p + p {
  margin-top: var(--sp-5);
}


/* ============================================================
   SERVICES
   ============================================================ */

.services {
  background: var(--brewww-linen);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
  margin-bottom: var(--sp-7);
}

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

.service-card {
  background: var(--bg-elev-1);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-3);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  transition: box-shadow var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
  text-decoration: none;
  color: inherit;
}

.service-card:hover {
  box-shadow: var(--shadow-2);
  border-color: var(--border);
  text-decoration: none;
  color: inherit;
}

.service-icon {
  font-size: 32px;
  line-height: 1;
}

.service-name {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: var(--fs-18);
  letter-spacing: -0.01em;
  color: var(--fg1);
}

.service-desc {
  font-size: var(--fs-15);
  line-height: 1.55;
  color: var(--fg2);
  flex: 1;
}

.service-more {
  font-size: var(--fs-14);
  font-weight: 600;
  color: var(--accent-pink);
  text-decoration: none;
  margin-top: var(--sp-1);
}

.service-more:hover {
  color: var(--accent-pink-dk);
  text-decoration: none;
}

/* Services spotlight box */
.services-spotlight {
  background: var(--brewww-carbon);
  border-radius: var(--radius-3);
  padding: clamp(40px, 5vw, 64px);
  color: var(--brewww-linen);
}

.services-spotlight h2 {
  color: var(--brewww-linen);
  font-size: clamp(28px, 3vw, 44px);
  margin-bottom: var(--sp-6);
  max-width: 700px;
}

.spotlight-items {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  margin-bottom: var(--sp-7);
}

.spotlight-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  font-size: var(--fs-16);
  line-height: 1.55;
  color: var(--brewww-paper-70);
}

.spotlight-item-icon {
  font-size: 22px;
  flex-shrink: 0;
  margin-top: 1px;
}

.spotlight-item strong {
  color: var(--brewww-linen);
  font-weight: 700;
}


/* ============================================================
   HOW IT WORKS
   ============================================================ */

.process {
  background: var(--bg-elev-1);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
  margin-bottom: var(--sp-8);
}

@media (max-width: 768px) {
  .process-steps {
    grid-template-columns: 1fr;
    gap: var(--sp-7);
  }
}

.process-step {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.process-step-n {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--fs-48);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent-pink);
}

.process-step h3 {
  font-size: var(--fs-20);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--fg1);
}

.process-step p {
  color: var(--fg2);
}

.process-cta {
  text-align: center;
}


/* ============================================================
   RESULTS / CASE STUDIES
   ============================================================ */

.results {
  background: var(--brewww-linen);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}

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

.result-card {
  background: var(--bg-elev-1);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-3);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.result-card--placeholder {
  border-style: dashed;
  background: transparent;
  opacity: 0.5;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  text-align: center;
}

.result-metric {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--fs-48);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent-pink);
}

.result-body {
  font-size: var(--fs-16);
  line-height: 1.6;
  color: var(--fg2);
  flex: 1;
}

.result-tag {
  font-size: var(--fs-12);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.placeholder-label {
  font-size: var(--fs-14);
  color: var(--fg-muted);
  font-style: italic;
}


/* ============================================================
   STAKES (dark CTA section)
   ============================================================ */

.stakes {
  background: var(--brewww-carbon);
  color: var(--brewww-linen);
}

.stakes-inner {
  max-width: 760px;
}

.stakes h2 {
  color: var(--brewww-linen);
  margin-bottom: var(--sp-6);
}

.stakes-body {
  font-size: var(--fs-18);
  line-height: 1.65;
  color: var(--brewww-paper-70);
  margin-bottom: var(--sp-7);
}

.stakes-body p + p {
  margin-top: var(--sp-5);
}


/* ============================================================
   TESTIMONIALS
   ============================================================ */

.testimonials {
  background: var(--bg-elev-1);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}

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

.testimonial-card {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-3);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.testimonial-quote {
  font-size: var(--fs-16);
  line-height: 1.65;
  color: var(--fg2);
  font-style: italic;
  flex: 1;
}

.testimonial-quote::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: var(--fs-40);
  color: var(--accent-pink);
  line-height: 0.6;
  display: block;
  margin-bottom: var(--sp-3);
}

.testimonial-attr {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.testimonial-name {
  font-weight: 700;
  font-size: var(--fs-14);
  color: var(--fg1);
}

.testimonial-biz {
  font-size: var(--fs-13);
  color: var(--fg3);
}


/* ============================================================
   FAQ
   ============================================================ */

.faq {
  background: var(--brewww-linen);
}

.faq-list {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  padding: var(--sp-5) 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--fs-18);
  color: var(--fg1);
  user-select: none;
  transition: color var(--dur-fast) var(--ease-out);
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { display: none; }

.faq-item summary:hover {
  color: var(--accent-pink);
}

.faq-item summary::after {
  content: '+';
  font-size: var(--fs-24);
  font-weight: 300;
  color: var(--accent-pink);
  flex-shrink: 0;
  transition: transform var(--dur-fast) var(--ease-out);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 0 var(--sp-6);
  font-size: var(--fs-16);
  line-height: 1.65;
  color: var(--fg2);
  max-width: 640px;
}


/* ============================================================
   ABOUT TEASER
   ============================================================ */

.about {
  background: var(--bg-elev-1);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-10);
  align-items: start;
}

@media (max-width: 768px) {
  .about-inner {
    grid-template-columns: 1fr;
    gap: var(--sp-7);
  }
}

.about-copy p + p {
  margin-top: var(--sp-5);
}

.about-team {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.about-team-label {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--fs-12);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg3);
}

.team-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}

.team-photo-placeholder {
  aspect-ratio: 1;
  background: var(--brewww-linen);
  border: 1px dashed var(--brewww-linen-3);
  border-radius: var(--radius-3);
  display: flex;
  align-items: flex-end;
  padding: var(--sp-2);
}

.team-photo-placeholder span {
  font-size: var(--fs-12);
  color: var(--fg-muted);
  font-weight: 500;
}

.team-names {
  font-size: var(--fs-14);
  color: var(--fg3);
  line-height: 1.6;
}


/* ============================================================
   FINAL CTA
   ============================================================ */

.final-cta {
  background: var(--accent-pink);
  padding: clamp(80px, 10vw, 140px) 0;
}

.final-cta-inner {
  max-width: 720px;
}

.final-cta h2 {
  color: var(--brewww-carbon);
  margin-bottom: var(--sp-6);
}

.final-cta-body {
  font-size: var(--fs-18);
  line-height: 1.65;
  color: var(--brewww-carbon);
  opacity: 0.8;
  margin-bottom: var(--sp-7);
}

.final-cta-body p + p {
  margin-top: var(--sp-4);
}

.final-cta-foot {
  margin-top: var(--sp-4);
  font-size: var(--fs-13);
  color: var(--brewww-carbon);
  opacity: 0.6;
  font-weight: 500;
}


/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: var(--brewww-carbon);
  color: var(--brewww-linen);
  padding: var(--sp-10) 0 var(--sp-7);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-8);
  margin-bottom: var(--sp-9);
}

@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-6);
  }
}

@media (max-width: 540px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}

.footer-brand-logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--fs-28);
  color: var(--brewww-linen);
  letter-spacing: -0.03em;
  text-decoration: none;
  display: inline-block;
  margin-bottom: var(--sp-4);
}

.footer-tagline {
  font-size: var(--fs-14);
  line-height: 1.6;
  color: var(--brewww-paper-55);
  margin-bottom: var(--sp-5);
  max-width: 280px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.footer-contact a {
  font-size: var(--fs-14);
  color: var(--brewww-paper-70);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}

.footer-contact a:hover {
  color: var(--accent-pink);
  text-decoration: none;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--fs-13);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brewww-paper-55);
  margin-bottom: var(--sp-4);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer-col a {
  font-size: var(--fs-14);
  color: var(--brewww-paper-70);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}

.footer-col a:hover {
  color: var(--brewww-linen);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid var(--brewww-paper-15);
  padding-top: var(--sp-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.footer-legal {
  font-size: var(--fs-13);
  color: var(--brewww-paper-55);
}

.footer-social {
  display: flex;
  gap: var(--sp-4);
  margin-top: var(--sp-5);
}

.footer-social a {
  font-size: var(--fs-13);
  color: var(--brewww-paper-55);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color var(--dur-fast) var(--ease-out);
}

.footer-social a:hover {
  color: var(--accent-pink);
  text-decoration: none;
}


/* ============================================================
   FOCUS & ACCESSIBILITY
   ============================================================ */

:focus-visible {
  outline: 2px solid var(--accent-pink);
  outline-offset: 2px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-grid > * {
    opacity: 1;
    transform: none;
  }
  html {
    scroll-behavior: auto;
  }
}
