/* ========================================
   GARDEN ESTATES LLC — Main Stylesheet
   Domain: gardenestatesllc.life
   Mobile-First • WCAG 2.1 AA • Static
   Owner: DORIS M RESTREPO
   ======================================== */

/* ===== CSS VARIABLES ===== */
:root {
  /* Colors — тёплая тропическая палитра */
  --color-primary: #2E7D32;        /* Forest Green */
  --color-primary-dark: #1B5E20;   /* Deep Green */
  --color-primary-light: #4CAF50;  /* Fresh Green */
  --color-accent: #8D6E63;         /* Warm Earth */
  --color-accent-light: #A98C7F;   /* Soft Taupe */
  --color-bg-light: #F9F7F2;       /* Warm Sand */
  --color-bg-white: #FFFFFF;
  --color-text-dark: #263238;
  --color-text-light: #546E7A;
  --color-border: #E8E4D9;
  --color-error: #C62828;
  --color-success: #2E7D32;
  --color-gold: #D4AF37;           /* Accent for ratings */
  
  /* Typography */
  --font-main: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Inter', sans-serif;
  --font-size-base: 1rem;
  --font-size-sm: 0.875rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2rem;
  --font-size-3xl: 2.5rem;
  --font-size-4xl: 3.5rem;
  --line-height-base: 1.7;
  --line-height-tight: 1.35;
  
  /* Spacing & Layout */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --container-max: 1200px;
  --container-padding: var(--space-md);
  --border-radius: 12px;
  --border-radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.12);
  --transition-base: 0.25s ease;
  
  /* Accessibility */
  --focus-outline: 3px solid var(--color-primary);
  --focus-offset: 2px;
}

/* ===== BASE RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-main);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text-dark);
  background: var(--color-bg-white);
  -webkit-font-smoothing: antialiased;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-sm);
  color: var(--color-text-dark);
}
h1 { font-size: var(--font-size-3xl); }
h2 { font-size: var(--font-size-2xl); }
h3 { font-size: var(--font-size-xl); }
p { margin-bottom: var(--space-md); }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition-base); }
a:hover, a:focus { color: var(--color-primary-dark); }
a:focus-visible { outline: var(--focus-outline); outline-offset: var(--focus-offset); }
img { max-width: 100%; height: auto; display: block; }

/* ===== UTILITIES ===== */
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-padding); }
.section { padding: var(--space-xl) 0; }
.section-light { background-color: var(--color-bg-light); }
.text-center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.875rem 1.75rem; font-weight: 500; border-radius: 50px;
  border: 2px solid transparent; cursor: pointer; transition: all var(--transition-base);
  min-height: 48px; min-width: 48px; font-size: var(--font-size-base);
}
.btn-primary { background: var(--color-primary); color: white; }
.btn-primary:hover, .btn-primary:focus { background: var(--color-primary-dark); color: white; }
.btn-primary:focus-visible { outline: var(--focus-outline); outline-offset: var(--focus-offset); }
.btn-secondary { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn-secondary:hover, .btn-secondary:focus { background: var(--color-primary); color: white; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ===== HEADER & NAV ===== */
.header { position: sticky; top: 0; z-index: 1000; background: var(--color-bg-white); box-shadow: var(--shadow-sm); padding: var(--space-sm) 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); }
.logo { display: flex; align-items: center; gap: var(--space-xs); font-weight: 700; font-size: var(--font-size-lg); color: var(--color-primary); }
.logo img { height: 40px; width: auto; }
.nav-toggle { display: block; background: none; border: none; padding: var(--space-xs); cursor: pointer; min-width: 48px; min-height: 48px; }
.nav-toggle:focus-visible { outline: var(--focus-outline); outline-offset: var(--focus-offset); }
.nav-toggle-icon { display: block; width: 24px; height: 2px; background: var(--color-text-dark); position: relative; transition: background var(--transition-base); }
.nav-toggle-icon::before, .nav-toggle-icon::after { content: ''; position: absolute; left: 0; width: 24px; height: 2px; background: var(--color-text-dark); transition: transform var(--transition-base); }
.nav-toggle-icon::before { top: -7px; }
.nav-toggle-icon::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before { transform: rotate(45deg) translate(4px, 4px); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after { transform: rotate(-45deg) translate(4px, -4px); }
.nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--color-bg-white); padding: var(--space-md); box-shadow: var(--shadow-md); flex-direction: column; gap: var(--space-sm); }
.nav.active { display: flex; }
.nav-link { padding: var(--space-xs) 0; font-weight: 500; }
.nav-cta { margin-top: var(--space-sm); padding-top: var(--space-sm); border-top: 1px solid var(--color-border); }
@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .nav { position: static; display: flex; flex-direction: row; align-items: center; gap: var(--space-lg); padding: 0; background: none; box-shadow: none; }
  .nav-link { padding: 0; }
  .nav-cta { margin: 0; padding: 0; border: none; }
}

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 75vh; display: flex; align-items: center; justify-content: center;
  text-align: center; color: white; background-size: cover; background-position: center; background-repeat: no-repeat;
}
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(27,94,32,0.88), rgba(46,125,50,0.75)); z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: 850px; padding: var(--space-xl) var(--container-padding); }
.hero h1 { color: white; font-size: var(--font-size-3xl); margin-bottom: var(--space-md); line-height: 1.25; }
.hero p { font-size: var(--font-size-lg); margin-bottom: var(--space-lg); color: rgba(255,255,255,0.98); max-width: 700px; margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); justify-content: center; }
.hero-actions .btn { min-width: 190px; }
@media (min-width: 768px) { .hero h1 { font-size: var(--font-size-4xl); } }

