/* ===========================
   RESET & BASE
=========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', sans-serif;
  color: #2d2d2d;
  background: #fff;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===========================
   HEADER
=========================== */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

#header.scrolled {
  border-color: #e5e5e5;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

.header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
}

.footer-logo-img {
  width: 44px;
  height: 44px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 2px;
  color: #1a2d5a;
  line-height: 1.1;
}

.logo-tagline {
  font-size: 9px;
  letter-spacing: 2.5px;
  color: #b81c2e;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Nav */
#main-nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
}

#main-nav ul li a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.5px;
  color: #2d2d2d;
  padding: 8px 14px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}

#main-nav ul li a:hover {
  color: #b81c2e;
  background: #fdf2f3;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1a2d5a;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===========================
   HERO
=========================== */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0d1e45 0%, #1a3a6e 50%, #0d1e45 100%);
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 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");
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(13,30,69,0.6) 0%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
  padding: 120px 24px 80px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hero-sub {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  letter-spacing: 4px;
  color: #b81c2e;
  margin-bottom: 20px;
  font-weight: 600;
}

.hero-content h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===========================
   BUTTONS
=========================== */
.btn {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  padding: 14px 32px;
  border-radius: 4px;
  transition: all 0.25s;
  cursor: pointer;
  border: 2px solid transparent;
  text-transform: uppercase;
}

.btn-primary {
  background: #b81c2e;
  color: #fff;
  border-color: #b81c2e;
}

.btn-primary:hover {
  background: #96162a;
  border-color: #96162a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(184,28,46,0.35);
}

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

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

.btn-full { width: 100%; text-align: center; }

/* ===========================
   SECTION SHARED
=========================== */
section { padding: 90px 0; }

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  letter-spacing: 4px;
  font-weight: 700;
  color: #b81c2e;
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}

.section-header h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  color: #1a2d5a;
  margin-bottom: 16px;
}

.section-header.light h2 { color: #fff; }
.section-header.light .section-label { color: #f5a0a9; }
.section-header.light .section-intro { color: rgba(255,255,255,0.75); }

.divider {
  width: 48px;
  height: 3px;
  background: #b81c2e;
  margin: 0 auto 20px;
  border-radius: 2px;
}

.section-intro {
  font-size: 16px;
  color: #555;
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ===========================
   ABOUT
=========================== */
#about { background: #f8f9fc; }

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

.about-card {
  background: #fff;
  border-radius: 8px;
  padding: 40px 32px;
  text-align: center;
  border: 1px solid #eaeef5;
  transition: transform 0.3s, box-shadow 0.3s, opacity 0.5s;
  opacity: 0;
  transform: translateY(20px);
}

.about-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.about-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(26,45,90,0.1);
}

.about-icon {
  font-size: 40px;
  margin-bottom: 20px;
}

.about-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: #1a2d5a;
  margin-bottom: 12px;
}

.about-card p {
  font-size: 14px;
  color: #666;
  line-height: 1.8;
}

/* ===========================
   MANUFACTURERS
=========================== */
#manufacturers {
  background: linear-gradient(135deg, #0d1e45 0%, #1a3a6e 100%);
}

.mfr-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.mfr-card {
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 32px 28px;
  transition: background 0.3s, border-color 0.3s, transform 0.3s, opacity 0.5s;
  opacity: 0;
  transform: translateY(20px);
  cursor: pointer;
}

.mfr-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.mfr-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(184,28,46,0.6);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.mfr-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  margin-bottom: 10px;
}

.mfr-products {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  flex: 1;
}

.mfr-link {
  margin-top: 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #f5a0a9;
  transition: color 0.2s;
}

.mfr-card:hover .mfr-link { color: #fff; }

.mfr-card-links {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 14px;
}

.mfr-card-links .mfr-link {
  margin-top: 0;
}

.mfr-sub-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #f5a0a9;
  transition: color 0.2s;
}

.mfr-sub-link:hover {
  color: #fff;
}

.mfr-card-multi {
  cursor: default;
}

