/* =========================================================================
   stayinhostel.com — stylesheet
   Palette: warm cream, deep navy, olive accent, sand highlight
   Type: Playfair Display (display/serif) + Poppins (UI/body)
   ========================================================================= */

/* ---------- Design tokens ---------- */
:root {
  --cream: #F7F3E8;
  --cream-deep: #EFE7D3;
  --navy: #17273D;
  --navy-deep: #0D1926;
  --navy-mid: #1F3448;
  --navy-line: rgba(23, 39, 61, 0.12);
  --olive: #7C8C41;
  --olive-deep: #5E6E31;
  --olive-light: #A6B86B;
  --sand: #EEE3C3;
  --white: #FFFFFF;
  --ink: #17273D;
  --ink-soft: rgba(23, 39, 61, 0.68);
  --ink-faint: rgba(23, 39, 61, 0.46);
  --on-navy: #EDE9DA;
  --on-navy-soft: rgba(237, 233, 218, 0.72);
  --shadow-sm: 0 4px 14px rgba(13, 25, 38, 0.08);
  --shadow-md: 0 14px 34px rgba(13, 25, 38, 0.16);
  --shadow-lg: 0 24px 60px rgba(13, 25, 38, 0.28);
  --radius-pill: 999px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-ui: 'Quicksand', 'Segoe UI', sans-serif;
  --font-light: 'Quicksand', 'Segoe UI', sans-serif;
  --container: 1240px;
  --nav-h: 72px;
  --logo-size: 90px;
  --brand-name-size: clamp(1.2rem, 2vw, 1.6rem);
  --badge-image-size: 44px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.15; }

body {
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: 0.01em;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

p, li, a, input, button, label, select, textarea {
  font-family: var(--font-ui);
  letter-spacing: 0.01em;
}

body, p, li, span {
  font-weight: 500;
}

/* Accessible focus ring, visible on keyboard nav */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--navy);
  color: var(--on-navy);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 999;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), background-color 0.15s var(--ease);
}
.btn-olive {
  background: var(--olive);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-olive:hover { background: var(--olive-deep); }
.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy-line);
}
.btn-outline-navy:hover { border-color: var(--navy); background: rgba(23,39,61,0.04); }
.btn-outline-cream {
  background: transparent;
  color: var(--on-navy);
  border: 1.5px solid rgba(237, 233, 218, 0.4);
}
.btn-outline-cream:hover { border-color: var(--on-navy); background: rgba(237, 233, 218, 0.08); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }

/* =========================================================================
   Header / Navbar
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--cream);
  border-bottom: 1px solid var(--navy-line);
}

.nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: relative;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-brand .brand-mark {
  width: var(--logo-size);
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}
.nav-brand .brand-name {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: var(--brand-name-size);
  color: var(--navy);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav-links a {
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--navy);
  padding: 8px 2px;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--olive);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s var(--ease);
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--olive-deep); }

.nav-auth { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  position: relative;
  z-index: 495;
}
.nav-toggle .bar {
  display: block; width: 22px; height: 2px; background: var(--navy);
  position: relative; transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle .bar::before,
.nav-toggle .bar::after {
  content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: var(--navy);
  transition: transform 0.2s var(--ease), top 0.2s var(--ease);
}
.nav-toggle .bar::before { top: -7px; }
.nav-toggle .bar::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .bar::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar::after { top: 0; transform: rotate(-45deg); }

/* Profile / account menu */
.profile-menu { position: relative; }
.profile-trigger {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 6px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--navy-line);
  background: var(--white);
}
.profile-trigger:hover { border-color: var(--navy); }
.profile-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--olive);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem;
  flex-shrink: 0;
}
.profile-name { font-size: 0.9rem; font-weight: 600; color: var(--navy); }
.profile-caret { width: 12px; height: 12px; color: var(--ink-soft); transition: transform 0.2s var(--ease); }
.profile-trigger[aria-expanded="true"] .profile-caret { transform: rotate(180deg); }

