/* Upstate Auto Rentals — Brand Colors */
:root {
  --navy: #1e2a5e;
  --navy-dark: #141d3f;
  --orange: #f79450;
  --orange-hover: #e8833a;
  --grey: #a0a5aa;
  --grey-light: #e8e9eb;
  --charcoal: #1a1a1a;
  --white: #ffffff;
  --text: #2c2c2c;
  --text-light: #5a5a5a;
  --shadow: 0 4px 24px rgba(30, 42, 94, 0.12);
  --radius: 12px;
  --transition: 0.25s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 3px solid var(--orange);
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-link img {
  height: 72px;
  width: auto;
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--navy);
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  color: var(--navy);
  font-size: 1.4rem;
  line-height: 1;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.main-nav a {
  padding: 0.5rem 1rem;
  font-weight: 600;
  color: var(--navy);
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--navy);
  color: var(--white);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(247, 148, 80, 0.4);
}

.btn-secondary {
  background: var(--navy);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--navy-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-dark);
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
}

.hero-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(30, 42, 94, 0.88) 0%,
    rgba(20, 29, 63, 0.75) 50%,
    rgba(247, 148, 80, 0.35) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  color: var(--white);
}

.hero-badge {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  max-width: 700px;
}

.hero h1 span {
  color: var(--orange);
}

.hero p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  max-width: 560px;
  margin-bottom: 2rem;
  opacity: 0.92;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ── Sections ── */
section {
  padding: 5rem 1.5rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  color: var(--orange);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--navy);
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 640px;
  margin-bottom: 3rem;
}

/* ── Perks ── */
.perks {
  background: var(--grey-light);
}

.perks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.perk-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--orange);
  transition: transform var(--transition);
}

.perk-card:hover {
  transform: translateY(-4px);
}

.perk-icon {
  width: 56px;
  height: 56px;
  background: var(--navy);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
}

.perk-card h3 {
  color: var(--navy);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.perk-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ── Platforms ── */
.platforms {
  background: var(--navy);
  color: var(--white);
}

.platforms .section-title {
  color: var(--white);
}

.platforms .section-subtitle {
  color: rgba(255, 255, 255, 0.8);
}

.platform-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.platform-tag {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.6rem 1.25rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
}

.platforms-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.platforms-text p {
  margin-bottom: 1rem;
  opacity: 0.9;
  line-height: 1.7;
}

.platforms-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.platforms-list li::before {
  content: "✓";
  color: var(--orange);
  font-weight: 700;
  flex-shrink: 0;
}

.platforms-visual {
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.platforms-visual .big-stat {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
}

.platforms-visual .stat-label {
  font-size: 1.1rem;
  margin-top: 0.5rem;
  opacity: 0.85;
}

/* ── How It Works ── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  counter-reset: step;
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--orange);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  margin: 0 auto 1rem;
}

.step h3 {
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.step p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ── FAQ ── */
.faq {
  background: var(--grey-light);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background var(--transition);
}

.faq-question:hover {
  background: rgba(30, 42, 94, 0.04);
}

.faq-question .icon {
  font-size: 1.4rem;
  color: var(--orange);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.faq-item.open .faq-question .icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-light);
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  text-align: center;
  padding: 4rem 1.5rem;
}

.cta-banner h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 1rem;
}

.cta-banner p {
  opacity: 0.85;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Page Header (inner pages) ── */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 3.5rem 1.5rem;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.page-header p {
  opacity: 0.85;
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ── Book Form ── */
.book-section {
  padding: 4rem 1.5rem;
}

.book-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: start;
}

.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--grey-light);
}

.form-card h2 {
  color: var(--navy);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.form-card .form-intro {
  color: var(--text-light);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--grey-light);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--orange);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-submit {
  width: 100%;
  margin-top: 0.5rem;
}

.form-note {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 1rem;
  text-align: center;
}

.book-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-card {
  background: var(--grey-light);
  border-radius: var(--radius);
  padding: 1.75rem;
  border-left: 4px solid var(--orange);
}

.sidebar-card h3 {
  color: var(--navy);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.sidebar-card ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-light);
}

.sidebar-card ul li::before {
  content: "✓";
  color: var(--orange);
  font-weight: 700;
  flex-shrink: 0;
}

.vehicle-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.vehicle-option {
  position: relative;
}

.vehicle-option input {
  position: absolute;
  opacity: 0;
}

.vehicle-option label {
  display: block;
  padding: 1rem;
  border: 2px solid var(--grey-light);
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: border-color var(--transition), background var(--transition);
}

.vehicle-option input:checked + label {
  border-color: var(--orange);
  background: rgba(247, 148, 80, 0.08);
}

.vehicle-option label strong {
  display: block;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.vehicle-option label span {
  font-size: 0.85rem;
  color: var(--text-light);
  display: block;
}

.vehicle-option label .vehicle-price {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--orange);
}

/* ── Contact ── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info-card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
}

.contact-info-card h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-detail .icon {
  width: 44px;
  height: 44px;
  background: rgba(247, 148, 80, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-detail h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.7;
  margin-bottom: 0.2rem;
}

.contact-detail p,
.contact-detail a {
  font-size: 1rem;
  color: var(--white);
}

.contact-detail a:hover {
  color: var(--orange);
}

.contact-hours {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.contact-hours h4 {
  margin-bottom: 0.75rem;
  color: var(--orange);
}

.contact-hours p {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-bottom: 0.25rem;
}

.map-placeholder {
  margin-top: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  height: 200px;
  background: var(--grey-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* ── Footer ── */
.site-footer {
  background: var(--white);
  color: var(--text-light);
  padding: 3rem 1.5rem 1.5rem;
  border-top: 3px solid var(--orange);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-links {
  display: flex;
  gap: 4rem;
  margin-left: auto;
}

.footer-brand img {
  height: 60px;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 300px;
  color: var(--text-light);
}

.footer-col h4 {
  color: var(--navy);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  font-size: 0.9rem;
  color: var(--text-light);
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--orange);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--grey-light);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ── Toast / Success ── */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--navy);
  color: var(--white);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transform: translateY(120%);
  transition: transform 0.35s ease;
  z-index: 200;
  max-width: 360px;
}

.toast.show {
  transform: translateY(0);
}

.toast strong {
  color: var(--orange);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .platforms-content,
  .book-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-links {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
  }

  .book-sidebar {
    order: -1;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 3px solid var(--orange);
    box-shadow: var(--shadow);
    display: none;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 1rem;
  }

  .main-nav a {
    display: block;
    padding: 0.75rem 1rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 440px;
  }

  section {
    padding: 3.5rem 1.25rem;
  }
}
