/* ============================================
   Emotional Perfection LLC — Style System
   Color Palette: Emerald Green + Cream
   ============================================ */

:root {
  --emerald-900: #022c22;
  --emerald-800: #064e3b;
  --emerald-700: #065f46;
  --emerald-600: #047857;
  --emerald-500: #059669;
  --emerald-400: #10b981;
  --emerald-100: #d1fae5;
  --emerald-50:  #ecfdf5;
  --cream:       #faf9f6;
  --cream-dark:  #f5f3ee;
  --cream-mid:   #ece8e0;
  --stone-900:   #1c1917;
  --stone-700:   #292524;
  --stone-600:   #44403c;
  --stone-500:   #57534e;
  --stone-400:   #78716c;
  --stone-300:   #a8a29e;
  --stone-200:   #d6d3d1;
  --stone-100:   #e7e5e4;
  --white:       #ffffff;
  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-sans:   'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width:   1200px;
  --nav-height:  72px;
}

/* 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-sans);
  font-weight: 300;
  color: var(--stone-700);
  background: var(--cream);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: var(--font-sans); font-size: 1rem; }

/* Utility */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 120px 0; }
.section-eyebrow {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--emerald-600);
  margin-bottom: 16px;
}
.section-header { text-align: center; max-width: 640px; margin: 0 auto 72px; }
.section-sub { color: var(--stone-500); font-size: 1.05rem; margin-top: 16px; line-height: 1.8; }

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
  color: var(--stone-900);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 300; line-height: 1.15; }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 400; line-height: 1.2; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 500; }
h4 { font-size: 1.1rem; font-family: var(--font-sans); font-weight: 500; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  transition: all 0.3s ease;
  border: 1.5px solid transparent;
}
.btn-primary {
  background: var(--emerald-700);
  color: var(--white);
  border-color: var(--emerald-700);
}
.btn-primary:hover { background: var(--emerald-800); border-color: var(--emerald-800); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }
.btn-outline {
  background: transparent;
  color: var(--emerald-700);
  border-color: var(--emerald-700);
}
.btn-outline:hover { background: var(--emerald-700); color: var(--white); }
.btn-lg { padding: 16px 40px; font-size: 0.95rem; }
.btn-full { width: 100%; }

/* ========== NAVIGATION ========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: all 0.4s ease;
  background: transparent;
}
.nav.scrolled {
  background: rgba(250, 249, 246, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--stone-200);
}
.nav.scrolled .nav-logo { color: var(--stone-900); }
.nav.scrolled .nav-links a { color: var(--stone-700); }
.nav.scrolled .nav-links a:hover { color: var(--emerald-600); }
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.02em;
}
.nav-logo-icon { opacity: 0.85; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--white); }
.nav-cta {
  padding: 8px 20px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 4px;
  transition: all 0.3s ease !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); }
.nav.scrolled .nav-cta { border-color: var(--emerald-700); color: var(--emerald-700) !important; }
.nav.scrolled .nav-cta:hover { background: var(--emerald-700); color: var(--white) !important; }

/* Mobile Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  padding: 4px 0;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--white);
  transition: all 0.3s ease;
  border-radius: 1px;
}
.nav.scrolled .nav-toggle span { background: var(--stone-700); }
.nav-toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ========== HERO ========== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(2, 44, 34, 0.82) 0%,
    rgba(6, 78, 59, 0.72) 50%,
    rgba(4, 120, 87, 0.65) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 24px;
  text-align: center;
}
.hero-eyebrow {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--emerald-100);
  margin-bottom: 24px;
}
.hero h1 {
  color: var(--white);
  margin-bottom: 24px;
  font-weight: 300;
}
.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: float 2.5s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ========== ABOUT ========== */
.about { background: var(--cream); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-image {
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 600/750;
}
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.about-content h2 {
  margin-bottom: 24px;
  font-weight: 400;
}
.about-content p {
  color: var(--stone-600);
  margin-bottom: 20px;
  font-size: 1.02rem;
}
.about-stats {
  display: flex;
  gap: 48px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--stone-200);
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-number {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--emerald-700);
  line-height: 1;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--stone-500);
  letter-spacing: 0.03em;
}

/* ========== SERVICES ========== */
.services { background: var(--white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.service-card {
  padding: 40px 32px;
  border: 1px solid var(--stone-100);
  border-radius: 4px;
  transition: all 0.35s ease;
  background: var(--cream);
}
.service-card:hover {
  border-color: var(--emerald-200);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(4, 120, 87, 0.08);
}
.service-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: var(--emerald-50);
  color: var(--emerald-700);
  margin-bottom: 24px;
}
.service-card h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
}
.service-card p {
  color: var(--stone-500);
  font-size: 0.95rem;
  line-height: 1.75;
}

