/* ========== CSS Custom Properties ========== */
:root {
  --emerald-900: #042f26;
  --emerald-800: #064e3b;
  --emerald-700: #065f46;
  --emerald-600: #047857;
  --emerald-500: #059669;
  --emerald-100: #d1fae5;
  --emerald-50:  #ecfdf5;
  --cream-50:   #faf9f6;
  --cream-100:  #f5f0e8;
  --cream-200:  #ebe4d6;
  --cream-300:  #ddd3c1;
  --cream-400:  #c4b89a;
  --charcoal:   #1a1a1a;
  --charcoal-600: #2d2d2d;
  --warm-gray:  #6b6560;
  --warm-gray-light: #9b9590;
  --white:      #ffffff;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:  0 4px 16px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.1), 0 4px 12px rgba(0,0,0,.05);
  --shadow-xl:  0 20px 60px rgba(0,0,0,.12), 0 8px 20px rgba(0,0,0,.06);
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --transition: 0.3s cubic-bezier(.4,0,.2,1);
}

/* ========== Reset & Base ========== */
*, *::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(--charcoal);
  background: var(--cream-50);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* ========== Container ========== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container--split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

/* ========== Typography ========== */
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 500; line-height: 1.2; color: var(--charcoal); }
.section-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--emerald-600);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 20px;
  color: var(--emerald-900);
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--warm-gray);
  max-width: 540px;
  line-height: 1.7;
}
.section-header { text-align: center; margin-bottom: 60px; }
.section-header .section-subtitle { margin: 0 auto; }

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: var(--emerald-700);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(6,78,59,.3);
}
.btn--primary:hover {
  background: var(--emerald-800);
  box-shadow: 0 6px 20px rgba(6,78,59,.4);
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--emerald-700);
  border: 1.5px solid var(--emerald-700);
}
.btn--ghost:hover { background: var(--emerald-50); }
.btn--dark {
  background: var(--charcoal);
  color: var(--white);
}
.btn--dark:hover { background: var(--charcoal-600); transform: translateY(-1px); }
.btn--light {
  background: var(--white);
  color: var(--emerald-800);
  font-weight: 600;
}
.btn--light:hover { background: var(--cream-100); transform: translateY(-1px); }
.btn--outline-light {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.5);
}
.btn--outline-light:hover { background: rgba(255,255,255,.1); border-color: var(--white); }
.btn--outline {
  background: transparent;
  color: var(--emerald-700);
  border: 1.5px solid var(--emerald-700);
}
.btn--outline:hover { background: var(--emerald-50); }
.btn--sm { padding: 10px 20px; font-size: 0.85rem; }
.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,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}
#site-header.scrolled {
  background: rgba(250,249,246,.97);
  border-bottom-color: var(--cream-200);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--emerald-800);
}
.logo--light { color: var(--white); }
.logo-icon { color: var(--emerald-700); }
.logo--light .logo-icon { color: var(--cream-200); }

/* Nav */
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--warm-gray);
  transition: var(--transition);
  position: relative;
}
.nav-links a:not(.btn):hover { color: var(--emerald-700); }
.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--emerald-600);
  transition: var(--transition);
}
.nav-links a:not(.btn):hover::after { width: 100%; }
.btn--nav {
  background: var(--emerald-700);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}
