/* =========================================================
   Ecuador Transport – Corporate Design System
   Farben: Navy #101C30, Orange #F28C28, Weiss #FFFFFF, Grau #F4F6F8
   ========================================================= */

:root {
  --color-navy: #101C30;
  --color-navy-light: #1b2d4a;
  --color-orange: #F28C28;
  --color-orange-dark: #d9731a;
  --color-white: #FFFFFF;
  --color-gray-light: #F4F6F8;
  --color-text: #1c2b3f;
  --color-text-muted: #5a6b84;
  --color-border: #e3e7ec;

  --font-heading: "Poppins", Arial, sans-serif;
  --font-body: "Inter", Arial, sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 2px 10px rgba(16, 28, 48, 0.08);
  --shadow-md: 0 14px 34px rgba(16, 28, 48, 0.14);

  --container: 1200px;
  --section-pad: 88px;
}

/* ---------- Reset & Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  line-height: 1.2;
  margin: 0 0 16px;
  font-weight: 700;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 16px; color: var(--color-text-muted); }

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

section { padding: var(--section-pad) 0; }

.section-tag {
  display: inline-block;
  color: var(--color-orange);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 10px;
}

.section-head {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}

.bg-light { background: var(--color-gray-light); }
.bg-navy { background: var(--color-navy); color: var(--color-white); }
.bg-navy h2, .bg-navy h3, .bg-navy p { color: var(--color-white); }
.bg-navy p { color: #c7cedb; }

/* ---------- Demo / Platzhalter Hinweis ---------- */
.demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(242, 140, 40, 0.12);
  color: var(--color-orange-dark);
  border: 1px solid rgba(242, 140, 40, 0.35);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-family: var(--font-body);
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--color-orange);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--color-orange-dark); }

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

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

.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(16, 28, 48, 0.97);
  backdrop-filter: blur(6px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { height: 42px; width: auto; }
.brand-text { font-family: var(--font-heading); color: var(--color-white); font-weight: 700; font-size: 1.1rem; line-height: 1.1; }
.brand-text span { display: block; font-size: 0.62rem; letter-spacing: 2px; color: var(--color-orange); font-weight: 600; }

.main-nav ul {
  display: flex;
  gap: 30px;
}
.main-nav a {
  color: #d7deea;
  font-weight: 500;
  font-size: 0.96rem;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] { color: var(--color-white); border-color: var(--color-orange); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 920px) {
  .main-nav {
    position: fixed;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--color-navy);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .main-nav.open { max-height: calc(100vh - 84px); overflow-y: auto; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 10px 24px 24px; }
  .main-nav a { display: block; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .header-actions .btn-primary { display: none; }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  color: var(--color-white);
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(16,28,48,0.92) 10%, rgba(16,28,48,0.72) 55%, rgba(16,28,48,0.35) 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 680px; }
.hero-content p.lead { color: #dbe2ee; font-size: 1.12rem; max-width: 560px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }

.hero-stats {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 40px;
  margin-top: 56px;
  flex-wrap: wrap;
}
.hero-stats div strong { display: block; font-family: var(--font-heading); font-size: 1.6rem; color: var(--color-orange); }
.hero-stats div span { font-size: 0.85rem; color: #c7cedb; }

/* ---------- Page Header (Unterseiten) ---------- */
.page-header {
  background: var(--color-navy);
  color: var(--color-white);
  padding: 70px 0 54px;
  position: relative;
  overflow: hidden;
}
.page-header .container { position: relative; z-index: 1; }
.page-header .breadcrumb { color: #a9b4c7; font-size: 0.85rem; margin-bottom: 10px; }
.page-header .breadcrumb a:hover { color: var(--color-orange); }
.page-header p { color: #c7cedb; max-width: 620px; }
.page-header-bg { position: absolute; inset: 0; opacity: 0.35; }
.page-header-bg img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Cards / Grids ---------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 920px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.card-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  background: rgba(242, 140, 40, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 28px; height: 28px; }

.feature-row {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 26px;
}
.feature-row .card-icon { flex-shrink: 0; margin-bottom: 0; }
.feature-row h3 { margin-bottom: 6px; }
.feature-row p { margin-bottom: 0; }

/* ---------- Image + Text Split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
}
.split img, .split .img-wrap { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-md); }
.split .img-wrap img { aspect-ratio: 4/3; object-fit: cover; }

/* ---------- Timeline (Über uns) ---------- */
.timeline { border-left: 2px solid var(--color-border); padding-left: 28px; display: flex; flex-direction: column; gap: 30px; }
.timeline-item { position: relative; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-orange);
}

/* ---------- Fuhrpark table / cards ---------- */
.fleet-card { display: flex; flex-direction: column; gap: 14px; }
.fleet-card .img-wrap { border-radius: var(--radius-md); overflow: hidden; }
.fleet-card .img-wrap img { aspect-ratio: 16/10; object-fit: cover; }
.fleet-specs { display: flex; flex-wrap: wrap; gap: 8px; }
.fleet-specs span {
  background: var(--color-gray-light);
  color: var(--color-navy);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
}

/* ---------- CTA Band ---------- */
.cta-band {
  background: var(--color-navy);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band h2, .cta-band p { color: var(--color-white); margin-bottom: 0; }
.cta-band p { color: #c7cedb; margin-top: 8px; }

/* ---------- Form ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 600; font-size: 0.9rem; color: var(--color-navy); }
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-text);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-orange);
  box-shadow: 0 0 0 3px rgba(242, 140, 40, 0.18);
}
.form-note { font-size: 0.82rem; color: var(--color-text-muted); margin-top: 10px; }

/* ---------- Contact info ---------- */
.contact-info-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-line { display: flex; gap: 14px; align-items: flex-start; }
.contact-line .card-icon { width: 44px; height: 44px; }
.contact-line a:hover { color: var(--color-orange); }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-navy); color: #c7cedb; }
.footer-top { padding: 64px 0 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }
.footer-top h4 { color: var(--color-white); font-size: 0.95rem; margin-bottom: 18px; }
.footer-top ul li { margin-bottom: 10px; }
.footer-top ul a { color: #a9b4c7; font-size: 0.93rem; }
.footer-top ul a:hover { color: var(--color-orange); }
.footer-brand img { height: 38px; margin-bottom: 14px; }
.footer-brand p { color: #a9b4c7; max-width: 300px; font-size: 0.92rem; }
.footer-support-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(242, 140, 40, 0.15);
  color: var(--color-orange);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  margin-top: 10px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: #8a97ad;
}
.footer-bottom a:hover { color: var(--color-orange); }

/* ---------- WhatsApp Float Button ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-orange);
  color: var(--color-white);
  padding: 14px 20px;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(16,28,48,0.28);
  font-weight: 700;
  font-size: 0.92rem;
  transition: transform 0.2s ease, background 0.2s ease;
}
.whatsapp-float:hover { transform: translateY(-3px); background: var(--color-orange-dark); }
.whatsapp-float svg { width: 24px; height: 24px; flex-shrink: 0; }
.whatsapp-float .wa-label { display: none; }

@media (min-width: 620px) {
  .whatsapp-float .wa-label { display: inline; }
}

/* ---------- Legal pages ---------- */
.legal-content { max-width: 800px; margin: 0 auto; }
.legal-content h2 { margin-top: 40px; }
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content ul { margin: 0 0 16px; padding-left: 20px; }
.legal-content li { list-style: disc; margin-bottom: 8px; color: var(--color-text-muted); }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
