/* ══════════════════════════════════════════════════════════════
   DESIGN SYSTEM
══════════════════════════════════════════════════════════════ */
:root {
  --bg:          #FAF4E9;
  --bg-alt:      #FFF9F1;
  --bg-dark:     #33231D;
  --text:        #6F4633;
  --text-inv:    #FFF9F1;
  --accent:      #AA673F;
  --accent-dark: #8a5230;
  --accent-pale: rgba(170, 103, 63, 0.10);
  --muted:       #B8B19D;
  --border:      #F2CFC2;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', 'Helvetica Neue', Arial, sans-serif;

  --r-sm:   4px;
  --r-md:   10px;
  --r-lg:   18px;
  --r-full: 9999px;

  --shadow-sm: 0 1px 4px rgba(0, 0, 0, .06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, .10);

  --ease: 0.25s ease;
  --max-w: 1200px;
  --pad-x: clamp(16px, 4vw, 48px);
  --section-py: clamp(56px, 9vw, 120px);
}

/* ── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }
fieldset { border: none; }

/* ── Typography ──────────────────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.18;
}
h1 { font-size: clamp(2.2rem, 5.5vw, 4rem);  letter-spacing: 0.025em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.9rem); letter-spacing: 0.02em; }
h3 { font-size: clamp(1.05rem, 1.8vw, 1.35rem); }

.section-title {
  text-align: center;
  margin-bottom: 0.4rem;
}
.section-sub {
  text-align: center;
  color: var(--muted);
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
}

/* ── Layout ──────────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1.6rem;
  border-radius: var(--r-full);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: background var(--ease), color var(--ease),
              box-shadow var(--ease), transform var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  border: 1.5px solid var(--accent);
  color: var(--accent);
}
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-accent {
  background: #fff;
  color: var(--bg-dark);
  font-weight: 500;
}
.btn-accent:hover { background: var(--accent); color: #fff; }
.btn-lg { padding: 0.85rem 2.1rem; font-size: 0.85rem; }

/* ── Scroll fade-up ──────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-up.visible { opacity: 1; transform: none; }

/* ── Utility ─────────────────────────────────────────────────── */
.hidden { display: none !important; }


/* ══════════════════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════════════════ */
#site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: rgba(250, 244, 233, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow var(--ease);
  overflow: visible;
}
#site-header.scrolled {
  box-shadow: 0 1px 0 var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 80px;
  gap: 1rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo-img {
  height: 64px;
  width: auto;
  display: block;
  transition: opacity var(--ease);
}
@media (max-width: 767px) { .logo-img { height: 50px; } }

/* Desktop nav */
.desktop-nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
  margin-left: auto;
}
@media (min-width: 768px) { .desktop-nav { display: flex; } }
.desktop-nav a:not(.btn) {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  transition: color var(--ease);
}
.desktop-nav a:not(.btn):hover { color: var(--accent); }

/* Header right (lang + hamburger) */
.header-right {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-left: auto;
}
@media (min-width: 768px) { .header-right { margin-left: 0; } }

/* Hide header lang toggle on mobile — it lives in the drawer instead */
@media (max-width: 767px) { .header-right .lang-toggle { display: none; } }

/* Language toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.lang-toggle .lang-sep { color: var(--border); }
.lang-btn {
  transition: color var(--ease);
  padding: 0.1rem 0;
  font-size: inherit;
  letter-spacing: inherit;
  color: inherit;
  background: none;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active { color: var(--accent); font-weight: 500; }

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  padding: 4px;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--bg-dark);
  border-radius: 2px;
  transition: all var(--ease);
  width: 100%;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 768px) { .hamburger { display: none; } }

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  padding: 2.5rem 1.5rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(51,35,29,0.12);
  transform: translateY(-110%);
  opacity: 0;
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.32s ease;
  pointer-events: none;
  z-index: 99;
}
.mobile-drawer.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-drawer a {
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: var(--text);
  text-transform: uppercase;
  font-size: 0.8rem;
}
.mobile-drawer a:hover { color: var(--accent); }
.mobile-drawer .btn-primary { font-size: 0.85rem; padding: 0.65rem 2rem; margin-top: 0.5rem; }
.mobile-drawer .drawer-lang { margin-top: 0.5rem; font-size: 0.8rem; gap: 0.5rem; }
.mobile-drawer .drawer-lang .lang-sep { font-size: 0.7rem; }
@media (min-width: 768px) { .mobile-drawer { display: none; } }


/* ══════════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════════ */
#hero {
  position: relative;
  min-height: 100svh;
  padding-top: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-dark);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero.jpg');
  background-size: cover;
  background-position: center top;
  opacity: 0.65;
  /* Gradient fallback if no photo */
  background-color: #3a2820;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(18, 12, 8, 0.35) 0%,
    rgba(18, 12, 8, 0.55) 100%);
}
.hero-content {
  position: relative;
  text-align: center;
  color: #fff;
  padding: 6rem var(--pad-x) 4rem;
  max-width: 720px;
  animation: hero-fade 1s ease 0.2s both;
}
@keyframes hero-fade {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
.hero-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1.2rem;
}
.hero-content h1 {
  color: #fff;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.hero-sub {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 2.25rem;
  letter-spacing: 0.04em;
}
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
}
.hero-scroll span {
  display: block;
  width: 1.5px;
  height: 42px;
  background: rgba(255,255,255,0.45);
  margin: 0 auto;
  animation: scroll-drop 1.6s ease-in-out infinite;
}
@keyframes scroll-drop {
  0%   { transform: scaleY(1)   translateY(0);   opacity: 1; }
  100% { transform: scaleY(0.4) translateY(18px); opacity: 0; }
}


