/* ===== flyesoo.com – Global Styles ===== */
:root {
  --primary: #0a4d8c;
  --primary-dark: #073a6b;
  --primary-light: #1a6bb5;
  --accent: #f5a623;
  --accent-hover: #e09415;
  --success: #28a745;
  --danger: #dc3545;
  --text: #1a1a2e;
  --text-muted: #5a5a7a;
  --bg: #f7f9fc;
  --white: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 4px 20px rgba(10, 77, 140, 0.08);
  --shadow-lg: 0 10px 40px rgba(10, 77, 140, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-light);
}

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

/* ===== Header ===== */
.header {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.45rem;
  color: var(--primary);
  line-height: 1;
}

.logo img {
  height: 40px;
  width: auto;
  display: block;
}

/* Footer logo – light version on dark background */
.logo--footer img {
  height: 36px;
  filter: brightness(0) invert(1);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
}

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

.header-contact {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
}

.header-contact a {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--primary);
  font-weight: 600;
}

.phone-btn {
  background: var(--primary);
  color: var(--white) !important;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
}

.phone-btn:hover {
  background: var(--primary-dark);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 2px;
  transition: 0.3s;
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, #0a4d8c 0%, #1a6bb5 50%, #0d5a9e 100%);
  color: var(--white);
  padding: 3.5rem 1.5rem 4.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 520px;
}

/* Search Box */
.search-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  color: var(--text);
}

.search-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.search-tab {
  padding: 0.45rem 1.1rem;
  border: 2px solid var(--border);
  background: transparent;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s;
}

.search-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.search-form {
  display: grid;
  grid-template-columns: 1.4fr 1.4fr 1fr 1fr 0.9fr auto;
  gap: 0.85rem;
  align-items: end;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.form-group input,
.form-group select {
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
}

.swap-btn {
  align-self: end;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 0.15rem;
  transition: all 0.2s;
}

.swap-btn:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.search-btn {
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
  height: 44px;
}

.search-btn:hover {
  background: var(--accent-hover);
}

/* Results Panel */
.results-panel {
  display: none;
  margin-top: 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.results-panel.visible {
  display: block;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.results-header h3 {
  font-size: 1.1rem;
}

.flight-card {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  transition: box-shadow 0.2s;
}

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

.flight-airline {
  font-weight: 600;
  font-size: 0.95rem;
}

.flight-time {
  font-size: 1.15rem;
  font-weight: 700;
}

.flight-airport {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.flight-duration {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.flight-duration .line {
  height: 2px;
  background: var(--border);
  margin: 0.3rem 0;
  position: relative;
}

.flight-duration .line::after {
  content: '✈';
  position: absolute;
  right: 0;
  top: -10px;
  font-size: 0.9rem;
  color: var(--primary);
}

.flight-price {
  text-align: right;
}

.flight-price .amount {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.flight-price .per {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.select-btn {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 0.5rem 1.1rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  margin-top: 0.35rem;
  transition: background 0.2s;
}

.select-btn:hover {
  background: var(--primary-dark);
}

/* ===== Sections ===== */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}

.section-sub {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* Fare Cards */
.fare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.fare-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--border);
}

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

.fare-card-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  padding: 1.1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fare-route {
  font-weight: 700;
  font-size: 1.05rem;
}

.fare-type {
  font-size: 0.75rem;
  background: rgba(255,255,255,0.2);
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
}

.fare-card-body {
  padding: 1.25rem;
}

.fare-details {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.fare-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.fare-price span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.fare-btn {
  display: inline-block;
  margin-top: 0.75rem;
  background: var(--primary);
  color: var(--white);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.fare-btn:hover {
  background: var(--primary-dark);
  color: var(--white);
}

/* Features */
.features {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.feature {
  text-align: center;
  padding: 1rem;
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: rgba(10, 77, 140, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--primary);
  font-size: 1.5rem;
}

.feature h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.feature p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  text-align: center;
  padding: 3rem 1.5rem;
  border-radius: var(--radius);
  margin: 0 1.5rem 3.5rem;
  max-width: 1170px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner h2 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.cta-banner p {
  opacity: 0.9;
  margin-bottom: 1.25rem;
}

.cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--white);
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: background 0.2s;
}

.cta-phone:hover {
  background: var(--accent-hover);
  color: var(--white);
}

/* ===== Terms Page ===== */
.page-hero {
  background: linear-gradient(135deg, #0a4d8c, #1a6bb5);
  color: var(--white);
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.page-hero h1 {
  font-size: 2rem;
  margin-bottom: 0.35rem;
}

.page-hero p {
  opacity: 0.85;
}

.policy-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.policy-content h2 {
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
  color: var(--primary);
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--border);
}

.policy-content h2:first-child {
  margin-top: 0;
}

.policy-content p,
.policy-content li {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.policy-content ul {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}

.policy-content li {
  margin-bottom: 0.4rem;
}

/* ===== Footer ===== */
.footer {
  background: #0c2340;
  color: #a8b8c8;
  padding: 2.5rem 1.5rem 1.5rem;
  margin-top: auto;
  font-size: 0.88rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

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

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.footer-brand p {
  line-height: 1.55;
  margin-bottom: 1rem;
}

.footer h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 0.45rem;
}

.footer a {
  color: #a8b8c8;
}

.footer a:hover {
  color: var(--white);
}

.footer-contact a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.footer-disclosure {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.25rem;
  font-size: 0.8rem;
  line-height: 1.6;
  color: #8a9aab;
}

.footer-bottom {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .search-form {
    grid-template-columns: 1fr 1fr;
  }
  .swap-btn {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    gap: 0;
  }
  .nav.open {
    display: flex;
  }
  .nav a {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }
  .menu-toggle {
    display: block;
  }
  .header-contact .email-link {
    display: none;
  }
  .search-form {
    grid-template-columns: 1fr;
  }
  .flight-card {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
  .flight-price {
    grid-column: 1 / -1;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Loading spinner */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 0.4rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.no-results {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
}

/* ===== Contact Page ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.contact-info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.contact-info-card h3 {
  font-size: 1.15rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.contact-item {
  display: flex;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  align-items: flex-start;
}

.contact-item-icon {
  width: 40px;
  height: 40px;
  background: rgba(10, 77, 140, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}

.contact-item strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}

.contact-item a,
.contact-item span {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.contact-form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.contact-form-card h3 {
  font-size: 1.15rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form .form-group {
  margin-bottom: 1rem;
}

.contact-form label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.3rem;
  display: block;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-submit {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
}

.contact-submit:hover {
  background: var(--primary-dark);
}

/* ===== About Page ===== */
.about-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.about-content h2 {
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
  color: var(--primary);
}

.about-content h2:first-child {
  margin-top: 0;
}

.about-content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.98rem;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.about-value {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.about-value h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: var(--primary);
}

.about-value p {
  font-size: 0.9rem;
  margin: 0;
}

/* ===== Deals / SEO content ===== */
.seo-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.seo-content h2 {
  font-size: 1.4rem;
  margin: 2rem 0 0.75rem;
  color: var(--primary);
}

.seo-content h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.5rem;
  color: var(--text);
}

.seo-content p,
.seo-content li {
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
}

.seo-content ul {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}

.deals-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 1rem;
}

/* Policy links nav */
.policy-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.25rem;
}

.policy-nav a {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
}

.policy-nav a:hover,
.policy-nav a.active {
  background: var(--white);
  color: var(--primary);
}

@media (max-width: 720px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-form .form-row {
    grid-template-columns: 1fr;
  }
}