.btn--nav:hover { background: var(--emerald-800); }
.btn--nav::after { display: none; }

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========== Hero ========== */
.hero {
  padding-top: 76px;
  min-height: 100vh;
  min-height: 100dvh;
  background: linear-gradient(135deg, var(--cream-50) 0%, var(--cream-100) 50%, var(--emerald-50) 100%);
  overflow: hidden;
}
.container--split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-content { padding: 40px 0; }
.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--emerald-600);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-eyebrow::before {
  content: '';
  width: 32px;
  height: 1.5px;
  background: var(--emerald-500);
}
.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 500;
  color: var(--emerald-900);
  line-height: 1.1;
  margin-bottom: 24px;
}
.hero-title em { font-style: italic; color: var(--emerald-600); }
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--warm-gray);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 480px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-badges { display: flex; gap: 12px; flex-wrap: wrap; }
.badge {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--white);
  color: var(--emerald-700);
  border: 1px solid var(--emerald-100);
}
.hero-image { position: relative; }
.hero-image-inner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.hero-image-inner img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}
.hero-image-accent {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,.2);
  pointer-events: none;
}
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: -32px;
  padding: 0 8px;
  position: relative;
  z-index: 2;
}
.stat {
  flex: 1;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.stat-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--emerald-700);
}
.stat-label {
  font-size: 0.75rem;
  color: var(--warm-gray);
  margin-top: 4px;
}
.stat-divider {
  width: 1px;
  background: var(--cream-200);
  align-self: stretch;
  margin-top: 20px;
}

/* ========== Divider ========== */
.section-divider {
  display: flex;
  justify-content: center;
  padding: 20px 0;
  color: var(--emerald-600);
}

/* ========== Services ========== */
.services { padding: 100px 0; background: var(--white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  background: var(--cream-50);
  border: 1px solid var(--cream-200);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--emerald-600), var(--emerald-400));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--emerald-100);
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--emerald-50);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald-700);
  margin-bottom: 20px;
  transition: var(--transition);
}
.service-card:hover .service-icon { background: var(--emerald-100); }
.service-title {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--emerald-900);
}
.service-desc {
  font-size: 0.9rem;
  color: var(--warm-gray);
  line-height: 1.65;
  margin-bottom: 20px;
}
.service-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--emerald-600);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}
.service-link:hover { gap: 8px; color: var(--emerald-800); }
.service-link span { font-size: 1rem; }

/* ========== About ========== */
.about { padding: 100px 0; background: var(--cream-50); }
.about-image-inner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.about-image-inner img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}
.about-image-overlay {
  position: absolute;
  bottom: 24px;
  left: 24px;
}
.about-seal {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  color: var(--emerald-700);
  font-size: 0.8rem;
  font-weight: 600;
}
.about-content { padding: 20px 0; }
.about-divider {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--emerald-600), var(--emerald-300));
  margin-bottom: 28px;
  border-radius: 2px;
}
.about-text {
  font-size: 1rem;
  color: var(--warm-gray);
  line-height: 1.75;
  margin-bottom: 16px;
}
.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 32px 0;
}
.value-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--charcoal);
}
.value-item svg { color: var(--emerald-600); flex-shrink: 0; }

/* ========== Projects ========== */
.projects { padding: 100px 0; background: var(--white); }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.project-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--cream-50);
  border: 1px solid var(--cream-200);
  transition: var(--transition);
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.project-image {
  position: relative;
  overflow: hidden;
}
.project-image img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(.4,0,.2,1);
}
.project-card:hover .project-image img { transform: scale(1.04); }
.project-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--white);
  color: var(--emerald-800);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 100px;
}
.project-info { padding: 20px 24px; }
.project-name {
  font-size: 1.1rem;
  margin-bottom: 4px;
  color: var(--charcoal);
}
.project-location {
  font-size: 0.85rem;
  color: var(--warm-gray-light);
}

/* ========== Testimonials ========== */
.testimonials { padding: 100px 0; background: var(--emerald-900); }
.testimonials .section-eyebrow { color: var(--emerald-300); }
.testimonials .section-title { color: var(--white); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: var(--transition);
}
.testimonial-card:hover {
  background: rgba(255,255,255,.1);
  transform: translateY(-2px);
}
.testimonial-quote { color: var(--emerald-300); margin-bottom: 16px; }
.testimonial-text {
  font-size: 0.95rem;
  color: rgba(255,255,255,.8);
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}
.testimonial-author { display: flex; flex-direction: column; gap: 2px; }
.testimonial-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--white);
}
.testimonial-location {
  font-size: 0.8rem;
  color: rgba(255,255,255,.45);
}

