:root {
  --primary: #cc0000;
  --primary-dark: #8b0000;
  --primary-soft: #fff5f5;
  --ink: #17202b;
  --text: #243447;
  --muted: #5f6f7f;
  --border: #e7e9ef;
  --bg: #f5f7fa;
  --white: #ffffff;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

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

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

.container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.top-toolbar {
  background: #202224;
  color: #f7f8fb;
  padding: 10px 0;
  font-size: 0.92rem;
}

.top-toolbar .container,
header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.top-toolbar-left {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.top-toolbar a {
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

header {
  background: var(--white);
  color: var(--text);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
}

.logo {
  max-height: 72px;
}

.main-nav {
  position: relative;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: var(--border);
}

.nav-toggle-line {
  display: block;
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: currentColor;
}

.nav-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  min-width: 210px;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow);
  z-index: 10;
}

.nav-menu.is-open {
  display: flex;
}

.nav-menu a {
  color: var(--text);
  font-weight: 500;
  transition: color 0.2s ease;
  padding: 8px 10px;
  border-radius: 10px;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary);
  background: var(--primary-soft);
}

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

  .nav-menu {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 22px;
    min-width: auto;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .nav-menu a {
    padding: 0;
    border-radius: 0;
    background: transparent;
  }
}

main {
  padding: 24px 0 48px;
}

.home-hero {
  margin: 8px 0 24px;
  padding: 88px 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background:
    linear-gradient(90deg, rgba(12, 18, 30, 0.9) 0%, rgba(204, 0, 0, 0.8) 100%),
    url('images/banner/optimized/banner-background.webp') center/cover no-repeat;
}

.home-hero .container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
}

.home-hero-content h1 {
  font-size: clamp(2.1rem, 3.4vw, 3.2rem);
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--white);
}

.home-hero-content p {
  font-size: 1.03rem;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 22px;
  max-width: 680px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.hero-panel,
.section-card,
.contact-info-card,
.contact-form-card,
.mission-card,
.service-card,
.service-panel {
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-panel {
  border-radius: 16px;
  padding: 24px;
}

.hero-panel h3 {
  color: var(--ink);
  margin-bottom: 12px;
}

.hero-panel ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.hero-panel li {
  display: flex;
  gap: 8px;
  color: var(--muted);
}

.hero-panel li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 700;
}

.btn,
.service-link,
.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn {
  padding: 12px 20px;
}

.btn:hover,
.service-card:hover {
  transform: translateY(-3px);
}

.btn-primary,
.submit-btn {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(204, 0, 0, 0.18);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary);
  border: 1px solid rgba(204, 0, 0, 0.15);
}

.section-card {
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 24px;
}

.section-heading,
.section-header {
  margin-bottom: 24px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}

.section-heading h2,
.section-header h2,
.about-content h2,
.contact-info-card h2,
.contact-form-card h3 {
  color: var(--ink);
  line-height: 1.25;
}

.section-heading h2,
.section-header h2,
.about-content h2 {
  font-size: clamp(1.65rem, 2.4vw, 2rem);
}

.section-heading a,
.service-link {
  color: var(--primary);
}

.section-card p,
.section-header p,
.about-content p,
.about2-content p,
.mission-card p,
.service-card p,
.contact-info-card p,
.contact-text p,
.contact-text a {
  color: var(--muted);
}

.stats-grid,
.services-grid,
.info-grid,
.mission-grid,
.service-grid,
.content-grid,
.contact-grid-modern,
.about-grid,
.about2-grid {
  display: grid;
  gap: 24px;
}

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

.stat-card,
.info-card,
.quote-card {
  background: var(--primary-soft);
  border: 1px solid rgba(204, 0, 0, 0.08);
  border-radius: 14px;
  padding: 20px;
}

.stat-card strong {
  display: block;
  font-size: 1.6rem;
  color: var(--primary-dark);
}

