:root {
  --red: #e31e24;
  --red-dark: #c4191e;
  --charcoal: #1a1a1a;
  --charcoal-soft: #2a2a2a;
  --text: #4a4a4a;
  --text-dark: #1a1a1a;
  --white: #ffffff;
  --gray-100: #f5f6f8;
  --gray-200: #e8eaed;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --radius-pill: 999px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  line-height: 1.65;
  background: var(--white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: min(1170px, 92%);
  margin: 0 auto;
}

.section {
  padding: 80px 0;
}

.section-label {
  color: var(--red);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 10px;
}

.section-title {
  color: var(--text-dark);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 18px;
}

.section-title span {
  color: var(--red);
}

.section-lead {
  max-width: 680px;
  margin: 0 auto 40px;
  text-align: center;
}

.text-center {
  text-align: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(227, 30, 36, 0.35);
}

.btn-primary:hover {
  background: var(--red-dark);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--red);
  color: var(--red);
}

/* Top bar */
.topbar {
  background: var(--charcoal);
  color: #d0d0d0;
  font-size: 0.9rem;
  padding: 10px 0;
}

.topbar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
}

.topbar a {
  color: var(--white);
}

.topbar a:hover {
  color: var(--red);
}

/* Header */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}

.logo img {
  height: 44px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--red);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 42px;
  height: 42px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 3px;
  background: var(--charcoal);
  margin: 6px 8px;
  border-radius: 2px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, rgba(26, 26, 26, 0.88) 0%, rgba(26, 26, 26, 0.45) 55%, rgba(26, 26, 26, 0.2) 100%),
    url("../images/hero.jpg") center / cover no-repeat;
  color: var(--white);
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding: 70px 0;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.15;
  margin: 0 0 16px;
}

.hero h1 span {
  color: var(--red);
}

.hero p {
  font-size: 1.05rem;
  opacity: 0.92;
  max-width: 540px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

.hero-stat-card {
  background: var(--white);
  color: var(--text-dark);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  max-width: 360px;
  margin-left: auto;
}

.hero-stat-card strong {
  display: block;
  font-size: 2.5rem;
  color: var(--red);
}

/* Feature cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: -60px;
  position: relative;
  z-index: 2;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}

.feature-card .icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(227, 30, 36, 0.1);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  margin: 0 0 10px;
  color: var(--text-dark);
  font-size: 1.15rem;
}

/* Stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
  margin: 50px 0 0;
}

.stat-box strong {
  display: block;
  font-size: 2rem;
  color: var(--red);
}

.stat-box span {
  font-weight: 600;
  color: var(--text-dark);
}

/* Service cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  transition: border-color 0.2s, transform 0.2s;
}

.service-card:hover {
  border-color: var(--red);
  transform: translateY(-4px);
}

.service-card h3 {
  margin: 12px 0 10px;
  color: var(--text-dark);
}

.service-card .read-more {
  color: var(--red);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Split about */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.split img {
  border-radius: var(--radius);
  width: 100%;
  object-fit: cover;
  min-height: 380px;
}

.highlight-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  margin-top: 18px;
  display: grid;
  gap: 16px;
}

.highlight-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.highlight-item .icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(227, 30, 36, 0.12);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* CTA banner */
.cta-banner {
  background: var(--charcoal);
  color: var(--white);
  padding: 42px 0;
}

.cta-banner .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cta-banner h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
}

.cta-banner h2 span {
  color: var(--red);
}

/* Accordion */
.accordion {
  border-top: 1px solid var(--gray-200);
}

.accordion-item {
  border-bottom: 1px solid var(--gray-200);
}

.accordion-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  text-align: left;
}

.accordion-trigger .plus {
  color: var(--red);
  font-size: 1.4rem;
  line-height: 1;
}

.accordion-panel {
  display: none;
  padding: 0 0 20px;
  color: var(--text);
}