/* ══════════════════════════════════════════════════════════════
   SERVICES
══════════════════════════════════════════════════════════════ */
#services {
  padding: var(--section-py) 0;
}
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
}
@media (min-width: 768px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
}
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.75rem 1rem;
  text-align: center;
  transition: box-shadow var(--ease), transform var(--ease);
}
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.service-icon { width: 96px; height: 96px; margin: 0 auto 1rem; display: flex; align-items: center; justify-content: center; }
.service-icon img { width: 100%; height: 100%; object-fit: contain; }
.service-card h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.service-card p { font-size: 0.82rem; color: var(--muted); line-height: 1.55; }


/* ══════════════════════════════════════════════════════════════
   HOW IT WORKS
══════════════════════════════════════════════════════════════ */
#how-it-works {
  padding: var(--section-py) 0;
  background: var(--bg-alt);
}

/* ── New 3-step layout ───────────────────────────────────────── */
.hiw-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem 0;
  margin-top: 3.5rem;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 700px) {
  .hiw-steps {
    grid-template-columns: 1.35fr 1fr 1fr;
    gap: 0 3rem;
    align-items: start;
  }
}

.hiw-step {
  text-align: center;
  padding: 0 0.5rem;
  position: relative;
}

/* Thin vertical divider between steps on desktop */
@media (min-width: 700px) {
  .hiw-step:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -1.5rem;
    top: 2rem;
    bottom: 0;
    width: 1px;
    background: var(--border);
  }
}

.hiw-num {
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  opacity: 0.75;
}
.hiw-step-main .hiw-num { font-size: 5.5rem; opacity: 0.9; }

.hiw-step h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 0.65rem;
  color: var(--text);
  line-height: 1.3;
}
.hiw-step-main h3 { font-size: 1.45rem; }

.hiw-step > p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
}

/* Photo upload note inside step 1 */
.hiw-note {
  margin-top: 1rem;
  padding: 0.7rem 1rem;
  background: rgba(170, 103, 63, 0.07);
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  text-align: left;
  font-size: 0.82rem;
  color: var(--accent);
  line-height: 1.6;
  font-style: italic;
}


/* ══════════════════════════════════════════════════════════════
   VISUALIZATION TEASER
══════════════════════════════════════════════════════════════ */
#viz-teaser {
  background: var(--bg-dark);
  color: var(--text-inv);
  padding: var(--section-py) 0;
  overflow: hidden;
}
.viz-teaser-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 900px) {
  .viz-teaser-inner { grid-template-columns: 1fr 1fr; }
}
.viz-before-after {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.viz-image {
  flex: 1;
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #2a2018 0%, #3d3025 100%);
}
.viz-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.viz-label {
  position: absolute;
  bottom: 0.65rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.2rem 0.7rem;
  border-radius: var(--r-full);
  white-space: nowrap;
}
.viz-arrow {
  font-size: 1.8rem;
  flex-shrink: 0;
  animation: pulse-glow 2.2s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { transform: scale(1);    opacity: 0.9; }
  50%       { transform: scale(1.18); opacity: 1;   }
}
.viz-text h2 {
  color: #fff;
  margin-bottom: 1rem;
}
.viz-text p {
  color: rgba(255,255,255,0.72);
  margin-bottom: 2rem;
  line-height: 1.7;
  font-size: 0.95rem;
}


/* ══════════════════════════════════════════════════════════════
   ABOUT
══════════════════════════════════════════════════════════════ */
#about {
  padding: var(--section-py) 0;
  background: var(--bg-alt);
}
.about-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 768px) {
  .about-inner { grid-template-columns: 5fr 7fr; gap: 4rem; }
}
.about-photo {
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, var(--border), var(--bg-alt));
}
.about-photo.photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}
.about-photo.photo-placeholder::after { content: '🎈'; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-text h2 { margin-bottom: 1rem; }
.about-text p  { color: var(--muted); margin-bottom: 1rem; line-height: 1.75; font-size: 0.95rem; }
.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.about-actions .btn { display: inline-flex; align-items: center; gap: 0.4rem; }


/* ══════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════ */
#footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.55);
  padding: 2rem 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  text-align: center;
}
@media (min-width: 640px) {
  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}
.footer-brand {
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.75);
}
.footer-copy { font-size: 0.75rem; }
.footer-links {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}
.footer-links a {
  color: rgba(255,255,255,0.55);
  transition: color var(--ease);
  display: flex;
}
.footer-links a:hover { color: var(--accent); }
.footer-lang {
  color: rgba(255,255,255,0.55);
  font-size: 0.7rem;
}
.footer-lang .active { color: var(--accent); }
