/* ═══════════════════════════════════════════════════════════
   Piyara Aviation — Airline Website
   Palette: Sky (#0B4F6C) + Warm White (#FDF8F0) + Coral (#E8734A) + Sand (#C9B97F)
   Fonts: Inter (body) + Playfair Display (display)
   Tourism-first, airline-second
   ═══════════════════════════════════════════════════════════ */

:root {
  --sky: #0B4F6C;
  --sky-deep: #083A50;
  --sky-light: #1A7A9E;
  --coral: #E8734A;
  --coral-hover: #D4603A;
  --sand: #C9B97F;
  --sand-soft: rgba(201,185,127,0.12);
  --warm-white: #FDF8F0;
  --white: #FFFFFF;
  --off-white: #F7F5F0;
  --gray-100: #F0EDE7;
  --gray-200: #E0DBD2;
  --gray-300: #C5BFAF;
  --gray-500: #7A7568;
  --gray-700: #4A4639;
  --dark: #1A1814;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max: 1100px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  font-family: var(--font-body);
  background: var(--warm-white);
  color: var(--dark);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--sky); }
a:hover { color: var(--coral); }

/* ─────────────── SKIP LINK ─────────────── */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--coral); color: var(--white);
  padding: 0.75rem 1.25rem; font-weight: 700;
  text-decoration: none; border-radius: 0 0 4px 0;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 2px; }

/* ─────────────── NAV ─────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--gray-200);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo { text-decoration: none; display: flex; align-items: center; gap: 0.65rem; }
.logo-mark {
  width: 36px; height: 36px;
  background: var(--sky);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 0.95rem; font-weight: 700;
  color: var(--sand);
  flex-shrink: 0;
}
.logo-text {
  font-size: 0.8rem; font-weight: 700; color: var(--sky);
  letter-spacing: 1.8px; text-transform: uppercase;
}

.nav-links { list-style: none; display: flex; gap: 1.8rem; align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--gray-500);
  font-size: 0.85rem; font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--sky); }
.nav-links a.active { color: var(--sky); font-weight: 600; }

.nav-toggle {
  display: none; background: none; border: none;
  font-size: 0.85rem; font-weight: 600; color: var(--sky);
  cursor: pointer; padding: 0.5rem;
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--gray-200);
    padding: 1rem 2rem;
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 0.6rem 0; }
}

/* ─────────────── HERO ─────────────── */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--sky-deep);
}

.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.45;
}

.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,58,80,0.3) 0%, rgba(8,58,80,0.65) 100%);
}

.hero-content {
  position: relative; z-index: 2;
  max-width: 700px;
  padding: 3rem 2rem;
  color: var(--white);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  margin-bottom: 1.8rem;
}

.hero-cta {
  display: inline-block;
  background: var(--coral);
  color: var(--white);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.9rem 2.2rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.18s, transform 0.18s;
}
.hero-cta:hover { background: var(--coral-hover); color: var(--white); transform: translateY(-2px); }

/* ─────────────── SECTIONS ─────────────── */
.section {
  padding: 5rem 2rem;
}
.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.section.sky { background: var(--sky); color: var(--white); }
.section.sky-deep { background: var(--sky-deep); color: var(--white); }
.section.off-white { background: var(--off-white); }
.section.warm-white { background: var(--warm-white); }

.kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 0.8rem;
}
.section.sky .kicker { color: var(--sand); }

.heading {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--dark);
  margin-bottom: 1rem;
}
.heading.lg { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.section.sky .heading, .section.sky-deep .heading { color: var(--white); }

.body-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--gray-700);
  max-width: 62ch;
}
.body-text.centered { margin-left: auto; margin-right: auto; text-align: center; }
.body-text + .body-text { margin-top: 1rem; }
.section.sky .body-text { color: rgba(255,255,255,0.78); }

/* ─────────────── DESTINATION CARDS ─────────────── */
.dest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
@media (max-width: 860px) { .dest-grid { grid-template-columns: 1fr; } }

.dest-card {
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}
.dest-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.10);
}

