@font-face {
  font-family: "Giga Sans";
  src: url("https://pitx.ph/wp-content/uploads/GigaSans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Giga Sans";
  src: url("https://pitx.ph/wp-content/uploads/GigaSans-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Helvetica Neue";
  src: url("https://pitx.ph/wp-content/uploads/HelveticaNeue.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Helvetica Neue";
  src: url("https://pitx.ph/wp-content/uploads/HelveticaNeue-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --pitx-blue: #1d439b;
  --pitx-red: #eb342e;
  --pitx-red-alt: #ee3124;
  --pitx-charcoal: #414042;
  --pitx-text: #4d4d4d;
  --pitx-soft: #333333;
  --pitx-gray: #f8f8f8;
  --pitx-white: #ffffff;
  --pitx-green: #337940;
  --font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: "Giga Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-accent: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--pitx-soft);
  background: var(--pitx-white);
  line-height: 1.5;
  font-size: 15px;
}

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

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

.wrap {
  width: min(1200px, calc(100% - 32px));
  margin-inline: auto;
}

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 42%;
}

.brand img {
  height: 44px;
  width: auto;
  flex-shrink: 0;
}

.brand__rule {
  width: 2px;
  height: 34px;
  background: var(--pitx-red);
  flex-shrink: 0;
}

.brand__text {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--pitx-charcoal);
  line-height: 1.25;
  text-transform: uppercase;
  white-space: normal;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
  gap: 0.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
  flex-wrap: nowrap;
}

.nav > li {
  position: relative;
}

.nav > li > a {
  font-size: 14px;
  font-weight: 400;
  color: var(--pitx-soft);
  padding: 0.4rem 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav > li > a:hover {
  color: var(--pitx-blue);
}

.nav__drop {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: 0.5rem 0;
  list-style: none;
  margin: 0;
  z-index: 20;
}

.nav > li:hover .nav__drop {
  display: block;
}

.nav__drop a {
  display: block;
  padding: 0.55rem 1rem;
  font-size: 16px;
  color: var(--pitx-soft);
}

.nav__drop a:hover {
  background: var(--pitx-gray);
  color: var(--pitx-blue);
}

.nav-toggle {
  display: none;
  border: 1px solid #ddd;
  background: #fff;
  padding: 0.5rem 0.75rem;
  font-family: inherit;
}

.header-meta {
  display: flex;
  justify-content: flex-end;
  font-size: 12px;
  color: var(--pitx-text);
  padding: 0.35rem 0 0;
}

/* Marquee */
.ticker {
  background: var(--pitx-red);
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.ticker__track {
  display: inline-block;
  padding: 0.55rem 0;
  animation: marquee 28s linear infinite;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 560px;
  background:
    linear-gradient(90deg, rgba(29, 67, 155, 0.8), rgba(29, 67, 155, 0.55)),
    url("https://pitx.ph/wp-content/uploads/home-new-banner.jpg") center/cover no-repeat;
  display: grid;
  align-items: center;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  padding: 3rem 0;
}

.hero__copy h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}

.hero__copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.05rem;
  max-width: 34rem;
}

.hero-card {
  background: rgba(255, 255, 255, 0.87);
  padding: 1.75rem 1.5rem;
  border-radius: 0;
}

.hero-card h1 {
  margin: 0 0 0.6rem;
  font-family: var(--font-body);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  color: var(--pitx-blue);
  line-height: 1.15;
}

.hero-card > p {
  margin: 0 0 1.25rem;
  color: var(--pitx-text);
}

.route-form {
  display: grid;
  gap: 0.85rem;
}

.route-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 14px;
  font-weight: 700;
  color: var(--pitx-blue);
}

.route-form input,
.route-form select {
  border: 1px solid #d0d5dd;
  padding: 0.7rem 0.85rem;
  font: inherit;
  background: #fff;
}

.btn-search {
  border: 0;
  background: var(--pitx-red);
  color: #fff;
  font-family: var(--font-accent);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.85rem 1.2rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-search img {
  width: 14px;
  height: 14px;
}

.route-results {
  margin-top: 0.85rem;
  display: grid;
  gap: 0.5rem;
}

.trip-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  padding: 0.65rem 0.75rem;
  font-size: 13px;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section--gray {
  background: var(--pitx-gray);
}

.eyebrow {
  margin: 0 0 0.4rem;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  color: var(--pitx-charcoal);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.section h2,
.section h3.section-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--pitx-charcoal);
}

.section__lead {
  margin: 0 0 1.5rem;
  color: var(--pitx-text);
  max-width: 40rem;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  color: var(--pitx-red);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.read-more img {
  width: 12px;
  height: 12px;
}

.ride-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.ride-grid article {
  background: #fff;
  border: 1px solid #ececec;
  padding: 1.25rem 1rem;
  text-align: center;
}

.ride-grid img {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.75rem;
}

.ride-grid h3 {
  margin: 0 0 0.35rem;
  font-size: 16px;
  color: var(--pitx-charcoal);
}

.ride-grid p {
  margin: 0;
  font-size: 13px;
  color: var(--pitx-text);
}

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

.thing-card {
  position: relative;
  min-height: 260px;
  background-size: cover;
  background-position: center;
  color: #fff;
  display: flex;
  align-items: flex-end;
}

.thing-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.1));
}