.services-grid,
.info-grid,
.contact-grid-modern,
.about-grid,
.about2-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.content-grid {
  grid-template-columns: 1.2fr 0.8fr;
}

.service-grid {
  grid-template-columns: repeat(4, 1fr);
}

.mission-grid {
  grid-template-columns: repeat(3, 1fr);
}

.service-card,
.mission-card,
.contact-info-card,
.contact-form-card {
  border-radius: 16px;
  padding: 28px;
}

.service-card {
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
  border-color: rgba(204, 0, 0, 0.35);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.1);
}

.service-card h3,
.info-card h3,
.mission-card h3 {
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.service-card p {
  margin-bottom: 16px;
}

.service-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
}

.service-link {
  padding: 8px 14px;
  border: 1px solid rgba(204, 0, 0, 0.15);
}

.service-link:hover {
  background: var(--primary);
  color: var(--white);
}

.quote-card {
  color: var(--primary-dark);
  font-weight: 600;
  line-height: 1.8;
}

.list-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.list-group span {
  background: var(--primary);
  color: var(--white);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.95rem;
}

.info-card p + p {
  margin-top: 6px;
}

.about-section,
.service-overview,
.service-details,
.contact-section-page {
  padding: 48px 0;
}

.about2-section {
  padding: 48px 0;
  background: var(--primary-soft);
}

.mission-section {
  padding: 48px 0 60px;
}

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

.section-header p {
  max-width: 720px;
  margin: 8px auto 0;
}

.about-content h2::after,
.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  margin-top: 12px;
  background: var(--primary);
}

.section-header h2::after {
  margin-left: auto;
  margin-right: auto;
}

.about-image img,
.about2-image img {
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

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

.mission-icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 14px;
}

.service-panel-list {
  display: grid;
  gap: 14px;
}

.service-panel {
  border-radius: 12px;
  overflow: hidden;
}

.service-panel summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 24px;
  font-weight: 600;
  color: var(--ink);
  position: relative;
}

.service-panel summary::-webkit-details-marker {
  display: none;
}

.service-panel summary::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  right: 24px;
  transition: transform 0.2s ease;
}

.service-panel[open] summary::after {
  transform: rotate(180deg);
}

.panel-body {
  padding: 0 24px;
  color: var(--muted);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.35s ease;
}

.service-panel[open] .panel-body {
  max-height: 280px;
  padding: 0 24px 24px;
  opacity: 1;
}

.panel-body ul {
  margin: 12px 0 0 18px;
  display: grid;
  gap: 8px;
}

.contact-method {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 16px;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(204, 0, 0, 0.08);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-text h4 {
  color: var(--ink);
  margin-bottom: 4px;
}

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

.hidden-field {
  display: none;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--ink);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid rgba(204, 0, 0, 0.15);
  border-color: var(--primary);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.submit-btn {
  width: 100%;
  border: none;
  padding: 12px 18px;
  cursor: pointer;
}

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

.submit-btn:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.form-status {
  min-height: 1.5rem;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

.form-status.success {
  color: #1f7a3f;
}

.form-status.error {
  color: var(--primary-dark);
}

.footer {
  background: var(--white);
  color: var(--text);
  padding: 28px 0;
  text-align: center;
  margin-top: 24px;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer p {
  opacity: 0.9;
}

@media (max-width: 1000px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 900px) {
  .home-hero .container,
  .content-grid,
  .services-grid,
  .info-grid,
  .contact-grid-modern,
  .about-grid,
  .about2-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .top-toolbar .container,
  .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  header .container {
    flex-direction: row;
    align-items: center;
  }

  .home-hero {
    padding: 40px 0;
    border-radius: 16px;
  }

  .section-card,
  .service-card,
  .mission-card,
  .contact-info-card,
  .contact-form-card {
    padding: 24px;
  }

  .stats-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .nav-menu {
    gap: 12px;
  }
}
