/*
 * ArrivaSans — fuente corporativa real de Arriva (auto-alojada).
 * El manual de identidad de nov-2023 aún referencia FF Mark Pro /
 * Calibri, pero la marca ha migrado a ArrivaSans en producción.
 */
@font-face {
  font-family: "ArrivaSans";
  src: url("../assets/fonts/ArrivaSans_W_Lt.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "ArrivaSans";
  src: url("../assets/fonts/ArrivaSans_W_Rg.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "ArrivaSans";
  src: url("../assets/fonts/ArrivaSans_W_Md.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "ArrivaSans";
  src: url("../assets/fonts/ArrivaSans_W_SBd.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "ArrivaSans";
  src: url("../assets/fonts/ArrivaSans_W_Bd.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------------------------------------------------------
   Tokens — Arriva corporate palette & type, per brand
   guidelines (Identity Guidelines v2.9, Nov 2023):
   - Arriva Blue #00becd is the dominant colour (60%)
   - Arriva Dark Blue #2d146e is the supporting colour (30%)
   - Bright secondaries (Yellow/Orange/Lime/Purple) are
     accents only (10%) — here: Yellow + Orange, the
     suggested "tonal combination" from the guidelines.
   - Digital palette favours white space: bright, clean,
     high-contrast, not moody.
   - Display type: FF Mark Pro (licensed) → substituted here
     with Poppins, the closest open geometric equivalent.
   - Body type: Calibri, per the guidelines' own online spec.
--------------------------------------------------------- */
:root{
  --blue:       #00becd;   /* Arriva Blue — primary, dominant */
  --blue-tint:  #33cad6;   /* 80% tint, AAA-safe on dark blue */
  --blue-deep:  #2d146e;   /* Arriva Dark Blue — support */
  --grey:       #55595e;   /* Arriva Dark Grey */
  --grey-tint:  #eeeeef;   /* Arriva Dark Grey 10% tint */
  --lime:       #98c818;   /* Arriva Lime Green */
  --yellow:     #ffa900;   /* Arriva Yellow — accent */
  --orange:     #ff6e1d;   /* Arriva Orange — accent */
  --purple:     #911d8b;   /* Arriva Purple */
  --dark-green: #005a55;   /* Arriva Dark Green */
  --ink:        #10131a;
  --paper:      #ffffff;
  --paper-tint: #f4fbfc;   /* faint blue-tinted white, not neutral grey */
  --line:       #dbe9ea;

  --display: "ArrivaSans", "Segoe UI", ui-sans-serif, sans-serif;
  --body:    "ArrivaSans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --container: 1160px;
  --radius: 12px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body{
  margin: 0;
  font-family: var(--body);
  color: var(--blue-deep);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3{
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
  color: var(--blue-deep);
}

p{ margin: 0; }
a{ color: inherit; }

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

/* ---------------------------------------------------------
   Buttons
--------------------------------------------------------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
  cursor: pointer;
}
.btn:hover{ transform: translateY(-1px); }
.btn:focus-visible{ outline: 3px solid var(--orange); outline-offset: 2px; }

.btn-primary{
  background: var(--yellow);
  color: var(--blue-deep);
  box-shadow: 0 8px 20px -8px rgba(255,169,0,0.55);
}
.btn-primary:hover{ box-shadow: 0 12px 24px -8px rgba(255,169,0,0.7); }

.btn-ghost{
  background: transparent;
  color: var(--paper);
  border-color: rgba(255,255,255,0.55);
}
.btn-ghost:hover{ background: rgba(255,255,255,0.12); }

.btn-large{ padding: 16px 32px; font-size: 1.02rem; }
.btn-nav{ font-size: 0.88rem; padding: 10px 20px; background: var(--blue); color: var(--paper); box-shadow: none; }
.btn-nav:hover{ background: var(--blue-deep); }

/* ---------------------------------------------------------
   Header
--------------------------------------------------------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}
.logo{
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo-img{ height: 26px; width: auto; }
.main-nav{
  display: flex;
  gap: 30px;
  font-size: 0.94rem;
  font-weight: 500;
}
.main-nav a{
  color: var(--blue-deep);
  text-decoration: none;
  transition: color 150ms ease;
}
.main-nav a:hover{ color: var(--blue); }

@media (max-width: 780px){
  .main-nav{ display: none; }
}

/* ---------------------------------------------------------
   Hero — totality. Full-bleed night sky, corona and the
   Praia das Catedrais arches, in the real Arriva palette.
--------------------------------------------------------- */
.hero{
  position: relative;
  background: var(--ink) url("../assets/img/hero-eclipse.svg") center/cover no-repeat;
  color: var(--paper);
  overflow: hidden;
}
.hero-inner{
  min-height: min(88vh, 780px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  padding-top: 64px;
  padding-bottom: 64px;
}
.hero-copy{ max-width: 640px; }
.hero-eyebrow{
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  color: var(--blue-deep);
  background: var(--yellow);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1{
  font-size: clamp(2.6rem, 5.6vw, 4.2rem);
  color: var(--paper);
  max-width: 15ch;
}
.hero-subtitle{
  max-width: 46ch;
  font-size: 1.15rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  margin-top: 20px;
}
.hero-actions{
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.hero-badge{
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.2);
  max-width: 520px;
}
.badge-date{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid var(--blue);
  color: var(--paper);
}
.badge-date strong{ font-family: var(--display); font-weight: 700; font-size: 1.35rem; line-height: 1; }
.badge-date span{ font-family: var(--display); font-weight: 600; font-size: 0.6rem; letter-spacing: 0.1em; color: var(--blue-tint); }
.badge-text{ font-size: 0.92rem; color: rgba(255,255,255,0.85); max-width: 34ch; }

/* ---------------------------------------------------------
   Section rhythm
--------------------------------------------------------- */
.section{ padding: 92px 0; }
.section h2{ font-size: clamp(1.85rem, 3.2vw, 2.4rem); margin-bottom: 20px; }
.section-intro{
  max-width: 60ch;
  color: var(--grey);
  font-size: 1.05rem;
  margin-bottom: 46px;
}

.reveal{
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.reveal.is-visible{ opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity: 1; transform: none; }
}

/* ---------------------------------------------------------
   Event section
--------------------------------------------------------- */
.section-event{ background: var(--paper); }
.event-grid{
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  align-items: center;
}
.event-copy p{
  color: var(--grey);
  font-size: 1.08rem;
  line-height: 1.7;
  margin-bottom: 18px;
  max-width: 58ch;
}
.event-copy strong{ color: var(--blue-deep); }
.event-figure{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 40px 32px;
  background: var(--paper-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.event-figure img{ width: 120px; }
.event-figure-caption{
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--blue);
  text-transform: uppercase;
}
.event-figure-time{
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--blue-deep);
}

@media (max-width: 820px){
  .event-grid{ grid-template-columns: 1fr; }
  .event-figure{ order: -1; }
}

/* ---------------------------------------------------------
   Lines section — bright, teal-tagged timetable cards
--------------------------------------------------------- */
.section-lines{ background: var(--paper-tint); }

.lines-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 28px;
}
.line-card{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  transition: box-shadow 200ms ease, transform 200ms ease;
}
.line-card:hover{ box-shadow: 0 16px 32px -20px rgba(45,20,110,0.25); transform: translateY(-3px); }
.line-card-header{
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 6px;
}
.line-card-header .icon-bus{
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: var(--blue);
  margin-top: 2px;
}
.line-tag{
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--paper);
  background: var(--blue);
  padding: 3px 10px;
  border-radius: 5px;
  margin-bottom: 8px;
}
.line-card h3{
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--blue-deep);
}
.line-route{
  font-size: 0.88rem;
  color: var(--grey);
  margin: 8px 0 22px;
}

.schedule-table{
  width: 100%;
  border-collapse: collapse;
}
.schedule-table th{
  text-align: left;
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 600;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--line);
}
.schedule-table td{
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
  color: var(--blue-deep);
  font-variant-numeric: tabular-nums;
}
.schedule-table tr:last-child td{ border-bottom: none; }
.schedule-table .time{
  font-family: var(--display);
  color: var(--blue-deep);
  font-weight: 700;
  background: var(--paper-tint);
  padding: 3px 9px;
  border-radius: 6px;
}
.line-note{
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--grey);
  font-style: italic;
}

/* ---------------------------------------------------------
   Tickets — curve device panel + CTA
--------------------------------------------------------- */
.section-tickets{ background: var(--paper); }
.tickets-inner{
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: stretch;
}
.tickets-copy p{
  color: var(--grey);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 18px;
  max-width: 56ch;
}
.tickets-highlight{
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--blue-deep);
  border-left: 4px solid var(--orange);
  padding-left: 18px;
  margin: 24px 0 32px !important;
}
.tickets-card{
  position: relative;
  overflow: hidden;
  background: var(--blue-deep);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 36px;
}
.tickets-card::before{
  content: "";
  position: absolute;
  top: -30%;
  right: -35%;
  width: 90%;
  aspect-ratio: 210/350;
  background: var(--blue);
  opacity: 0.55;
  border-radius: 50%;
  transform: rotate(12deg);
}
.tickets-card h3{
  position: relative;
  font-size: 1.05rem;
  color: var(--paper);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.tickets-card .icon-ticket{ width: 30px; height: 30px; color: var(--yellow); }
.tickets-list{
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 0.94rem;
}
.tickets-list li{
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}
.tickets-list li:last-child{ border-bottom: none; padding-bottom: 0; }
.tickets-list strong{ color: var(--yellow); font-weight: 600; margin-right: 6px; }

@media (max-width: 820px){
  .tickets-inner{ grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------
   FAQ — standard accordion
--------------------------------------------------------- */
.section-faq{ background: var(--paper-tint); }
.faq-grid{
  max-width: 760px;
  border-top: 1px solid var(--line);
}
.faq-item{ border-bottom: 1px solid var(--line); }
.faq-item summary{
  cursor: pointer;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--blue-deep);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 4px;
}
.faq-item summary::-webkit-details-marker{ display: none; }
.faq-item summary::after{
  content: "";
  flex-shrink: 0;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(45deg);
  transition: transform 200ms ease;
}
.faq-item[open] summary::after{ transform: rotate(-135deg); }
.faq-item p{
  color: var(--grey);
  font-size: 0.95rem;
  line-height: 1.6;
  padding: 0 4px 24px;
  max-width: 62ch;
}
.faq-item a{ color: var(--blue); font-weight: 600; }

/* ---------------------------------------------------------
   Footer
--------------------------------------------------------- */
.site-footer{
  background: var(--blue-deep);
  color: rgba(255,255,255,0.75);
  padding: 48px 0 36px;
}
.footer-inner{
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-note{ font-size: 0.85rem; max-width: 60ch; line-height: 1.6; }
