/* ==========================================================================
   FlightsToAustin.com — Main Stylesheet
   Vanilla CSS, mobile-first, no frameworks.
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  --color-primary: #1a73e8;
  --color-primary-dark: #1456b0;
  --color-secondary: #ff6b35;
  --color-secondary-dark: #e85420;
  --color-dark: #1a1a2e;
  --color-light: #f8f9fa;
  --color-white: #ffffff;
  --color-text: #333333;
  --color-muted: #6b7280;
  --color-border: #e5e7eb;

  --font-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --fs-h1: 36px;
  --fs-h2: 28px;
  --fs-h3: 22px;
  --fs-body: 16px;
  --fs-small: 14px;

  --maxw: 1200px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.14);
  --transition: 0.2s ease;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

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

a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary-dark); }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; color: var(--color-dark); margin: 0 0 0.5em; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 1em; }

ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
li { margin-bottom: 0.4em; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 60px 0; }
.section--alt { background: var(--color-light); }
.text-center { text-align: center; }
.section-title { text-align: center; margin-bottom: 12px; }
.section-subtitle { text-align: center; color: var(--color-muted); max-width: 640px; margin: 0 auto 40px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: var(--fs-body);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-align: center;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--primary:hover { background: var(--color-primary-dark); color: #fff; }
.btn--secondary { background: var(--color-secondary); color: #fff; }
.btn--secondary:hover { background: var(--color-secondary-dark); color: #fff; }
.btn--block { display: block; width: 100%; }
.btn--ghost { background: transparent; border: 2px solid var(--color-primary); color: var(--color-primary); }
.btn--ghost:hover { background: var(--color-primary); color: #fff; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-dark);
  box-shadow: var(--shadow-sm);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav__logo { display: flex; align-items: center; gap: 10px; }
.nav__logo img { height: 32px; width: auto; }
.nav__logo span { color: #fff; font-weight: 700; font-size: 18px; }
.nav__menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__menu li { margin: 0; position: relative; }
.nav__menu a {
  color: #d6d9e0;
  font-size: 15px;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: 6px;
  display: block;
}
.nav__menu a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.nav__cta { background: var(--color-secondary); color: #fff !important; }
.nav__cta:hover { background: var(--color-secondary-dark) !important; }

/* dropdown */
.has-dropdown > a::after { content: " ▾"; font-size: 11px; }
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 8px;
  list-style: none;
  margin: 6px 0 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
}
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { color: var(--color-text); }
.dropdown a:hover { color: var(--color-primary); background: var(--color-light); }

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: var(--transition);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  text-align: center;
  padding: 80px 0 90px;
  background: linear-gradient(135deg, #1a1a2e 0%, #1456b0 60%, #1a73e8 100%);
  overflow: hidden;
}
/* To use the real Austin skyline image, uncomment and set the URL:
.hero { background: linear-gradient(rgba(26,26,46,.7), rgba(20,86,176,.7)), url('../images/hero-austin.jpg') center/cover no-repeat; }
*/
.hero h1 { color: #fff; font-size: clamp(28px, 5vw, 46px); margin-bottom: 16px; }
.hero p.lead { font-size: clamp(16px, 2.5vw, 20px); color: #dbe4f3; max-width: 640px; margin: 0 auto 36px; }
.hero__widget { max-width: 900px; margin: 0 auto; }

/* ---------- Travelpayouts widget container ---------- */
.tp-widget-container { margin: 0 auto; }
#tp-search-widget p,
.tp-placeholder {
  text-align: center;
  padding: 40px 20px;
  background: #e3f2fd;
  border-radius: var(--radius);
  color: #1a1a2e;
  margin: 0;
}

/* ---------- Feature columns ("Why book") ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature {
  text-align: center;
  padding: 32px 24px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature__icon { font-size: 42px; margin-bottom: 12px; }
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--color-muted); margin: 0; }

/* ---------- Route cards ---------- */
.routes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.route-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.route-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.route-card__route { font-size: 18px; font-weight: 700; color: var(--color-dark); margin-bottom: 4px; }
.route-card__price { color: var(--color-secondary); font-weight: 700; font-size: 22px; margin-bottom: 16px; }
.route-card__price small { color: var(--color-muted); font-weight: 400; font-size: 13px; display: block; }
.route-card .btn { margin-top: auto; }

/* ---------- Event cards ---------- */
.events-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.event-card {
  border-radius: var(--radius);
  overflow: hidden;
  color: #fff;
  padding: 32px 24px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  transition: transform var(--transition);
}
.event-card:hover { transform: translateY(-4px); }
.event-card--sxsw { background: linear-gradient(135deg, #6a11cb, #2575fc); }
.event-card--acl { background: linear-gradient(135deg, #f7971e, #ff6b35); }
.event-card--f1 { background: linear-gradient(135deg, #cb2d3e, #ef473a); }
.event-card span.tag { font-size: 13px; opacity: 0.9; }
.event-card h3 { color: #fff; margin: 4px 0 8px; }
.event-card p { margin: 0 0 14px; opacity: 0.95; font-size: 15px; }
.event-card a.event-link { color: #fff; font-weight: 600; }
.event-card a.event-link::after { content: " →"; }

/* ---------- Article preview cards ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.article-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.article-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.article-card h3 { font-size: 19px; margin-bottom: 8px; }
.article-card p { color: var(--color-muted); font-size: 15px; flex: 1; }
.article-card a.read-more { font-weight: 600; margin-top: 8px; }
.article-card a.read-more::after { content: " →"; }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--color-dark); color: #fff; text-align: center; }
.newsletter h2 { color: #fff; }
.newsletter p { color: #c7ccd8; max-width: 560px; margin: 0 auto 28px; }
.newsletter form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}
.newsletter input[type="email"] {
  flex: 1;
  padding: 13px 16px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 16px;
}
.newsletter .form-note { font-size: 13px; color: #9aa3b5; margin-top: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-dark); color: #c7ccd8; padding: 56px 0 24px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.site-footer a { color: #c7ccd8; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-brand img { height: 34px; margin-bottom: 12px; }
.footer-brand p { font-size: 14px; max-width: 320px; }
.social-links { display: flex; gap: 14px; margin-top: 8px; }
.social-links a {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08); border-radius: 50%;
  font-size: 16px;
}
.social-links a:hover { background: var(--color-primary); }
.affiliate-disclosure {
  font-size: 13px;
  color: #9aa3b5;
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  margin-top: 8px;
}
.copyright { text-align: center; font-size: 13px; color: #9aa3b5; margin-top: 16px; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 14px; color: var(--color-muted); padding: 18px 0 0; }
.breadcrumb a { color: var(--color-primary); }
.breadcrumb span { color: var(--color-muted); }

/* ---------- Article layout ---------- */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  padding: 24px 0 60px;
  align-items: start;
}
.article-main { min-width: 0; }
.article-meta { color: var(--color-muted); font-size: 14px; margin-bottom: 24px; }
.article-main h1 { margin-bottom: 10px; }
.article-main h2 { margin-top: 40px; padding-top: 8px; }
.article-main h3 { margin-top: 28px; }
.article-main img { border-radius: var(--radius); margin: 24px 0; }

/* Table of contents */
.toc {
  background: var(--color-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0 32px;
}
.toc strong { display: block; margin-bottom: 10px; color: var(--color-dark); }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc a { color: var(--color-primary); }

/* CTA box */
.cta-box {
  background: linear-gradient(135deg, #1a73e8, #1456b0);
  color: #fff;
  border-radius: var(--radius);
  padding: 28px 32px;
  margin: 32px 0;
  text-align: center;
}
.cta-box p { color: #eaf1fc; margin-bottom: 16px; font-size: 18px; font-weight: 600; }
.cta-box .btn--secondary { font-size: 17px; }

/* Tables */
.data-table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; }
.data-table th, .data-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--color-border); }
.data-table th { background: var(--color-light); color: var(--color-dark); font-weight: 600; }
.data-table tbody tr:hover { background: #f3f7fd; }
.table-scroll { overflow-x: auto; }

/* Pricing calendar */
.price-calendar { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin: 24px 0; }
.price-calendar .month {
  border-radius: var(--radius-sm);
  padding: 14px 8px;
  text-align: center;
  color: #fff;
  font-weight: 600;
}
.price-calendar .month small { display: block; font-weight: 400; font-size: 12px; opacity: .95; }
.price-low { background: #2e9e5b; }
.price-mid { background: #f0a202; }
.price-high { background: #e85420; }
.price-legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; margin-bottom: 8px; }
.price-legend span { display: inline-flex; align-items: center; gap: 6px; }
.price-legend i { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }

/* Ad slots */
/* Ad slots are invisible until a real ad unit (e.g. Google AdSense) is placed
   inside. Once you add AdSense code, ads will appear here automatically. */
.ad-slot { margin: 24px 0; text-align: center; }
.ad-slot:empty { display: none; margin: 0; }

/* ---------- Sidebar ---------- */
.sidebar { position: sticky; top: 84px; }
.sidebar-widget {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.sidebar-widget h4 { margin-bottom: 14px; font-size: 17px; }
.sidebar-widget ul { list-style: none; padding: 0; margin: 0; }
.sidebar-widget li { border-bottom: 1px solid var(--color-border); padding: 8px 0; }
.sidebar-widget li:last-child { border-bottom: none; }
.sidebar-widget .mini-form input { width: 100%; padding: 10px 12px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); margin-bottom: 10px; font-size: 15px; }

/* ---------- Booking widget ---------- */
.booking-widget {
  background: #fff7ee;
  border: 1px solid #ffd9bf;
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  margin: 28px 0;
  color: #8a4b1f;
}

/* ---------- Forms (contact) ---------- */
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 600; margin-bottom: 6px; }
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-family: inherit;
}
.form-field textarea { min-height: 140px; resize: vertical; }

/* ---------- Prose pages (about/privacy) ---------- */
.prose { max-width: 760px; margin: 0 auto; padding: 32px 0 60px; }
.prose h2 { margin-top: 36px; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 80px 0; }
.notfound .code { font-size: 96px; font-weight: 800; color: var(--color-primary); line-height: 1; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 920px;
  margin: 0 auto;
  background: var(--color-dark);
  color: #fff;
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  z-index: 200;
}
.cookie-banner p { margin: 0; font-size: 14px; flex: 1; min-width: 220px; color: #d6d9e0; }
.cookie-banner .btn { padding: 10px 18px; }
.cookie-banner.hidden { display: none; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .features, .routes-grid, .events-grid, .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --fs-h1: 30px; --fs-h2: 24px; --fs-h3: 20px; }
  .section { padding: 44px 0; }

  /* Mobile nav */
  .nav__toggle { display: block; }
  .nav__menu {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--color-dark);
    padding: 8px 16px 16px;
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav__menu.open { display: flex; }
  .nav__menu a { padding: 12px 8px; border-bottom: 1px solid rgba(255,255,255,.06); }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; background: rgba(255,255,255,.04); margin: 4px 0 4px 12px;
  }
  .dropdown a { color: #c7ccd8; }

  .features, .routes-grid, .events-grid, .cards-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .newsletter form { flex-direction: column; }
  .price-calendar { grid-template-columns: repeat(3, 1fr); }
}
