/* ─────────────────────────────────────────────────────────────────────────────
   LUMINARY STUDIO — main.css
   Colour scheme matched to Three.js terrain: #efd1b5 / #61443e / #a06851
───────────────────────────────────────────────────────────────────────────── */

/* ── TOKENS ── */
:root {
  --clr-bg:        #efd1b5;
  --clr-text:      #61443e;
  --clr-muted:     #8c6158;
  --clr-accent:    #a06851;
  --clr-accent-dk: #7a4a35;
  --clr-accent-lt: #f5e4d4;
  /* Warm frosted-glass tinted with sand */
  --clr-glass-bg:  rgba(239, 209, 181, 0.52);
  --clr-glass-bdr: rgba(255, 243, 228, 0.78);
  --shadow-glass:  0 8px 40px rgba(97, 68, 62, 0.12), inset 0 1px 0 rgba(255, 248, 238, 0.85);
  --shadow-hover:  0 18px 56px rgba(97, 68, 62, 0.18), inset 0 1px 0 rgba(255, 252, 244, 0.95);
  --radius-card:   24px;
  --radius-sm:     12px;
  --blur:          blur(22px) saturate(160%);
  --font-serif:    'DM Serif Display', Georgia, serif;
  --font-sans:     'Inter', system-ui, sans-serif;
  --nav-h:         72px;
  --transition:    all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--clr-text);
  background: var(--clr-bg);
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; }

/* ─────────────────────────────────────────────────────────────────────────────
   THREE.JS CONTAINER — fixed full-screen background
───────────────────────────────────────────────────────────────────────────── */
#container {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
/* Hide the Stats fps panel */
#container > div { display: none !important; }
#container canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* ─────────────────────────────────────────────────────────────────────────────
   SITE CONTENT OVERLAY
───────────────────────────────────────────────────────────────────────────── */
#site-content {
  position: relative;
  z-index: 1;
  /* Let terrain clicks pass through transparent areas */
  pointer-events: none;
}
/* Re-enable pointer events on actual interactive elements */
#site-content nav,
#site-content .glass-card,
#site-content .btn,
#site-content a,
#site-content input,
#site-content textarea,
#site-content button,
#site-content footer {
  pointer-events: auto;
}

/* ─────────────────────────────────────────────────────────────────────────────
   GLASS CARD
───────────────────────────────────────────────────────────────────────────── */
.glass-card {
  background: var(--clr-glass-bg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--clr-glass-bdr);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-glass);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.glass-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

/* ─────────────────────────────────────────────────────────────────────────────
   NAV
───────────────────────────────────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  pointer-events: auto;
  transition: var(--transition);
}
#navbar.scrolled {
  background: rgba(239, 209, 181, 0.78);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--clr-glass-bdr);
  box-shadow: 0 4px 24px rgba(97, 68, 62, 0.1);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--clr-text);
}
.logo-mark { color: var(--clr-accent); }
.nav-links { display: flex; align-items: center; gap: 2.5rem; }
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--clr-muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--clr-text); }
.nav-links .nav-cta {
  color: #fff;
  background: var(--clr-accent);
  padding: 0.55rem 1.4rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(160, 104, 81, 0.35);
}
.nav-links .nav-cta:hover {
  background: var(--clr-accent-dk);
  box-shadow: 0 6px 24px rgba(160, 104, 81, 0.45);
  transform: translateY(-1px);
}
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--clr-text); border-radius: 2px; transition: var(--transition); }

/* ─────────────────────────────────────────────────────────────────────────────
   BUTTONS
───────────────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: var(--transition);
  cursor: pointer;
}
.btn-primary {
  background: var(--clr-accent);
  color: #fff;
  box-shadow: 0 4px 20px rgba(160, 104, 81, 0.32);
}
.btn-primary:hover {
  background: var(--clr-accent-dk);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(160, 104, 81, 0.42);
}
.btn-ghost {
  background: var(--clr-glass-bg);
  backdrop-filter: var(--blur);
  border: 1px solid var(--clr-glass-bdr);
  color: var(--clr-text);
}
.btn-ghost:hover { background: rgba(255, 245, 232, 0.72); transform: translateY(-2px); }
.btn-full { width: 100%; justify-content: center; }

/* ─────────────────────────────────────────────────────────────────────────────
   SECTIONS — common
───────────────────────────────────────────────────────────────────────────── */
.section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 2rem;
}
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 3rem;
  color: var(--clr-text);
}
.section-title em { font-style: italic; color: var(--clr-accent); }

/* ── REVEAL ANIMATION ── */
.reveal-item {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.75s cubic-bezier(0.4,0,0.2,1), transform 0.75s cubic-bezier(0.4,0,0.2,1);
}
.reveal-item.visible { opacity: 1; transform: translateY(0); }

/* ─────────────────────────────────────────────────────────────────────────────
   HERO
───────────────────────────────────────────────────────────────────────────── */
#hero { padding-top: calc(var(--nav-h) + 2rem); }
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 400;
  line-height: 1.08;
  color: var(--clr-text);
  max-width: 16ch;
  /* Subtle text shadow so it reads on the terrain */
  text-shadow: 0 2px 24px rgba(239,209,181,0.6);
}
.hero-title em { font-style: italic; color: var(--clr-accent); }
.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--clr-muted);
  max-width: 54ch;
  line-height: 1.75;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin-top: 0.5rem; }