.profile-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 210px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--navy-line);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.16s var(--ease), transform 0.16s var(--ease), visibility 0.16s;
}
.profile-menu.is-open .profile-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.profile-dropdown a,
.profile-dropdown button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 11px 12px; border-radius: var(--radius-sm);
  font-size: 0.92rem; font-weight: 500; text-align: left;
  color: var(--navy);
}
.profile-dropdown a:hover,
.profile-dropdown button:hover { background: var(--cream-deep); }
.profile-dropdown .dropdown-divider { height: 1px; background: var(--navy-line); margin: 6px 4px; }
.profile-dropdown .logout-action { color: #9A4438; }

/* Mobile drawer (nav-links reused inside on small screens) */
.nav-drawer-backdrop {
  position: fixed; inset: 0; background: rgba(13, 25, 38, 0.45);
  opacity: 0; visibility: hidden; transition: opacity 0.22s var(--ease), visibility 0.22s;
  z-index: 480;
}
body.nav-open .nav-drawer-backdrop { opacity: 1; visibility: visible; }

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-deep);
}

.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.6s ease-in-out;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide img,
.hero-slide svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,22,34,0.55) 0%, rgba(11,26,38,0.62) 45%, rgba(9,19,29,0.85) 100%),
    linear-gradient(90deg, rgba(9,19,29,0.78) 0%, rgba(9,19,29,0.28) 55%, rgba(9,19,29,0.1) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: 48px;
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: var(--sand);
  margin-bottom: 18px;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 5vw, 5rem);
  line-height: 0.96;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--white);
  max-width: 17ch;
  margin-bottom: 22px;
}
.hero-title .accent { color: var(--sand); }

.hero-sub {
  font-family: var(--font-light);
  font-weight: 300;
  font-size: clamp(0.9rem, 1.3vw, 1.12rem);
  color: var(--on-navy-soft);
  max-width: 54ch;
  line-height: 1.7;
  letter-spacing: 0.02em;
  margin-bottom: 38px;
}

/* Search card */
.search-card {
  background: var(--white);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: stretch;
  padding: 6px;
  max-width: 620px;
  width: min(100%, 620px);
  gap: 4px;
}
.search-field {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 18px;
  min-width: 0;
  flex: 1.7;
}
.search-field + .search-field { border-left: 1px solid var(--navy-line); }
.search-field label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 2px;
}
.search-field input,
.search-field select {
  border: none;
  background: transparent;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  width: 100%;
  padding: 2px 0;
  appearance: none;
}
.search-field input::placeholder { color: var(--ink-faint); opacity: 1; }
.search-field.select-field { flex: 1.05; }
.search-field.select-field select { font-style: normal; font-weight: 500; font-size: 0.92rem; cursor: pointer; }

.search-submit {
  flex-shrink: 0;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  align-self: center;
  margin-right: 2px;
  transition: background-color 0.15s var(--ease), transform 0.15s var(--ease);
}
.search-submit:hover { background: var(--olive-deep); transform: scale(1.04); }
.search-submit svg { width: 20px; height: 20px; }

.hero-quicklinks {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.hero-quicklinks a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--on-navy-soft);
  padding: 7px 16px;
  border: 1px solid rgba(237, 233, 218, 0.35);
  border-radius: var(--radius-pill);
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease);
}
.hero-quicklinks a:hover { border-color: var(--sand); color: var(--sand); }

.hero-dots {
  position: absolute;
  bottom: 26px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 2;
}
.hero-dots button {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(237, 233, 218, 0.4);
  transition: background-color 0.2s var(--ease), width 0.2s var(--ease);
}
.hero-dots button.is-active { background: var(--sand); width: 22px; border-radius: var(--radius-pill); }

/* =========================================================================
   Page header banner (About / Support)
   ========================================================================= */
.page-header {
  position: relative;
  background: var(--navy-deep);
  color: var(--on-navy);
  padding-block: 96px 72px;
  overflow: hidden;
}
.page-header::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 0%, rgba(124,140,65,0.25), transparent 55%),
              radial-gradient(ellipse at 85% 100%, rgba(124,140,65,0.16), transparent 50%);
}
.page-header .container { position: relative; }
.page-header .page-eyebrow {
  font-family: var(--font-display); font-style: italic; color: var(--sand);
  font-size: 1.05rem; margin-bottom: 14px;
}
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.4vw, 3.1rem);
  max-width: 20ch;
  margin-bottom: 16px;
}
.page-header p {
  max-width: 60ch;
  color: var(--on-navy-soft);
  font-size: 1.05rem;
  line-height: 1.6;
}
.breadcrumbs { display: flex; gap: 8px; font-size: 0.85rem; color: var(--on-navy-soft); margin-bottom: 22px; }
.breadcrumbs a { color: var(--sand); }
.breadcrumbs span { opacity: 0.5; }

