/*
styles.css

This file contains shared styling for all pages of the Cheap flights app
website. The goal is to keep the design:
- Clean and modern.
- Easy to read on both mobile and desktop.
- Reusable, with a small set of utility classes instead of one-off rules.
*/

/* Base layout */

:root {
  /* Brand colors derived from icon.png */
  --brand-blue: #2F86F5;
  --brand-blue-dark: #256FCC;
  --brand-blue-light: #76B8FF;
  --surface: #FFFFFF;
  --text: #0F1723;
  --text-on-blue: #FFFFFF;
  --muted: #64748b;
}

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

body.page {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text);
  /* soft gradient using brand colors from icon */
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-light) 100%);
}

a {
  color: var(--brand-blue-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header and navigation */

.page-header {
  background: var(--brand-blue-dark);
  color: var(--text-on-blue);
  position: sticky;
  top: 0;
  z-index: 10;
}

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

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-on-blue);
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.brand-title {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.nav-link {
  color: rgba(255,255,255,0.9);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

.nav-link:hover {
  background-color: rgba(255,255,255,0.08);
  text-decoration: none;
}

.nav-link-active {
  background-color: rgba(255,255,255,0.12);
  color: var(--text-on-blue);
}

/* Main layout */

.page-main {
  padding: 1.5rem 1rem 2.5rem;
}

.page-container {
  max-width: 960px;
  margin: 0 auto;
}

/* Cards */

.card {
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.25);
  padding: 1.75rem 1.5rem;
  margin-bottom: 1.5rem;
}

.card-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr);
  gap: 1.5rem;
  align-items: center;
}

.card-section + .card-section {
  margin-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
  padding-top: 1.25rem;
}

@media (max-width: 720px) {
  .card-hero {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Typography helpers */

.page-title {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  letter-spacing: 0.03em;
}

.page-subtitle {
  margin: 0 0 1rem;
  color: var(--muted);
}

.section-title {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.muted-text {
  color: #94a3b8;
  font-size: 0.9rem;
}

.bullet-list,
.feature-list {
  padding-left: 1.2rem;
  margin: 0.75rem 0 0;
}

.bullet-list li,
.feature-list li {
  margin-bottom: 0.35rem;
}

.contact-block {
  font-weight: 500;
}

/* Hero section */

.card-hero-media {
  display: flex;
  justify-content: center;
}

.hero-icon {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.35);
}

.hero-actions {
  margin-top: 1rem;
}

.app-store-link {
  display: inline-flex;
}

.app-store-badge {
  height: 50px;
  width: auto;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.35);
}

.hero-secondary-links {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.text-link {
  color: var(--brand-blue-dark);
}

.separator-dot {
  margin: 0 0.4rem;
}

/* Forms */

.support-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.form-label {
  font-weight: 500;
  font-size: 0.95rem;
}

.required {
  color: #dc2626;
  font-size: 0.8rem;
}

.optional {
  color: #9ca3af;
  font-size: 0.8rem;
}

.form-input,
.form-textarea {
  border-radius: 0.5rem;
  border: 1px solid #cbd5e1;
  padding: 0.6rem 0.7rem;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--brand-blue-dark);
  box-shadow: 0 0 0 1px rgba(0,127,191,0.18);
}

.form-input-error {
  border-color: #dc2626;
}

.form-error {
  color: #b91c1c;
  font-size: 0.85rem;
  margin: 0;
}

.form-actions {
  margin-top: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: none;
  padding: 0.6rem 1.3rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.15s ease, box-shadow 0.15s ease,
    transform 0.05s ease;
}

.btn-primary {
  background-color: var(--brand-blue-dark);
  color: var(--text-on-blue);
  box-shadow: 0 10px 25px rgba(0,127,191,0.35);
}

.btn-primary:hover {
  background-color: var(--brand-blue);
}

.btn-primary:active {
  transform: translateY(1px);
  box-shadow: 0 6px 16px rgba(0,127,191,0.35);
}

/* Alerts */

.alert {
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  margin: 0 1.5rem 1rem;
  font-size: 0.93rem;
}

.alert-success {
  background-color: #ecfdf3;
  border: 1px solid #22c55e;
  color: #14532d;
}

.alert-error {
  background-color: #fef2f2;
  border: 1px solid #f97373;
  color: #7f1d1d;
}

/* Footer */

.page-footer {
  padding: 0.75rem 1rem 1.5rem;
  color: var(--text-on-blue);
}

.page-footer-inner {
  max-width: 960px;
  margin: 0 auto;
  font-size: 0.9rem;
}

.footer-text {
  margin: 0;
}
/*
  Override brand variables to match updated icon.png.
  Placed here so the change is small and non-destructive: CSS later rules win.
*/
:root {
  --brand-blue: #00AEEF;
  --brand-blue-dark: #007FBF;
  --brand-blue-light: #6FE1FF;
  --surface: #FFFFFF;
  --text: #0F1723;
  --text-on-blue: #FFFFFF;
  --muted: #64748b;
}
