/* ============================================================
   Marin Bando Digital Agency — styles
   Premium dark. Editorial typography, bronze accent, restraint.
   ============================================================ */

:root {
  --bg: #0e0d0b;            /* warm near-black */
  --bg-alt: #131210;        /* slightly elevated section */
  --panel: #181613;         /* cards / slots */
  --panel-hover: #1e1c18;
  --ink: #f0ede4;           /* primary text */
  --ink-soft: #b3afa2;      /* secondary text */
  --ink-faint: #757164;     /* tertiary text */
  --line: #26241f;          /* hairlines */
  --accent: #c8a06a;        /* bronze — eyebrows, hovers, highlights */

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1120px;
  --container-narrow: 780px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

::selection { background: var(--accent); color: var(--bg); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: var(--container-narrow); }

/* ---------- accessibility ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 18px;
  z-index: 100;
}
.skip-link:focus { left: 0; }

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

/* ---------- typography ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.12;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }

.section-title { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: 1.25rem; }

.eyebrow {
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 1.1rem;
}

.section-sub {
  color: var(--ink-soft);
  max-width: 640px;
  margin-bottom: 3rem;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  padding: 14px 28px;
  border: 1px solid var(--ink);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover {
  background: transparent;
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: #3a372f;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-small {
  padding: 9px 20px;
  font-size: 0.88rem;
  background: var(--ink);
  color: var(--bg);
}
.btn-small:hover { background: transparent; color: var(--ink); }

/* final CTA buttons inherit the same dark theme */
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.btn-icon svg { flex: 0 0 auto; }

.btn-light {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.btn-light:hover { background: transparent; color: var(--accent); }

.btn-ghost-light {
  color: var(--ink);
  border-color: #3a372f;
}
.btn-ghost-light:hover { border-color: var(--ink); }

/* ---------- navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 13, 11, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.nav-links a {
  font-size: 0.92rem;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--accent); }

/* ---------- hero ---------- */
.hero {
  padding: 130px 0 110px;
  background:
    radial-gradient(ellipse 80% 55% at 70% -10%, rgba(200, 160, 106, 0.07), transparent 65%),
    var(--bg);
}

.hero-sub {
  color: var(--ink-soft);
  font-size: 1.15rem;
  max-width: 620px;
  margin: 1.8rem 0 2.6rem;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.hero-stats li { display: flex; flex-direction: column; gap: 2px; }

.hero-stats strong {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--ink);
}

.hero-stats span {
  font-size: 0.85rem;
  color: var(--ink-faint);
}

/* ---------- logo strip ---------- */
.logos {
  padding: 90px 0;
  border-top: 1px solid var(--line);
}

.logos .section-title { margin-bottom: 3rem; }

.logo-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 2.5rem;
}

.logo-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 24px;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.logo-slot:hover { background: var(--panel-hover); border-color: #34312a; }

/* Logos render as uniform white marks on the dark theme */
.logo-slot img {
  max-height: 44px;
  max-width: min(170px, 100%);
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.65;
  transition: opacity 0.2s ease;
}
.logo-slot:hover img { opacity: 1; }

.logo-placeholder {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-align: center;
}

.logos-note {
  color: var(--ink-faint);
  font-size: 0.95rem;
  max-width: 560px;
}
.logos-note a { color: var(--ink-soft); text-underline-offset: 3px; }
.logos-note a:hover { color: var(--accent); }

/* ---------- proof / screenshots ---------- */
.proof {
  padding: 100px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.proof-card { margin: 0; }
.proof-card-wide { grid-column: 1 / -1; }

.redacted-note { color: var(--ink-faint); }

/* screenshots presented as framed exhibits */
.proof-card,
.review-card,
.testimonial-card {
  background: var(--panel);
  border: 1px solid #2b2823;
  border-radius: 8px;
  padding: 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.proof-card img,
.review-card img,
.testimonial-card img {
  border-radius: 4px;
  border: none;
  width: 100%;
  height: auto;
}

/* never upscale a screenshot past its natural size */
.proof-card img { max-width: 100%; margin: 0 auto; display: block; }
img[src*="report-summary"] { max-width: 576px; }
img[src*="report-next-steps"] { max-width: 664px; }

.proof-card figcaption,
.testimonial-card figcaption {
  padding: 12px 4px 2px;
  margin-top: 0;
}

.proof-card figcaption,
.testimonial-card figcaption {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--ink-faint);
}

/* shared placeholder look — disappears once real images are dropped in */
.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  aspect-ratio: 16 / 10;
  background: var(--panel);
  border: 1px dashed #3a372f;
  color: var(--ink-faint);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.7;
}

.img-placeholder-tall { aspect-ratio: 4 / 3; }
.img-placeholder-portrait { aspect-ratio: 4 / 5; }

.proof-card img,
.testimonial-card img,
.review-card img,
.about-photo img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
}

/* ---------- reporting ---------- */
.reporting { padding: 100px 0; }

.report-list {
  list-style: none;
  max-width: 640px;
  margin-bottom: 3rem;
  border-top: 1px solid var(--line);
}

.report-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.report-list strong { color: var(--ink); font-weight: 600; }

.report-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

/* accordion: click a report step to reveal its screenshot */
.report-acc { border-top: 1px solid var(--line); max-width: 900px; }

.report-acc-item { border-bottom: 1px solid var(--line); }

.report-acc-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 2px;
  background: none;
  border: none;
  text-align: left;
  font: inherit;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color 0.15s ease;
}
.report-acc-btn:hover { color: var(--ink); }
.report-acc-btn:hover .report-acc-label strong { color: var(--accent); }