.dest-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* placeholder for images not yet provided */
.img-placeholder {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--sky-light) 0%, var(--sky) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.45);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
  padding: 1rem;
  border: 2px dashed rgba(255,255,255,0.2);
}
.img-placeholder.tall { height: 240px; }
.img-placeholder.beach { background: linear-gradient(135deg, #2193b0 0%, #6dd5ed 100%); }
.img-placeholder.wildlife { background: linear-gradient(135deg, #355C3A 0%, #7CB342 100%); }
.img-placeholder.temple { background: linear-gradient(135deg, #8B6914 0%, #D4A843 100%); }
.img-placeholder.tea { background: linear-gradient(135deg, #1B5E20 0%, #66BB6A 100%); }
.img-placeholder.aircraft { background: linear-gradient(135deg, var(--sky-deep) 0%, var(--sky-light) 100%); }
.img-placeholder.cargo { background: linear-gradient(135deg, #37474F 0%, #78909C 100%); }
.img-placeholder.airport { background: linear-gradient(135deg, #263238 0%, #546E7A 100%); }

.dest-body {
  padding: 1.3rem 1.4rem 1.5rem;
}
.dest-body h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.4rem;
}
.dest-body .route {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--coral);
  letter-spacing: 0.5px;
  margin-bottom: 0.6rem;
}
.dest-body p {
  font-size: 0.88rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ─────────────── FEATURE ROW (2-col text + image) ─────────────── */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 3rem;
}
@media (max-width: 768px) {
  .feature-row { grid-template-columns: 1fr; gap: 2rem; }
}
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }

.feature-img {
  border-radius: 12px;
  overflow: hidden;
}

/* ─────────────── AIRPORT SPECS ─────────────── */
.spec-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2.2rem;
}
@media (max-width: 780px) { .spec-strip { grid-template-columns: repeat(2, 1fr); } }

.spec {
  text-align: center;
  padding: 1.3rem 0.8rem;
  background: var(--white);
  border-radius: 8px;
  border-top: 3px solid var(--coral);
}
.spec .val {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 700;
  color: var(--sky);
  line-height: 1.1;
  margin-bottom: 0.3rem;
}
.spec .lbl {
  font-size: 0.72rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 1.1px;
  font-weight: 600;
}

/* ─────────────── DRIVE TIMES ─────────────── */
.distance-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.7rem;
  margin-top: 1.8rem;
  list-style: none;
}
.distance-list li {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  padding: 0.8rem 1rem;
  font-size: 0.86rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
}
.distance-list .place { color: var(--dark); font-weight: 600; }
.distance-list .time { color: var(--coral); font-weight: 700; font-size: 0.82rem; }

/* ─────────────── CAREERS ─────────────── */
.job-list { margin-top: 2rem; }

.job-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 1.5rem 1.8rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.job-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
@media (max-width: 600px) {
  .job-card { flex-direction: column; align-items: flex-start; }
}

.job-info h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.3rem;
}
.job-meta {
  display: flex;
  gap: 1.2rem;
  font-size: 0.8rem;
  color: var(--gray-500);
  flex-wrap: wrap;
}
.job-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.job-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  background: var(--sand-soft);
  color: var(--sand);
  border: 1px solid rgba(201,185,127,0.3);
  white-space: nowrap;
  flex-shrink: 0;
}

.job-apply {
  display: inline-block;
  background: var(--sky);
  color: var(--white);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.6rem 1.4rem;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.18s;
}
.job-apply:hover { background: var(--sky-deep); color: var(--white); }

.dept-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.dept-btn {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray-500);
  cursor: pointer;
  transition: all 0.15s;
}
.dept-btn:hover, .dept-btn.active {
  background: var(--sky);
  color: var(--white);
  border-color: var(--sky);
}

/* ─────────────── PARTNERSHIP CARDS ─────────────── */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 2.4rem;
}
@media (max-width: 860px) { .partner-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .partner-grid { grid-template-columns: 1fr; } }

.partner-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  padding: 1.4rem 1.5rem;
  text-align: left;
}
.partner-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--sand);
  margin-bottom: 0.5rem;
}
.partner-card p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.6;
}

/* ─────────────── CTA BUTTONS ─────────────── */
.cta {
  display: inline-block;
  background: var(--coral);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.85rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  margin-top: 1.8rem;
  transition: background 0.18s, transform 0.18s;
}
.cta:hover { background: var(--coral-hover); color: var(--white); transform: translateY(-2px); }

.cta-outline {
  display: inline-block;
  border: 1.5px solid var(--sand);
  color: var(--sand);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.8rem 1.8rem;
  border-radius: 6px;
  text-decoration: none;
  margin-top: 1.8rem;
  transition: background 0.18s, color 0.18s;
}
.cta-outline:hover { background: var(--sand); color: var(--sky-deep); }

/* ─────────────── GROUP NOTE ─────────────── */
.group-note {
  background: rgba(255,255,255,0.06);
  border-left: 3px solid var(--sand);
  border-radius: 0 6px 6px 0;
  padding: 1.1rem 1.4rem;
  margin-top: 2rem;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.65;
}
.group-note strong { color: var(--white); }

