/* ===== CSS Custom Properties ===== */
:root {
  --color-bg: #fafaf9;
  --color-surface: #ffffff;
  --color-text: #1c1917;
  --color-text-muted: #78716c;
  --color-text-light: #a8a29e;
  --color-primary: #b91c1c;
  --color-primary-dark: #991b1b;
  --color-primary-light: #fef2f2;
  --color-secondary: #0f766e;
  --color-secondary-light: #f0fdfa;
  --color-earth: #d6d3d1;
  --color-earth-light: #f5f5f4;
  --color-star: #eab308;

  --font-sans: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-serif: 'Source Serif 4', 'Georgia', 'Times New Roman', serif;

  --max-width: 1200px;
  --max-width-narrow: 720px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-xl: 0 24px 56px rgba(0,0,0,0.12);

  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms cubic-bezier(0.25, 0.8, 0.25, 1.2);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
}

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

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

ul, ol {
  list-style: none;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 1.5rem + 2.5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + 0.75vw, 1.75rem); }

.section-title {
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
}

/* ===== Layout Utilities ===== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

.section {
  padding: 5rem 0;
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background var(--transition-base), box-shadow var(--transition-base);
  padding: 0 1.5rem;
}

.nav--scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  transition: height var(--transition-base);
}

.nav--scrolled .nav__inner {
  height: 3.5rem;
}

.nav__logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  transition: color var(--transition-base);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.nav--scrolled .nav__logo {
  color: var(--color-text);
}

.nav__logo-icon {
  font-size: 1.6rem;
}

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

.nav__link {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  transition: color var(--transition-fast);
  position: relative;
}

.nav--scrolled .nav__link {
  color: var(--color-text-muted);
}

.nav__link:hover,
.nav__link--active {
  color: #fff;
}

.nav--scrolled .nav__link:hover,
.nav--scrolled .nav__link--active {
  color: var(--color-primary);
}

.nav__link--active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: #fff;
  border-radius: 1px;
}

.nav--scrolled .nav__link--active::after {
  background: var(--color-primary);
}

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

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--transition-base);
}

.nav--scrolled .nav__toggle span {
  background: var(--color-text);
}

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

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

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.5) 0%,
    rgba(0,0,0,0.3) 40%,
    rgba(0,0,0,0.6) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 2rem;
}

.hero__tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  padding: 0.4rem 1.2rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero__title {
  font-size: clamp(2.5rem, 2rem + 4vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 1.25rem;
}

.hero__subtitle {
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem);
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
}
.btn--primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(185,28,28,0.35);
}

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

.btn--ghost {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}
.btn--ghost:hover {
  background: var(--color-primary-light);
}

.btn--lg {
  padding: 0.9rem 2.25rem;
  font-size: 1.05rem;
}

/* ===== Cards ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.card:hover .card__image {
  transform: scale(1.04);
}

.card__body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card__category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.card__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.card__title a {
  color: var(--color-text);
  transition: color var(--transition-fast);
}
.card__title a:hover {
  color: var(--color-primary);
}

.card__excerpt {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-earth-light);
  font-size: 0.8rem;
  color: var(--color-text-light);
}

/* ===== Featured Section ===== */
.featured {
  background: var(--color-earth-light);
}

.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.featured-grid .card:first-child {
  grid-row: span 2;
}

.featured-grid .card:first-child .card__image {
  aspect-ratio: 4 / 3;
}

/* ===== Why Section ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.why-item {
  text-align: center;
  padding: 2rem 1.5rem;
}

.why-item__icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.why-item__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.why-item__desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== Stats Banner ===== */
.stats {
  background: var(--color-text);
  color: #fff;
  padding: 3.5rem 0;
}

