:root {
  --primary: #ff4c01;
  --primary-dark: #e03d00;
  --dark: #1a1a1a;
  --dark-2: #252525;
  --gray: #f5f5f5;
  --gray-border: #e8e8e8;
  --text: #666666;
  --white: #ffffff;
  --font: "Montserrat", sans-serif;
}

* {
  box-sizing: border-box;
}

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

.bg-primary,
.badge.bg-primary {
  background-color: var(--primary) !important;
}

.navbar-toggler {
  border-color: rgba(26, 26, 26, 0.35);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 76, 1, 0.25);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--dark);
  font-weight: 700;
}

a {
  text-decoration: none;
  transition: color 0.25s ease, background 0.25s ease;
}

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

.text-primary {
  color: var(--primary) !important;
}

.bg-dark-custom {
  background: var(--dark);
}

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

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

.top-bar a {
  color: #ccc;
}

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

.top-bar i {
  color: var(--primary);
  margin-right: 8px;
}

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

.site-header .navbar-brand img {
  height: 48px;
  width: auto;
}

.navbar-nav .nav-link {
  color: var(--dark);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  padding: 28px 16px !important;
  letter-spacing: 0.3px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary);
}

.btn-primary-custom {
  background: var(--primary);
  border: 2px solid var(--primary);
  color: var(--white);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  padding: 12px 28px;
  border-radius: 0;
  letter-spacing: 0.5px;
}

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

.btn-outline-light-custom {
  border: 2px solid var(--white);
  color: var(--white);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  padding: 12px 28px;
  border-radius: 0;
  background: transparent;
}

.btn-outline-light-custom:hover {
  background: var(--white);
  color: var(--dark);
}

.btn-outline-primary-custom {
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  padding: 10px 24px;
  border-radius: 0;
  background: transparent;
}

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

/* Section titles */
.section-subtitle {
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 20px;
}

/* Hero */
.hero-slider {
  position: relative;
  min-height: 620px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.hero-slider::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(26, 26, 26, 0.92) 0%, rgba(26, 26, 26, 0.55) 55%, rgba(26, 26, 26, 0.35) 100%);
}

.hero-slider .container {
  position: relative;
  z-index: 2;
}

.hero-slider h1 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-slider p {
  color: #ddd;
  font-size: 16px;
  max-width: 520px;
  margin-bottom: 28px;
}

.hero-badge {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  font-size: 13px;
  padding: 8px 18px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

/* Stat cards */
.stat-cards {
  margin-top: -60px;
  position: relative;
  z-index: 5;
}

.stat-card {
  background: var(--primary);
  color: var(--white);
  padding: 28px 24px;
  text-align: center;
  height: 100%;
}

.stat-card i {
  font-size: 36px;
  margin-bottom: 12px;
  display: block;
}

.stat-card h3 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 4px;
}

.stat-card p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

/* Service cards */
.service-card {
  position: relative;
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

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

.service-card:hover img {
  transform: scale(1.06);
}

.service-card .card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 26, 26, 0.88) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.service-card .icon-box {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 52px;
  height: 52px;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.service-card h4 {
  color: var(--white);
  font-size: 18px;
  margin-bottom: 8px;
}

.service-card .learn-more {
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
}

/* CTA strip */
.cta-strip {
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 80px 0;
}

.cta-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.88);
}

.cta-strip .container {
  position: relative;
  z-index: 2;
}

.cta-strip h2 {
  color: var(--white);
}

.cta-strip p {
  color: #ccc;
}

/* Feature boxes */
.feature-box {
  text-align: center;
  padding: 30px 20px;
  border: 1px solid var(--gray-border);
  height: 100%;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.feature-box:hover {
  border-color: var(--primary);
  box-shadow: 0 12px 40px rgba(255, 76, 1, 0.12);
}

.feature-box .icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  background: var(--gray);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.feature-box h4 {
  font-size: 18px;
  margin-bottom: 10px;
}

/* Process steps */
.process-step {
  text-align: center;
  padding: 20px;
}

.process-step .step-num {
  width: 80px;
  height: 80px;
  border: 3px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
}

.process-step h4 {
  font-size: 17px;
}

/* Team */
.team-card {
  text-align: center;
  margin-bottom: 30px;
}

.team-card .photo-wrap {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  border: 4px solid var(--primary);
}

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

.team-card h4 {
  font-size: 18px;
  margin-bottom: 4px;
}

.team-card span {
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
}

/* Testimonials */
.testimonial-section {
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 100px 0;
}

.testimonial-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.75);
}

.testimonial-section .container {
  position: relative;
  z-index: 2;
}

.testimonial-section .section-title,
.testimonial-section .section-subtitle {
  color: var(--white);
}

