/* ═══════════════════════════════════════════════════════════
   Danichi — Shared Styles
   Used by: index.html, about.html, contact.html, faq.html
   ═══════════════════════════════════════════════════════════ */

/* ─── Design Tokens ─────────────────────────────────────── */
:root {
  --orange:           #F07830;
  --orange-light:     #F5A070;
  --orange-pale:      #FFF2EA;
  --orange-mid:       #FDDEC9;
  --dark:             #18130E;
  --dark-2:           #2A2118;
  --warm-gray:        #6B5E54;
  --warm-gray-light:  #A89C94;
  --warm-gray-pale:   #EDE7E1;
  --bg:               #FAFAF7;
  --white:            #FFFFFF;
  --font:             'Outfit', system-ui, sans-serif;
  --serif:            'DM Serif Display', Georgia, serif;
}

/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--dark);
  overflow-x: hidden;
  cursor: none;
}
a { text-decoration: none; color: inherit; }
img, video { display: block; max-width: 100%; }

/* ─── Custom Cursor ──────────────────────────────────────── */
#cursor {
  position: fixed;
  width: 12px; height: 12px;
  background: var(--orange);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease;
}
#cursor-ring {
  position: fixed;
  width: 36px; height: 36px;
  border: 1.5px solid rgba(240,120,48,0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease, opacity 0.25s ease;
}

/* ─── Nav ────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, padding 0.3s ease;
}
nav.scrolled {
  background: rgba(24,19,14,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 14px 48px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
nav.nav-solid {
  background: var(--dark);
  padding: 16px 48px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 18px;
  color: var(--white);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav-logo-dot {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.02em;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--orange);
  transition: width 0.3s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* ─── Liquid Glass Buttons ───────────────────────────────── */
.btn-liquid {
  position: relative;
  border-radius: 100px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--white);
  cursor: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  backdrop-filter: blur(16px) saturate(1.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  transition: transform 0.3s cubic-bezier(0.1, 0.4, 0.2, 1),
              background 0.3s ease, box-shadow 0.3s ease;
}
.btn-liquid:hover { transform: scale(1.05); }
.btn-liquid::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 100px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0.05) 45%, transparent 100%);
  pointer-events: none; z-index: 1;
}
.btn-liquid::after {
  content: '';
  position: absolute;
  top: 12%; left: 2px;
  width: 1px; height: 76%;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.35) 40%, rgba(255,255,255,0.35) 60%, transparent);
  pointer-events: none; z-index: 1;
}
.btn-liquid > * { position: relative; z-index: 2; }
.btn-liquid-clear {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 14px 28px;
  box-shadow:
    0 0 8px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.12),
    inset  3px  3px .5px -3.5px rgba(255,255,255,.09),
    inset -3px -3px .5px -3.5px rgba(255,255,255,.85),
    inset  1px  1px 1px  -.5px rgba(255,255,255,.55),
    inset -1px -1px 1px  -.5px rgba(255,255,255,.55),
    inset 0 0 8px 8px rgba(255,255,255,.10),
    inset 0 0 2px 2px rgba(255,255,255,.05),
    0 0 16px rgba(0,0,0,.15);
}
.btn-liquid-clear:hover { background: rgba(255,255,255,.12); }
.btn-liquid-warm {
  background: rgba(240,120,48,.22);
  border: 1px solid rgba(255,150,80,.38);
  padding: 14px 28px;
  box-shadow:
    0 0 8px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.12),
    inset  3px  3px .5px -3.5px rgba(255,200,140,.15),
    inset -3px -3px .5px -3.5px rgba(200,80,20,.9),
    inset  1px  1px 1px  -.5px rgba(255,210,160,.7),
    inset -1px -1px 1px  -.5px rgba(180,60,10,.6),
    inset 0 0 8px 8px rgba(240,120,48,.14),
    inset 0 0 2px 2px rgba(255,160,80,.08),
    0 0 28px rgba(240,120,48,.28);
}
.btn-liquid-warm:hover { background: rgba(240,120,48,.32); }
.btn-liquid-warm::before {
  background: linear-gradient(to bottom, rgba(255,200,140,.28) 0%, rgba(255,160,80,.06) 45%, transparent 100%);
}
.btn-liquid-warm::after {
  background: linear-gradient(to bottom, transparent, rgba(255,180,100,.4) 40%, rgba(255,180,100,.4) 60%, transparent);
}
.btn-liquid-sm { padding: 11px 22px; font-size: 14px; }
.btn-liquid-lg { padding: 16px 32px; font-size: 15px; }

