/* ===== BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: 'Nunito', system-ui, sans-serif;
  color: #1e293b;
  background: #f8fafc;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 780px; margin: 0 auto; padding: 0 24px; }

/* ===== SECTION SPACING ===== */
.section { padding: 100px 0; }
.section-alt { background: #f8fafc; }
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0d9488;
  margin-bottom: 12px;
  background: #f0fdfa;
  padding: 6px 16px;
  border-radius: 50px;
}
.section-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: #0f172a;
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-desc {
  font-size: 1.1rem;
  color: #475569;
  max-width: 600px;
  margin-bottom: 48px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
  white-space: nowrap;
}
.btn-sm { padding: 8px 20px; font-size: 0.85rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }
.btn-teal {
  background: #0d9488;
  color: #f0fdfa;
  border-color: #0d9488;
}
.btn-teal:hover { background: #0f766e; border-color: #0f766e; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(13,148,136,0.3); }
.btn-outline-light {
  background: transparent;
  color: #f0fdfa;
  border-color: rgba(240,253,250,0.6);
}
.btn-outline-light:hover { background: rgba(240,253,250,0.15); border-color: #f0fdfa; transform: translateY(-2px); }
.btn-white {
  background: #f8fafc;
  color: #0d9488;
  border-color: #f8fafc;
}
.btn-white:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(248,250,252,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(148,163,184,0.15);
  transition: box-shadow 0.3s ease;
}
.nav.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 72px;
  gap: 24px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.1rem;
  color: #0f172a;
  flex-shrink: 0;
}
.nav-brand-text { display: none; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin-left: auto;
}
.nav-links a {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
  border-radius: 50px;
  transition: all 0.2s ease;
}
.nav-links a:hover { color: #0d9488; background: #f0fdfa; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #1e293b;
  margin-left: auto;
}
.nav-icon-close { display: none; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
  /* Explicit dark gradient background for hero */
  background: linear-gradient(135deg, #042f2e 0%, #0f766e 35%, #0d9488 60%, #14b8a6 80%, #5eead4 100%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(13,148,136,0.4) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(94,234,212,0.3) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(20,184,166,0.2) 0%, transparent 60%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(240,253,250,0.15);
  border: 1px solid rgba(240,253,250,0.25);
  color: #ccfbf1;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
}
.hero-headline {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2.75rem, 7vw, 5rem);
  color: #f0fdfa;
  line-height: 1.05;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}
.hero-em {
  font-style: italic;
  color: #99f6e4;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #ccfbf1;
  max-width: 540px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 48px;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ccfbf1;
  font-size: 0.9rem;
  font-weight: 600;
}
.hero-trust-item svg { opacity: 0.8; }
.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  line-height: 0;
}

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 20px;
  padding: 36px 28px;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  border-color: #99f6e4;
}
.card-icon {
  width: 56px;
  height: 56px;
  background: #f0fdfa;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0d9488;
  margin-bottom: 20px;
}
.card-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.3rem;
  color: #0f172a;
  margin-bottom: 12px;
}
.card-desc {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.7;
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-images {
  position: relative;
}
.about-img-main {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}
.about-img-main img { width: 100%; height: 100%; object-fit: cover; }
.about-img-float {
  position: absolute;
  bottom: -32px;
  right: -24px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,0.15);
  border: 4px solid #f8fafc;
}
.about-img-float img { width: 100%; height: 100%; object-fit: cover; }
.about-badge {
  position: absolute;
  top: -16px;
  left: -16px;
  background: #0d9488;
  color: #f0fdfa;
  padding: 16px 20px;
  border-radius: 16px;
  font-weight: 800;
  font-size: 0.85rem;
  line-height: 1.4;
  box-shadow: 0 8px 24px rgba(13,148,136,0.3);
  display: flex;
  align-items: center;
  gap: 8px;
}
.about-content .section-title { margin-bottom: 20px; }
.about-text {
  font-size: 1rem;
  color: #475569;
  margin-bottom: 16px;
  line-height: 1.8;
}
.about-stats {
  display: flex;
  gap: 32px;
  margin: 32px 0;
  padding: 24px 0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}
.stat { text-align: center; }
.stat-number {
  display: block;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.75rem;
  color: #0d9488;
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 600;
}

