/* ─── Reset & Base ─── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --teal-600: #0d9488;
  --teal-700: #0f766e;
  --teal-50: #f0fdfa;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.7;
  color: var(--slate-700);
  background: var(--white);
  overflow-x: hidden;
}

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

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

/* ─── Navigation ─── */
.nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: box-shadow var(--transition);
}

.nav.scrolled {
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

.nav-logo {
  color: var(--slate-800);
  font-weight: 400;
  letter-spacing: 0.2em;
  transition: color var(--transition);
}

.nav-logo:hover {
  color: var(--teal-600);
}

.nav-logo-icon {
  color: var(--teal-600);
  transition: color var(--transition);
}

.nav-logo:hover .nav-logo-icon {
  color: var(--teal-700);
}

.nav-link {
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-500);
  transition: color var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--teal-600);
  transition: width var(--transition);
}

.nav-link:hover {
  color: var(--slate-800);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--teal-600);
  border: 1px solid var(--teal-600);
  padding: 8px 18px;
  border-radius: 100px;
  transition: all var(--transition);
}

.nav-cta:hover {
  background: var(--teal-600);
  color: var(--white);
}

.nav-mobile-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--slate-700);
  transition: all var(--transition);
  transform-origin: center;
}

.nav-mobile-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 5px);
}

.nav-mobile-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.nav-mobile-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -5px);
}

.nav-mobile {
  background: var(--white);
  border-top: 1px solid var(--slate-200);
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav-mobile-link {
  font-size: 0.9375rem;
  color: var(--slate-600);
  padding: 8px 0;
  border-bottom: 1px solid var(--slate-100);
  transition: color var(--transition);
}

.nav-mobile-link:hover {
  color: var(--teal-600);
}

.nav-mobile-cta {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--teal-600);
  font-weight: 500;
}

/* ─── Hero ─── */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #0d9488 0%, #14b8a6 25%, #0f766e 50%, #1e293b 75%, #334155 100%);
  overflow: hidden;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(20, 184, 166, 0.3) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(15, 118, 110, 0.4) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(30, 41, 59, 0.5) 0%, transparent 70%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  padding: 0 1.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  backdrop-filter: blur(10px);
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal-300);
  flex-shrink: 0;
}

.hero-badge-text {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.hero-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.hero-headline-accent {
  font-style: italic;
  color: var(--teal-200);
}

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
  max-width: 520px;
  margin: 0 auto;
}

.hero-actions {
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary {
  background: var(--white);
  color: var(--teal-700);
}

.btn-primary:hover {
  background: var(--teal-50);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

.hero-scroll-text {
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

/* ─── Sections ─── */
.section {
  padding: 7rem 0;
}

.section-label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--slate-800);
  letter-spacing: -0.01em;
}

.section-desc {
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--slate-500);
  max-width: 480px;
}

/* ─── Services ─── */
.services {
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--slate-200);
  border: 1px solid var(--slate-200);
}

.service-card {
  background: var(--white);
  padding: 2.5rem;
  transition: all var(--transition);
}

.service-card:hover {
  background: var(--teal-50);
}

.service-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  color: var(--teal-600);
  margin-bottom: 1.5rem;
  transition: all var(--transition);
}

.service-card:hover .service-icon {
  background: var(--teal-600);
  border-color: var(--teal-600);
  color: var(--white);
}

.service-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--slate-800);
  margin-bottom: 0.75rem;
}

.service-desc {
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--slate-500);
}

/* ─── Divider ─── */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 200px;
  margin: 0 auto;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: var(--slate-200);
}

.divider-diamond {
  color: var(--teal-600);
  flex-shrink: 0;
}

/* ─── Gallery ─── */
.gallery {
  background: var(--slate-50);
}

.gallery-header {
  gap: 1rem;
}

.gallery-desc {
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--slate-500);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: auto;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.6) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-tag {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
}

/* ─── About ─── */
.about {
  background: var(--white);
}

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

.about-image-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.about-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-image-accent {
  position: absolute;
  bottom: -12px;
  right: -12px;
  width: 120px;
  height: 120px;
  border: 2px solid var(--teal-600);
  border-radius: 12px;
  z-index: -1;
}

.about-content {
  padding: 1rem 0;
}

.about-text {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--slate-600);
  margin-bottom: 1rem;
}

.about-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

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

.about-stat-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--teal-600);
}

