/* ===== Design Tokens / CSS Variables ===== */
:root {
  --primary: hsl(168, 70%, 32%);
  --primary-foreground: hsl(0, 0%, 100%);
  --accent: hsl(25, 80%, 55%);
  --accent-foreground: hsl(0, 0%, 100%);
  --background: hsl(30, 30%, 98%);
  --foreground: hsl(200, 25%, 15%);
  --card: hsl(0, 0%, 100%);
  --muted: hsl(30, 20%, 95%);
  --muted-foreground: hsl(200, 10%, 45%);
  --border: hsl(30, 15%, 90%);
  --radius: 0.75rem;
  --hero-gradient: linear-gradient(135deg, hsla(168, 70%, 32%, 0.9), hsla(180, 50%, 25%, 0.85));
  --section-gradient: linear-gradient(180deg, hsl(30, 30%, 98%), hsl(30, 20%, 95%));
  --glow: 0 8px 32px hsla(168, 70%, 32%, 0.15);
  --font-display: "Playfair Display", serif;
  --font-body: "Inter", sans-serif;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  font-family: var(--font-body);
  color: var(--foreground);
  background-color: var(--background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===== Utilities ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.text-accent {
  color: var(--accent);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  background-color: hsl(168, 70%, 28%);
}

.btn-secondary {
  background-color: var(--accent);
  color: var(--accent-foreground);
}

.btn-secondary:hover {
  background-color: hsl(25, 80%, 48%);
}

.btn-ghost {
  background: transparent;
  color: var(--primary-foreground);
  border: 1px solid hsla(0, 0%, 100%, 0.3);
}

.btn-ghost:hover {
  background: hsla(0, 0%, 100%, 0.1);
}

.btn-outline-light {
  background: transparent;
  color: var(--primary-foreground);
  border: 1px solid hsla(0, 0%, 100%, 0.3);
}

.btn-outline-light:hover {
  background: hsla(0, 0%, 100%, 0.1);
}

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: hsla(0, 0%, 100%, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background: hsla(0, 0%, 100%, 0.95);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-cta {
  display: none;
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--foreground);
  padding: 0.25rem;
}

.nav-toggle .close-icon {
  display: none;
}

.nav-toggle.active .hamburger-icon {
  display: none;
}

.nav-toggle.active .close-icon {
  display: block;
}

.nav-toggle .icon {
  width: 1.5rem;
  height: 1.5rem;
}

/* Mobile Menu */
.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0 1rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}

.mobile-menu.open {
  max-height: 300px;
  opacity: 1;
  padding: 1rem;
}

.mobile-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 0.2s ease;
}

.mobile-link:hover {
  color: var(--primary);
}

.mobile-cta {
  align-self: flex-start;
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 4rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--hero-gradient);
}

.hero-content {
  position: relative;
  z-index: 10;
}

.hero-text {
  max-width: 40rem;
}

.hero-badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  background: hsla(0, 0%, 100%, 0.2);
  color: var(--primary-foreground);
  font-size: 0.875rem;
  font-weight: 500;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-foreground);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.125rem;
  color: hsla(0, 0%, 100%, 0.85);
  max-width: 32rem;
  margin-bottom: 2rem;
  font-weight: 300;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ===== Animations ===== */
.animate-fade-up {
  opacity: 0;
  transform: translateY(1.5rem);
  animation: fadeUp 0.6s ease forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.services-grid .scroll-reveal:nth-child(1) { transition-delay: 0s; }
.services-grid .scroll-reveal:nth-child(2) { transition-delay: 0.07s; }
.services-grid .scroll-reveal:nth-child(3) { transition-delay: 0.14s; }
.services-grid .scroll-reveal:nth-child(4) { transition-delay: 0.21s; }
.services-grid .scroll-reveal:nth-child(5) { transition-delay: 0.28s; }
.services-grid .scroll-reveal:nth-child(6) { transition-delay: 0.35s; }
.services-grid .scroll-reveal:nth-child(7) { transition-delay: 0.42s; }
.services-grid .scroll-reveal:nth-child(8) { transition-delay: 0.49s; }
.services-grid .scroll-reveal:nth-child(9) { transition-delay: 0.56s; }

.steps-grid .scroll-reveal:nth-child(1) { transition-delay: 0s; }
.steps-grid .scroll-reveal:nth-child(2) { transition-delay: 0.15s; }
.steps-grid .scroll-reveal:nth-child(3) { transition-delay: 0.3s; }

.features-grid .scroll-reveal:nth-child(1) { transition-delay: 0s; }
.features-grid .scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
.features-grid .scroll-reveal:nth-child(3) { transition-delay: 0.2s; }
.features-grid .scroll-reveal:nth-child(4) { transition-delay: 0.3s; }

/* ===== Sections ===== */
.section {
  padding: 6rem 0;
}

.section-gradient {
  background: var(--section-gradient);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.section-title {
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--foreground);
}

.section-desc {
  margin-top: 1rem;
  color: var(--muted-foreground);
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.section-desc strong {
  color: var(--foreground);
}

/* ===== Services Grid ===== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 60rem;
  margin: 0 auto;
}

.service-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.service-card:hover {
  border-color: hsla(168, 70%, 32%, 0.3);
  box-shadow: var(--glow);
}

.service-icon {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: 0.5rem;
  background: hsla(168, 70%, 32%, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.service-card:hover .service-icon {
  background: hsla(168, 70%, 32%, 0.2);
}

.service-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary);
}

.service-info {
  flex: 1;
  min-width: 0;
}

.service-name {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
  line-height: 1.4;
}

.service-detail {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.service-price {
  flex-shrink: 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.price-from {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

/* ===== Steps Grid ===== */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 52rem;
  margin: 0 auto;
}

.step-card {
  text-align: center;
}

.step-icon-wrapper {
  position: relative;
  width: 5rem;
  height: 5rem;
  margin: 0 auto 1.5rem;
}

.step-icon-bg {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: hsla(168, 70%, 32%, 0.1);
}

.step-icon-inner {
  position: absolute;
  inset: 0.5rem;
  border-radius: 9999px;
  background: hsla(168, 70%, 32%, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon-inner svg {
  width: 2rem;
  height: 2rem;
  color: var(--primary);
}

.step-number {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: var(--accent);
  color: var(--accent-foreground);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.step-desc {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ===== Features Grid ===== */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.feature-card {
  text-align: center;
}

.feature-icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  border-radius: 9999px;
  background: hsla(168, 70%, 32%, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--primary);
}

.feature-title {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.feature-desc {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ===== Contact Section ===== */
.section-contact {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.contact-content {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto;
}

.contact-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.contact-desc {
  color: hsla(0, 0%, 100%, 0.8);
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.contact-location {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: hsla(0, 0%, 100%, 0.7);
  font-size: 0.875rem;
}

.contact-location .icon {
  width: 1rem;
  height: 1rem;
}

/* ===== Footer ===== */
.footer {
  padding: 2rem 0;
  background: var(--foreground);
  color: hsla(0, 0%, 100%, 0.6);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 700;
  color: hsla(0, 0%, 100%, 0.8);
}

/* ===== Responsive ===== */

/* Small screens (640px+) */
@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
  }

  .contact-actions {
    flex-direction: row;
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Medium screens (768px+) */
@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }

  .nav-cta {
    display: inline-flex;
  }

  .nav-toggle {
    display: none;
  }

  .mobile-menu {
    display: none !important;
  }

  .hero-title {
    font-size: 3.75rem;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .contact-title {
    font-size: 2.5rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* Large screens (1024px+) */
@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  .animate-fade-up {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}
