/* Brand colors — all computed at build time, no color-mix() needed */
:root {
  --primary:       #3d348b;
  --primary-dark:  #30296c;
  --primary-darker:#251f53;
  --primary-light: #e8e7f1;
  --accent:        #f7b801;
  --accent-dark:   #c19001;
  /* Guaranteed-readable text colors for sections that use --primary as a background */
  --on-primary:        #ffffff;
  --on-primary-soft:   #a8a4cb;
  --on-primary-border: #6059a0;
  --text: #1a1a1a;
  --text-muted: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f8f9fa;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 48px rgba(0,0,0,.14);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ─── UTILS ─────────────────────────────────── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-tag {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 12px;
}
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin-bottom: 16px; }
.section-header p { color: var(--text-muted); max-width: 560px; margin: 0 auto; font-size: 17px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 8px; font-weight: 600;
  font-size: 15px; text-decoration: none; border: 2px solid transparent;
  cursor: pointer; transition: all .2s ease; white-space: nowrap;
}
.btn-primary {
  background: var(--primary); color: var(--on-primary); border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: var(--on-primary); transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: #fff; border-color: rgba(255,255,255,.6);
}
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-large { padding: 18px 36px; font-size: 17px; }

/* ─── NAV ─────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,.08);
  transition: box-shadow .3s;
}
.nav.scrolled { box-shadow: var(--shadow); }
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 24px;
  height: 68px; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 18px; color: var(--text); text-decoration: none;
}
.logo-img { height: 36px; width: auto; object-fit: contain; }
.logo-text { display: none; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  color: var(--text-muted); text-decoration: none; font-size: 14px;
  font-weight: 500; transition: color .2s;
}
.nav-links a:hover { color: var(--primary); }
.nav-cta {
  background: var(--primary) !important; color: var(--on-primary) !important;
  padding: 10px 20px; border-radius: 8px; font-weight: 600 !important;
}
.nav-burger { display: none; background: none; border: none; font-size: 22px; cursor: pointer; }
.nav-mobile {
  display: none; flex-direction: column; padding: 12px 24px 20px;
  background: #fff; border-top: 1px solid #f0f0f0;
}
.nav-mobile a { padding: 12px 0; color: var(--text); text-decoration: none; font-weight: 500; border-bottom: 1px solid #f5f5f5; }
.nav-mobile.open { display: flex; }

/* ─── HERO ─────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 100px 24px 60px;
  /* Always white text — the dark gradient fallback + dark overlay below
     guarantee a dark backdrop regardless of the brand color, unlike
     .stats/.reviews which sit directly on --primary */
  color: #fff;
  /* Fallback background when no hero image loads */
  background: linear-gradient(135deg, var(--primary-darker) 0%, var(--primary) 50%, var(--primary-dark) 100%);
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg-img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  /* Semi-transparent overlay — lighter than before so brand color shows through */
  background: linear-gradient(135deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.25) 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 760px; }
.hero-badge {
  display: inline-block; background: rgba(255,255,255,.15); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.25); border-radius: 999px;
  padding: 8px 20px; font-size: 13px; font-weight: 600; margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(36px, 6vw, 72px); font-weight: 800; line-height: 1.1;
  margin-bottom: 20px; letter-spacing: -.02em;
}
.hero-sub {
  font-size: clamp(16px, 2.5vw, 22px); opacity: .88;
  margin-bottom: 40px; font-weight: 300; max-width: 600px; margin-left: auto; margin-right: auto;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  animation: bounce 2s infinite;
}
.hero-scroll span {
  display: block; width: 24px; height: 24px;
  border-right: 2px solid rgba(255,255,255,.6); border-bottom: 2px solid rgba(255,255,255,.6);
  transform: rotate(45deg);
}
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(8px)} }

/* ─── STATS ─────────────────────────────────── */
/* color derived from --primary via contrastingTextColor() at build time —
   guarantees readable text no matter how light or dark the brand color is */
.stats { background: var(--primary); color: var(--on-primary); padding: 48px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat { text-align: center; padding: 20px; border-right: 1px solid var(--on-primary-border); }
.stat:last-child { border-right: none; }
.stat-num { font-size: clamp(28px, 4vw, 44px); font-weight: 800; line-height: 1; margin-bottom: 8px; }
.stat-label { font-size: 13px; color: var(--on-primary-soft); text-transform: uppercase; letter-spacing: .08em; }

/* ─── SERVICES ─────────────────────────────────── */
.services { background: var(--bg-alt); }
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px;
}
.service-card {
  background: #fff; padding: 36px 28px; border-radius: var(--radius);
  box-shadow: var(--shadow); text-align: center;
  transition: transform .3s, box-shadow .3s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-icon {
  font-size: 32px; margin-bottom: 16px; color: var(--primary);
  width: 64px; height: 64px; display: flex; align-items: center; justify-content: center;
  background: var(--primary-light); border-radius: 50%; margin: 0 auto 20px;
}
.service-card h3 { font-size: 17px; font-weight: 700; }

/* ─── ABOUT ─────────────────────────────────── */
.about { background: var(--bg); }
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-image { position: relative; border-radius: var(--radius); overflow: hidden; }
.about-image img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; display: block; }
.about-badge {
  position: absolute; bottom: 24px; left: 24px;
  background: var(--primary); color: var(--on-primary); padding: 12px 20px;
  border-radius: 8px; font-weight: 700; font-size: 14px;
}
.about-text h2 { font-size: clamp(28px, 3.5vw, 40px); font-weight: 800; margin-bottom: 20px; }
.about-text p { color: var(--text-muted); margin-bottom: 16px; font-size: 16px; }
.about-contact { margin: 28px 0; display: flex; flex-direction: column; gap: 12px; }
.contact-item { display: flex; align-items: center; gap: 12px; font-size: 15px; overflow-wrap: anywhere; }
.contact-item a { color: var(--primary); text-decoration: none; font-weight: 600; }
.contact-icon { font-size: 18px; flex-shrink: 0; }