/* =========================================================================
   Stats strip
   ========================================================================= */
.stats {
  background: var(--navy-deep);
  color: var(--on-navy);
  padding-block: 4px;
}
.stats .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.stat-item {
  padding: 10px 28px;
  text-align: left;
  border-left: 1px solid rgba(237, 233, 218, 0.16);
}
.stat-item:first-child { border-left: none; padding-left: 0; }
.stat-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 3.4vw, 2.7rem);
  color: var(--sand);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label { font-size: 0.94rem; color: var(--on-navy-soft); max-width: 22ch; }

/* =========================================================================
   Problem-solving section
   ========================================================================= */
.problem-section { padding-block: 108px; }
.problem-grid {
  display: grid;
  grid-template-columns: 0.92fr 1fr;
  gap: 72px;
  align-items: center;
}
.problem-media { position: relative; }
.city-photo-card {
  width: 100%;
  min-height: 440px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  background: var(--navy-deep);
}
.city-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.problem-media .media-badge {
  position: absolute;
  bottom: -22px; left: -22px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 16px 20px;
  display: flex; align-items: center; gap: 12px;
  max-width: 240px;
}
.media-badge .badge-image {
  width: var(--badge-image-size);
  height: var(--badge-image-size);
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(23,39,61,0.06);
}
.media-badge strong { display: block; font-size: 0.92rem; color: var(--navy); }
.media-badge span { font-size: 0.8rem; color: var(--ink-soft); }

.section-eyebrow {
  font-family: var(--font-display); font-style: italic; color: var(--olive-deep);
  font-size: 1.05rem; margin-bottom: 14px;
}
.problem-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  margin-bottom: 20px;
  max-width: 15ch;
}
.problem-copy p { color: var(--ink-soft); font-size: 1.03rem; line-height: 1.7; margin-bottom: 18px; max-width: 52ch; }
.problem-list { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
.problem-list li {
  display: flex; gap: 14px; align-items: flex-start;
  font-size: 0.98rem; color: var(--ink);
}
.problem-list .check {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  background: var(--olive); color: var(--white);
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
.problem-list .check svg { width: 12px; height: 12px; }

/* =========================================================================
   How it works
   ========================================================================= */
.how-section { padding-block: 108px; background: var(--cream-deep); }
.how-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 48px; flex-wrap: wrap;
}
.how-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  max-width: 16ch;
}
.how-tabs {
  display: inline-flex;
  background: var(--white);
  padding: 5px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  gap: 4px;
}
.how-tabs button {
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem; font-weight: 600;
  color: var(--ink-soft);
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease);
}
.how-tabs button[aria-selected="true"] { background: var(--navy); color: var(--white); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.step-panel[hidden] { display: none; }
.step-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  position: relative;
  border: 1px solid var(--navy-line);
}
.step-number {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--cream-deep);
  -webkit-text-stroke: 1.5px var(--olive-light);
  line-height: 1;
  margin-bottom: 18px;
}
.step-card h3 { font-size: 1.12rem; margin-bottom: 10px; color: var(--navy); }
.step-card p { font-size: 0.94rem; color: var(--ink-soft); line-height: 1.6; }

/* =========================================================================
   CTA band
   ========================================================================= */
