/* === Custom Properties === */
:root {
  --bg: #ffffff;
  --surface: #f8f7ff;
  --text: #334155;
  --coral: #ff6b6b;
  --teal: #14b8a6;
  --purple: #8b5cf6;
  --primary: var(--coral);
  --font-heading: 'Nunito', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, sans-serif;
  --radius: 12px;
  --max-width: 1200px;
  --nav-height: 72px;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--coral); text-decoration: none; }
ul, ol { list-style: none; }

/* === Utility === */
.container { width: 90%; max-width: var(--max-width); margin: 0 auto; }
.skip-link {
  position: absolute; top: -100%; left: 1rem; padding: 0.5rem 1rem;
  background: var(--coral); color: #fff; border-radius: var(--radius);
  z-index: 1000;
}
.skip-link:focus { top: 1rem; }

/* === Buttons === */
.btn {
  display: inline-block; padding: 0.875rem 2rem; border-radius: 100px;
  font-weight: 700; font-size: 1rem; cursor: pointer; border: none;
  transition: background 0.2s, transform 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--coral); color: #fff; }
.btn--primary:hover { background: #e85d5d; }

/* === Nav === */
.nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-height);
  background: rgba(255,255,255,0.9); backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); z-index: 100;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: transform 0.3s;
}
.nav--hidden { transform: translateY(-100%); }
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; width: 90%; max-width: var(--max-width); margin: 0 auto;
}
.nav__logo { font-weight: 800; font-size: 1.125rem; color: var(--text); }
.nav__links { display: flex; gap: 2rem; }
.nav__links a { color: var(--text); font-weight: 600; font-size: 0.9375rem; }
.nav__links a:hover { color: var(--coral); }
.nav__cta { display: flex; }
.nav__toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav__toggle span {
  display: block; width: 24px; height: 2px; background: var(--text);
  margin: 5px 0; transition: 0.3s;
}

/* === Mobile Nav === */
.mobile-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--bg); border-top: 1px solid rgba(0,0,0,0.08);
  z-index: 100; padding: 0.5rem 0 env(safe-area-inset-bottom);
}
.mobile-nav { display: flex; justify-content: space-around; }
.mobile-nav__item {
  display: flex; flex-direction: column; align-items: center; gap: 0.25rem;
  padding: 0.5rem; color: var(--text); opacity: 0.5; font-size: 0.6875rem;
  text-decoration: none;
}
.mobile-nav__item--active { opacity: 1; color: var(--coral); }
.mobile-nav__item svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* === Footer === */
.footer {
  background: var(--surface); padding: 3rem 0; margin-bottom: 60px;
  contain: layout style;
}
.footer__inner { display: flex; justify-content: space-between; align-items: center; }
.footer__logo { font-weight: 800; font-size: 1.125rem; color: var(--text); }
.footer__copy { color: var(--text); opacity: 0.6; font-size: 0.875rem; }

/* === Scroll Reveal === */
.reveal { }
.reveal--animate { animation: revealSlide 0.6s ease both; }
.reveal--animate.reveal--delay-1 { animation-delay: 0.1s; }
.reveal--animate.reveal--delay-2 { animation-delay: 0.2s; }
.reveal--animate.reveal--delay-3 { animation-delay: 0.3s; }
@keyframes revealSlide {
  from { opacity: 0.4; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal--animate { animation: none; }
}

/* === Hero (split) === */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: calc(var(--nav-height) + 2rem) 0 4rem;
  contain: layout style;
}
.hero__inner {
  width: 90%; max-width: var(--max-width); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.hero__eyebrow {
  text-transform: uppercase; font-size: 0.8125rem; font-weight: 700;
  letter-spacing: 0.1em; color: var(--coral); margin-bottom: 1rem;
}
.hero__title { font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.15; margin-bottom: 1.5rem; }
.hero__subtitle { font-size: 1.125rem; line-height: 1.7; color: var(--text); opacity: 0.8; margin-bottom: 2rem; }
.hero__svg { width: 100%; max-width: 480px; }
.hero__image-wrap { width: 100%; max-width: 560px; }
.hero__image {
  width: 100%; height: auto; border-radius: var(--radius);
  border: 3px solid var(--coral); object-fit: cover;
  box-shadow: 0 8px 30px rgba(255, 107, 107, 0.15);
}
.illustration { width: 100%; max-width: 400px; }

/* === Services Cards === */
.services-section { padding: 5rem 0; contain: layout style; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 800; margin-bottom: 0.75rem; }
.section-header p { font-size: 1.0625rem; opacity: 0.7; max-width: 600px; margin: 0 auto; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.service-card {
  background: var(--bg); border-radius: var(--radius); padding: 2rem;
  border: 1px solid rgba(0,0,0,0.06); transition: box-shadow 0.2s;
}
.service-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.08); }
.service-card:nth-child(1) { border-top: 4px solid var(--coral); }
.service-card:nth-child(2) { border-top: 4px solid var(--teal); }
.service-card:nth-child(3) { border-top: 4px solid var(--purple); }
.service-card__image {
  width: 100%; height: 180px; object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
  margin: -2rem -2rem 1.25rem -2rem;
  width: calc(100% + 4rem);
}
.service-card__icon { width: 80px; height: 60px; margin-bottom: 1.25rem; }
.service-card__title { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.75rem; }
.service-card__desc { font-size: 0.9375rem; opacity: 0.7; margin-bottom: 1rem; line-height: 1.6; }
.service-card__link { font-weight: 700; font-size: 0.875rem; }

