:root {
  --primary: #c00000;
  --primary-dark: #8b0000;
  --primary-nav: #a50000;
  --accent-yellow: #ffd200;
  --black: #111111;
  --dark: #1a1a1a;
  --gray-bg: #f4f4f4;
  --text: #333333;
  --white: #ffffff;
  --font: "Montserrat", "Roboto", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font);
  color: var(--text);
  margin: 0;
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-dark);
}

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

/* Top bar */
.top-bar {
  background: var(--black);
  color: #ccc;
  font-size: 13px;
  padding: 8px 0;
}

.top-bar a {
  color: #ddd;
  margin-right: 18px;
}

.top-bar a:hover {
  color: var(--white);
}

.top-bar .social a {
  margin-right: 12px;
  margin-left: 0;
  font-size: 14px;
}

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid #eee;
}

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

.logo-link img {
  height: 52px;
  width: auto;
}

.header-info {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
}

.info-block {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.info-block i {
  color: var(--primary);
  font-size: 28px;
  margin-top: 4px;
}

.info-block strong {
  display: block;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--black);
}

.info-block span {
  font-size: 14px;
  color: #666;
}

.btn-primary-custom {
  background: var(--primary);
  color: var(--white) !important;
  border: none;
  padding: 14px 22px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 0;
  display: inline-block;
}

.btn-primary-custom:hover {
  background: var(--primary-dark);
  color: var(--white) !important;
}

/* Main nav */
.main-nav {
  background: var(--primary-nav);
}

.main-nav .navbar {
  padding: 0;
}

.main-nav .nav-link {
  color: var(--white) !important;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 16px 18px !important;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
  background: rgba(0, 0, 0, 0.15);
}

.nav-actions {
  display: flex;
  gap: 0;
  margin-left: auto;
}

.nav-actions a {
  background: var(--primary-dark);
  color: var(--white) !important;
  padding: 16px 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.nav-actions a:hover {
  background: var(--black);
}

/* Hero */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 40px 20px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

/* Section titles */
.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 12px;
}

.section-title .line {
  width: 60px;
  height: 3px;
  background: var(--primary);
  margin: 0 auto 16px;
}

.section-title p {
  max-width: 700px;
  margin: 0 auto;
  color: #666;
}

.section-padding {
  padding: 70px 0;
}

.bg-gray {
  background: var(--gray-bg);
}

.bg-dark-section {
  background: var(--black);
  color: #ccc;
  position: relative;
  background-size: cover;
  background-position: center;
}

.bg-dark-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.88);
}

.bg-dark-section > .container {
  position: relative;
  z-index: 1;
}

.bg-dark-section h2,
.bg-dark-section h3 {
  color: var(--white);
}

.bg-dark-section h2 span {
  color: var(--accent-yellow);
}

/* Services grid */
.services-intro {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
  margin-bottom: 40px;
}

.services-intro h2 {
  flex: 0 0 280px;
  font-size: 32px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--black);
}

.service-card {
  position: relative;
  margin-bottom: 30px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
}

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

.service-card .badge-num {
  position: absolute;
  bottom: 52px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  border: 3px solid var(--white);
}

.service-card h3 {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 18px 10px;
  margin: 0;
  color: var(--black);
}

/* Feature boxes */
.feature-box {
  text-align: center;
  padding: 25px 15px;
}

.feature-box i {
  font-size: 42px;
  color: var(--accent-yellow);
  margin-bottom: 16px;
}