.cta-band {
  background: var(--olive);
  color: var(--white);
  padding-block: 64px;
}
.cta-band .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.cta-band h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 2.8vw, 2.15rem); max-width: 18ch; }
.cta-band p { color: rgba(255,255,255,0.85); margin-top: 8px; max-width: 42ch; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-band .btn-olive { background: var(--navy); }
.cta-band .btn-olive:hover { background: var(--navy-deep); }

/* =========================================================================
   About page — extra sections
   ========================================================================= */
.mission-section { padding-block: 108px; }
.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.mission-grid h2 { font-family: var(--font-display); font-size: clamp(1.9rem, 3.2vw, 2.4rem); margin-bottom: 20px; max-width: 14ch; }
.mission-grid p { color: var(--ink-soft); line-height: 1.75; font-size: 1.02rem; margin-bottom: 16px; max-width: 54ch; }

.values-section { padding-block: 108px; background: var(--navy-deep); color: var(--on-navy); }
.values-section .section-eyebrow { color: var(--sand); }
.values-section h2 { font-family: var(--font-display); font-size: clamp(1.9rem, 3.2vw, 2.4rem); max-width: 16ch; margin-bottom: 48px; }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.value-card { padding: 4px; }
.value-card .value-icon {
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(237,233,218,0.1); color: var(--sand);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.value-card .value-icon svg { width: 22px; height: 22px; }
.value-card h3 { font-size: 1.04rem; margin-bottom: 8px; }
.value-card p { font-size: 0.9rem; color: var(--on-navy-soft); line-height: 1.6; }

.timeline-section { padding-block: 108px; }
.timeline-section h2 { font-family: var(--font-display); font-size: clamp(1.9rem, 3.2vw, 2.4rem); margin-bottom: 48px; max-width: 16ch; }
.timeline { display: flex; flex-direction: column; }
.timeline-row {
  display: grid; grid-template-columns: 120px 1fr; gap: 28px;
  padding-block: 26px; border-top: 1px solid var(--navy-line);
}
.timeline-row:last-child { border-bottom: 1px solid var(--navy-line); }
.timeline-year { font-family: var(--font-display); font-size: 1.3rem; color: var(--olive-deep); }
.timeline-row h3 { font-size: 1.02rem; margin-bottom: 6px; }
.timeline-row p { color: var(--ink-soft); font-size: 0.95rem; max-width: 60ch; line-height: 1.6; }

/* =========================================================================
   Contact page — extra sections
   ========================================================================= */
.contact-section { padding-block: 96px; }
.contact-grid { display: grid; grid-template-columns: 0.85fr 1fr; gap: 60px; align-items: flex-start; }

.contact-cards { display: flex; flex-direction: column; gap: 18px; }
.contact-card {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--navy-line);
  border-radius: var(--radius-md); padding: 22px;
}
.contact-card .card-icon {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  background: var(--cream-deep); color: var(--olive-deep);
  display: flex; align-items: center; justify-content: center;
}
.contact-card .card-icon svg { width: 20px; height: 20px; }
.contact-card h3 { font-size: 1rem; margin-bottom: 4px; }
.contact-card p, .contact-card a { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.55; }
.contact-card a:hover { color: var(--olive-deep); }

.contact-form {
  background: var(--white); border: 1px solid var(--navy-line);
  border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-sm);
}
.contact-form h2 { font-family: var(--font-display); font-size: 1.7rem; margin-bottom: 6px; }
.contact-form > p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; color: var(--navy); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--navy-line);
  border-radius: var(--radius-sm);
  background: var(--cream);
  font-size: 0.95rem;
  transition: border-color 0.15s var(--ease);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--olive); outline: none; }
.form-field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.82rem; color: var(--ink-faint); margin-top: 4px; }

.faq-section { padding-block: 96px; background: var(--cream-deep); }
.faq-section h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.3rem); margin-bottom: 40px; max-width: 16ch; }
.faq-list { display: flex; flex-direction: column; gap: 2px; max-width: 780px; }
.faq-item { background: var(--white); border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--navy-line); }
.faq-item + .faq-item { margin-top: 10px; }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; font-weight: 600; font-size: 0.98rem; text-align: left;
}
.faq-question svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform 0.2s var(--ease); }
.faq-item.is-open .faq-question svg { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.25s var(--ease); }
.faq-item.is-open .faq-answer { max-height: 240px; }
.faq-answer p { padding: 0 24px 20px; color: var(--ink-soft); font-size: 0.93rem; line-height: 1.6; }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer { background: var(--navy-deep); color: var(--on-navy-soft); }
.footer-main { padding-block: 76px 48px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 48px;
}
.footer-brand .nav-brand .brand-name { color: var(--white); }
.footer-brand p { margin-top: 16px; font-size: 0.92rem; line-height: 1.65; max-width: 34ch; color: var(--on-navy-soft); }
.footer-social { display: flex; gap: 10px; margin-top: 22px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(237,233,218,0.25);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.15s var(--ease), background-color 0.15s var(--ease);
}
.footer-social a svg { width: 16px; height: 16px; }
.footer-social a:hover { border-color: var(--sand); background: rgba(237,233,218,0.08); }

.footer-col h4 { font-size: 0.85rem; letter-spacing: 0.01em; color: var(--white); margin-bottom: 18px; font-weight: 600; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 0.92rem; transition: color 0.15s var(--ease); }
.footer-col a:hover { color: var(--sand); }

