/*
 * Shared structural CSS for all 3 style variants.
 * Each style's theme.css loads AFTER this file and overrides the
 * custom properties + adds its own flourishes. Keep this file about
 * layout/mechanics, not color/personality.
 */

:root {
  --font-heading: Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --bg: #ffffff;
  --surface: #f4f4f4;
  --ink: #111111;
  --muted: #666666;
  --primary: #333333;
  --on-primary: #ffffff;
  --border: #dddddd;
  --header-bg: #111111;
  --header-text: #ffffff;
  --radius-card: 10px;
  --radius-pill: 999px;
  --max-width: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--font-heading); margin: 0 0 16px; line-height: 1.15; }
h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
p { color: var(--muted); margin: 0 0 12px; }

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: var(--on-primary); }
.btn-outline-light { border-color: #fff; color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--header-bg); }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }
.btn-block { display: block; width: 100%; text-align: center; }

/* ===== Geo banner (injected by geo-banner.js) ===== */
.geo-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--geo-banner-bg, #111111);
  color: var(--geo-banner-text, #ffffff);
  padding: 10px 20px;
  font-size: 0.88rem;
}
.geo-banner-icon { display: flex; flex-shrink: 0; }
.geo-banner-text { flex: 1; }
.geo-banner-close {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  padding: 4px;
  flex-shrink: 0;
  opacity: 0.8;
}
.geo-banner-close:hover { opacity: 1; }

/* ===== Header ===== */
.site-header {
  background: var(--header-bg);
  color: var(--header-text);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.logo-img { width: 46px; height: 46px; object-fit: cover; border-radius: 50%; background: #fff; flex-shrink: 0; }
.logo-text { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; line-height: 1.2; }

.main-nav { display: flex; gap: 26px; }
.main-nav a { color: inherit; text-decoration: none; font-weight: 500; font-size: 0.94rem; opacity: 0.85; }
.main-nav a:hover, .main-nav a.active { opacity: 1; }

.nav-toggle { display: none; background: none; border: none; color: inherit; cursor: pointer; }
.icon { display: block; }

@media (max-width: 860px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .site-header.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--header-bg);
    padding: 16px 24px 24px;
    gap: 14px;
  }
}

/* ===== Hero: full-bleed background video ===== */
.hero-video-bg {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: center;
  color: #fff;
}
.hero-video-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-video-bg .hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--hero-overlay, linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.7)));
  z-index: 1;
}
.hero-video-bg .hero-content { position: relative; z-index: 2; padding: 60px 0; }

/* ===== Hero: contained/framed video display ===== */
.hero-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 70px 0;
}
.video-frame {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #000;
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 860px) {
  .hero-split { grid-template-columns: 1fr; padding: 40px 0; }
}

/* ===== Etsy catalog grid ===== */
.etsy-section { padding: 70px 0; }
.etsy-section-head { max-width: 640px; margin-bottom: 40px; }
.etsy-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
}
.etsy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 22px;
}
.etsy-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.etsy-card-media { display: block; background: #fff; aspect-ratio: 4/3; }
.etsy-card-media img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.etsy-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.etsy-card-title { font-family: var(--font-heading); font-size: 1.02rem; margin: 0; color: var(--ink); }
.etsy-card-price { font-weight: 700; color: var(--primary); margin: 0; }
.etsy-card-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}
.etsy-card-cta:hover { text-decoration: underline; }

/* ===== Footer ===== */
.site-footer { background: var(--header-bg); color: var(--header-text); padding: 40px 0; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; }
.footer-inner a { color: inherit; opacity: 0.85; text-decoration: none; }
.footer-inner a:hover { opacity: 1; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-note { font-size: 0.82rem; opacity: 0.7; }

@media (max-width: 600px) {
  .etsy-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
