/* ============================================
   CARPE TREE'EM - UNIFIED STYLES
   Clean, consolidated stylesheet
   ============================================ */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  /* Brand Colors */
  --forest: #2C5F2D;
  --forest-light: #4a7c59;
  --forest-dark: #1a3d1a;
  --amber: #D4A373;
  --amber-light: #e6c9a8;
  --earth: #8B5E3B;
  --bark-gray: #A9A9A9;
  
  /* Light Mode */
  --bg: #f5f5f5;
  --bg-secondary: #e8ede8;
  --text: #333333;
  --text-muted: #666666;
  --text-light: #888888;
  
  /* Glass Effect - Light Mode */
  --glass-bg: rgba(255, 255, 255, 0.18);
  --glass-border: rgba(255, 255, 255, 0.28);
  --glass-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
  
  /* Pill Effect */
  /* Header-style pills (used sitewide) */
  --pill-bg: rgba(255, 255, 255, 0.18);
  --pill-border: rgba(255, 255, 255, 0.5);
  
  /* Header */
  --header-bg: rgba(44, 95, 45, 0.92);
  
  /* Background patterns */
  --bg-pattern-start: rgba(44, 95, 45, 0.08);
  --bg-pattern-end: rgba(212, 163, 115, 0.08);

  /* Legacy variable aliases (used by older inline page CSS) */
  --background-color: var(--bg);
  --background-color-secondary: var(--bg-secondary);
  --text-color: var(--text);
  --text-muted-color: var(--text-muted);
  --deep-forest-green: var(--forest);
  --muted-golden-amber: var(--amber);
}

/* Dark Mode (keep brand, reduce harsh contrast) */
.dark, [data-theme="dark"] {
  --bg: #0f1310;
  --bg-secondary: #131a15;
  --text: #e8e8e3;
  --text-muted: #b9b9b4;
  --text-light: #8f8f89;
  
  --glass-bg: rgba(20, 28, 23, 0.58);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  
  --pill-bg: rgba(255, 255, 255, 0.08);
  --pill-border: rgba(255, 255, 255, 0.22);
  
  --header-bg: rgba(44, 95, 45, 0.9);
  
  --bg-pattern-start: rgba(44, 95, 45, 0.12);
  --bg-pattern-end: rgba(212, 163, 115, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  transition: background 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
}

/* Ambient background gradient */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1200px 600px at 20% 0%, var(--bg-pattern-start), transparent 60%),
    radial-gradient(1200px 600px at 80% 100%, var(--bg-pattern-end), transparent 60%);
  background-attachment: fixed;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  color: var(--forest);
  font-weight: 600;
  line-height: 1.3;
  display: block;
  clear: both;
}

.dark h1, .dark h2, .dark h3, .dark h4, .dark h5, .dark h6 {
  color: #d8c7a1; /* softer amber to keep brand tone without glare */
}

p {
  line-height: 1.6;
  color: var(--text);
}

a {
  color: var(--amber);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  text-decoration: underline;
}

/* ============================================
   CONTACT HEADER (Top Bar)
   ============================================ */
.contact-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1010;
  background: var(--header-bg);
  backdrop-filter: saturate(1.2) blur(12px);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  padding: 6px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.contact-header a {
  color: white;
  text-decoration: none;
  padding: 5px 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 50px;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 0.8em;
  background: var(--pill-bg);
}

.contact-header a:hover {
  background: rgba(255, 255, 255, 0.95);
  color: var(--forest);
  border-color: white;
  text-decoration: none;
}

/* ============================================
   SERVICE PAGES
   Ensures dark mode affects backgrounds, not just text
   ============================================ */
.service-header {
  max-width: 1200px;
  margin: 120px auto 30px auto;
  padding: 28px 22px;
  background: var(--bg-secondary);
  color: var(--text);
  border-radius: 16px;
  box-shadow: var(--glass-shadow);
  border: 1px solid var(--glass-border);
}

