/* =========================================================
   Brends Design · 2026
   Tokens → base → layout → components → sections
   ========================================================= */

:root {
  color-scheme: light dark;

  --bg: #fbf7f2;
  --surface: #ffffff;
  --surface-2: #f3ece3;
  --ink: #141110;
  --muted: #6b625c;
  --line: #e9e1d7;
  --accent: #d9342b;        /* "amor" red from the flyers */
  --accent-ink: #ffffff;
  --gold: #e2a73b;
  --wa: #1fa855;

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-script: "Caveat", cursive;

  --radius: 22px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgb(20 17 16 / .06), 0 12px 32px -12px rgb(20 17 16 / .18);
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(64px, 10vw, 128px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121010;
    --surface: #1c1918;
    --surface-2: #26211f;
    --ink: #f5efe8;
    --muted: #a89f98;
    --line: #332d2a;
    --accent: #ff5a4e;
    --accent-ink: #1a0b09;
    --gold: #f0b94d;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 16px 40px -16px rgb(0 0 0 / .6);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.05; letter-spacing: -.02em; text-wrap: balance; }
p { text-wrap: pretty; }
ul[class] { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; }
.skip-link:focus { top: 16px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--section-y); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent); }
.lead { font-size: clamp(1.0625rem, 1.2vw + .8rem, 1.25rem); color: var(--muted); max-width: 52ch; }