.note {
  background: var(--off-white);
  border-left: 3px solid var(--gray-300);
  border-radius: 0 6px 6px 0;
  padding: 1rem 1.3rem;
  margin-top: 1.8rem;
  font-size: 0.86rem;
  color: var(--gray-700);
  line-height: 1.65;
}

/* ─────────────── FOOTER ─────────────── */
.footer {
  background: var(--sky-deep);
  color: rgba(255,255,255,0.7);
  padding: 3rem 2rem 1.5rem;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 600px) { .footer-inner { flex-direction: column; } }

.footer-brand { display: flex; align-items: center; gap: 0.8rem; }
.footer-brand strong { color: var(--white); font-size: 0.9rem; }

.footer-links {
  display: flex;
  gap: 1.8rem;
  list-style: none;
}
.footer-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--white); }

.footer-contact a {
  color: var(--sand);
  text-decoration: none;
  font-size: 0.88rem;
}
.footer-contact a:hover { color: var(--white); }

.footer-legal {
  max-width: var(--max);
  margin: 1rem auto 0;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
  text-align: center;
  padding-top: 1rem;
}

/* ─────────────── PIYARA FEATURE CARDS ─────────────── */
.piyara-card {
  background: var(--white);
  border-radius: 12px;
  padding: 1.8rem 1.5rem;
  text-align: left;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}
.piyara-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.piyara-icon {
  font-size: 1.6rem;
  display: block;
  margin-bottom: 0.8rem;
}
.piyara-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.4rem;
}
.piyara-card p {
  font-size: 0.88rem;
  color: var(--gray-500);
  line-height: 1.65;
}

/* ─────────────── COMPARE GRID (Colombo vs Mattala) ─────────────── */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 700px) { .compare-grid { grid-template-columns: 1fr; gap: 1.5rem; } }

.compare-card {
  background: var(--white);
  border-radius: 14px;
  padding: 2rem 1.5rem;
  text-align: left;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  position: relative;
}
.compare-card.new {
  border: 2px solid var(--coral);
  box-shadow: 0 4px 24px rgba(232,115,74,0.12);
}

.compare-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  color: var(--gray-500);
}
.compare-card.new .compare-label { color: var(--coral); }

.compare-steps { display: flex; flex-direction: column; gap: 0; }

.step {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.4rem 0;
}
.step-icon { font-size: 1.3rem; flex-shrink: 0; width: 2rem; text-align: center; }
.step-text { font-size: 0.9rem; color: var(--dark); font-weight: 500; }

.step-arrow {
  padding-left: 0.85rem;
  font-size: 0.75rem;
  color: var(--gray-300);
  font-weight: 600;
  line-height: 2.2;
}
.step-arrow.accent { color: var(--coral); }

.compare-total {
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-200);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  text-align: center;
}
.old-total { color: var(--gray-500); }
.new-total { color: var(--coral); }

/* ─────────────── BUS ROUTE ─────────────── */
.bus-route {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-top: 2.5rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 1rem 0;
}
@media (max-width: 700px) {
  .bus-route {
    flex-direction: column;
    align-items: center;
  }
}

.bus-stop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  min-width: 110px;
  text-align: center;
}
.bus-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--sand);
  border: 3px solid rgba(255,255,255,0.3);
  flex-shrink: 0;
}
.bus-dot.origin {
  width: 22px;
  height: 22px;
  background: var(--coral);
  border: 3px solid rgba(255,255,255,0.5);
}
.bus-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--white);
  margin-top: 0.3rem;
}
.bus-time {
  font-size: 0.72rem;
  color: var(--sand);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.bus-line {
  width: 40px;
  height: 2px;
  background: rgba(255,255,255,0.25);
  margin-top: 8px;
  flex-shrink: 0;
}
@media (max-width: 700px) {
  .bus-line {
    width: 2px;
    height: 24px;
    margin-top: 0;
  }
}

.bus-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 2.5rem;
}
.bus-feat {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 24px;
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}
.feat-icon { font-size: 1rem; }

/* ─────────────── REVEAL ─────────────── */
.reveal { opacity: 0; transform: translateY(20px); }
.reveal.in { opacity: 1; transform: none; transition: opacity 0.65s ease, transform 0.65s ease; }
@media (prefers-reduced-motion: reduce) { .reveal, .reveal.in { opacity: 1; transform: none; transition: none; } }
.no-js .reveal { opacity: 1; transform: none; }
