/* Aka Usagi — shared stylesheet
   Colours & type per docs/01_Brand_Guidelines.md */

:root {
  --red: #A61E22;
  --cream: #F8F3EB;
  --charcoal: #222222;
  --grey: #666666;
  --gold: #C69A39;
  --white: #FFFFFF;

  --font-heading: "Playfair Display", serif;
  --font-body: "Inter", sans-serif;

  --max-width: 1180px;
  --radius: 10px;
}

* { box-sizing: border-box; }

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--grey);
  background: var(--white);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--charcoal);
  margin: 0 0 0.5em;
  line-height: 1.2;
}

a { color: inherit; text-decoration: none; }

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

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

.section { padding: 88px 0; }
.section-cream { background: var(--cream); }

.eyebrow {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-heading {
  text-align: center;
  color: var(--red);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-subheading {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 48px;
  color: var(--grey);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}
.btn-primary:hover { background: #8a1a1d; }

.btn-outline {
  background: transparent;
  border-color: var(--red);
  color: var(--red);
}
.btn-outline:hover { background: var(--red); color: var(--white); }

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.nav-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--charcoal);
  letter-spacing: 0.02em;
}
.brand img { height: 36px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-links a {
  color: var(--charcoal);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--red);
  border-bottom-color: var(--red);
}

.nav-cta { display: none; }
@media (min-width: 900px) { .nav-cta { display: inline-flex; } }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--charcoal);
  cursor: pointer;
}

@media (max-width: 899px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; padding: 10px 0; border-bottom: 1px solid rgba(0,0,0,0.05); }
  .nav-toggle { display: block; }
}

/* Hero */
.hero {
  background: var(--cream);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  padding: 64px 0;
}
@media (min-width: 960px) {
  .hero-inner { grid-template-columns: 1fr 1fr; padding: 88px 0; }
}

.hero h1 {
  font-size: 2.6rem;
  margin-bottom: 20px;
}
@media (min-width: 960px) { .hero h1 { font-size: 3.1rem; } }

.hero h1 .accent { color: var(--red); }

.hero p {
  margin: 0 0 16px;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 20px;
}

.hero-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--charcoal);
}
.stars { color: var(--gold); letter-spacing: 2px; }

.hero-image {
  position: relative;
}
.hero-image::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(
    to right,
    var(--cream) 0%,
    rgba(248, 243, 235, 0.92) 6%,
    rgba(248, 243, 235, 0.72) 12%,
    rgba(248, 243, 235, 0.45) 20%,
    rgba(248, 243, 235, 0.2) 28%,
    rgba(248, 243, 235, 0) 38%
  );
  pointer-events: none;
  z-index: 1;
}
.hero-image img {
  border-radius: var(--radius);
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 58% 28%;
}

/* Trusted by */
.trusted-by {
  padding: 40px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.trusted-by-label {
  text-align: center;
  color: var(--red);
  font-weight: 700;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
}
.trusted-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
}
.trusted-logos .logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.trusted-logos img {
  height: 68px;
  width: 68px;
  object-fit: cover;
  border-radius: 10px;
}
.trusted-logos span {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--charcoal);
  text-transform: uppercase;
  max-width: 84px;
  text-align: center;
  line-height: 1.3;
}

/* Cards grid — Why Partner */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 700px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards-grid { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.card img.icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 18px;
  object-fit: contain;
}
.card h3 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.card p { font-size: 0.9rem; margin: 0; }

/* Real installations */
.marquee {
  overflow: hidden;
  margin-bottom: 40px;
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}
.marquee-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: marquee-scroll 28s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-img {
  flex: 0 0 auto;
  width: clamp(130px, 16vw, 190px);
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 8px;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .marquee { overflow-x: auto; }
}
.center { text-align: center; }

/* How it works */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(5, 1fr); }
}
.step { text-align: center; position: relative; }
.step-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  position: relative;
  background: var(--white);
}
.step-icon img { width: 26px; height: 26px; object-fit: contain; }
.step-icon--filled { border-color: transparent; }
.step-icon--filled img { width: 46px; height: 46px; }
.step-number {
  position: absolute;
  top: -10px;
  right: -6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step h3 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.step p { font-size: 0.85rem; margin: 0; }
.step-arrow {
  display: none;
  color: var(--red);
  font-size: 1.3rem;
  text-align: center;
}
@media (min-width: 900px) {
  .steps { position: relative; }
}

/* Machine specs */
.specs-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 900px) { .specs-wrap { grid-template-columns: 0.8fr 1fr; } }

.specs-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
}
.specs-diagram img {
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: var(--radius);
}
.specs-heading { color: var(--red); font-family: var(--font-body); font-weight: 700; text-transform: uppercase; font-size: 1.15rem; margin-bottom: 6px; letter-spacing: 0.02em;}
.specs-label { font-size: 0.8rem; color: var(--grey); margin-bottom: 8px; }
.specs-dims { font-size: 1.3rem; font-weight: 700; color: var(--charcoal); margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid rgba(0,0,0,0.1); }
.specs-dims .x { color: var(--gold); margin: 0 8px; font-weight: 400; }

.checklist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 24px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
  color: var(--charcoal);
  font-weight: 500;
}
.checklist li { display: flex; align-items: center; gap: 10px; }
.checklist li::before {
  content: "";
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23C69A39" stroke-width="3"><path d="M5 13l4 4L19 7"/></svg>') center/60% no-repeat;
}

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 12px;
  max-width: 940px;
  margin: 0 auto;
}
@media (min-width: 780px) { .faq-grid { grid-template-columns: repeat(2, 1fr); } }

