/* =====================
   ROOTWELL — THEME CSS
   ===================== */

:root {
  --cream: #F7F3EA;
  --warm-white: #FDFBF7;
  --sage: #6B7C5C;
  --sage-light: #8A9E7A;
  --sage-dark: #4D5C42;
  --warm-brown: #4A3728;
  --warm-tan: #B89B6A;
  --deep-earth: #2C2416;
  --text-primary: #2C2416;
  --text-secondary: #5A4A38;
  --text-muted: #8C7B6A;
  --border: rgba(74, 55, 40, 0.12);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--warm-white);
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--sage); border-radius: 3px; }

/* === NAV === */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(247, 243, 234, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  color: var(--warm-brown);
}

.nav-tagline {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 0 48px;
  padding-top: 100px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-layer-1 {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(107, 124, 92, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 70%, rgba(184, 155, 106, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 100% 80% at 50% 100%, rgba(74, 55, 40, 0.08) 0%, transparent 50%),
    var(--cream);
}

.hero-layer-2 {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 40% 30% at 75% 25%, rgba(139, 123, 106, 0.06) 0%, transparent 70%);
}

.hero-layer-3 {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 40%, rgba(107, 124, 92, 0.04) 100%);
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.08'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
}

.hero-orb-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: float 8s ease-in-out infinite;
}

.hero-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(107, 124, 92, 0.2) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

.hero-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(184, 155, 106, 0.15) 0%, transparent 70%);
  bottom: -80px;
  left: -80px;
  animation-delay: -3s;
}

.hero-orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(74, 55, 40, 0.08) 0%, transparent 70%);
  top: 40%;
  left: 40%;
  animation-delay: -6s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -20px) scale(1.05); }
  66% { transform: translate(-15px, 15px) scale(0.95); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  text-align: center;
}

.hero-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 500;
  margin-bottom: 32px;
}

.hero-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.2rem, 7vw, 5.5rem);
  font-weight: 400;
  line-height: 1.08;
  color: var(--warm-brown);
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}

.hero-headline em {
  font-style: italic;
  color: var(--sage);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.75;
  font-weight: 300;
}

/* === MANIFESTO === */
.manifesto {
  padding: 80px 48px;
  background: var(--cream);
}

.manifesto-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.manifesto-rule {
  height: 1px;
  background: var(--border);
  margin: 32px auto;
}

.manifesto-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.3rem, 2.5vw, 1.65rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.6;
  color: var(--warm-brown);
  letter-spacing: 0.01em;
}

/* === PILLARS === */
.pillars {
  padding: 100px 48px;
  background: var(--warm-white);
}

.pillars-header {
  text-align: center;
  margin-bottom: 72px;
}

.pillars-label {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 16px;
  font-weight: 500;
}

.pillars-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 400;
  color: var(--warm-brown);
  letter-spacing: -0.01em;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  max-width: 1000px;
  margin: 0 auto;
}

.pillar {
  padding: 40px 32px;
  background: var(--cream);
  border: 1px solid var(--border);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pillar:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(74, 55, 40, 0.08);
}

.pillar-icon {
  margin-bottom: 24px;
}

.pillar-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--warm-brown);
  margin-bottom: 14px;
  letter-spacing: 0.01em;
}

.pillar-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 300;
}

/* === ORIGINS === */
.origins {
  padding: 100px 48px;
  background: var(--warm-brown);
  position: relative;
  overflow: hidden;
}

.origins::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 90%, rgba(107, 124, 92, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 10%, rgba(184, 155, 106, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.origins-inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.origins-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.origins-swatch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 120px;
}

.origins-swatch-inner {
  aspect-ratio: 1;
  border-radius: 2px;
}

.swatch-1 { background: #6B7C5C; }
.swatch-2 { background: #B89B6A; }
.swatch-3 { background: #F7F3EA; border: 1px solid rgba(255,255,255,0.15); }
.swatch-4 { background: #4A3728; }

.origins-stamp {
  opacity: 0.6;
}

.origins-label {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--warm-tan);
  margin-bottom: 20px;
  font-weight: 500;
}

.origins-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 400;
  color: var(--cream);
  line-height: 1.25;
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}

.origins-body {
  font-size: 0.9rem;
  color: rgba(247, 243, 234, 0.65);
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 16px;
}

/* === PHILOSOPHY === */
.philosophy {
  padding: 100px 48px;
  background: var(--cream);
}

.philosophy-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.philosophy-header {
  margin-bottom: 64px;
}

.philosophy-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  font-weight: 400;
  color: var(--warm-brown);
  letter-spacing: -0.01em;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.philosophy-item {
  padding: 48px 40px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.philosophy-item:nth-child(even) {
  border-right: none;
}

.philosophy-item:nth-last-child(-n+2) {
  border-bottom: none;
}

.philosophy-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--sage);
  opacity: 0.4;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.philosophy-item-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--warm-brown);
  margin-bottom: 12px;
}

.philosophy-item-body {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.75;
  font-weight: 300;
}

/* === CLOSING === */
.closing {
  padding: 120px 48px;
  background: var(--warm-white);
  position: relative;
}

.closing::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
}

.closing-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.closing-art {
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
}

.closing-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--warm-brown);
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.closing-body {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  font-weight: 300;
}

/* === FOOTER === */
.footer {
  padding: 60px 48px 48px;
  background: var(--warm-brown);
}

.footer-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--cream);
}

.footer-brand-sub {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(247, 243, 234, 0.4);
}

.footer-rule {
  height: 1px;
  background: rgba(247, 243, 234, 0.1);
  margin: 24px auto;
  max-width: 200px;
}

.footer-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-style: italic;
  color: rgba(247, 243, 234, 0.5);
  margin-bottom: 20px;
}

.footer-copy {
  font-size: 0.7rem;
  color: rgba(247, 243, 234, 0.3);
  letter-spacing: 0.05em;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav { padding: 16px 24px; }

  .hero { padding: 80px 24px 60px; }
  .hero-headline { font-size: 2.8rem; }
  .hero-sub { font-size: 0.95rem; }

  .manifesto { padding: 60px 24px; }
  .manifesto-quote { font-size: 1.15rem; }

  .pillars { padding: 72px 24px; }
  .pillars-grid { grid-template-columns: 1fr; gap: 24px; }

  .origins { padding: 72px 24px; }
  .origins-inner { grid-template-columns: 1fr; gap: 40px; }
  .origins-visual { flex-direction: row; justify-content: center; }

  .philosophy { padding: 72px 24px; }
  .philosophy-grid { grid-template-columns: 1fr; }
  .philosophy-item { border-right: none; border-bottom: 1px solid var(--border); }
  .philosophy-item:last-child { border-bottom: none; }

  .closing { padding: 80px 24px; }
  .closing-headline { font-size: 2rem; }

  .footer { padding: 48px 24px 36px; }
}

@media (max-width: 480px) {
  .nav-tagline { display: none; }
  .pillars-title { font-size: 1.8rem; }
  .origins-heading { font-size: 1.5rem; }
}