/* ===== CSS Custom Properties ===== */
:root {
  --emerald-950: #022c22;
  --emerald-900: #064e3b;
  --emerald-800: #065f46;
  --emerald-700: #047857;
  --emerald-600: #059669;
  --emerald-500: #10b981;
  --emerald-100: #d1fae5;
  --emerald-50: #ecfdf5;

  --cream-50:  #faf9f6;
  --cream-100: #f5f3ed;
  --cream-200: #ece8de;
  --cream-300: #e0dbd0;
  --cream-400: #c8bfb0;

  --text-dark:   #1a1f1c;
  --text-muted:  #4a5550;
  --text-light:  #f5f3ed;

  --font-serif:  'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans:   'Inter', system-ui, -apple-system, sans-serif;

  --shadow-sm:  0 1px 3px rgba(2, 44, 34, 0.06);
  --shadow-md:  0 4px 16px rgba(2, 44, 34, 0.08);
  --shadow-lg:  0 12px 40px rgba(2, 44, 34, 0.12);
  --shadow-xl:  0 20px 60px rgba(2, 44, 34, 0.15);

  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  28px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset & Base ===== */
*, *::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-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--cream-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-dark);
}

.section-label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--emerald-700);
  margin-bottom: 12px;
  padding: 6px 14px;
  background: var(--emerald-50);
  border: 1px solid var(--emerald-100);
  border-radius: 100px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 20px;
  color: var(--text-dark);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

.text-center {
  text-align: center;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: 100px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--emerald-700);
  color: #fff;
  border-color: var(--emerald-700);
}

.btn-primary:hover {
  background: var(--emerald-800);
  border-color: var(--emerald-800);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.btn-light {
  background: #fff;
  color: var(--emerald-800);
  border-color: #fff;
}

.btn-light:hover {
  background: var(--cream-100);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--cream-200);
  transition: all var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--emerald-800);
}

.logo-mark {
  color: var(--emerald-700);
}

.logo-light {
  color: #fff;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 100px;
  transition: all var(--transition);
}

.main-nav a:hover {
  color: var(--emerald-700);
  background: var(--emerald-50);
}

.nav-cta {
  background: var(--emerald-700) !important;
  color: #fff !important;
  padding: 10px 20px !important;
}

.nav-cta:hover {
  background: var(--emerald-800) !important;
  color: #fff !important;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  position: relative;
  z-index: 1001;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--emerald-800);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger {
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}

.hamburger::before { top: -7px; }
.hamburger::after  { top: 7px; }

.nav-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--emerald-950) 0%,
    var(--emerald-800) 25%,
    var(--emerald-700) 50%,
    #0d7a5f 70%,
    var(--emerald-600) 100%
  );
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(16, 185, 129, 0.3) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(6, 78, 59, 0.5) 0%, transparent 60%),
    radial-gradient(ellipse 90% 70% at 50% 50%, rgba(4, 120, 87, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: url('https://images.pexels.com/photos/18448916/pexels-photo-18448916.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080') center/cover no-repeat;
  opacity: 0.12;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 120px 24px 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  padding: 8px 20px;
  margin-bottom: 32px;
  backdrop-filter: blur(8px);
}

.hero-headline {
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.25rem, 3vw, 2rem);
  color: rgba(255, 255, 255, 0.75);
  display: block;
  margin-top: 4px;
}

.hero-body {
  font-size: clamp(1rem, 1.5vw, 1.1875rem);
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 24px auto 40px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

.trust-item svg {
  color: rgba(255, 255, 255, 0.6);
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  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 {
  padding: 100px 0;
  background: var(--cream-50);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
}

.about-image-wrapper img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.about-image-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 160px;
  height: 160px;
  background: var(--emerald-100);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.about-content .section-title {
  margin-bottom: 24px;
}

.about-content p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 1.05rem;
  line-height: 1.8;
}

.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--cream-200);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--emerald-700);
  line-height: 1;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ===== Services ===== */
.services {
  padding: 100px 0;
  background: var(--cream-100);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.service-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1px solid var(--cream-200);
  transition: all var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--emerald-100);
}