/* solid buttons for light-bg contexts */
.btn-primary {
  background: var(--orange); color: var(--white);
  font-family: var(--font); font-size: 14px; font-weight: 600;
  padding: 14px 28px; border-radius: 100px; border: none; cursor: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  letter-spacing: 0.02em; display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { background: var(--orange-light); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(240,120,48,.38); }

/* ─── Section Utilities ──────────────────────────────────── */
section { padding: 100px 48px; }
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--orange); margin-bottom: 20px;
}
.section-label::before { content: ''; width: 20px; height: 1px; background: var(--orange); }
.section-headline {
  font-family: var(--font);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; color: var(--dark);
}
.section-headline em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--orange); }
.section-headline.light { color: var(--white); }
.section-sub { font-size: 16px; line-height: 1.7; color: var(--warm-gray); max-width: 500px; }
.section-sub.light { color: rgba(255,255,255,.5); }

/* ─── Page Hero (sub-pages) ──────────────────────────────── */
.page-hero {
  background: var(--dark);
  padding: 160px 48px 96px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(240,120,48,.1) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(240,120,48,.05) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero-inner { position: relative; z-index: 1; max-width: 720px; }
.page-hero-title {
  font-family: var(--font);
  font-size: clamp(40px, 5.5vw, 68px);
  font-weight: 800; color: var(--white);
  letter-spacing: -0.03em; line-height: 1.0;
  margin-bottom: 20px;
}
.page-hero-title em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--orange); }
.page-hero-sub { font-size: 17px; color: rgba(255,255,255,.5); max-width: 520px; line-height: 1.7; }

/* ─── CTA Banner ─────────────────────────────────────────── */
#cta {
  background: var(--dark);
  text-align: center; padding: 120px 48px;
  position: relative; overflow: hidden;
}
#cta::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(240,120,48,.1) 0%, transparent 65%);
  pointer-events: none;
}
.cta-headline {
  font-family: var(--font);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800; color: var(--white);
  letter-spacing: -0.03em; line-height: 1.05;
  max-width: 680px; margin: 0 auto 20px; position: relative;
}
.cta-headline em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--orange); }
.cta-sub { font-size: 16px; color: rgba(255,255,255,.45); max-width: 400px; margin: 0 auto 40px; line-height: 1.7; position: relative; }
.cta-actions { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; position: relative; }

/* ─── Footer ─────────────────────────────────────────────── */
footer {
  background: var(--dark-2);
  padding: 64px 48px 40px;
  border-top: 1px solid rgba(255,255,255,.05);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  margin-bottom: 32px;
}
.footer-brand p { font-size: 13px; color: rgba(255,255,255,.35); line-height: 1.7; margin-top: 12px; max-width: 260px; }
.footer-col-title { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,.3); margin-bottom: 16px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,.5); transition: color 0.2s; }
.footer-links a:hover { color: var(--orange); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,.2); }

/* ─── Reveal Animations ──────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ─── Liquid Glass SVG filter ────────────────────────────── */
.liquid-glass-svg { display: none; position: absolute; }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  nav, nav.scrolled, nav.nav-solid { padding-left: 28px; padding-right: 28px; }
  section { padding: 80px 28px; }
  .page-hero { padding: 140px 28px 80px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  #cta { padding: 100px 28px; }
}
@media (max-width: 640px) {
  nav, nav.scrolled, nav.nav-solid { padding-left: 20px; padding-right: 20px; }
  .nav-links { display: none; }
  section { padding: 72px 20px; }
  .page-hero { padding: 120px 20px 64px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  #cta { padding: 80px 20px; }
}