/* ========== APPROACH ========== */
.approach { background: var(--cream); }
.approach-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.approach-content h2 { margin-bottom: 20px; }
.approach-content > p {
  color: var(--stone-600);
  margin-bottom: 48px;
  font-size: 1.02rem;
}
.approach-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 20px;
  margin-bottom: 36px;
}
.approach-num {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--emerald-400);
  font-weight: 400;
  padding-top: 2px;
}
.approach-item h4 {
  margin-bottom: 6px;
  font-size: 1.05rem;
  color: var(--stone-800);
}
.approach-item p {
  color: var(--stone-500);
  font-size: 0.92rem;
  line-height: 1.7;
}
.approach-image {
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 560/700;
}
.approach-image img { width: 100%; height: 100%; object-fit: cover; }

/* ========== TESTIMONIALS ========== */
.testimonials { background: var(--emerald-900); }
.testimonials .section-eyebrow { color: var(--emerald-400); }
.testimonials .section-header { color: var(--white); }
.testimonials h2 { color: var(--white); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.testimonial-card {
  padding: 40px 32px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  background: rgba(255,255,255,0.03);
  transition: all 0.3s ease;
}
.testimonial-card:hover {
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.06);
}
.testimonial-quote {
  color: var(--emerald-400);
  margin-bottom: 20px;
  opacity: 0.5;
}
.testimonial-text {
  color: rgba(255,255,255,0.85);
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.75;
  margin-bottom: 24px;
}
.testimonial-author {
  color: var(--emerald-200);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}

/* ========== CTA ========== */
.cta-section {
  background: var(--emerald-700);
  padding: 100px 0;
}
.cta-inner { text-align: center; max-width: 680px; margin: 0 auto; }
.cta-eyebrow { color: var(--emerald-200) !important; }
.cta-inner h2 {
  color: var(--white);
  margin-bottom: 20px;
  font-weight: 400;
}
.cta-text {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  margin-bottom: 40px;
  line-height: 1.8;
}
.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-actions .btn-outline {
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}
.cta-actions .btn-outline:hover {
  background: var(--white);
  color: var(--emerald-700);
  border-color: var(--white);
}

/* ========== CONTACT ========== */
.contact { background: var(--white); }
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
.contact-info h2 { margin-bottom: 16px; }
.contact-info > p {
  color: var(--stone-500);
  margin-bottom: 40px;
  font-size: 1.02rem;
}
.contact-details { display: flex; flex-direction: column; gap: 28px; }
.contact-detail {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-detail svg {
  color: var(--emerald-600);
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-detail strong {
  display: block;
  font-weight: 500;
  color: var(--stone-800);
  font-size: 0.9rem;
  margin-bottom: 4px;
}
.contact-detail span,
.contact-detail a {
  color: var(--stone-500);
  font-size: 0.95rem;
  line-height: 1.7;
}
.contact-detail a:hover { color: var(--emerald-600); }

/* Form */
.contact-form-wrap {
  background: var(--cream);
  border-radius: 4px;
  padding: 48px;
  border: 1px solid var(--stone-100);
}
.contact-form h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}
.form-note {
  color: var(--stone-400);
  font-size: 0.875rem;
  margin-bottom: 32px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--stone-700);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--stone-200);
  border-radius: 4px;
  background: var(--white);
  color: var(--stone-800);
  font-size: 0.95rem;
  transition: border-color 0.3s ease;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--emerald-500);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  gap: 16px;
}
.form-success.show { display: flex; }
.form-success svg { color: var(--emerald-500); }
.form-success p {
  color: var(--stone-600);
  font-size: 1rem;
  line-height: 1.7;
}

/* ========== MAP ========== */
.map-section { height: 320px; }
.map-placeholder iframe { width: 100%; height: 100%; }

/* ========== FOOTER ========== */
.footer {
  background: var(--stone-900);
  color: rgba(255,255,255,0.6);
  padding: 80px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand { max-width: 280px; }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-brand p { font-size: 0.9rem; line-height: 1.7; }
.footer-links h4,
.footer-contact h4 {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
}
.footer-links ul { display: flex; flex-direction: column; gap: 12px; }
.footer-links a {
  font-size: 0.9rem;
  transition: color 0.3s ease;
}
.footer-links a:hover { color: var(--emerald-400); }
.footer-contact p { font-size: 0.9rem; line-height: 1.8; margin-bottom: 4px; }
.footer-contact a:hover { color: var(--emerald-400); }
.footer-bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}
.footer-bottom a:hover { color: var(--emerald-400); }

/* ========== SCROLL REVEAL (progressive enhancement) ========== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal.revealed {
    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; }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .about-grid,
  .approach-layout,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .about-image { max-height: 480px; }
  .approach-image { max-height: 480px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid .testimonial-card:last-child { grid-column: span 2; max-width: 50%; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(250, 249, 246, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 32px 24px;
    gap: 24px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav-links a { color: var(--stone-700) !important; font-size: 1rem; }
  .nav-toggle { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonials-grid .testimonial-card:last-child { grid-column: span 1; max-width: 100%; }
  .contact-form-wrap { padding: 32px 24px; }
  .form-row { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .cta-actions { flex-direction: column; align-items: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .about-stats { flex-direction: column; gap: 24px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section { padding: 64px 0; }
  .hero { min-height: 560px; }
  .hero h1 { font-size: 1.75rem; }
  .contact-form-wrap { padding: 24px 20px; }
}