.about-stat-label {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-400);
}

.about-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--slate-200);
}

/* ─── Process ─── */
.process {
  background: var(--slate-800);
}

.process .section-label {
  color: var(--teal-400);
}

.process .section-title {
  color: var(--white);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.process-step {
  position: relative;
}

.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 24px;
  right: -1rem;
  width: calc(2rem);
  height: 1px;
  background: linear-gradient(to right, var(--slate-600), transparent);
}

.process-step-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.08);
  line-height: 1;
  margin-bottom: 1rem;
}

.process-step-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.process-step-desc {
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--slate-400);
}

/* ─── Testimonial ─── */
.testimonial {
  background: var(--teal-50);
  border-top: 1px solid var(--slate-100);
  border-bottom: 1px solid var(--slate-100);
}

.testimonial-quote-icon {
  color: var(--teal-600);
  margin-bottom: 1.5rem;
}

.testimonial-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.6;
  color: var(--slate-700);
}

.testimonial-attribution {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.testimonial-author {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-700);
}

.testimonial-sep {
  color: var(--slate-300);
}

.testimonial-location {
  font-size: 0.875rem;
  color: var(--slate-400);
}

/* ─── CTA / Contact ─── */
.cta {
  background: var(--white);
}

.cta-inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.cta-label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: 1.5rem;
}

.cta-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--slate-800);
  margin-bottom: 1.25rem;
}

.cta-title-accent {
  font-style: italic;
  color: var(--teal-600);
}

.cta-desc {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--slate-500);
}

.cta-contact-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cta-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--slate-600);
  padding: 12px 20px;
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  transition: all var(--transition);
}

.cta-contact-item:hover {
  border-color: var(--teal-600);
  color: var(--teal-700);
  background: var(--teal-50);
}

.cta-contact-item svg {
  color: var(--teal-600);
  flex-shrink: 0;
}

.cta-form {
  margin-top: 2rem;
  text-align: left;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.cta-input,
.cta-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--slate-700);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}

.cta-input::placeholder,
.cta-textarea::placeholder {
  color: var(--slate-400);
}

.cta-input:focus,
.cta-textarea:focus {
  border-color: var(--teal-600);
}

.cta-textarea {
  resize: vertical;
  min-height: 120px;
  margin-bottom: 1rem;
}

.btn-submit {
  width: 100%;
  justify-content: center;
  background: var(--teal-600);
  color: var(--white);
}

.btn-submit:hover {
  background: var(--teal-700);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(13, 148, 136, 0.3);
}

.cta-form-success {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--teal-50);
  border: 1px solid var(--teal-200);
  border-radius: 8px;
  margin-top: 1rem;
  color: var(--teal-700);
  font-size: 0.875rem;
  font-weight: 400;
}

.cta-form-success svg {
  color: var(--teal-600);
  flex-shrink: 0;
}

.hidden {
  display: none !important;
}

/* ─── Footer ─── */
.footer {
  background: var(--slate-800);
  padding: 4rem 0 2rem;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 2rem;
}

.footer-brand {
  max-width: 280px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.footer-logo svg {
  color: var(--teal-400);
}

.footer-tagline {
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--slate-400);
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-link {
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-400);
  transition: color var(--transition);
}

.footer-link:hover {
  color: var(--teal-400);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.8125rem;
  font-weight: 300;
  color: var(--slate-500);
}

.footer-bottom a {
  color: var(--teal-400);
  transition: color var(--transition);
}

.footer-bottom a:hover {
  color: var(--teal-300);
}

/* ─── Reveal Animations ─── */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html { scroll-behavior: auto; }
  .hero-scroll-line { animation: none; }
  .gallery-item img { transition: none; }
  .gallery-item:hover img { transform: none; }
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .about-image {
    max-width: 400px;
  }
  .process-steps {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  .process-step:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 5rem 0;
  }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  .cta-form-row {
    grid-template-columns: 1fr;
  }
  .footer-top {
    flex-direction: column;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .about-image-accent {
    width: 80px;
    height: 80px;
    bottom: -8px;
    right: -8px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .process-steps {
    grid-template-columns: 1fr;
  }
  .about-stats {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
  .about-stat-divider {
    width: 40px;
    height: 1px;
  }
  .hero-badge {
    padding: 6px 14px;
  }
  .hero-badge-text {
    font-size: 0.6875rem;
  }
}