/* === Why Choose Us (alternating) === */
.why-section { padding: 5rem 0; contain: layout style; }
.why-block {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
  align-items: center; margin-bottom: 4rem;
}
.why-block:nth-child(even) { direction: rtl; }
.why-block:nth-child(even) > * { direction: ltr; }
.why-block__title { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.75rem; }
.why-block__desc { font-size: 1rem; opacity: 0.8; line-height: 1.7; }
.why-block__illustration { width: 100%; max-width: 400px; }
.why-block__image-wrap { width: 100%; max-width: 480px; }
.why-block__image {
  width: 100%; height: auto; border-radius: var(--radius);
  object-fit: cover; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

/* === Testimonial Strip === */
.testimonial-section {
  padding: 5rem 0; background: var(--surface); text-align: center;
  contain: layout style;
}
.testimonial-section .quote-marks {
  width: 48px; height: 48px; margin: 0 auto 1.5rem;
}
.testimonial-card {
  max-width: 700px; margin: 0 auto; padding: 2.5rem;
}
.testimonial-card__avatar {
  width: 80px; height: 80px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 1.25rem; border: 3px solid var(--purple);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}
.testimonial-card__quote { font-size: 1.25rem; line-height: 1.8; font-style: italic; margin-bottom: 1.5rem; }
.testimonial-card__name { font-weight: 700; }
.testimonial-card__role { font-size: 0.875rem; opacity: 0.6; }

/* === CTA Section === */
.cta-section { padding: 5rem 0; text-align: center; contain: layout style; }
.cta-section h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 800; margin-bottom: 1rem; }
.cta-section p { font-size: 1.0625rem; opacity: 0.7; margin-bottom: 2rem; max-width: 500px; margin-left: auto; margin-right: auto; }

/* === Page Hero === */
.page-hero {
  background: var(--surface); padding: calc(var(--nav-height) + 3rem) 0 3rem;
  contain: layout style;
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 800; color: var(--text); }
.page-hero p { font-size: 1.0625rem; opacity: 0.7; margin-top: 0.75rem; }

/* === Service Blocks (services page) === */
.service-blocks { padding: 4rem 0; contain: layout style; }
.service-block {
  text-align: center; padding: 3rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.service-block__illustration { width: 100%; max-width: 280px; margin: 0 auto 2rem; }
.service-block__title { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.75rem; }
.service-block__desc { font-size: 1rem; opacity: 0.8; margin-bottom: 1rem; line-height: 1.7; max-width: 600px; margin-left: auto; margin-right: auto; }
.service-block__list { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.service-block__list li {
  font-size: 0.8125rem; font-weight: 600; padding: 0.375rem 0.875rem;
  border-radius: 100px;
}
.service-block:nth-child(1) .service-block__list li { background: #fff0f0; color: var(--coral); }
.service-block:nth-child(2) .service-block__list li { background: #e6faf7; color: var(--teal); }
.service-block:nth-child(3) .service-block__list li { background: #f0ecfe; color: var(--purple); }
.service-block:nth-child(4) .service-block__list li { background: #e6faf7; color: var(--teal); }
.service-block:nth-child(5) .service-block__list li { background: #f0ecfe; color: var(--purple); }

/* === Contact Form === */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; padding: 4rem 0; }
.form-card { background: var(--bg); padding: 2.5rem; border-radius: var(--radius); box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 700; font-size: 0.875rem; margin-bottom: 0.5rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 0.75rem 1rem; border: 1px solid rgba(0,0,0,0.12);
  border-radius: var(--radius); font-family: inherit; font-size: 1rem;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--coral); box-shadow: 0 0 0 3px rgba(255,107,107,0.1);
}
.form-group textarea { min-height: 120px; resize: vertical; }

.info-card { padding: 2.5rem; background: var(--surface); border-radius: var(--radius); border-left: 4px solid var(--teal); }
.info-card h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 1.5rem; }
.info-card__item { margin-bottom: 1.25rem; }
.info-card__item strong { display: block; font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.5; margin-bottom: 0.25rem; }
.info-card__item a { color: var(--teal); }

/* === Responsive === */
@media (max-width: 768px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .nav__links--open { display: flex; flex-direction: column; position: absolute; top: var(--nav-height); left: 0; right: 0; background: var(--bg); padding: 1rem 5%; border-bottom: 1px solid rgba(0,0,0,0.06); }
  .hero__inner { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .hero__svg { margin: 0 auto; max-width: 320px; }
  .hero__image-wrap { margin: 0 auto; max-width: 400px; }
  .services-grid { grid-template-columns: 1fr; }
  .why-block { grid-template-columns: 1fr; gap: 2rem; }
  .why-block:nth-child(even) { direction: ltr; }
  .why-block__illustration { margin: 0 auto; }
  .why-block__image-wrap { margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer { margin-bottom: 72px; }
  .footer__inner { flex-direction: column; gap: 0.5rem; text-align: center; }
}

@media (min-width: 769px) {
  .mobile-nav { display: none; }
}
