/* ===== Variables ===== */
:root {
  --red: #c8102e;
  --red-dark: #9c0d24;
  --red-light: #fdecef;
  --navy: #1f2937;
  --white: #ffffff;
  --off-white: #fdfaf9;
  --gray: #5a5a5a;
  --gray-light: #e7e2e0;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --max-width: 1140px;
  --font: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--navy);
  background: var(--off-white);
  line-height: 1.6;
}

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

a {
  color: var(--red);
  text-decoration: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  line-height: 1.25;
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  color: var(--red-dark);
}

h3 {
  font-size: 1.3rem;
}

p {
  margin: 0 0 16px;
  color: #000000;
}

section {
  padding: 64px 0;
}

.section-alt {
  background: var(--white);
}

.section-red {
  background: var(--red);
  color: var(--white);
}

.section-red p,
.section-red h2 {
  color: var(--white);
}

.center {
  text-align: center;
}

.lede {
  font-size: 1.15rem;
  max-width: 640px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

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

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

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

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

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

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

.btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== Header / Nav ===== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 3px solid var(--red);
}

nav.container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
}

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

.brand-text {
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.15;
}

.brand-text span {
  display: block;
  font-weight: 400;
  font-size: 0.7rem;
  color: #000000;
  letter-spacing: 0.03em;
}

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--navy);
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--red-light);
  color: var(--red-dark);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--red);
  cursor: pointer;
}

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

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 8px 24px 16px;
    border-bottom: 3px solid var(--red);
    display: none;
  }

  .nav-links.open {
    display: flex;
  }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  color: var(--white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30, 20, 20, 0.82), rgba(200, 16, 46, 0.6));
}

.hero-content {
  position: relative;
  padding: 110px 0 90px;
}

.hero-content h1 {
  margin-bottom: 12px;
}

.hero-tagline {
  font-size: 1.25rem;
  max-width: 620px;
  margin-bottom: 32px;
  color: var(--white);
  opacity: 0.95;
}

@media (max-width: 600px) {
  .hero-content {
    padding-left: 12px;
  }
}

.page-hero {
  padding: 70px 0;
  background: linear-gradient(135deg, var(--red-dark), var(--red));
  color: var(--white);
  text-align: center;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 8px;
}

.page-hero p {
  color: var(--white);
  opacity: 0.95;
  max-width: 640px;
  margin: 0 auto;
}

/* ===== Stats ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.stat-card {
  background: var(--white);
  border: 2px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 28px 16px;
  text-align: center;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.stat-card:hover {
  border-color: var(--red);
  transform: translateY(-4px);
}

.stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--red);
  display: block;
}

.stat-label {
  font-size: 0.95rem;
  color: #000000;
  margin-top: 4px;
}

/* ===== Cards / Grids ===== */
.grid {
  display: grid;
  gap: 28px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid-1 {
  grid-template-columns: 1fr;
  max-width: 760px;
  margin: 0 auto;
}

.grid-1 .img-card img {
  height: 420px;
}

@media (max-width: 600px) {
  .grid-1 .img-card img {
    height: 260px;
  }
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 26px;
  border-top: 4px solid var(--red);
}

.card h3 {
  color: var(--red-dark);
}

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

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

.img-card-contain img {
  height: 320px;
  object-fit: contain;
  background: var(--navy);
}

.reveal {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.img-card figcaption {
  padding: 14px 16px;
  font-size: 0.9rem;
  color: #000000;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

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

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

/* ===== Team ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

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

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

.team-member {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 16px;
  text-align: center;
  border-bottom: 4px solid var(--red);
}

.team-member .avatar {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--red-light);
  color: var(--red-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.3rem;
}

.team-member img.avatar {
  object-fit: cover;
}

.team-member h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--navy);
}

.founders {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 24px;
}

/* ===== Accomplishments list ===== */
.accomplishments {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 18px;
}

.accomplishments li {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 22px;
  border-left: 4px solid var(--red);
  color: var(--navy);
}

/* ===== Town list ===== */
.town-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.town-list li {
  background: var(--red-light);
  color: var(--red-dark);
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
}

/* ===== Contact ===== */
.contact-box {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 48px 32px;
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.contact-box .btn {
  font-size: 1.1rem;
  margin-top: 16px;
}

/* ===== Footer ===== */
footer {
  background: var(--navy);
  color: #ffffff;
  padding: 40px 0 24px;
  margin-top: 40px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

footer h3 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 8px;
}

footer p {
  color: #ffffff;
}

footer a {
  color: #ffffff;
}

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

.footer-partner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-partner img {
  height: 34px;
  width: auto;
}

.footer-bottom {
  border-top: 1px solid #33404f;
  padding-top: 18px;
  text-align: center;
  font-size: 0.85rem;
  color: #ffffff;
}