/* ===== GALLERY ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gallery-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4,47,46,0.75) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span {
  color: #f0fdfa;
  font-weight: 700;
  font-size: 1rem;
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: #fff;
  border-radius: 20px;
  padding: 36px 28px;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
}
.testimonial-text {
  font-size: 1rem;
  color: #334155;
  line-height: 1.8;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-author {
  font-size: 0.9rem;
  color: #0d9488;
  font-weight: 700;
}

/* ===== CTA ===== */
.cta-section {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
  /* Explicit dark background for CTA */
  background: linear-gradient(135deg, #042f2e 0%, #0f766e 50%, #115e59 100%);
}
.cta-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(94,234,212,0.2) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 20% 50%, rgba(13,148,136,0.3) 0%, transparent 50%);
  pointer-events: none;
}
.cta-section .container { position: relative; z-index: 1; }
.cta-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: #f0fdfa;
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.2;
}
.cta-desc {
  font-size: 1.1rem;
  color: #ccfbf1;
  text-align: center;
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}
.cta-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  line-height: 0;
}

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
}
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-icon {
  width: 48px;
  height: 48px;
  background: #f0fdfa;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0d9488;
  flex-shrink: 0;
}
.contact-item strong {
  display: block;
  font-size: 1rem;
  color: #0f172a;
  margin-bottom: 4px;
}
.contact-item p {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.6;
}
.contact-item a {
  color: #0d9488;
  font-weight: 600;
  transition: color 0.2s;
}
.contact-item a:hover { color: #0f766e; }

/* ===== FORM ===== */
.contact-form {
  background: #fff;
  border-radius: 24px;
  padding: 40px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}
.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: 700;
  color: #334155;
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  color: #1e293b;
  background: #f8fafc;
  transition: all 0.2s ease;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #0d9488;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(13,148,136,0.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #94a3b8; }
.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: 14px;
  color: #0f766e;
  font-weight: 700;
  font-size: 0.95rem;
  margin-top: 16px;
}
.form-success.show { display: flex; }

/* ===== FOOTER ===== */
.footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 72px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.1rem;
  color: #f0fdfa;
  margin-bottom: 16px;
  line-height: 1.3;
}
.footer-brand p { font-size: 0.9rem; line-height: 1.7; max-width: 260px; }
.footer-links strong,
.footer-contact strong {
  display: block;
  color: #f0fdfa;
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  font-size: 0.9rem;
  color: #94a3b8;
  transition: color 0.2s;
}
.footer-links a:hover { color: #5eead4; }
.footer-contact address {
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 12px;
}
.footer-contact p { font-size: 0.9rem; margin-bottom: 8px; }
.footer-contact a { color: #5eead4; font-weight: 600; transition: color 0.2s; }
.footer-contact a:hover { color: #99f6e4; }
.footer-bottom {
  border-top: 1px solid rgba(148,163,184,0.15);
  padding: 24px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
}
.footer-bottom a { color: #5eead4; font-weight: 600; }

/* ===== REVEAL (progressive enhancement) ===== */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
  }
  .reveal.revealed {
    opacity: 1;
    transform: none;
  }
}

/* ===== MOBILE ===== */
@media (max-width: 1024px) {
  .services-grid,
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(248,250,252,0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 24px;
    gap: 8px;
    border-bottom: 1px solid #e2e8f0;
    transform: translateY(-120%);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav-links a { padding: 12px 16px; width: 100%; text-align: center; }
  .nav-toggle { display: block; }
  .nav-icon-open { display: block; }
  .nav-icon-close { display: none; }
  .nav-toggle[aria-expanded="true"] .nav-icon-open { display: none; }
  .nav-toggle[aria-expanded="true"] .nav-icon-close { display: block; }
  .nav-brand-text { display: inline; }
  .hero { min-height: 100svh; padding: 100px 20px 80px; }
  .hero-headline { font-size: clamp(2.25rem, 10vw, 3.5rem); }
  .hero-actions { flex-direction: column; align-items: center; }
  .services-grid,
  .testimonials-grid { grid-template-columns: 1fr; }
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-img-float { right: 0; bottom: -20px; }
  .about-badge { left: 0; top: -12px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .hero-trust { flex-direction: column; align-items: center; }
}