.stats-grid {
  display: flex;
  justify-content: center;
  gap: 5rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-item__number {
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.stat-item__label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-top: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ===== Page Header ===== */
.page-header {
  padding: 7rem 0 3rem;
  text-align: center;
  background: var(--color-earth-light);
}

.page-header__title {
  margin-bottom: 0.75rem;
}

.page-header__desc {
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ===== Filter Pills ===== */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.filter-pill {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  border: 1.5px solid var(--color-earth);
  background: var(--color-surface);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-pill:hover,
.filter-pill--active {
  background: var(--color-text);
  color: #fff;
  border-color: var(--color-text);
}

/* ===== Article Body ===== */
.article-body {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--color-text);
}

.article-body p {
  margin-bottom: 1.5rem;
}

.article-body h2 {
  font-family: var(--font-sans);
  font-size: 1.6rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.article-body h3 {
  font-family: var(--font-sans);
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.article-body img {
  border-radius: var(--radius-md);
  margin: 2rem auto;
  max-width: 100%;
}

.article-body blockquote {
  border-left: 4px solid var(--color-primary);
  padding-left: 1.25rem;
  margin: 2rem 0;
  color: var(--color-text-muted);
  font-style: italic;
}

.article-body strong {
  font-weight: 700;
}

.article-body hr {
  border: none;
  border-top: 1px solid var(--color-earth);
  margin: 2.5rem 0;
}

/* ===== Article Hero ===== */
.article-hero {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background: #1c1917;
}

.article-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.article-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.4) 100%);
}

.article-hero__content {
  position: relative;
  z-index: 1;
  padding: 3rem 0;
  width: 100%;
}

.article-hero__category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--color-primary);
  padding: 0.3rem 1rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.article-hero__title {
  font-size: clamp(1.75rem, 1.5rem + 2vw, 3rem);
  max-width: 800px;
  margin-bottom: 1rem;
}

.article-hero__meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  opacity: 0.8;
  flex-wrap: wrap;
}

/* ===== Article Layout ===== */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 4rem;
  align-items: start;
  padding: 3rem 0 5rem;
}

.article-layout__main {
  min-width: 0;
}

.article-layout__sidebar {
  position: sticky;
  top: 6rem;
}

/* ===== Sidebar ===== */
.sidebar-section {
  margin-bottom: 2.5rem;
}

.sidebar-section__title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-earth);
}

.sidebar-article {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.sidebar-article__image {
  width: 72px;
  height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.sidebar-article__title {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.35;
  transition: color var(--transition-fast);
}
.sidebar-article__title:hover {
  color: var(--color-primary);
}

/* ===== Article Navigation ===== */
.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 0;
  border-top: 1px solid var(--color-earth);
  margin-top: 3rem;
}

.article-nav__link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
  max-width: 45%;
}
.article-nav__link:hover {
  color: var(--color-primary);
}
.article-nav__link span {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-light);
  margin-bottom: 0.25rem;
}

/* ===== Routes Page ===== */
.route-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  margin-bottom: 2rem;
}

.route-card:hover {
  box-shadow: var(--shadow-md);
}

.route-card__image {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.route-card__body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.route-card__title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.route-card__meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  flex-wrap: wrap;
}

.route-card__desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1.5rem;
}

/* ===== Coming Soon ===== */
.coming-soon {
  text-align: center;
  padding: 4rem 2rem;
}

.coming-soon__icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.coming-soon__title {
  margin-bottom: 0.5rem;
}

.coming-soon__desc {
  color: var(--color-text-muted);
}

/* ===== Footer ===== */
.footer {
  background: var(--color-text);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__brand {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.75rem;
}

.footer__desc {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 300px;
}

.footer__heading {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  margin-bottom: 1rem;
}

.footer__links li {
  margin-bottom: 0.6rem;
}

.footer__links a {
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}
.footer__links a:hover {
  color: #fff;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  display: flex;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}
.breadcrumb a:hover {
  color: var(--color-primary);
}

.breadcrumb span {
  color: var(--color-text-light);
}

/* ===== Scroll Animation ===== */
.animate {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-layout__sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

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

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

  .featured-grid .card:first-child {
    grid-row: span 1;
  }

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

  .route-card {
    grid-template-columns: 1fr;
  }

  .route-card__image {
    max-height: 240px;
  }
}

@media (max-width: 768px) {
  .nav__links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    background: rgba(28, 25, 23, 0.97);
    backdrop-filter: blur(20px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
  }

  .nav__links--open {
    opacity: 1;
    pointer-events: all;
  }

  .nav__link {
    font-size: 1.3rem;
    color: #fff;
  }

  .nav__link--active::after {
    background: #fff;
  }

  .nav--scrolled .nav__link {
    color: #fff;
  }

  .nav__toggle {
    display: flex;
  }

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

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

  .stats-grid {
    gap: 2.5rem;
  }

  .article-layout__sidebar {
    grid-template-columns: 1fr;
  }

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

  .section {
    padding: 3rem 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .article-hero__meta {
    gap: 0.75rem;
    font-size: 0.8rem;
  }

  .filter-bar {
    gap: 0.35rem;
  }

  .filter-pill {
    font-size: 0.78rem;
    padding: 0.4rem 1rem;
  }
}