.service-content {
  max-width: 1100px;
  margin: 0 auto 60px auto;
  padding: 24px 22px 32px 22px;
  background: var(--glass-bg);
  color: var(--text);
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.service-content h2 {
  color: var(--forest);
  margin-top: 22px;
  margin-bottom: 10px;
}

.dark .service-content h2 {
  color: var(--amber);
}

.service-content ul {
  margin: 10px 0 18px 18px;
  color: var(--text);
}

.service-content li strong {
  color: var(--text);
}

.dark .service-header {
  background: rgba(18, 26, 21, 0.9);
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.dark .service-content {
  background: rgba(16, 24, 19, 0.72);
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* ============================================
   NAVIGATION
   ============================================ */
nav {
  position: fixed;
  top: 38px;
  left: 0;
  right: 0;
  z-index: 1005;
  padding: 8px 0;
  text-align: center;
  background: var(--header-bg);
  backdrop-filter: saturate(1.2) blur(12px);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
}

.nav-logo {
  height: 40px;
  padding: 5px 0;
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 auto;
  padding: 0;
  position: relative;
}

.nav-links a {
  background: var(--pill-bg);
  color: white;
  padding: 7px 14px;
  border: 1.5px solid var(--pill-border);
  border-radius: 50px;
  font-size: 0.78em;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.4px;
  margin: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  text-decoration: none;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.95);
  color: var(--forest);
  border-color: white;
  transform: translateY(-1px);
  text-decoration: none;
}

/* Dark-mode nav and glass elements keep brand but soften glare */
.dark nav,
.dark .contact-header {
  background: var(--header-bg);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.35);
}

.dark .glass,
.dark .glass-header,
.dark .glass-dark,
.dark .card,
.dark .info-card,
.dark .stat-card,
.dark .value-card,
.dark .pill,
.dark .pill-badge {
  background: var(--glass-bg);
  border-color: var(--glass-border);
  box-shadow: var(--glass-shadow);
  color: var(--text);
}

.dark .nav-links a {
  color: #f0f0e8;
  border-color: var(--pill-border);
  background: var(--pill-bg);
}

.dark .nav-links a:hover {
  background: rgba(240, 240, 232, 0.12);
  color: #f7f2e5;
  border-color: rgba(255, 255, 255, 0.35);
}

/* Desktop submenu */
.nav-links .submenu {
  display: none;
  position: absolute;
  top: 45px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg);
  border: 2px solid var(--forest);
  border-radius: 8px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
  padding: 8px 0;
  min-width: 280px;
  z-index: 1003;
}

.nav-links .submenu a {
  display: block;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(44,95,45,0.15);
  color: var(--forest);
  background: var(--bg);
  text-transform: none;
  letter-spacing: normal;
  border-radius: 0;
  border: none;
  margin: 0;
}

.nav-links .submenu a:last-child { border-bottom: none; }
.nav-links .submenu.active { display: block; }

/* ============================================
   GLASS EFFECTS
   ============================================ */
.glass {
  backdrop-filter: saturate(1.15) blur(12px);
  -webkit-backdrop-filter: saturate(1.15) blur(12px);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  box-shadow: var(--glass-shadow);
  transition: all 0.2s ease;
}

.glass:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  transform: translateY(-1px);
}

.glass-dark {
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  background: rgba(44,95,45,0.85);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}

.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: var(--glass-shadow);
}

/* ============================================
   BUTTONS
   ============================================ */
button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: var(--earth);
  border: none;
  border-radius: 5px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

button:hover, .btn:hover {
  background: var(--forest);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.65);
  color: var(--forest);
  border: 1.5px solid rgba(44, 95, 45, 0.35);
  border-radius: 50px;
  font-size: 0.9em;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
}

.cta-button:hover {
  background: var(--forest);
  color: white;
  transform: translateY(-2px);
  border-color: var(--forest);
  text-decoration: none;
}

.glass-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.65);
  border: 1.5px solid rgba(44, 95, 45, 0.35);
  border-radius: 50px;
  color: var(--forest);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-decoration: none;
}

.glass-pill:hover {
  background: var(--forest);
  color: white;
  border-color: var(--forest);
  transform: translateY(-2px);
  text-decoration: none;
}

/* Dark mode pills stay light-on-dark */
.dark .glass-pill,
.dark .cta-button {
  background: var(--pill-bg);
  border-color: var(--pill-border);
  color: #f0f0e8;
}

.dark .glass-pill:hover,
.dark .cta-button:hover {
  background: rgba(240, 240, 232, 0.12);
  color: #f7f2e5;
  border-color: rgba(255, 255, 255, 0.35);
}