/* ===== SERVICES PREVIEW ===== */
.services-preview { display: grid; gap: var(--space-md); }
@media (min-width: 768px) { .services-preview { grid-template-columns: repeat(3, 1fr); } }
.service-card {
  background: var(--color-bg-white); border-radius: var(--border-radius-lg); padding: var(--space-lg);
  text-align: center; box-shadow: var(--shadow-sm); transition: transform var(--transition-base), box-shadow var(--transition-base);
  border: 1px solid var(--color-border);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.service-icon { width: 72px; height: 72px; margin: 0 auto var(--space-md); display: flex; align-items: center; justify-content: center; background: var(--color-bg-light); border-radius: 50%; }
.service-icon img { width: 36px; height: auto; }
.service-card h3 { margin-bottom: var(--space-sm); }
.service-card p { margin-bottom: var(--space-md); color: var(--color-text-light); }

/* ===== WHY CHOOSE US ===== */
.features { display: grid; gap: var(--space-md); }
@media (min-width: 768px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { text-align: center; padding: var(--space-md); }
.feature-icon { width: 64px; height: 64px; margin: 0 auto var(--space-sm); display: flex; align-items: center; justify-content: center; background: var(--color-bg-light); border-radius: 50%; }
.feature-icon img { width: 32px; height: 32px; }
.feature h3 { font-size: var(--font-size-lg); margin-bottom: var(--space-xs); }

/* ===== TESTIMONIALS ===== */
.testimonials { display: grid; gap: var(--space-md); }
@media (min-width: 768px) { .testimonials { grid-template-columns: repeat(3, 1fr); } }
.testimonial {
  background: var(--color-bg-white); border-radius: var(--border-radius-lg); padding: var(--space-lg);
  box-shadow: var(--shadow-sm); border: 1px solid var(--color-border);
}
.testimonial-header { display: flex; align-items: center; gap: var(--space-sm); margin-bottom: var(--space-md); }
.testimonial-avatar { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; background: var(--color-bg-light); }
.testimonial-author { font-weight: 600; }
.testimonial-location { font-size: var(--font-size-sm); color: var(--color-text-light); }
.testimonial-rating { color: var(--color-gold); margin-bottom: var(--space-sm); letter-spacing: 2px; }
.testimonial-text { font-style: italic; color: var(--color-text-light); }

/* ===== CTA BAND ===== */
.cta-band {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: white; text-align: center;
}
.cta-band h2 { color: white; margin-bottom: var(--space-md); }
.cta-band .btn { background: white; color: var(--color-primary); }
.cta-band .btn:hover { background: var(--color-bg-light); }

/* ===== CONTACT FORM ===== */
.form-group { margin-bottom: var(--space-md); }
.form-label { display: block; margin-bottom: var(--space-xs); font-weight: 500; }
.form-label .required { color: var(--color-error); margin-left: 2px; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 0.875rem; font-size: var(--font-size-base);
  border: 1px solid var(--color-border); border-radius: var(--border-radius);
  background: var(--color-bg-white); color: var(--color-text-dark); min-height: 48px;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: var(--focus-outline); border-color: var(--color-primary); }
.form-textarea { min-height: 140px; resize: vertical; }
.form-error { color: var(--color-error); font-size: var(--font-size-sm); margin-top: var(--space-xs); display: none; }
.form-error.visible { display: block; }
.form-success { background: #E8F5E9; color: var(--color-success); padding: var(--space-md); border-radius: var(--border-radius); margin-bottom: var(--space-md); display: none; }
.form-success.visible { display: block; }

/* ===== GOOGLE MAP ===== */
.map-container { width: 100%; border-radius: var(--border-radius-lg); overflow: hidden; box-shadow: var(--shadow-md); margin: var(--space-lg) 0; }
.map-container iframe { width: 100%; height: 320px; border: 0; display: block; }

/* ===== FOOTER ===== */
.footer { background: var(--color-text-dark); color: rgba(255,255,255,0.92); padding: var(--space-xl) 0 var(--space-lg); }
.footer-grid { display: grid; gap: var(--space-lg); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand .logo { color: white; margin-bottom: var(--space-sm); }
.footer-brand p { color: rgba(255,255,255,0.85); margin-bottom: var(--space-md); }
.footer-brand address { font-style: normal; color: rgba(255,255,255,0.85); }
.footer-links h4 { color: white; font-size: var(--font-size-base); margin-bottom: var(--space-sm); }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-xs); }
.footer-links a { color: rgba(255,255,255,0.85); transition: color var(--transition-base); }
.footer-links a:hover, .footer-links a:focus { color: white; }
.footer-bottom { margin-top: var(--space-xl); padding-top: var(--space-md); border-top: 1px solid rgba(255,255,255,0.12); text-align: center; font-size: var(--font-size-sm); color: rgba(255,255,255,0.75); }
.footer-bottom a { color: rgba(255,255,255,0.92); }

/* ===== LEGAL PAGES ===== */
.legal-content { max-width: 820px; margin: 0 auto; }
.legal-content h1 { margin-bottom: var(--space-lg); }
.legal-content h2 { margin: var(--space-xl) 0 var(--space-md); padding-bottom: var(--space-xs); border-bottom: 2px solid var(--color-border); }
.legal-content h3 { margin: var(--space-lg) 0 var(--space-sm); }
.legal-content p, .legal-content ul { margin-bottom: var(--space-md); }
.legal-content ul { padding-left: var(--space-lg); }
.legal-content li { margin-bottom: var(--space-xs); }

/* ===== PROCESS STEPS ===== */
.process { display: grid; gap: var(--space-lg); counter-reset: step; }
@media (min-width: 768px) { .process { grid-template-columns: repeat(3, 1fr); gap: var(--space-xl); } }
.process-step { text-align: center; position: relative; }
.process-step::before {
  counter-increment: step; content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; margin: 0 auto var(--space-md);
  background: var(--color-primary); color: white; border-radius: 50%;
  font-weight: 600; font-size: var(--font-size-lg);
}
.process-step img { width: 100%; max-width: 220px; margin: 0 auto var(--space-md); border-radius: var(--border-radius); }

/* ===== FAQ ACCORDION ===== */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { border: 1px solid var(--color-border); border-radius: var(--border-radius); margin-bottom: var(--space-sm); overflow: hidden; }
.faq-question {
  width: 100%; padding: var(--space-md); background: none; border: none; text-align: left;
  font-weight: 500; font-size: var(--font-size-base); color: var(--color-text-dark); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; min-height: 48px;
}
.faq-question:hover { background: var(--color-bg-light); }
.faq-question:focus-visible { outline: var(--focus-outline); outline-offset: -2px; }
.faq-toggle { font-size: 1.35rem; transition: transform var(--transition-base); }
.faq-item[aria-expanded="true"] .faq-toggle { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height var(--transition-base), padding var(--transition-base); padding: 0 var(--space-md); }
.faq-item[aria-expanded="true"] .faq-answer { max-height: 600px; padding: 0 var(--space-md) var(--space-md); }
.faq-answer p { margin-bottom: 0; color: var(--color-text-light); }

/* ===== SERVICE AREA BADGE ===== */
.service-area {
  display: inline-flex; align-items: center; gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md); background: var(--color-bg-light);
  border-radius: 50px; font-weight: 500; color: var(--color-primary);
}
.service-area svg { width: 20px; height: 20px; }

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
@media (prefers-contrast: high) {
  :root { --color-border: #000; --color-text-light: #000; }
  .btn { border-width: 3px; }
}
@media print {
  .header, .footer, .btn, .nav-toggle { display: none !important; }
  body { font-size: 12pt; color: #000; background: #fff; }
  a { text-decoration: underline; color: #000; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 0.9em; }
}