/* ===========================
   TEAM
=========================== */
#team { background: #fff; }

.team-photo-wrapper {
  text-align: center;
  margin-bottom: 48px;
}

.team-photo {
  width: 100%;
  max-width: 480px;
  height: 600px;
  object-fit: cover;
  object-position: center 35%;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(26,45,90,0.18);
  border: 3px solid #eaeef5;
  display: inline-block;
}

.team-photo-caption {
  margin-top: 14px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #999;
}

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

.team-card {
  background: #f8f9fc;
  border-radius: 8px;
  padding: 36px 24px;
  text-align: center;
  border: 1px solid #eaeef5;
  transition: transform 0.3s, box-shadow 0.3s, opacity 0.5s;
  opacity: 0;
  transform: translateY(20px);
}

.team-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(26,45,90,0.1);
}

.team-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #1a2d5a;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.team-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #1a2d5a;
  margin-bottom: 12px;
}

.team-email, .team-phone {
  display: block;
  font-size: 13px;
  color: #555;
  margin-bottom: 6px;
  transition: color 0.2s;
  word-break: break-word;
}

.team-email:hover { color: #b81c2e; }
.team-phone:hover { color: #1a2d5a; }

/* ===========================
   CONTACT
=========================== */
#contact {
  background: linear-gradient(135deg, #0d1e45 0%, #1a3a6e 100%);
}

.contact-wrapper {
  max-width: 640px;
  margin: 0 auto;
}

.contact-form {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  padding: 48px 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.form-group label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  transition: border-color 0.2s, background 0.2s;
  outline: none;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.3);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #b81c2e;
  background: rgba(255,255,255,0.12);
}

.form-success {
  text-align: center;
  color: #7fffd4;
  font-weight: 600;
  margin-top: 16px;
  font-size: 15px;
}

/* ===========================
   TERRITORY
=========================== */
#territory { background: #f8f9fc; }

.territory-layout {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* State Cards Grid */
.state-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.state-card {
  background: #fff;
  border: 1px solid #e0e6f0;
  border-radius: 10px;
  padding: 28px 12px 22px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(26,45,90,0.07);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.state-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(26,45,90,0.14);
  border-color: #b81c2e;
}

.state-abbr {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 34px;
  color: #1a2d5a;
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.state-name-full {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #b81c2e;
}

/* Territory Stats Bar */
.territory-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a2d5a;
  border-radius: 10px;
  padding: 36px 48px;
  gap: 0;
}

.t-stat {
  flex: 1;
  text-align: center;
}

.t-stat-number {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 30px;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
}

.t-stat-label {
  font-size: 12px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

.t-stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
  margin: 0 8px;
}

/* ===========================
   FOOTER
=========================== */
footer {
  background: #070f23;
  padding: 40px 24px;
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

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

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}

.footer-links a:hover { color: #fff; }

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1024px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .mfr-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  section { padding: 64px 0; }

  .hamburger { display: flex; }

  #main-nav {
    position: absolute;
    top: 76px;
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    display: none;
    padding: 16px 0;
  }

  #main-nav.open { display: block; }

  #main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 24px;
    gap: 4px;
  }

  #main-nav ul li a {
    display: block;
    padding: 12px 0;
    font-size: 15px;
  }

  .about-grid { grid-template-columns: 1fr; gap: 16px; }
  .mfr-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }

  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 32px 24px; }

  .hero-content { padding-top: 100px; }
}

@media (max-width: 900px) {
  .state-grid { grid-template-columns: repeat(3, 1fr); }
  .territory-stats { flex-wrap: wrap; gap: 24px; padding: 28px 24px; }
  .t-stat-divider { display: none; }
}

@media (max-width: 600px) {
  .state-grid { grid-template-columns: repeat(2, 1fr); }
  .t-stat-number { font-size: 22px; }
}

@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr; }
  .logo-name { font-size: 13px; }
  .logo-tagline { font-size: 8px; }
  .state-abbr { font-size: 26px; }
}
