/* ===== Variables ===== */
:root {
  --red: #c7112c;
  --red-dark: #a50c22;
  --blue: #0f2847;
  --blue-light: #1a3a5c;
  --blue-muted: #2d4a6a;
  --bg: #f8fafc;
  --bg-card: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

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

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

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

button,
input {
  font: inherit;
}

.container {
  width: min(1140px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0 1rem;
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  background: rgba(15, 40, 71, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.2s, padding 0.2s;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav__logo {
  display: flex;
  align-items: center;
}

.nav__logo-img {
  height: 56px;
  width: auto;
  object-fit: contain;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__links a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav__links a:hover {
  color: #fff;
}

.nav__cta {
  padding: 0.6rem 1.25rem;
  background: var(--red);
  color: #fff !important;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s, transform 0.2s;
}

.nav__cta:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}

.hero__slider {
  position: absolute;
  inset: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  pointer-events: none;
}

.hero__slide--active {
  opacity: 1;
  pointer-events: auto;
}

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

.hero__slider-nav {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 0.75rem;
}

.hero__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.hero__dot:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.3);
}

.hero__dot--active {
  background: #fff;
  border-color: #fff;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 40, 71, 0.92) 0%,
    rgba(199, 17, 44, 0.75) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 8rem 0 6rem;
  max-width: 640px;
}

.hero__eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 2rem;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn--primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 4px 14px rgba(199, 17, 44, 0.4);
}

.btn--primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(199, 17, 44, 0.45);
}

.btn--outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn--outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* ===== Section Headers ===== */
.section-header {
  margin-bottom: 2.5rem;
}

.section-eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--red);
  margin-bottom: 0.5rem;
}

.section-header h2,
.about__text h2,
.benefits h2,
.team h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  margin: 0;
  color: var(--text);
}

/* ===== Services ===== */
.services {
  padding: 5rem 0;
  background: var(--bg-card);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.service-card {
  padding: 2rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.25s;
}

.service-card:hover {
  border-color: rgba(199, 17, 44, 0.3);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.service-card__icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.service-card__icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* ===== About ===== */
.about {
  padding: 5rem 0;
  background: var(--blue);
  color: #fff;
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about__text .section-eyebrow {
  color: rgba(255, 255, 255, 0.8);
}

.about__text h2 {
  color: #fff;
  margin-bottom: 1rem;
}

.about__text p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0;
}

.about__photo img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* ===== Benefits ===== */
.benefits {
  padding: 5rem 0;
  background: var(--bg-card);
}

.benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.benefit-card {
  padding: 2rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.25s;
}

.benefit-card:hover {
  border-color: rgba(15, 40, 71, 0.2);
  box-shadow: var(--shadow-lg);
}

.benefit-card__icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.benefit-card__icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.benefit-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.benefit-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* ===== CTA ===== */
.cta {
  padding: 4rem 0;
  background: var(--blue);
  color: #fff;
}

.cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta__text h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: #fff;
}

.cta__text p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.cta__form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cta__form input {
  padding: 0.9rem 1.25rem;
  border: none;
  border-radius: 10px;
  min-width: 260px;
}

.cta__form .btn {
  white-space: nowrap;
}

/* ===== Team ===== */
.team {
  padding: 5rem 0;
  background: var(--bg);
}

.team__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.team-card {
  background: var(--red);
  color: #fff;
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: transform 0.25s;
}

.team-card:hover {
  transform: translateY(-4px);
}

.team-card__logo {
  width: 160px;
  height: auto;
  max-height: 100px;
  object-fit: contain;
}

.team-card p {
  margin: 0;
  font-weight: 600;
}

.team-card img.team-card__logo {
  margin: 0 auto;
}

/* ===== Footer ===== */
.footer {
  padding: 1.5rem 0;
  background: var(--blue);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.footer__logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}

/* ===== Mobile ===== */
@media (max-width: 900px) {
  .nav__links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    background: var(--blue);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.3s;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
  }

  .nav__links--open {
    transform: translateX(0);
  }

  .nav__links a {
    font-size: 1.1rem;
  }

  .nav__cta {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

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

  .about__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about__photo {
    order: -1;
  }

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

  .cta__inner {
    flex-direction: column;
    text-align: center;
  }

  .cta__form {
    flex-direction: column;
    width: 100%;
  }

  .cta__form input {
    min-width: 100%;
  }

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

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .services__grid {
    grid-template-columns: 1fr;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }
}
