:root {
  --navy: #1d294f;
  --navy-dark: #151f3d;
  --accent: #e64a33;
  --accent-hover: #c93d2a;
  --white: #ffffff;
  --gray-50: #f7f7f7;
  --gray-100: #eef0f4;
  --gray-300: #d1d5db;
  --gray-600: #5c6478;
  --text: #2a3142;
  --shadow: 0 10px 40px rgba(29, 41, 79, 0.08);
  --radius: 4px;
  --font: "Montserrat", "Segoe UI", system-ui, 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;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

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

.section-pad {
  padding: 90px 0;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

h1,
h2,
h3,
h4 {
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 16px;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0 0 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--navy);
  border-color: var(--navy);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

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

.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn-navy:hover {
  background: var(--accent);
  border-color: var(--accent);
}

/* Top bar */
.top-bar {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.82rem;
  padding: 10px 0;
  display: none;
}

.top-bar .container {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
}

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

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

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

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

.main-nav a {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--navy);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--navy);
  transition: transform 0.2s;
}

.header-cta .btn {
  padding: 12px 22px;
  font-size: 0.75rem;
}

/* Hero */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
  min-height: 88vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.04) 25%,
      transparent 25%,
      transparent 50%,
      rgba(255, 255, 255, 0.04) 50%,
      rgba(255, 255, 255, 0.04) 75%,
      transparent 75%
    );
  background-size: 40px 40px;
  opacity: 0.35;
}

.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 80px 0;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin-bottom: 20px;
}

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

.hero-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 4px solid rgba(230, 74, 51, 0.35);
  pointer-events: none;
}

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

.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  color: var(--accent);
}

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin: 0;
}

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

.about-images {
  position: relative;
  min-height: 420px;
}

.about-images img:first-child {
  width: 72%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-images img:last-child {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 55%;
  border: 6px solid var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.experience-badge {
  position: absolute;
  top: 30px;
  right: 10%;
  background: var(--accent);
  color: var(--white);
  padding: 20px 24px;
  border-radius: var(--radius);
  text-align: center;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.experience-badge span {
  display: block;
  font-size: 1.8rem;
  line-height: 1;
}

.check-list li {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  font-weight: 500;
}

.check-list svg {
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 3px;
}

/* Section header */
.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px;
}

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

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

.project-card {
  background: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow);
}

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

.project-card .card-body {
  padding: 24px;
  border-bottom: 3px solid var(--accent);
}

/* CTA band */
.cta-band {
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
}

.cta-band .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}

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

.cta-band .accent-text {
  color: var(--accent);
}

.cta-band img {
  border-radius: var(--radius);
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

/* Stats */
.stats-bar {
  background: var(--accent);
  color: var(--white);
  padding: 50px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

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

.stat-item p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.95;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

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

.price-card.featured {
  border-color: var(--accent);
  border-width: 2px;
}

.price-card .price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
}

.price-card .price small {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-600);
}

.price-features li {
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.92rem;
}

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

.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  transition: transform 0.3s ease;
}

.gallery-grid a:hover img {
  transform: scale(1.03);
}

/* FAQ */
.faq-split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: start;
}

.accordion-item {
  border: 1px solid var(--gray-100);
  margin-bottom: 12px;
  background: var(--white);
}

.accordion-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  text-align: left;
}

.accordion-header .icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
  line-height: 1;
}

.accordion-body {
  display: none;
  padding: 0 20px 18px;
  color: var(--gray-600);
  font-size: 0.95rem;
}

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

/* Testimonials */
.testimonials {
  background: linear-gradient(rgba(29, 41, 79, 0.92), rgba(29, 41, 79, 0.92)),
    url("../images/testimonial-bg.jpg") center / cover;
  color: var(--white);
  text-align: center;
}

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

.testimonial-slider {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}

.testimonial-slide {
  display: none;
  padding: 20px;
}

.testimonial-slide.active {
  display: block;
}

.testimonial-slide .stars {
  color: #ffc107;
  margin-bottom: 16px;
  letter-spacing: 4px;
}

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

.testimonial-slide h4 {
  color: var(--white);
  margin-bottom: 4px;
}

.testimonial-slide .role {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.slider-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.slider-nav button {
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  border-radius: var(--radius);
}

.slider-nav button:hover {
  border-color: var(--accent);
  background: var(--accent);
}

/* Page banner */
.page-banner {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  background: linear-gradient(rgba(29, 41, 79, 0.85), rgba(29, 41, 79, 0.85)),
    url("../images/page-banner.jpg") center / cover;
  color: var(--white);
}

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

.breadcrumb {
  font-size: 0.85rem;
  opacity: 0.9;
  margin-top: 8px;
}

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

/* Forms */
.form-card {
  background: var(--white);
  padding: 40px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--navy);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(230, 74, 51, 0.15);
}

.form-group input.invalid,
.form-group textarea.invalid,
.form-group select.invalid {
  border-color: #dc2626;
}

.field-error {
  color: #dc2626;
  font-size: 0.8rem;
  margin-top: 6px;
  display: none;
}

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

.form-success {
  display: none;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
  padding: 20px;
  border-radius: var(--radius);
  text-align: center;
  font-weight: 600;
  margin-bottom: 20px;
}

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

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}

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

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

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

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

.team-card .role {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
}

/* Services */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
}

.service-block.reverse {
  direction: rtl;
}

.service-block.reverse > * {
  direction: ltr;
}

.service-block img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  height: 320px;
  object-fit: cover;
  width: 100%;
}

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

.legal-content h2 {
  font-size: 1.35rem;
  margin-top: 36px;
}

.legal-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-content li {
  margin-bottom: 8px;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  padding-top: 70px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
}

.footer-grid .logo img {
  height: 44px;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}

.footer-grid h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-links a {
  display: block;
  padding: 6px 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

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

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.social-links a:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.footer-subscribe p {
  font-size: 0.9rem;
}

.footer-subscribe .mini-form {
  display: flex;
  gap: 0;
  margin-top: 16px;
}

.footer-subscribe input {
  flex: 1;
  padding: 12px 14px;
  border: none;
  border-radius: var(--radius) 0 0 var(--radius);
  font-family: inherit;
}

.footer-subscribe button {
  padding: 12px 18px;
  background: var(--accent);
  border: none;
  color: var(--white);
  font-weight: 700;
  cursor: pointer;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.footer-subscribe button:hover {
  background: var(--accent-hover);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 22px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.75);
  margin-left: 18px;
}

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

/* Utilities */
.text-center {
  text-align: center;
}

.mt-0 {
  margin-top: 0;
}

.mb-40 {
  margin-bottom: 40px;
}

.icon-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.info-box {
  background: var(--gray-50);
  padding: 28px;
  border-left: 4px solid var(--accent);
}

@media (max-width: 1024px) {
  .features-grid,
  .stats-grid,
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .header-cta {
    display: none;
  }

  .hero .container,
  .about-split,
  .cta-band .container,
  .faq-split,
  .contact-grid,
  .service-block,
  .cards-3,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

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

  .hero {
    min-height: auto;
  }

  .about-images {
    min-height: 300px;
  }

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

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

  .pricing-grid[style*="repeat(3"] {
    grid-template-columns: 1fr !important;
  }
}