.testimonial-card {
  background: var(--white);
  padding: 40px 36px;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.testimonial-card .stars {
  color: var(--primary);
  margin-bottom: 16px;
}

.testimonial-card .avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin: 20px auto 12px;
  border: 3px solid var(--primary);
}

/* Pricing */
.pricing-card {
  border: 1px solid var(--gray-border);
  padding: 40px 30px;
  text-align: center;
  height: 100%;
  transition: transform 0.3s, box-shadow 0.3s;
  background: var(--white);
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 16px 50px rgba(255, 76, 1, 0.15);
  transform: scale(1.02);
}

.pricing-card .price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
}

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

.pricing-card ul li {
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-border);
  font-size: 14px;
}

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

/* Contact form */
.form-dark {
  background: var(--dark);
  padding: 40px;
}

.form-dark .form-label {
  color: #ddd;
  font-size: 13px;
  font-weight: 600;
}

.form-dark .form-control,
.form-dark .form-select {
  background: var(--dark-2);
  border: 1px solid #444;
  color: var(--white);
  border-radius: 0;
  padding: 12px 16px;
}

.form-dark .form-control:focus,
.form-dark .form-select:focus {
  border-color: var(--primary);
  box-shadow: none;
  background: var(--dark-2);
  color: var(--white);
}

.form-light .form-control,
.form-light .form-select {
  border-radius: 0;
  border: 1px solid var(--gray-border);
  padding: 12px 16px;
}

.form-light .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(255, 76, 1, 0.15);
}

.form-check-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}

.form-check-row .field-error {
  flex: 0 0 100%;
  margin-left: calc(1.15em + 10px);
}

.form-check-row .form-check-input {
  width: 1.15em;
  height: 1.15em;
  margin-top: 0.2em;
  flex-shrink: 0;
  border-radius: 0;
  cursor: pointer;
}

.form-check-row .form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.form-check-row .form-check-label {
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
}

.field-error {
  color: #ff6b6b;
  font-size: 12px;
  margin-top: 4px;
  display: none;
}

.field-error.show {
  display: block;
}

.form-control.is-invalid-custom {
  border-color: #ff6b6b !important;
}

.form-success-msg {
  display: none;
  background: #1e4620;
  border: 1px solid #2e7d32;
  color: #a5d6a7;
  padding: 16px 20px;
  margin-bottom: 20px;
  font-weight: 600;
}

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

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

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

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

.page-banner h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.breadcrumb-custom {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.breadcrumb-custom li {
  color: #aaa;
  font-size: 14px;
}

.breadcrumb-custom li a {
  color: var(--primary);
}

.breadcrumb-custom li + li::before {
  content: "/";
  margin-right: 8px;
  color: #666;
}

/* Project grid */
.project-card {
  position: relative;
  overflow: hidden;
  margin-bottom: 30px;
}

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

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

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

.project-card .project-info h4 {
  color: var(--white);
  font-size: 18px;
  margin: 0;
}

/* Legal content */
.legal-content h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.legal-content h3 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
}

.legal-content p,
.legal-content li {
  font-size: 15px;
}

/* Footer */
.site-footer {
  background: var(--dark);
  color: #aaa;
  font-size: 14px;
}

.site-footer h3,
.site-footer h6 {
  color: var(--white);
  font-size: 18px;
  margin-bottom: 24px;
  font-weight: 700;
}

.site-footer .footer-logo {
  height: 44px;
  margin-bottom: 20px;
}

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

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

.footer-links a {
  color: #aaa;
}

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

.footer-links a::before {
  content: "\f105";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--primary);
  margin-right: 10px;
}

.social-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social-links a {
  width: 42px;
  height: 42px;
  background: var(--dark-2);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.social-links a:hover {
  background: var(--primary);
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid #333;
  padding: 20px 0;
  margin-top: 50px;
}

.footer-bottom a {
  color: #aaa;
  margin: 0 12px;
  font-size: 13px;
}

.footer-bottom a:hover {
  color: var(--primary);
}

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

/* Gear pattern */
.gear-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* About split */
.about-dark-panel {
  background: var(--dark);
  color: #ccc;
  padding: 60px 50px;
  height: 100%;
}

.about-dark-panel h2,
.about-dark-panel h3 {
  color: var(--white);
}

/* Search bar section */
.search-bar-section {
  background: var(--gray);
  padding: 30px 0;
}

.search-bar-section .form-control {
  border-radius: 0;
  border: none;
  padding: 14px 20px;
}

/* Scroll top */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--white);
  border: none;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  cursor: pointer;
}

.scroll-top.show {
  display: flex;
}

@media (max-width: 991px) {
  .navbar-nav .nav-link {
    padding: 12px 0 !important;
  }

  .stat-cards {
    margin-top: 0;
  }

  .about-dark-panel {
    padding: 40px 24px;
  }

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