/* ─── REVIEWS ─────────────────────────────────── */
/* color derived from --primary via contrastingTextColor() at build time —
   guarantees readable text no matter how light or dark the brand color is */
.reviews { background: var(--primary); color: var(--on-primary); }
.reviews .section-header h2 { color: var(--on-primary); }
.reviews .section-tag { color: var(--on-primary-soft); }
.review-card {
  max-width: 700px; margin: 0 auto; text-align: center;
  background: var(--on-primary-border); backdrop-filter: blur(8px);
  border: 1px solid var(--on-primary-border); border-radius: var(--radius);
  padding: 48px 40px;
}
.stars { font-size: 28px; letter-spacing: 4px; margin-bottom: 24px; color: #ffd700; }
blockquote {
  font-size: clamp(16px, 2.5vw, 22px); font-style: italic;
  line-height: 1.7; margin-bottom: 20px; opacity: .95;
}
cite { font-size: 14px; color: var(--on-primary-soft); font-style: normal; display: block; margin-bottom: 20px; }
.review-badge {
  display: inline-block; background: var(--on-primary-border);
  color: var(--on-primary); border-radius: 999px; padding: 8px 20px; font-size: 13px; font-weight: 600;
}

/* ─── CONTACT ─────────────────────────────────── */
.contact { background: var(--bg-alt); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact-info h2 { font-size: clamp(26px, 3.5vw, 38px); font-weight: 800; margin-bottom: 16px; }
.contact-info p { color: var(--text-muted); margin-bottom: 28px; }
.contact-details { margin: 28px 0; color: var(--text-muted); display: flex; flex-direction: column; gap: 10px; }
.social-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.social-link {
  padding: 8px 16px; border-radius: 8px; background: var(--primary-light);
  color: var(--primary); text-decoration: none; font-size: 13px; font-weight: 600;
  text-transform: capitalize; transition: background .2s;
}
.social-link:hover { background: var(--primary); color: #fff; }

.contact-form {
  background: #fff; padding: 40px; border-radius: var(--radius); box-shadow: var(--shadow);
}
.contact-form h3 { font-size: 20px; font-weight: 700; margin-bottom: 24px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 14px 16px; margin-bottom: 16px;
  border: 1.5px solid #e5e7eb; border-radius: 8px;
  font-family: inherit; font-size: 15px; transition: border .2s;
  background: #f9fafb;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--primary); background: #fff;
}
.contact-form .btn { width: 100%; justify-content: center; }
.form-note { text-align: center; font-size: 12px; color: var(--text-muted); margin-top: 12px; }

/* ─── FOOTER ─────────────────────────────────── */
.footer { background: #111; color: #fff; padding: 60px 0 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: start; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; }
.footer-inner strong { font-size: 18px; font-weight: 700; display: block; margin-bottom: 8px; }
.footer-inner p { color: rgba(255,255,255,.5); font-size: 14px; margin-bottom: 4px; overflow-wrap: anywhere; }
.footer-inner a { color: rgba(255,255,255,.6); text-decoration: none; font-size: 14px; overflow-wrap: anywhere; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-copy { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 24px; text-align: center; }
.footer-copy p { color: rgba(255,255,255,.4); font-size: 12px; }

/* ─── RESPONSIVE ─────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: none; border-bottom: 1px solid var(--on-primary-border); }
  .about-inner, .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .section { padding: 64px 0; }
}

@media (max-width: 600px) {
  .container { padding: 0 18px; }
  .about-inner, .contact-inner { gap: 28px; }
  .stat { padding: 16px 10px; }
  .stat-num { font-size: clamp(22px, 7vw, 32px); }
  .review-card { padding: 32px 24px; }
  .hero-title { letter-spacing: -.01em; }
  .hero-badge { font-size: 12px; padding: 7px 16px; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
  .service-card { padding: 24px 16px; }
  .review-card { padding: 28px 18px; }
  .contact-form { padding: 24px 16px; }
  .nav-inner { height: 60px; }
  .hero { padding: 88px 18px 50px; }
}