.section-head {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.section-head h2 { font-size: clamp(2.25rem, 4vw + 1rem, 3.75rem); margin-top: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 20px; height: 20px; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .9375rem; }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-ghost { border-color: var(--line); background: var(--surface); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { box-shadow: 0 10px 24px -10px var(--wa); }
.btn-light { background: #fff; color: #141110; }

.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.link-arrow::after { content: "→"; transition: translate .2s var(--ease); }
.link-arrow:hover::after { translate: 4px 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand span { font: 800 1.375rem/1 var(--font-display); letter-spacing: -.02em; display: grid; }
.brand small { font: 500 .6875rem/1.4 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.nav-list { display: flex; gap: 4px; }
.nav-list a { display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: .9375rem; }
.nav-list a:hover { background: var(--surface-2); }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .header-cta { display: none; }
  .nav-toggle {
    display: grid; place-items: center; width: 44px; height: 44px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 50%; cursor: pointer;
  }
  .bars, .bars::before, .bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: .25s var(--ease); }
  .bars { position: relative; }
  .bars::before, .bars::after { content: ""; position: absolute; left: 0; }
  .bars::before { top: -6px; } .bars::after { top: 6px; }
  [aria-expanded="true"] .bars { background: transparent; }
  [aria-expanded="true"] .bars::before { top: 0; rotate: 45deg; }
  [aria-expanded="true"] .bars::after { top: 0; rotate: -45deg; }

  .nav-list {
    position: absolute; inset: 72px 0 auto; flex-direction: column; gap: 0;
    padding: 8px var(--gutter) 20px; background: var(--bg); border-bottom: 1px solid var(--line);
    opacity: 0; visibility: hidden; translate: 0 -8px; transition: .25s var(--ease);
  }
  .nav-list a { padding: 14px 4px; font-size: 1.125rem; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav-toggle[aria-expanded="true"] + .nav-list { opacity: 1; visibility: visible; translate: 0 0; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(40px, 7vw, 96px) var(--section-y); }
.hero-grid { display: grid; gap: clamp(40px, 6vw, 72px); align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.1fr 1fr; } }

.hero h1 { font-size: clamp(2.6rem, 5.5vw + 1rem, 5.25rem); margin-block: 18px 22px; }
.hero h1 em { font-style: normal; color: var(--accent); position: relative; white-space: nowrap; }
.hero h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .12em;
  background: var(--gold); border-radius: 4px; z-index: -1; opacity: .7;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.proof { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.proof li { font-size: .9375rem; line-height: 1.35; }
.proof strong { font: 800 2rem/1 var(--font-display); margin-right: 6px; }
.proof span { color: var(--muted); }

.hero-collage {
  position: relative; display: grid; gap: 14px;
  grid-template-columns: 1.2fr 1fr; grid-template-rows: 1fr 1fr;
  aspect-ratio: 1 / 1; max-width: 560px; width: 100%; margin-inline: auto;
}
.tile {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--surface-2); box-shadow: var(--shadow);
  display: flex; align-items: end; padding: 16px;
}
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile span {
  position: relative; z-index: 1; font-weight: 600; font-size: .875rem;
  background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(8px);
  padding: 6px 12px; border-radius: 999px;
}
.t1 { grid-row: span 2; background: linear-gradient(160deg, #f6c9a8, #d9342b 120%); }
.t2 { background: linear-gradient(160deg, #1c1918, #4a3f3a); }
.t3 { background: linear-gradient(160deg, #f6dfa5, #e2a73b); }
.stamp {
  position: absolute; left: -24px; bottom: 14%;
  width: 150px; height: auto; aspect-ratio: 1; border-radius: 50%;
  rotate: -8deg; box-shadow: var(--shadow);
}
@media (max-width: 640px) { .stamp { left: 8px; width: 104px; } }

/* ---------- Promos (Facebook embed) ---------- */
.promos { background: var(--surface); border-block: 1px solid var(--line); }
.promos .section-head { justify-content: center; text-align: center; }
.fb-embed {
  width: min(100%, 500px); margin-inline: auto;
  border-radius: var(--radius); overflow: hidden;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.fb-embed iframe { display: block; border: 0; max-width: 100%; margin-inline: auto; }
.fallback { padding: 24px; text-align: center; }

/* ---------- Services (bento) ---------- */
.bento { display: grid; gap: 20px; }
@media (min-width: 900px) {
  .bento { grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(260px, auto); }
  .s-photo { grid-column: span 4; grid-row: span 2; }
  .s-design { grid-column: span 2; }
  .s-gifts { grid-column: span 2; }
  .s-mission { grid-column: span 6; }
}
.service {
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  overflow: hidden; display: flex; flex-direction: column;
}
.service-body { padding: clamp(22px, 3vw, 32px); display: grid; gap: 12px; align-content: start; }
.service h3 { font-size: clamp(1.5rem, 1.5vw + 1rem, 2rem); }
.service p { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: .8125rem; font-weight: 500; padding: 5px 12px; border-radius: 999px; background: var(--surface-2); }
.service-art {
  flex: 1; min-height: 240px; position: relative;
  background: radial-gradient(80% 80% at 80% 20%, #f6c9a8, transparent 60%), linear-gradient(160deg, #e2a73b, #d9342b);
}
.service-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.s-design { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.s-design p { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.s-design .chips li { background: color-mix(in srgb, var(--bg) 12%, transparent); }
.s-mission {
  flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 40px;
  padding: clamp(24px, 4vw, 40px); background: var(--gold); color: #141110; border: 0;
}
.s-mission p { color: inherit; }
.s-mission p:last-child { font: 600 clamp(1.25rem, 1.5vw + .8rem, 1.75rem)/1.25 var(--font-display); max-width: 30ch; color: inherit; }
.big-num { font: 800 clamp(4rem, 9vw, 7.5rem)/.9 var(--font-display); letter-spacing: -.04em; }
.big-num span { color: var(--accent); }

/* ---------- Entrepreneurs band ---------- */
.band { background: var(--accent); color: #fff; }
.band-inner { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .band-inner { grid-template-columns: 1.1fr 1fr; gap: 64px; } }
.band h2 { font-size: clamp(2.25rem, 4.5vw + 1rem, 4.25rem); }
.band p { font-size: 1.125rem; opacity: .92; }
.ticks { display: grid; gap: 8px; margin-block: 20px 28px; font-weight: 600; }
.ticks li::before { content: "✓"; display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 10px; border-radius: 50%; background: #fff; color: var(--accent); font-size: .8rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.contact h2 { font-size: clamp(2.25rem, 4vw + 1rem, 3.5rem); margin-block: 8px 16px; }
.contact .btn { margin-top: 28px; }
.contact-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.contact-list div { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.contact-list dt { font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.contact-list dd { font-size: 1.0625rem; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Footer ---------- */
.site-footer { padding-block: 40px 96px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9375rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.script { font: 600 1.75rem/1 var(--font-script); color: var(--ink); }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 40;
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wa); color: #fff; box-shadow: 0 12px 28px -8px rgb(0 0 0 / .4);
  transition: transform .2s var(--ease);
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Scroll reveal (progressive enhancement) ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .section-head, .service, .band-inner > *, .contact-grid > * {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
  }
}
@keyframes reveal { from { opacity: 0; translate: 0 32px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