.accordion-item.open .accordion-panel {
  display: block;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.gallery-grid img {
  border-radius: var(--radius);
  width: 100%;
  height: 260px;
  object-fit: cover;
}

/* Team */
.team-section {
  background: var(--gray-100);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
}

.team-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.team-card .info {
  padding: 20px;
}

.team-card h3 {
  margin: 0 0 6px;
  color: var(--text-dark);
}

.team-card p {
  margin: 0;
  color: var(--red);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Testimonial */
.testimonial-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}

.testimonial-card {
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
}

.testimonial-card .quote {
  color: var(--red);
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 12px;
}

.stars {
  color: #f5b301;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.testimonial-user img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

/* Forms */
.form-card {
  background: var(--charcoal);
  color: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.form-card h3 {
  margin: 0 0 8px;
}

.form-card .sub {
  opacity: 0.8;
  margin-bottom: 22px;
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #4a4a4a;
  background: #2a2a2a;
  color: var(--white);
  font: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: 2px solid var(--red);
  border-color: var(--red);
}

.form-group.has-error input,
.form-group.has-error textarea,
.form-group.has-error select {
  border-color: #ff6b6b;
}

.field-error {
  color: #ff8a8a;
  font-size: 0.82rem;
  margin-top: 4px;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0 18px;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--red);
  cursor: pointer;
}

.checkbox-group label {
  margin: 0;
  font-weight: 500;
  line-height: 1.45;
  cursor: pointer;
  flex: 1;
}

.checkbox-group .field-error {
  flex-basis: 100%;
  margin-left: 28px;
}

.form-success {
  display: none;
  background: rgba(227, 30, 36, 0.15);
  border: 1px solid var(--red);
  color: var(--white);
  padding: 14px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-weight: 600;
}

.form-success.show {
  display: block;
}

.form-light .form-group input,
.form-light .form-group textarea,
.form-light .form-group select {
  background: var(--white);
  color: var(--text-dark);
  border-color: var(--gray-200);
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.price-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow);
  text-align: center;
}

.price-card.featured {
  border-color: var(--red);
  transform: scale(1.03);
}

.price-card h3 {
  margin: 0 0 8px;
}

.price-card .price {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--red);
  margin: 16px 0;
}

.price-card ul {
  text-align: left;
  margin: 20px 0;
}

.price-card li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--gray-200);
  font-size: 0.95rem;
}

/* Blog cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}

.blog-card img {
  height: 200px;
  width: 100%;
  object-fit: cover;
}

.blog-card .body {
  padding: 22px;
}

.blog-meta {
  font-size: 0.85rem;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 8px;
}

/* Page hero */
.page-hero {
  background: linear-gradient(135deg, var(--charcoal) 0%, #333 100%);
  color: var(--white);
  padding: 56px 0;
  text-align: center;
}

.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.breadcrumb {
  font-size: 0.9rem;
  opacity: 0.85;
}

.breadcrumb a:hover {
  color: var(--red);
}

/* Legal content */
.legal-content {
  max-width: 900px;
  margin: 0 auto;
}

.legal-content h2 {
  color: var(--text-dark);
  margin-top: 36px;
  font-size: 1.35rem;
}

.legal-content h3 {
  margin-top: 24px;
  color: var(--text-dark);
}

.legal-content p,
.legal-content li {
  font-size: 1rem;
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.4rem;
  margin: 12px 0;
}

/* Footer */
.site-footer {
  background: var(--charcoal);
  color: #c8c8c8;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  left: -10%;
  bottom: -40%;
  width: 50%;
  height: 80%;
  background: radial-gradient(circle, rgba(227, 30, 36, 0.35) 0%, transparent 70%);
  pointer-events: none;
}

.footer-main {
  padding: 70px 0 40px;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
}

.footer-grid h3 {
  color: var(--white);
  margin: 0 0 18px;
  font-size: 1.15rem;
}

.footer-grid p {
  margin: 0 0 16px;
  font-size: 0.95rem;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a:hover {
  color: var(--red);
}

.social-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.social-row a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--charcoal-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid #3a3a3a;
}

.social-row a:hover {
  background: var(--red);
  border-color: var(--red);
}

.footer-legal {
  border-top: 1px solid #333;
  padding: 20px 0;
  text-align: center;
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

.footer-legal a {
  color: var(--white);
  margin: 0 10px;
}

.footer-legal a:hover {
  color: var(--red);
}

/* Process steps */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.process-step {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}

.process-step .num {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.process-step h4 {
  margin: 0 0 8px;
  color: var(--text-dark);
}

@media (max-width: 1024px) {
  .feature-grid,
  .services-grid,
  .team-grid,
  .blog-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero .container,
  .split,
  .testimonial-wrap {
    grid-template-columns: 1fr;
  }

  .hero-stat-card {
    margin-left: 0;
  }

  .stats-row,
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow);
    border-top: 1px solid var(--gray-200);
  }

  .main-nav.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .header-inner {
    position: relative;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    margin-top: 30px;
  }

  .services-grid,
  .team-grid,
  .blog-grid,
  .pricing-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .price-card.featured {
    transform: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 56px 0;
  }
}