.service-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--emerald-50);
  border: 1px solid var(--emerald-100);
  border-radius: var(--radius-md);
  color: var(--emerald-700);
  margin-bottom: 20px;
  transition: all var(--transition);
}

.service-card:hover .service-icon {
  background: var(--emerald-700);
  color: #fff;
  border-color: var(--emerald-700);
}

.service-title {
  font-size: 1.1875rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.service-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ===== Community ===== */
.community {
  padding: 100px 0;
  background: linear-gradient(
    135deg,
    var(--emerald-950) 0%,
    var(--emerald-800) 50%,
    var(--emerald-700) 100%
  );
  position: relative;
  overflow: hidden;
}

.community::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 0% 100%, rgba(16, 185, 129, 0.2) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 100% 0%, rgba(6, 78, 59, 0.3) 0%, transparent 60%);
  pointer-events: none;
}

.community-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.community .section-label {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
}

.community .section-title {
  color: #fff;
  margin-bottom: 24px;
}

.community-text p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.cta-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  text-align: center;
  backdrop-filter: blur(12px);
}

.cta-card svg {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
}

.cta-card h3 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 16px;
}

.cta-card p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 28px;
  line-height: 1.7;
}

/* ===== Contact ===== */
.contact {
  padding: 100px 0;
  background: var(--cream-50);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-intro {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 40px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--emerald-50);
  border: 1px solid var(--emerald-100);
  border-radius: var(--radius-sm);
  color: var(--emerald-700);
  flex-shrink: 0;
}

.contact-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact-value {
  display: block;
  font-size: 0.9375rem;
  color: var(--text-dark);
  line-height: 1.6;
}

.contact-value a {
  color: var(--emerald-700);
  font-weight: 500;
  transition: color var(--transition);
}

.contact-value a:hover {
  color: var(--emerald-800);
}

.contact-map {
  overflow: hidden;
  border: 1px solid var(--cream-200);
  border-radius: var(--radius-md);
}

/* Form */
.form-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 44px;
  border: 1px solid var(--cream-200);
  box-shadow: var(--shadow-md);
}

.form-title {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.form-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--cream-200);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--text-dark);
  background: var(--cream-50);
  border: 1.5px solid var(--cream-300);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--emerald-600);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--cream-400);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-success {
  text-align: center;
  padding: 40px 20px;
}

.form-success svg {
  color: var(--emerald-600);
  margin-bottom: 16px;
}

.form-success h4 {
  font-size: 1.375rem;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.form-success p {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--emerald-950);
  color: rgba(255, 255, 255, 0.7);
  padding: 72px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 56px;
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 0.9rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.6);
  max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 20px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: #fff;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-contact-list a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition);
}

.footer-contact-list a:hover {
  color: #fff;
}

.footer-contact-list svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-disclaimer {
  font-size: 0.75rem !important;
  color: rgba(255, 255, 255, 0.3) !important;
}

/* ===== Mobile Navigation ===== */
@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--cream-50);
    border-left: 1px solid var(--cream-200);
    padding: 100px 32px 40px;
    transition: right var(--transition);
    box-shadow: var(--shadow-xl);
    z-index: 999;
  }

  .main-nav.open {
    right: 0;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .main-nav a {
    font-size: 1rem;
    padding: 12px 16px;
    width: 100%;
  }

  .nav-cta {
    margin-top: 16px;
    text-align: center;
    width: 100%;
    display: block !important;
  }

  .mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
  }

  .mobile-overlay.active {
    opacity: 1;
    pointer-events: all;
  }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .about-grid,
  .community-inner,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .hero-content {
    padding: 100px 24px 80px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-trust {
    gap: 20px;
  }

  .about-image-accent {
    display: none;
  }

  .form-card {
    padding: 28px 24px;
  }

  .cta-card {
    padding: 32px 24px;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .about-stats {
    gap: 24px;
    flex-wrap: wrap;
  }

  .hero-trust {
    flex-direction: column;
    gap: 12px;
  }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .hero-scroll { animation: none; }
}

/* ===== Scroll Reveal (progressive enhancement) ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