/* Larger CTA pill variant (same family as glass pills) */
.cta-pill {
  padding: 12px 26px;
  font-size: 0.9rem;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  padding-top: 120px;
  padding-bottom: 40px;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================
   CONTENT SECTIONS
   ============================================ */
.content {
  max-width: 800px;
  margin: 100px auto 40px;
  padding: 0 20px;
}

.content h2 {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--amber);
}

section {
  padding: 40px 20px;
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background: white;
  border: 1px solid var(--bark-gray);
  padding: 15px;
  border-radius: 8px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

.service-card {
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.service-card h3 {
  color: var(--forest);
  margin: 0 0 15px;
}

/* ============================================
   FORMS
   ============================================ */
input, textarea, select {
  width: 100%;
  padding: 12px 16px;
  background: var(--glass-bg);
  border: 1.5px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text);
  font-size: 1rem;
  transition: all 0.25s ease;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(44, 95, 45, 0.15);
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--text);
  font-size: 0.9rem;
}

.error-message {
  color: red;
  font-size: 0.9em;
  margin-top: 5px;
}

/* ============================================
   VIDEO SECTION
   ============================================ */
.video-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--glass-shadow);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  text-align: center;
  padding: 20px;
  background: var(--forest);
  color: white;
  margin-top: 40px;
}

footer p {
  margin: 0;
  font-size: 0.9em;
  color: rgba(255,255,255,0.9);
}

footer a {
  color: var(--amber-light);
}

/* ============================================
   THEME TOGGLE
   ============================================ */
.theme-toggle {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 2000;
  padding: 10px 14px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  cursor: pointer;
  font-size: 1.3rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--glass-shadow);
  color: var(--text);
}

.theme-toggle:hover {
  transform: scale(1.1) rotate(15deg);
}

/* ============================================
   MODAL
   ============================================ */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  overflow-y: auto;
}

.modal-content {
  background: var(--bg);
  margin: 5% auto;
  padding: 20px;
  width: 90%;
  max-width: 800px;
  border-radius: 8px;
  position: relative;
}

.close-button {
  position: absolute;
  right: 20px;
  top: 10px;
  font-size: 28px;
  font-weight: bold;
  color: var(--forest);
  cursor: pointer;
}

/* ============================================
   SERVICE PAGES
   ============================================ */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px;
  max-width: 1200px;
  margin: 20px auto;
}

.services-hero {
  text-align: center;
  padding: 60px 20px;
  background: var(--forest);
  color: white;
  margin-top: 90px;
}

.services-hero h1 {
  font-size: 2.8em;
  margin-bottom: 10px;
  color: white;
}

.service-link {
  display: inline-block;
  background: var(--earth);
  color: white;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: bold;
  transition: background 0.3s ease;
  text-decoration: none;
}

.service-link:hover {
  background: var(--forest);
  text-decoration: none;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonial-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin: 20px 0;
}

.testimonial {
  background: #f9f9f9;
  padding: 25px;
  border-radius: 8px;
  border-left: 4px solid var(--forest);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  flex: 1;
  min-width: 300px;
}

.testimonial p {
  font-style: italic;
  margin-bottom: 10px;
  font-size: 1.1em;
  line-height: 1.5;
}

.testimonial-author {
  font-weight: bold;
  color: var(--forest);
  text-align: right;
  font-style: normal !important;
  font-size: 0.9em !important;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .contact-header {
    padding: 5px 10px;
    font-size: 0.8em;
  }
  
  .contact-header a {
    padding: 4px 10px;
    font-size: 0.75em;
    margin: 2px 4px;
  }
  
  nav {
    top: 34px;
  }
  
  .nav-links {
    gap: 4px;
    padding: 0 10px;
  }
  
  .nav-links a {
    padding: 5px 10px;
    font-size: 0.7em;
  }
  
  .hero {
    padding-top: 100px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .content {
    margin-top: 100px;
    padding: 0 15px;
  }
  
  .theme-toggle {
    top: auto;
    bottom: 20px;
    right: 20px;
  }
  
  .service-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonial-container {
    flex-direction: column;
  }
  
  .testimonial {
    min-width: 100%;
  }
}

/* Mobile navigation:
   Keep pill navigation visible on all screens (no hamburger collapse). */
.menu-toggle {
  display: none !important;
}