.thing-card > div {
  position: relative;
  padding: 1.25rem;
}

.thing-card h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 20px;
}

.thing-card p {
  margin: 0 0 0.75rem;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.92);
}

.thing-card .read-more {
  color: #fff;
}

/* Features / tabs */
.tabs {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.tab-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-right: 1px solid #e5e7eb;
}

.tab-list button {
  width: 100%;
  text-align: left;
  border: 0;
  border-left: 3px solid transparent;
  background: transparent;
  padding: 0.85rem 1rem;
  font: inherit;
  font-weight: 700;
  color: var(--pitx-charcoal);
  cursor: pointer;
}

.tab-list button.is-active {
  border-left-color: var(--pitx-red);
  background: #f3f5f9;
  color: var(--pitx-blue);
}

.tab-panel {
  display: none;
  gap: 1.25rem;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}

.tab-panel.is-active {
  display: grid;
}

.tab-panel h4 {
  margin: 0 0 0.5rem;
  font-size: 20px;
  color: var(--pitx-charcoal);
}

.tab-panel p {
  margin: 0;
  color: var(--pitx-text);
}

/* Schedule table */
.board-wrap {
  overflow-x: auto;
  border: 1px solid #e5e7eb;
  background: #fff;
}

.board {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.board th {
  background: var(--pitx-red-alt);
  color: #fff;
  text-align: left;
  padding: 0.75rem 0.9rem;
}

.board td {
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid #eee;
}

.board tr:nth-child(even) {
  background: #fafafa;
}

.status {
  font-weight: 700;
  color: var(--pitx-green);
}

.status.is-delayed {
  color: #bea30f;
}

.status.is-departed {
  color: #888;
}

/* Fixed live schedule CTA */
.live-fab {
  position: fixed;
  right: 0;
  top: 45%;
  z-index: 90;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  background: var(--pitx-red);
  color: #fff;
  border: 0;
  font-family: var(--font-accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 1rem 0.55rem;
  cursor: pointer;
}

.schedule-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 120;
  padding: 1rem;
}

.schedule-modal.is-open {
  display: flex;
}

.schedule-modal__card {
  width: min(820px, 100%);
  max-height: 85vh;
  overflow: auto;
  background: #fff;
  padding: 1.25rem;
}

.schedule-modal__card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.schedule-modal__card h3 {
  margin: 0;
  color: var(--pitx-charcoal);
}

.schedule-modal__card button {
  border: 0;
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
}

/* News */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.news-grid article {
  border: 1px solid #ececec;
  padding: 1.1rem;
}

.news-grid time {
  font-size: 12px;
  color: #888;
}

.news-grid h3 {
  margin: 0.4rem 0;
  font-size: 18px;
  color: var(--pitx-charcoal);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.contact-grid article {
  text-align: center;
}

.contact-grid img {
  width: 36px;
  height: 36px;
  margin: 0 auto 0.5rem;
}

.contact-grid h3 {
  margin: 0 0 0.35rem;
  font-size: 14px;
  color: var(--pitx-charcoal);
}

.contact-grid p,
.contact-grid a {
  margin: 0;
  font-size: 13px;
  color: var(--pitx-text);
}

/* Footer */
.site-footer {
  background: var(--pitx-charcoal);
  color: rgba(255, 255, 255, 0.88);
  padding: 2.5rem 0 1.25rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 1.5rem;
}

.site-footer h4 {
  margin: 0 0 0.75rem;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.4rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
}

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

.footer-copy {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 12px;
  opacity: 0.8;
}

.footer-logo {
  height: 42px;
  width: auto;
  margin-bottom: 0.75rem;
}

/* Inner pages */
.page-hero {
  background: linear-gradient(135deg, #163687 0%, var(--pitx-blue) 55%, #2a5ec4 100%);
  color: #fff;
  padding: 2.75rem 0 2.25rem;
}

.page-hero h1 {
  margin: 0.35rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
}

.page-hero .section__lead {
  color: rgba(255, 255, 255, 0.9);
  max-width: 46rem;
}

.crumb {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.85;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.15rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--pitx-red);
  color: #fff;
}

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

.route-form--page {
  margin-top: 0.5rem;
}

.route-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 1rem;
}

.route-tabs button {
  border: 1px solid #d5d5d5;
  background: #fff;
  color: var(--pitx-charcoal);
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.route-tabs button.is-active {
  background: var(--pitx-blue);
  border-color: var(--pitx-blue);
  color: #fff;
}

.route-panel {
  display: none;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 8px;
  padding: 1.25rem;
}

.route-panel.is-active {
  display: block;
}

.route-panel h3 {
  margin: 0 0 1rem;
  color: var(--pitx-blue);
}

.route-panel h4 {
  margin: 1rem 0 0.4rem;
  font-size: 14px;
}

.route-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.route-panel ul,
.info-grid ul {
  margin: 0;
  padding-left: 1.1rem;
}

.pill-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill-list li {
  background: #eef2fb;
  color: var(--pitx-blue);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.board--dense td,
.board--dense th {
  font-size: 13px;
}

.info-grid,
.amenity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.info-grid article,
.amenity-grid article {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 8px;
  padding: 1rem 1.1rem;
}

.amenity-grid h3 {
  margin: 0 0 0.35rem;
  font-size: 16px;
  color: var(--pitx-blue);
}

.amenity-grid .hours {
  margin: 0.5rem 0 0;
  font-size: 13px;
  color: var(--pitx-text);
}

.book-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  padding: 0;
  margin: 0 0 1.5rem;
}

.book-steps li {
  text-align: center;
  padding: 0.65rem 0.4rem;
  border-bottom: 3px solid #e5e5e5;
  font-size: 13px;
  font-weight: 700;
  color: #888;
}

.book-steps li.is-active,
.book-steps li.is-done {
  border-color: var(--pitx-blue);
  color: var(--pitx-blue);
}

.book-panel {
  display: none;
}

.book-panel.is-active {
  display: block;
}

.book-trip-list {
  margin-top: 1rem;
  display: grid;
  gap: 0.65rem;
}

.book-trip {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  text-align: left;
  border: 1px solid #e2e2e2;
  background: #fff;
  border-radius: 8px;
  padding: 0.9rem 1rem;
  cursor: pointer;
}

.book-trip:hover {
  border-color: var(--pitx-blue);
}

.seat-map {
  display: grid;
  grid-template-columns: repeat(4, minmax(52px, 1fr));
  gap: 0.45rem;
  max-width: 320px;
  margin: 1rem 0 1.25rem;
}

.seat {
  border: 1px solid #cfd6e6;
  background: #f7f9fd;
  border-radius: 6px;
  padding: 0.55rem 0;
  cursor: pointer;
  font-weight: 700;
  color: var(--pitx-blue);
}

.seat.is-selected {
  background: var(--pitx-blue);
  color: #fff;
  border-color: var(--pitx-blue);
}

.seat.is-taken {
  opacity: 0.35;
  cursor: not-allowed;
  text-decoration: line-through;
}

.passenger-form {
  display: grid;
  gap: 0.85rem;
  max-width: 420px;
}

.passenger-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 13px;
  font-weight: 700;
}

.passenger-form input {
  padding: 0.7rem 0.8rem;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  font: inherit;
}

.book-status {
  margin-top: 1rem;
  font-size: 14px;
}

.book-status.is-error {
  color: var(--pitx-red);
}

.book-confirm {
  background: #f4f7fc;
  border: 1px solid #d9e3f5;
  border-radius: 8px;
  padding: 1.25rem 1.4rem;
  margin-bottom: 1.25rem;
}

.book-confirm h2 {
  margin: 0 0 0.75rem;
  color: var(--pitx-blue);
}

.page-hero .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 900px) {
  .route-cols,
  .book-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .brand__text,
  .brand__rule {
    display: none;
  }

  .brand {
    max-width: none;
  }

  /* Hamburger earlier — desktop nav overflows before 960px. */
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1rem;
    border-bottom: 1px solid #eee;
    z-index: 120;
  }

  .nav.is-open {
    display: flex;
  }

  .nav__drop {
    position: static;
    display: block;
    box-shadow: none;
    border: 0;
    padding-left: 0.75rem;
  }

  .header-row {
    position: relative;
  }
}