/* ========== CTA Banner ========== */
.cta-banner { padding: 80px 0; background: linear-gradient(135deg, var(--emerald-700), var(--emerald-900)); }
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.cta-content { flex: 1; }
.cta-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--emerald-300);
  margin-bottom: 12px;
}
.cta-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--white);
  margin-bottom: 16px;
}
.cta-text {
  font-size: 1rem;
  color: rgba(255,255,255,.7);
  max-width: 480px;
  line-height: 1.7;
}
.cta-actions { display: flex; gap: 16px; flex-shrink: 0; }

/* ========== Contact ========== */
.contact { padding: 100px 0; background: var(--cream-50); }
.contact-divider {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--emerald-600), var(--emerald-300));
  margin-bottom: 28px;
  border-radius: 2px;
}
.contact-text {
  font-size: 1rem;
  color: var(--warm-gray);
  line-height: 1.75;
  margin-bottom: 36px;
}
.contact-details { display: flex; flex-direction: column; gap: 20px; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--emerald-50);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald-700);
  flex-shrink: 0;
}
.contact-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--warm-gray-light);
  margin-bottom: 4px;
}
.contact-item a {
  color: var(--charcoal);
  font-weight: 500;
  transition: var(--transition);
}
.contact-item a:hover { color: var(--emerald-600); }

/* Contact Form */
.contact-form-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--cream-200);
}
.form-title {
  font-size: 1.5rem;
  color: var(--emerald-900);
  margin-bottom: 6px;
}
.form-subtitle {
  font-size: 0.9rem;
  color: var(--warm-gray);
  margin-bottom: 28px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--cream-300);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--charcoal);
  background: var(--cream-50);
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--emerald-500);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(5,150,105,.1);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-note {
  font-size: 0.75rem;
  color: var(--warm-gray-light);
  text-align: center;
  margin-top: 16px;
}
.form-success {
  text-align: center;
  padding: 32px 20px;
  color: var(--emerald-700);
}
.form-success svg { margin: 0 auto 16px; }
.form-success h4 {
  font-size: 1.25rem;
  color: var(--emerald-800);
  margin-bottom: 8px;
}
.form-success p { font-size: 0.9rem; color: var(--warm-gray); }

/* ========== Map ========== */
.map-section { padding: 0 0 80px; background: var(--cream-50); }
.map-placeholder {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
  background: var(--cream-100);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--warm-gray);
}
.map-placeholder svg { color: var(--emerald-600); flex-shrink: 0; }
.map-placeholder span { font-size: 0.95rem; }

/* ========== Footer ========== */
.footer { background: var(--charcoal); color: rgba(255,255,255,.6); padding: 72px 0 0; }
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand p { margin-top: 16px; font-size: 0.875rem; line-height: 1.7; max-width: 260px; }
.footer-links h4, .footer-contact h4 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 20px;
}
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 0.875rem;
  transition: var(--transition);
}
.footer-links a:hover { color: var(--white); }
.footer-contact p { font-size: 0.875rem; line-height: 1.8; }
.footer-contact a { transition: var(--transition); }
.footer-contact a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 12px;
}

/* ========== Animations ========== */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .container--split { grid-template-columns: 1fr; gap: 40px; }
  .hero { min-height: auto; padding-top: 120px; padding-bottom: 80px; }
  .hero-image-inner img { height: 400px; }
  .hero-stats { margin-top: 24px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .about-image-inner img { height: 400px; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: rgba(250,249,246,.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 32px 24px;
    gap: 20px;
    border-bottom: 1px solid var(--cream-200);
    transform: translateY(-120%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav-toggle { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-actions { flex-direction: column; width: 100%; }
  .cta-actions .btn { justify-content: center; }
  .contact { padding: 60px 0; }
  .contact-form-wrapper { padding: 28px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-stats { flex-direction: column; gap: 12px; }
  .stat-divider { width: 100%; height: 1px; margin: 0; }
  .about-values { grid-template-columns: 1fr; }
  .map-placeholder { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-title { font-size: 2.2rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { justify-content: center; }
  .hero-badges { flex-direction: column; }
  .hero-image-inner img { height: 320px; }
}
