/* === Custom Properties === */
:root {
  --bg: #ffffff;
  --surface: #f8f9fa;
  --text: #1f2937;
  --primary: #2563eb;
  --primary-light: #eff6ff;
  --font-heading: 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --radius: 8px;
  --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(--primary); 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(--primary); 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: var(--radius);
  font-weight: 600; font-size: 1rem; cursor: pointer; border: none;
  transition: background 0.2s, transform 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: #1d4ed8; }

/* === 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: 700; font-size: 1.125rem; color: var(--text); }
.nav__links { display: flex; gap: 2rem; }
.nav__links a { color: var(--text); font-weight: 500; font-size: 0.9375rem; }
.nav__links a:hover { color: var(--primary); }
.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(--primary); }
.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: 700; 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: 600;
  letter-spacing: 0.1em; color: var(--primary); margin-bottom: 1rem;
}
.hero__title { font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 700; 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__image { width: 100%; max-width: 560px; }
.hero__image img {
  width: 100%; height: auto; object-fit: cover;
  border-radius: var(--radius); box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

/* === Trust Bar === */
.trust-bar {
  background: var(--surface); padding: 2.5rem 0; text-align: center;
  contain: layout style;
}
.trust-bar__label { font-size: 0.875rem; font-weight: 600; opacity: 0.5; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1.5rem; }
.trust-bar__logos { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; align-items: center; }
.trust-bar__logo { width: 100px; height: 32px; background: var(--text); opacity: 0.1; border-radius: 4px; }

/* === Services Cards === */
.services-section { padding: 5rem 0; contain: layout style; }
.services-section--alt { background: var(--surface); }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 700; 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__image {
  width: calc(100% + 4rem); height: 180px; object-fit: cover;
  margin: -2rem -2rem 1.25rem -2rem;
  border-radius: var(--radius) var(--radius) 0 0;
}
.service-card__icon { width: 48px; height: 48px; 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: 600; font-size: 0.875rem; }

/* === Stats Strip === */
.stats-strip { background: var(--primary); color: #fff; padding: 4rem 0; contain: layout style; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center; }
.stat__number { font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 800; margin-bottom: 0.5rem; }
.stat__label { font-size: 0.9375rem; opacity: 0.85; }

/* === Testimonial === */
.testimonial-section { padding: 5rem 0; background: var(--surface); contain: layout style; }
.testimonial-card {
  max-width: 700px; margin: 0 auto; text-align: center; padding: 2.5rem;
  background: var(--bg); border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.testimonial-card__avatar {
  width: 80px; height: 80px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 1.5rem; border: 3px solid var(--primary-light);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.testimonial-card__quote { font-size: 1.125rem; 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: 700; 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 (services/contact) === */
.page-hero { background: var(--primary); color: #fff; padding: calc(var(--nav-height) + 3rem) 0 3rem; contain: layout style; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 700; }
.page-hero p { font-size: 1.0625rem; opacity: 0.85; margin-top: 0.75rem; }

/* === Service Blocks (services page) === */
.service-blocks { padding: 4rem 0; contain: layout style; }
.service-block {
  display: grid; grid-template-columns: 80px 1fr; gap: 2rem;
  padding: 3rem 0; border-bottom: 1px solid rgba(0,0,0,0.06);
  align-items: start;
}
.service-block:nth-child(even) { direction: rtl; }
.service-block:nth-child(even) > * { direction: ltr; }
.service-block__icon { width: 64px; height: 64px; }
.service-block__title { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.75rem; }
.service-block__desc { font-size: 1rem; opacity: 0.8; margin-bottom: 1rem; line-height: 1.7; }
.service-block__list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.service-block__list li {
  font-size: 0.8125rem; font-weight: 500; padding: 0.375rem 0.875rem;
  background: var(--primary-light); color: var(--primary); border-radius: 100px;
}

/* === 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: 600; 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(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.form-group textarea { min-height: 120px; resize: vertical; }

.info-card { padding: 2.5rem; background: var(--surface); border-radius: var(--radius); }
.info-card h2 { font-size: 1.5rem; font-weight: 700; 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(--primary); }

/* === 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__image { margin: 0 auto; max-width: 400px; }
  .services-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .service-block { grid-template-columns: 1fr; gap: 1rem; }
  .service-block:nth-child(even) { direction: ltr; }
  .footer { margin-bottom: 72px; }
  .footer__inner { flex-direction: column; gap: 0.5rem; text-align: center; }
}

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