/* Tablet: 2-column grids before full stack. */
@media (max-width: 1100px) and (min-width: 641px) {
  .ride-grid,
  .things-grid,
  .news-grid,
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 960px) {
  .hero__grid,
  .split,
  .tabs,
  .tab-panel.is-active,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  /* Avoid duplicate hero H1 + paragraph under the search card. */
  .hero__copy {
    display: none;
  }

  .hero-card {
    margin: 1.25rem 0 1.5rem;
  }

  .live-fab {
    top: auto;
    bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
    writing-mode: horizontal-tb;
    transform: none;
    left: 1rem;
    right: auto;
    border-radius: 4px;
  }

  .wrap {
    width: min(1200px, calc(100% - 24px));
  }
}

@media (max-width: 640px) {
  body {
    font-size: 14px;
  }

  .wrap {
    width: calc(100% - 20px);
  }

  .ride-grid,
  .things-grid,
  .news-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-card,
  .page-hero,
  .section {
    scroll-margin-top: 72px;
  }

  .book-frame-wrap,
  .book-frame {
    min-height: calc(100dvh - 120px);
    min-height: calc(100vh - 120px);
  }
}

/* Maya open: keep site FAB from stacking on the launcher. */
html.laabu-docked .live-fab {
  display: none !important;
}