.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin-top: 3rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-muted);
}
.scroll-line {
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, var(--clr-accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50%       { transform: scaleY(0.55); opacity: 0.4; }
}

/* ─────────────────────────────────────────────────────────────────────────────
   ABOUT
───────────────────────────────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.about-card {
  padding: 2.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.about-card h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 400;
  line-height: 1.2;
}
.about-card h2 em { font-style: italic; color: var(--clr-accent); }
.about-card p { font-size: 0.97rem; color: var(--clr-muted); line-height: 1.8; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.stat-card { padding: 2rem 1.8rem; display: flex; flex-direction: column; gap: 0.25rem; }
.stat-top { display: flex; align-items: baseline; gap: 2px; }
.stat-num {
  font-family: var(--font-serif);
  font-size: 2.9rem;
  color: var(--clr-accent);
  line-height: 1;
}
.stat-unit { font-family: var(--font-serif); font-size: 1.8rem; color: var(--clr-accent); }
.stat-label { font-size: 0.82rem; color: var(--clr-muted); font-weight: 500; margin-top: 0.3rem; }

/* ─────────────────────────────────────────────────────────────────────────────
   SERVICES
───────────────────────────────────────────────────────────────────────────── */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service-card { padding: 2.4rem 2rem; display: flex; flex-direction: column; gap: 1rem; }
.service-icon { font-size: 1.8rem; color: var(--clr-accent); margin-bottom: 0.4rem; }
.service-card h3 { font-family: var(--font-serif); font-size: 1.45rem; font-weight: 400; }
.service-card p { font-size: 0.93rem; color: var(--clr-muted); line-height: 1.75; }
.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: auto; padding-top: 1rem; }
.tag-list li {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--clr-accent-dk);
  background: var(--clr-accent-lt);
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   PROCESS
───────────────────────────────────────────────────────────────────────────── */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.process-card { padding: 2.2rem 1.8rem; display: flex; flex-direction: column; gap: 0.9rem; }
.step-num {
  font-family: var(--font-serif);
  font-size: 3.4rem;
  color: rgba(160, 104, 81, 0.22);
  line-height: 1;
}
.process-card h3 { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 400; }
.process-card p { font-size: 0.9rem; color: var(--clr-muted); line-height: 1.75; }

/* ─────────────────────────────────────────────────────────────────────────────
   TESTIMONIALS
───────────────────────────────────────────────────────────────────────────── */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.testimonial-card { padding: 2.4rem 2rem; display: flex; flex-direction: column; gap: 1.2rem; }
.quote-mark {
  font-family: var(--font-serif);
  font-size: 4rem;
  color: var(--clr-accent);
  line-height: 0.8;
  opacity: 0.35;
}
.quote-text { font-size: 0.95rem; color: var(--clr-text); line-height: 1.8; flex: 1; }
.quote-author { display: flex; align-items: center; gap: 1rem; margin-top: auto; padding-top: 1.2rem; border-top: 1px solid rgba(160,104,81,0.15); }
.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; font-size: 1rem;
  flex-shrink: 0;
}
.quote-author strong { display: block; font-size: 0.92rem; font-weight: 600; }
.quote-author span { font-size: 0.8rem; color: var(--clr-muted); }

/* ─────────────────────────────────────────────────────────────────────────────
   CONTACT
───────────────────────────────────────────────────────────────────────────── */
.contact-inner { max-width: 680px; }
.contact-sub { color: var(--clr-muted); font-size: 1.05rem; line-height: 1.75; margin-bottom: 2.5rem; }
.contact-form { padding: 2.8rem; display: flex; flex-direction: column; gap: 1.4rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--clr-text); letter-spacing: 0.02em; }
.form-group input,
.form-group textarea {
  padding: 0.85rem 1.1rem;
  background: rgba(255, 245, 232, 0.55);
  border: 1px solid rgba(160, 104, 81, 0.2);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--clr-text);
  resize: none;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #b8917a; }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--clr-accent);
  box-shadow: 0 0 0 3px rgba(160, 104, 81, 0.12);
  background: rgba(255, 248, 238, 0.8);
}
.contact-alt { margin-top: 1.5rem; font-size: 0.9rem; color: var(--clr-muted); }
.contact-alt a { color: var(--clr-accent); font-weight: 500; }
.contact-alt a:hover { text-decoration: underline; }

/* ─────────────────────────────────────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────────────────────────────────────── */
#footer {
  padding: 2.5rem 2rem;
  background: rgba(239, 209, 181, 0.72);
  backdrop-filter: var(--blur);
  border-top: 1px solid var(--clr-glass-bdr);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-inner p { font-size: 0.85rem; color: var(--clr-muted); }
.footer-links { display: flex; gap: 1.8rem; }
.footer-links a { font-size: 0.85rem; color: var(--clr-muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--clr-text); }

/* ── Custom scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(160, 104, 81, 0.3); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(160, 104, 81, 0.55); }

/* ─────────────────────────────────────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(239, 209, 181, 0.95);
    backdrop-filter: var(--blur);
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--clr-glass-bdr);
  }
  .hamburger { display: flex; }
  .services-grid,
  .testimonials-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 6rem 1.25rem; }
  .hero-sub br { display: none; }
}
