/* ============================================================
   Bandorini — Shared Stylesheet
   ============================================================ */

/* Design tokens */
:root {
  --bg: #ffffff;
  --bg-2: #f5f7fa;
  --panel: #ffffff;
  --line: #e6e9ee;
  --ink: #14161c;
  --ink-soft: #545a66;
  --ink-faint: #8b919e;
  --indigo: #6366F1;
  --indigo-d: #4F46E5;
  --emerald: #059669;
  --pink: #EC4899;
  --pink-d: #DB2777;
  --yellow: #EAB308;
  --accent: var(--indigo-d);
  --accent-soft: rgba(99,102,241,0.10);
  --sans: "Hanken Grotesk", system-ui, sans-serif;
  --maxw: 1180px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

/* ── Nav ── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
header::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--indigo) 0 25%, var(--pink) 25% 50%, var(--yellow) 50% 75%, var(--emerald) 75% 100%);
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 160px; width: auto; display: block; }

.navlinks { display: flex; gap: 30px; align-items: center; }
.navlinks a { font-size: 14.5px; font-weight: 500; color: var(--ink-soft); transition: color .2s; white-space: nowrap; }
.navlinks a:hover, .navlinks a.active { color: var(--ink); }

.nav-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* Hamburger button */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  width: 36px;
  height: 36px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
  transform-origin: center;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile-only CTA inside nav overlay — hidden at desktop */
.mob-cta { display: none; }

/* ── Buttons ── */
.btn {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid transparent;
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #3730A3; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(99,102,241,0.28); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-white { background: #fff; color: var(--accent); }
.btn-white:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,.15); }
.btn-outline { border: 2px solid var(--accent); color: var(--accent); background: transparent; font-size: 15px; padding: 13px 26px; }
.btn-outline:hover { background: var(--accent); color: #fff; }

/* ── Common typography ── */
.kicker {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

/* ── CTA Band (shared across pages) ── */
.cta-band { padding: 88px 0; }
.cta-inner {
  background: var(--accent);
  border-radius: 24px;
  padding: 68px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-inner::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--indigo) 0 25%, var(--pink) 25% 50%, var(--yellow) 50% 75%, var(--emerald) 75% 100%);
}
.cta-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(500px 280px at 80% -10%, rgba(255,255,255,.15), transparent 70%);
}
.cta-inner h2 { color: #fff; margin-bottom: 14px; position: relative; }
.cta-inner p { color: rgba(255,255,255,.82); font-size: 17px; max-width: 620px; margin: 0 auto 30px; position: relative; line-height: 1.65; }
.cta-inner .btn-white { font-size: 15px; padding: 14px 28px; position: relative; }

/* ── Footer ── */
footer { border-top: 1px solid var(--line); background: #fff; padding: 60px 0 38px; }
.foot-top { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid var(--line); }
.foot-brand .brand { display: inline-flex; margin-bottom: 4px; }
.foot-brand p { color: var(--ink-soft); font-size: 14.5px; max-width: 280px; margin-top: 12px; }
.foot-col h4 { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 16px; }
.foot-col a { display: block; color: var(--ink-soft); font-size: 14.5px; margin-bottom: 10px; transition: color .2s; }
.foot-col a:hover { color: var(--accent); }
.foot-col span { display: block; color: var(--ink-soft); font-size: 14.5px; margin-bottom: 10px; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; flex-wrap: wrap; gap: 12px; }
.foot-bottom span { font-size: 13px; color: var(--ink-faint); }

/* ── Scroll reveal ── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ── Page hero (Services / Our Work / About) ── */
.page-hero { padding: 80px 0 64px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-weight: 800; font-size: clamp(36px, 5.5vw, 64px); line-height: 1.04; letter-spacing: -0.03em; margin-bottom: 20px; text-wrap: balance; }
.page-hero .lede { font-size: clamp(17px, 2vw, 20px); color: var(--ink-soft); max-width: 640px; }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 960px) {
  /* Show hamburger */
  .hamburger { display: flex; }

  /* Hide desktop nav CTA, show it only in overlay */
  .nav-cta { display: none; }

  /* Mobile nav — dropdown below header (avoids iOS position:fixed + backdrop-filter bug) */
  .navlinks {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(255,255,255,0.98);
    border-bottom: 2px solid var(--line);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity .2s ease, transform .2s ease;
    z-index: 99;
  }
  .navlinks.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .navlinks a {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: var(--ink) !important;
    padding: 16px 24px !important;
    border-bottom: 1px solid var(--line) !important;
    width: 100% !important;
    text-align: left !important;
  }
  .navlinks a:hover { color: var(--accent) !important; background: var(--bg-2); }
  .navlinks .mob-cta {
    display: block !important;
    margin: 16px 24px 20px !important;
    width: calc(100% - 48px) !important;
    text-align: center !important;
    background: var(--accent) !important;
    color: #fff !important;
    padding: 13px 24px !important;
    border-radius: 999px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    border-bottom: none !important;
  }
  .navlinks .mob-cta:hover { background: #3730A3 !important; }

  /* Footer */
  .foot-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  .foot-top { grid-template-columns: 1fr; }
  .cta-inner { padding: 48px 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .hamburger span { transition: none; }
  .navlinks { transition: none; }
}
