/* =========================================================
   home.css — Public homepage & legal pages
   Uses tokens from css/themes.css
   ========================================================= */

/* Root defaults (themes.css defines color tokens & data-theme) */
:root {
  --container-w: 1100px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(3, 8, 20, 0.12);
  --ring: 0 0 0 3px rgba(80, 120, 255, 0.25);
  --gap: clamp(14px, 2.8vw, 24px);
}

/* Basic resets */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }

body.home-body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  line-height: 1.6;
  background: var(--bg, #fff);
  color: var(--text, #111);
}

/* Utility container */
.container {
  width: min(100% - 32px, var(--container-w));
  margin-inline: auto;
}

/* =========================
   Header
   ========================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg2, #fff);
  border-bottom: 1px solid var(--border, rgba(0,0,0,.08));
  backdrop-filter: saturate(120%) blur(6px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 14px;
  gap: 16px;
}

.brand {
  margin: 0;
  font-size: clamp(18px, 2.2vw, 22px);
  letter-spacing: .2px;
  color: var(--text, #111);
  text-decoration: none;
}

.nav { display: flex; flex-wrap: wrap; gap: 10px 18px; }

.nav a {
  text-decoration: none;
  color: var(--text, #111);
  font-weight: 600;
  font-size: 14.5px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: background .2s ease, border-color .2s ease, transform .04s ease;
}
.nav a:hover { background: var(--glass, rgba(0,0,0,.04)); border-color: var(--border, rgba(0,0,0,.08)); }
.nav a:active { transform: translateY(1px); }

/* =========================
   Hero
   ========================= */
.hero {
  background:
    radial-gradient(1100px 540px at 85% -10%, rgba(0,0,0,.05), transparent),
    linear-gradient(180deg, var(--bg2, #f7f9ff) 0%, var(--bg, #fff) 100%);
  border-bottom: 1px solid var(--border, rgba(0,0,0,.08));
}

.hero .hero-wrap,
.hero .hero-content { /* support both class names */
  padding-block: clamp(42px, 10vw, 96px);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--gap);
  align-items: center;
}

.hero h1, .hero h2 {
  margin: 0 0 8px 0;
  font-size: clamp(26px, 5vw, 40px);
  line-height: 1.15;
  color: var(--text, #111);
}

.hero p { margin: 0 0 10px 0; color: var(--muted, #555); }

.media-fit{
  width: 100%;
  height: auto;
  max-height: 340px;              /* ← cap media height */
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
}

.btn-row{ display:flex; gap:12px; flex-wrap:wrap; }

.btn{
  display:inline-block;
  padding:10px 14px;
  border-radius: 10px;
  border:1px solid var(--border, rgba(0,0,0,.12));
  text-decoration:none;
  color: var(--text, #111);
  background: var(--bg, #fff);
  transition: transform .06s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover{ box-shadow: var(--shadow); }
.btn:active{ transform: translateY(1px); }
.btn.primary{ background: hsl(var(--accent-h, 210) 90% 54%); color: #fff; border-color: transparent; }
.btn.ghost{ background: transparent; }

/* =========================
   Proof strip
   ========================= */
.proof{
  padding-block: 14px;
  border-top: 1px solid var(--border, rgba(0,0,0,.08));
  border-bottom: 1px solid var(--border, rgba(0,0,0,.08));
  background: var(--bg, #fff);
}
.proof-list{
  display:flex; gap:24px; justify-content:center; align-items:center; flex-wrap:wrap;
  margin:0; padding:0; list-style:none;
}
.proof-list li{ display:flex; flex-direction:column; align-items:center; }
.proof-list strong{ font-size: clamp(18px, 2.8vw, 22px); }

/* =========================
   Sections, cards & grids
   ========================= */
section{ padding-block: clamp(28px, 7vw, 60px); }
.section-head h2{ margin:0 0 6px 0; font-size: clamp(20px, 3.6vw, 28px); }
.section-head p{ margin:0; color: var(--muted, #555); }

.gallery{ }
.card{
  background: var(--bg, #fff);
  border: 1px solid var(--border, rgba(0,0,0,.08));
  border-radius: var(--radius);
  padding: 10px;
  box-shadow: var(--shadow);
}
.card figcaption{ margin-top: 8px; font-size: .95rem; color: var(--muted, #555); }

.grid-3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.grid-3 .media-fit{ aspect-ratio: 4/3; max-height: none; } /* grid cards use fixed ratio */

/* =========================
   About
   ========================= */
.about .container{ max-width: 860px; }
.about p{ color: var(--muted, #555); }

/* =========================
   Contact (fixed contrast)
   ========================= */
.contact.cta{
  background: var(--bg2, #f5f7fb);        /* light card instead of solid blue */
  border: 1px solid var(--border, rgba(0,0,0,.08));
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: clamp(22px, 4.5vw, 36px);
  margin-block: clamp(8px, 3vw, 16px);
  color: var(--text, #111);               /* readable text */
}
.contact.cta h2{ margin-top:0; }
.contact.cta p{ color: var(--muted, #555); }
.contact.cta .btn-row{ justify-content: center; }

/* Links in contact details */
.contact a{
  color: hsl(var(--accent-h, 210) 70% 42%);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.contact a:hover{ border-bottom-color: currentColor; }

/* =========================
   Footer
   ========================= */
.site-footer {
  background: var(--bg2, #f4f6fb);
  border-top: 1px solid var(--border, rgba(0,0,0,.08));
}
.site-footer .container {
  padding-block: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  justify-content: space-between;
  color: var(--muted, #666);
  font-size: 14px;
}
.footer-nav a {
  color: var(--muted, #666);
  text-decoration: none;
  margin-left: 10px;
  border-bottom: 1px solid transparent;
}
.footer-nav a:hover { border-bottom-color: currentColor; }

/* =========================
   Legal pages (optional reuse)
   ========================= */
.legal-page { padding-block: clamp(32px, 7vw, 60px); }
.legal-card {
  background: var(--glass, rgba(255,255,255,.6));
  border: 1px solid var(--border, rgba(0,0,0,.08));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(18px, 4vw, 28px);
}
.legal-card h1 { margin-top: 0; font-size: clamp(22px, 4vw, 30px); }
.legal-card h2 { font-size: clamp(18px, 3vw, 22px); margin-top: 22px; }

/* =========================
   Media queries
   ========================= */
@media (max-width: 900px){
  .hero .hero-wrap,
  .hero .hero-content{ grid-template-columns: 1fr; }
  .media-fit{ max-height: 280px; }
  .grid-3{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px){
  .grid-3{ grid-template-columns: 1fr; }
}

/* =========================
   Helpful defaults for links & focus
   ========================= */
a { outline-offset: 2px; }
a:focus-visible { outline: 2px solid hsl(var(--accent-h, 210) 90% 55%); border-radius: 8px; }

/* Optional: smooth scrolling for in-page anchors */
html { scroll-behavior: smooth; }


/* ---------------------------------------------------------
   Stores
   --------------------------------------------------------- */
.stores{ padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); }
.section-head{ display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.section-head h2{ margin: 0; color: var(--text); }
.store-grid{
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px;
}
.store-card{
  padding: 16px; border-radius: 14px; background: var(--surface);
  border: 1px solid var(--border); color: var(--text); box-shadow: var(--shadow);
}
.store-card h3{ margin: 0 0 8px; color: var(--text); }
.store-card p{ margin: .4rem 0; }
.store-card a{ color: var(--link); text-decoration: none; }
.store-card a:hover{ text-decoration: underline; }

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */
.home-footer{ padding: 20px; text-align: center; color: var(--muted); }

/* ---------------------------------------------------------
   WhatsApp Floating Button
   --------------------------------------------------------- */
.whatsapp-btn{
  position: fixed; bottom: 16px; right: 16px; z-index: 20;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,.25));
}
.whatsapp-btn img{
  width: 56px; height: 56px; border-radius: 50%;
  transition: transform .2s ease;
}
.whatsapp-btn img:hover{ transform: scale(1.05) }

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */
@media (max-width: 980px){
  .hero{ grid-template-columns: 1fr; }
  .hero-right{ order: -1; }
}
@media (max-width: 560px){
  .home-header{ margin: 12px; padding: 12px; }
  .btn{ height: 42px; }
  .hero{ padding: 16px; }
}

/* ---------------------------------------------------------
   Safety: ensure buddy never blocks this page either
   (themes.css already sets these, but harmless to repeat)
   --------------------------------------------------------- */
#animeDock, #animeDock * { pointer-events: none !important; }
#animeDock {
  position: fixed; right: 16px; bottom: 16px; z-index: 1;
  width: var(--anime-size); height: var(--anime-size);
}