.report-acc-label strong { color: var(--ink); font-weight: 600; transition: color 0.15s ease; }

.report-acc-icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  position: relative;
}
.report-acc-icon::before,
.report-acc-icon::after {
  content: "";
  position: absolute;
  background: var(--accent);
  top: 50%;
  left: 50%;
  transition: transform 0.25s ease;
}
.report-acc-icon::before { width: 14px; height: 1.5px; transform: translate(-50%, -50%); }
.report-acc-icon::after { width: 1.5px; height: 14px; transform: translate(-50%, -50%); }
.report-acc-btn[aria-expanded="true"] .report-acc-icon::after { transform: translate(-50%, -50%) rotate(90deg); }

.report-acc-panel { padding: 8px 0 32px; display: grid; gap: 20px; }
.report-acc-panel[hidden] { display: none; }

/* ---------- testimonial ---------- */
.testimonial { padding: 100px 0; border-top: 1px solid var(--line); }

.testimonial-card {
  margin: 0;
  max-width: 100%;
}

.review-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.review-card { margin: 0; }
.review-card .img-placeholder { aspect-ratio: 16 / 9; }

/* ---------- why boutique ---------- */
.boutique {
  padding: 100px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.boutique-copy p {
  color: var(--ink-soft);
  font-size: 1.1rem;
  max-width: 620px;
  margin-bottom: 1.2rem;
}

.boutique-list {
  list-style: none;
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.boutique-list li {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.boutique-list li:last-child { color: var(--accent); }

/* ---------- services ---------- */
.services { padding: 100px 0; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 1rem;
}

.service {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 40px 36px;
  transition: border-color 0.2s ease;
}
.service:hover { border-color: #34312a; }

.service h3 { font-size: 1.5rem; margin-bottom: 0.8rem; }
.service p { color: var(--ink-soft); }

.services-note {
  margin-top: 2rem;
  color: var(--ink-faint);
  font-size: 0.95rem;
  max-width: 520px;
}

/* ---------- client wall ---------- */
.clients {
  padding: 100px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
}

.client-wall {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.client-wall li {
  font-size: 0.87rem;
  color: var(--ink-faint);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  transition: color 0.15s ease, background 0.15s ease;
}
.client-wall li:hover { color: var(--ink); background: var(--panel); }

.client-wall li a,
.client-wall li span {
  display: block;
  padding: 15px 18px;
  color: inherit;
  text-decoration: none;
}
.client-wall li a:hover { color: var(--accent); }

/* ---------- about ---------- */
.about { padding: 110px 0; }

.about-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 64px;
  align-items: start;
}

.about-photo img {
  border-radius: 8px;
  border: 1px solid #2b2823;
}

.about-copy p { color: var(--ink-soft); margin-bottom: 1.1rem; max-width: 560px; }
.about-copy p:first-of-type { color: var(--ink); font-size: 1.15rem; }

/* ---------- final CTA ---------- */
.final-cta {
  padding: 130px 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 115%, rgba(200, 160, 106, 0.09), transparent 65%),
    var(--bg-alt);
  border-top: 1px solid var(--line);
  text-align: center;
}

.final-cta h2 {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  margin-bottom: 1.4rem;
}

.final-cta p {
  color: var(--ink-soft);
  max-width: 520px;
  margin: 0 auto 2.4rem;
}

.final-cta .hero-ctas { justify-content: center; }

/* ---------- footer ---------- */
.footer {
  background: var(--bg);
  color: var(--ink-faint);
  border-top: 1px solid var(--line);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand {
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 1.05rem;
}

.footer-tag { font-size: 0.85rem; margin-top: 4px; }

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: right;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-links svg { flex: 0 0 auto; opacity: 0.8; }
.footer-links a:hover { color: var(--accent); }

/* ---------- lightbox ---------- */
.proof-card img,
.testimonial-card img { cursor: zoom-in; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3vh 3vw;
  background: rgba(10, 9, 7, 0.94);
  cursor: zoom-out;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.lightbox[hidden] { display: none; }

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

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

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-photo { max-width: 340px; }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .hero { padding: 84px 0 72px; }
  .br-desktop { display: none; }
  .logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo-slot { padding: 18px 12px; min-width: 0; }
  .proof-grid { grid-template-columns: 1fr; }
  .report-grid { grid-template-columns: 1fr; }
  .review-row { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .footer-links { text-align: left; }
}