.feature-box h4 {
  color: var(--white);
  font-size: 15px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.feature-box p {
  font-size: 14px;
  color: #aaa;
  margin-bottom: 12px;
}

.feature-box a {
  color: var(--accent-yellow);
  font-size: 13px;
  font-weight: 600;
}

/* News cards */
.news-card {
  background: var(--white);
  margin-bottom: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

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

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

.news-card .tag {
  background: var(--primary);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 10px;
}

.news-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

/* Team */
.team-card {
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--white);
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.team-card img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 4px;
}

.team-card h4 {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0 0 4px;
}

.team-card .role {
  font-size: 12px;
  color: var(--primary);
  margin-bottom: 8px;
}

.team-card .social a {
  color: #888;
  margin-right: 8px;
}

/* Stats */
.stat-box {
  text-align: center;
  padding: 20px;
}

.stat-box h3 {
  font-size: 42px;
  font-weight: 800;
  color: var(--primary);
  margin: 0;
}

.stat-box span {
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 600;
}

/* Pre-footer */
.pre-footer {
  background: var(--black);
  color: #ccc;
  padding: 28px 0;
}

.pre-footer .btn-primary-custom {
  white-space: nowrap;
}

/* Footer */
.site-footer {
  background: #0a0a0a;
  color: #999;
  padding: 60px 0 0;
  font-size: 14px;
}

.site-footer h5 {
  color: var(--white);
  text-transform: uppercase;
  font-size: 15px;
  margin-bottom: 22px;
  font-weight: 700;
}

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

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

.site-footer ul a {
  color: #999;
}

.site-footer ul a:hover {
  color: var(--white);
}

.footer-social a {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  background: #222;
  color: var(--white);
  margin-right: 8px;
  border-radius: 2px;
}

.footer-social a:hover {
  background: var(--primary);
}

.footer-bottom {
  border-top: 1px solid #222;
  margin-top: 40px;
  padding: 18px 0;
  font-size: 13px;
}

.footer-legal a {
  color: #777;
  margin-left: 16px;
  font-size: 12px;
}

/* Page banner */
.page-banner {
  background-size: cover;
  background-position: center;
  padding: 80px 0;
  text-align: center;
  position: relative;
}

.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.page-banner .container {
  position: relative;
  z-index: 1;
}

.page-banner h1 {
  color: var(--white);
  font-weight: 800;
  text-transform: uppercase;
  margin: 0;
}

.breadcrumb-nav {
  color: #ddd;
  font-size: 13px;
  margin-top: 12px;
}

.breadcrumb-nav a {
  color: var(--accent-yellow);
}

/* Forms */
.form-section {
  max-width: 640px;
  margin: 0 auto;
}

.form-control,
.form-select {
  border-radius: 0;
  padding: 12px 14px;
  border: 1px solid #ddd;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(192, 0, 0, 0.15);
}

.form-label {
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.invalid-feedback {
  display: none;
  font-size: 13px;
}

.was-validated .form-control:invalid ~ .invalid-feedback,
.was-validated .form-select:invalid ~ .invalid-feedback,
.form-control.is-invalid ~ .invalid-feedback {
  display: block;
}

.form-success {
  display: none;
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
  padding: 20px;
  text-align: center;
  font-weight: 600;
  margin-top: 20px;
}

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

/* Pricing */
.pricing-card {
  background: var(--white);
  border: 2px solid #eee;
  padding: 36px 28px;
  text-align: center;
  height: 100%;
  transition: border-color 0.3s;
}

.pricing-card.featured {
  border-color: var(--primary);
  transform: scale(1.02);
  box-shadow: 0 8px 30px rgba(192, 0, 0, 0.15);
}

.pricing-card h3 {
  text-transform: uppercase;
  font-size: 18px;
  font-weight: 800;
}

.pricing-card .price {
  font-size: 42px;
  font-weight: 800;
  color: var(--primary);
  margin: 20px 0;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  text-align: left;
  margin: 24px 0;
}

.pricing-card ul li {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
}

.pricing-card ul li i {
  color: var(--primary);
  margin-right: 8px;
}

/* Testimonial */
.testimonial-card {
  background: var(--white);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border-left: 4px solid var(--primary);
}

.testimonial-card .stars {
  color: var(--accent-yellow);
  margin-bottom: 12px;
}

.testimonial-card .author {
  font-weight: 700;
  margin-top: 16px;
  text-transform: uppercase;
  font-size: 14px;
}

/* Projects */
.project-card {
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
}

.project-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.4s;
}

.project-card:hover img {
  transform: scale(1.05);
}

.project-card .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  padding: 24px;
  color: var(--white);
}

.project-card h3 {
  font-size: 16px;
  text-transform: uppercase;
  margin: 0;
}

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

.legal-content h2 {
  font-size: 22px;
  margin-top: 36px;
  color: var(--black);
}

.legal-content h3 {
  font-size: 17px;
  margin-top: 24px;
}

/* Content blocks */
.content-block {
  margin-bottom: 24px;
}

.icon-list li {
  margin-bottom: 12px;
  padding-left: 8px;
}

.icon-list i {
  color: var(--primary);
  margin-right: 10px;
}

@media (max-width: 991px) {
  .nav-actions {
    display: none;
  }

  .header-info {
    width: 100%;
    justify-content: center;
  }

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

@media (max-width: 767px) {
  .services-intro h2 {
    flex: 100%;
  }

  .footer-legal a {
    display: block;
    margin: 8px 0 0;
  }
}
