/* ─── RESET ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ─── LIGHT THEME VARIABLES ─── */
:root {
  --bg: #f5f2ee;
  --text: #1a1814;
  --accent: #3b5c6b;
  --muted: #8a8178;
  --line: rgba(26,24,20,0.12);
  --nav-scrolled-bg: rgba(245,242,238,0.95);
  --card-hover-bg: rgba(59,92,107,0.05);
}

/* ─── BASE ─── */
html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background 0.4s, color 0.4s;
}

/* ─── NAVBAR ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem 3.5rem;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s, background 0.4s;
}
nav.scrolled {
  border-bottom-color: var(--line);
  background: var(--nav-scrolled-bg);
  backdrop-filter: blur(8px);
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text);
  text-decoration: none;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  gap: 2.8rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  position: relative;
  transition: color 0.25s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

/* ─── DARK MODE TOGGLE ─── */
.theme-toggle {
  background: none;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 0.3rem 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: border-color 0.3s, color 0.3s;
  white-space: nowrap;
}
.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--text);
}
.theme-toggle .t-icon { font-size: 0.85rem; line-height: 1; }

/* ─── HAMBURGER ─── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 1px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ─── MOBILE MENU ─── */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--accent); }

/* ─── HERO ─── */
#home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem 2rem 4rem;
  position: relative;
}
.hero-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.6rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.8rem, 9vw, 8rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--text);
  opacity: 0;
  animation: fadeUp 0.9s 0.4s forwards;
}
.hero-title em { font-style: italic; color: var(--accent); }
.hero-sub {
  margin-top: 2rem;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  max-width: 420px;
  line-height: 1.8;
  opacity: 0;
  animation: fadeUp 0.9s 0.6s forwards;
}
.hero-cta {
  margin-top: 3rem;
  display: inline-block;
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 3px;
  opacity: 0;
  animation: fadeUp 0.9s 0.8s forwards;
  transition: color 0.2s;
}
.hero-cta:hover { color: var(--accent); }
.hero-line {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0;
  animation: fadeUp 1s 1.1s forwards;
}
.hero-line span {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-bar {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s 1.5s infinite;
}

/* ─── SECTIONS ─── */
section {
  padding: 7rem 3.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1.8rem;
}
.section-body {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--muted);
  max-width: 560px;
}

/* ─── DIVIDER ─── */
.divider {
  width: 100%; height: 1px;
  background: var(--line);
  max-width: 1100px;
  margin: 0 auto;
}

/* ─── ABOUT ─── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-stat-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}
.stat { border-top: 1px solid var(--line); padding-top: 1.2rem; }
.stat-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--text);
  line-height: 1;
}
.stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.4rem;
}

/* ─── SERVICES ─── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 3.5rem;
}
.service-card {
  padding: 2.5rem;
  border: 1px solid var(--line);
  transition: background 0.3s, border-color 0.3s;
  cursor: default;
}
.service-card:hover {
  background: var(--card-hover-bg);
  border-color: var(--accent);
}
.service-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 1.4rem;
}
.service-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.9rem;
}
.service-desc { font-size: 0.85rem; line-height: 1.75; color: var(--muted); }

/* ─── CONTACT ─── */
#contact { text-align: center; }
#contact .section-body { margin: 0 auto 2.5rem; }
.contact-email {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 300;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.04em;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.contact-email:hover { border-bottom-color: var(--accent); }

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid var(--line);
  padding: 2rem 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
footer span { font-size: 0.72rem; letter-spacing: 0.14em; color: var(--muted); }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1; }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  nav { padding: 1.4rem 1.8rem; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }
  .theme-toggle .t-label { display: none; }
  section { padding: 5rem 1.8rem; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .services-grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 0.6rem; text-align: center; }
}