.faq-item {
  background: var(--white);
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.08);
  overflow: hidden;
  align-self: start;
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 18px 20px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--charcoal);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  gap: 12px;
}
.faq-question .plus {
  color: var(--red);
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}
.faq-item.open .plus { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease;
  padding: 0 20px;
}
.faq-item.open .faq-answer {
  max-height: 220px;
  padding: 0 20px 18px;
}
.faq-answer p { margin: 0; font-size: 0.88rem; }

/* Final CTA */
.final-cta {
  background: var(--cream);
}
.final-cta-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;
  padding: 56px 24px;
}
@media (min-width: 780px) {
  .final-cta-inner {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
  }
}
.final-cta-inner img.mascot { width: 84px; height: 84px; }
.final-cta-text h2 { color: var(--red); font-size: 1.6rem; margin-bottom: 8px; }
.final-cta-text p { margin: 0; }
.final-cta-left { display: flex; align-items: center; gap: 20px; flex-direction: column; text-align: center; }
@media (min-width: 780px) { .final-cta-left { flex-direction: row; text-align: left; } }

.final-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
@media (min-width: 780px) { .final-cta-actions { justify-content: flex-end; } }
.btn-whatsapp {
  background: #25D366;
  color: var(--white);
}
.btn-whatsapp:hover { background: #1ebe57; }

/* Footer */
.site-footer {
  background: var(--cream);
  border-top: 1px solid rgba(0,0,0,0.06);
  padding: 56px 0 24px;
  font-size: 0.88rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 780px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-weight: 700; color: var(--charcoal); margin-bottom: 12px; }
.footer-brand img { height: 30px; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--charcoal);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 12px; }
.footer-col a:hover { color: var(--red); }
.footer-col a { display: inline-flex; align-items: center; gap: 10px; }
.footer-icon { width: 18px; height: 18px; flex-shrink: 0; display: inline-flex; color: var(--charcoal); }
.footer-icon svg { width: 100%; height: 100%; }
.footer-col a:hover .footer-icon { color: var(--red); }
.footer-icon--whatsapp { color: #25D366 !important; }
.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(0,0,0,0.08);
  text-align: center;
  font-size: 0.8rem;
}

/* Draft/placeholder banner used on About & Locations pages */
.draft-banner {
  background: #FFF7E6;
  border-bottom: 1px solid var(--gold);
  color: #6b5518;
  font-size: 0.82rem;
  text-align: center;
  padding: 10px 20px;
}

/* Generic content page hero (About / Locations) */
.page-hero {
  background: var(--cream);
  padding: 72px 0 56px;
  text-align: center;
}
.page-hero h1 { font-size: 2.4rem; }
.page-hero p { max-width: 620px; margin: 0 auto; }

/* Merchant directory (Locations) */
.merchant-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 700px) { .merchant-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .merchant-grid { grid-template-columns: repeat(3, 1fr); } }

.merchant-card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
}
.merchant-card:hover {
  box-shadow: 0 10px 28px rgba(0,0,0,0.09);
  transform: translateY(-2px);
}
.merchant-photo-wrap { position: relative; }
.merchant-card img.merchant-photo {
  width: 100%;
  height: 260px;
  object-fit: cover;
}
.merchant-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--red);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 4px;
}
.merchant-card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.merchant-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.merchant-card-body img.merchant-logo {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  border: 1px solid rgba(0,0,0,0.08);
}
.merchant-card-body h3 { font-family: var(--font-body); font-size: 1.15rem; margin: 0; line-height: 1.3; }

/* Scannable hierarchy: category -> city -> machine count -> address */
.merchant-facts {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 16px;
}
.merchant-category {
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.3;
}
.merchant-machines {
  font-size: 0.82rem;
  color: var(--grey);
  font-weight: 500;
  line-height: 1.3;
}
.merchant-address {
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--grey);
  margin: 6px 0 0;
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.merchant-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 16px;
}
.btn-sm { padding: 9px 16px; font-size: 0.82rem; }

.map-placeholder {
  background: var(--white);
  border: 1px dashed rgba(0,0,0,0.15);
  border-radius: var(--radius);
  padding: 56px 24px;
  text-align: center;
  color: var(--grey);
  font-size: 0.9rem;
  margin-bottom: 48px;
}

.search-bar {
  max-width: 480px;
  margin: 0 auto 48px;
  display: flex;
  gap: 10px;
}
.search-bar input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.15);
  font-family: var(--font-body);
  font-size: 0.9rem;
}
.search-bar input:focus { outline: 2px solid var(--gold); }

/* About page values */
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 700px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .values-grid { grid-template-columns: repeat(4, 1fr); } }

.story-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 900px) { .story-wrap { grid-template-columns: 1fr 1fr; } }
.story-wrap img { border-radius: var(--radius); }

/* Stats grid (About: Why Businesses Choose Aka Usagi) */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 24px;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}
@media (min-width: 700px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-number {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--charcoal);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Carousel */
.carousel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 9 / 16;
  max-width: 360px;
  margin: 0 auto;
  background: var(--cream);
}
.carousel-track { position: relative; width: 100%; height: 100%; }
.carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.7s ease;
}
.carousel-slide.active { opacity: 1; }
.carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
  border: none;
  padding: 0;
  cursor: pointer;
}
.carousel-dot.active { background: var(--white); box-shadow: 0 0 0 2px var(--red); }