.footer-newsletter form { display: flex; margin-top: 14px; border-bottom: 1px solid rgba(237,233,218,0.3); padding-bottom: 10px; }
.footer-newsletter input {
  background: transparent; border: none; flex: 1; color: var(--white); font-size: 0.9rem; padding: 6px 0;
}
.footer-newsletter input::placeholder { color: rgba(237,233,218,0.5); }
.footer-newsletter button { color: var(--sand); font-weight: 600; font-size: 0.85rem; flex-shrink: 0; }

.footer-bottom {
  border-top: 1px solid rgba(237,233,218,0.14);
  padding-block: 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 0.85rem; color: var(--on-navy-soft);
}
.footer-bottom .footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--sand); }

/* =========================================================================
   Responsive
   ========================================================================= */

/* Ultra-wide screens: cap effective reading width, add breathing room */
@media (min-width: 1600px) {
  :root { --container: 1400px; }
  .hero-title { max-width: 18ch; }
}

/* Laptops / small desktop */
@media (max-width: 1180px) {
  .nav-links { gap: 28px; }
  .problem-grid { gap: 48px; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Tablets */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-col.footer-newsletter { grid-column: 1 / -1; max-width: 360px; }
  .problem-grid { grid-template-columns: 1fr; }
  .problem-media { order: -1; max-width: 520px; }
  .mission-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
}

/* Nav collapses to drawer below this point */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; order: 3; }
  .nav {
    justify-content: space-between;
  }
  .nav-brand { order: 1; }
  .nav-auth { order: 2; margin-left: 0; }
  .nav-links {
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    width: min(320px, 86vw);
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 92px 24px 28px;
    transform: translateX(-100%);
    transition: transform 0.28s var(--ease);
    z-index: 490;
    margin: 0;
    left: 0;
  }
  body.nav-open .nav-links { transform: translateX(0); }
  .nav-links a { width: 100%; padding: 14px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--navy-line); }
  .nav-links a::after { display: none; }
  .profile-name { display: none; }
  .stats .container { grid-template-columns: 1fr; gap: 20px; }
  .stat-item { border-left: none; border-top: 1px solid rgba(237,233,218,0.16); padding: 20px 0 0; }
  .stat-item:first-child { border-top: none; padding-top: 0; }
}

/* Phones / small tablets */
@media (max-width: 760px) {
  .container { padding-inline: 18px; }
  .hero {
    min-height: 100vh;
    background:
      linear-gradient(180deg, rgba(10,22,34,0.68) 0%, rgba(11,26,38,0.72) 45%, rgba(9,19,29,0.86) 100%),
      linear-gradient(120deg, #182d45 0%, #314b59 36%, #172a38 100%);
  }
  .hero-slide { display: none; }
  .hero-content { padding-block: 32px; }
  .hero-title {
    max-width: none;
    letter-spacing: 0.02em;
  }
  .hero-sub {
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
  .search-card {
    flex-direction: column;
    border-radius: var(--radius-md);
    padding: 10px;
    gap: 2px;
    width: 100%;
    max-width: none;
  }
  .search-field + .search-field { border-left: none; border-top: 1px solid var(--navy-line); }
  .search-field { padding: 12px 14px; }
  .search-submit { width: 100%; height: 48px; border-radius: var(--radius-sm); margin: 4px 0 0; }
  .hero-quicklinks { display: none; }

  .how-head { flex-direction: column; align-items: flex-start; }
  .steps-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 26px; }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .cta-band .container { flex-direction: column; align-items: flex-start; }

  .page-header { padding-block: 76px 52px; }
  .timeline-row { grid-template-columns: 1fr; gap: 6px; }
}

/* Small phones: keep logo + hamburger + auth CTA from colliding */
@media (max-width: 520px) {
  .nav { gap: 8px; }
  .nav-brand { gap: 7px; }
  .nav-brand .brand-mark { width: 30px; height: 24px; }
  .nav-brand .brand-name { font-size: 0.95rem; }
  .nav-auth { margin-left: auto; }
  .nav-toggle { width: 34px; height: 34px; }
  .nav-auth .btn { padding: 9px 14px; font-size: 0.8rem; }
  .profile-trigger { padding: 5px 10px 5px 5px; }
  .nav-brand { flex: 1; min-width: 0; }
  .nav-brand .brand-name { max-width: 140px; }
  .nav-toggle { margin-left: auto; }
}

/* Foldables / very small phones */
@media (max-width: 360px) {
  .nav-brand .brand-name { font-size: 0.92rem; }
  .hero-title { font-size: 2rem; }
}
