:root {
  --primary: #0056f4;
  --primary-dark: #003db8;
  --accent: #ef143a;
  --dark: #111827;
  --slate: #374151;
  --muted: #6b7280;
  --light: #f3f6fc;
  --white: #ffffff;
  --radius: 8px;
  --shadow: 0 12px 40px rgba(0, 86, 244, 0.12);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--slate);
  line-height: 1.65;
  background: var(--white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent);
}

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

/* Top bar */
.top-bar {
  background: var(--dark);
  color: #d1d5db;
  font-size: 0.875rem;
  padding: 0.5rem 0;
}

.top-bar .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.top-bar a {
  color: #e5e7eb;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 0;
  background: linear-gradient(180deg, #eef4ff 0%, #f8fafc 100%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--primary);
  border-radius: var(--radius);
  padding: 0.65rem 1.25rem;
  box-shadow: var(--shadow);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-link img,
.logo-link svg {
  height: 42px;
  width: auto;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--white);
  margin: 5px 0;
  border-radius: 2px;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.25rem;
  align-items: center;
}

.main-nav a {
  color: var(--white);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.35rem 0;
}

.main-nav a:hover,
.main-nav a.active {
  color: #fde68a;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: #c90f30;
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(239, 20, 58, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

/* Hero */
.hero {
  padding: 3rem 0 4rem;
  background: linear-gradient(135deg, #eef4ff 0%, #f0f7ff 45%, #fff 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.hero-label::before {
  content: "";
  width: 4px;
  height: 28px;
  background: var(--accent);
  border-radius: 2px;
}

.hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  color: var(--primary);
  line-height: 1.2;
  margin: 0 0 1rem;
}

.hero p {
  color: var(--muted);
  margin: 0 0 1.5rem;
  max-width: 520px;
}

.hero-media {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-media img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: var(--white);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.hero-badge strong {
  display: block;
  font-size: 1.5rem;
  color: var(--primary);
}

/* Section */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--light);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.section-head .subtitle {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.section-head h2 {
  color: var(--dark);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin: 0 0 0.75rem;
}

.section-head p {
  color: var(--muted);
  margin: 0;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
  margin-top: 2rem;
}

.stat-item strong {
  display: block;
  font-size: 2rem;
  color: var(--primary);
}

/* Cards grid */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.cards-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 4px 24px rgba(17, 24, 39, 0.06);
  border: 1px solid #e5e7eb;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: calc(var(--radius) - 2px);
  margin-bottom: 1rem;
}

.card h3,
.card h4 {
  color: var(--dark);
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.card-icon {
  width: 56px;
  height: 56px;
  background: rgba(0, 86, 244, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--primary);
  font-size: 1.5rem;
}

/* CTA band */
.cta-band {
  background: var(--primary);
  color: var(--white);
  padding: 3rem 0;
  text-align: center;
}

.cta-band h2 {
  margin: 0 0 1rem;
}

/* Two col */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.split img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  height: 360px;
  object-fit: cover;
  width: 100%;
}

/* Process */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.process-step {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid #e5e7eb;
}

.process-step .num {
  width: 48px;
  height: 48px;
  line-height: 48px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  margin: 0 auto 1rem;
  font-weight: 700;
}

/* Testimonials */
.testimonial-slider {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.testimonial-slide {
  display: none;
  padding: 2rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.testimonial-slide.active {
  display: block;
}

.stars {
  color: #f59e0b;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.slider-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: #cbd5e1;
  cursor: pointer;
  padding: 0;
}

.slider-dots button.active {
  background: var(--primary);
}

/* Pricing */
.price-card {
  text-align: center;
  position: relative;
}

.price-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.price-card .price {
  font-size: 2.5rem;
  color: var(--primary);
  font-weight: 700;
}

.price-card .price span {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 400;
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
  text-align: left;
}

.price-card li {
  padding: 0.4rem 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.95rem;
}

/* Page banner */
.page-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 3rem 0;
  text-align: center;
}

.page-banner h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  opacity: 0.9;
}

.breadcrumb a {
  color: #bfdbfe;
}

/* Content prose */
.prose {
  max-width: 900px;
  margin: 0 auto;
}

.prose h2,
.prose h3 {
  color: var(--dark);
  margin-top: 2rem;
}

.prose p,
.prose li {
  color: var(--slate);
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

/* Forms */
.form-panel {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid #e5e7eb;
  max-width: 640px;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 86, 244, 0.15);
}

.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
  border-color: var(--accent);
}

.field-error {
  color: var(--accent);
  font-size: 0.8rem;
  margin-top: 0.25rem;
  display: none;
}

.field-error.show {
  display: block;
}

/* Checkbox alignment */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.checkbox-group .field-error.show {
  flex: 0 0 100%;
  margin-left: calc(1.15rem + 0.65rem);
}

.checkbox-group input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  min-width: 1.15rem;
  margin-top: 0.2rem;
  accent-color: var(--primary);
  cursor: pointer;
}

.checkbox-group label {
  font-weight: 400;
  font-size: 0.9rem;
  line-height: 1.45;
  cursor: pointer;
  flex: 1;
}

.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  border-radius: var(--radius);
  color: #065f46;
  font-size: 1.1rem;
  font-weight: 600;
}

.form-success.show {
  display: block;
}

.form-success.show + form,
form.hidden {
  display: none;
}

/* Team */
.team-card img {
  height: 280px;
}

.team-role {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: var(--dark);
  color: #9ca3af;
  padding-top: 3.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid #374151;
}

.footer-grid h3,
.footer-grid h4 {
  color: var(--white);
  margin: 0 0 1rem;
  font-size: 1.1rem;
}

.footer-grid p {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #d1d5db;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--white);
}

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #374151;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
}

.social-links a:hover {
  background: var(--primary);
  color: var(--white);
}

.footer-bottom {
  padding: 1.25rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.footer-legal a {
  color: #9ca3af;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-grid img {
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  width: 100%;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-grid,
  .split,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cards-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-steps,
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary-dark);
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 1rem;
    display: none;
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-header .container {
    position: relative;
  }
}

@media (max-width: 640px) {
  .cards-3,
  .cards-4,
  .form-grid,
  .process-steps,
  .stats,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero-media img {
    height: 260px;
  }
}