@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;700&family=DM+Sans:wght@400;500&family=JetBrains+Mono:wght@400&display=swap');

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }

/* ── Design Tokens ─────────────────────────────────────────────── */
:root {
  --navy:        #1B3A6B;
  --sky:         #0EA5E9;
  --dark:        #0F2044;
  --light-bg:    #F0F4FA;
  --white:       #FFFFFF;
  --muted:       rgba(255,255,255,0.65);
  --teal:        #0D9488;

  --radius-card: 1rem;
  --radius-pill: 9999px;
  --shadow-card: 0 4px 24px rgba(0,0,0,0.18);
  --shadow-deep: 0 8px 48px rgba(0,0,0,0.28);

  --font-head:   'Barlow Condensed', sans-serif;
  --font-body:   'DM Sans', sans-serif;
  --font-mono:   'JetBrains Mono', monospace;
}

/* ── Base ──────────────────────────────────────────────────────── */
body {
  font-family: var(--font-body);
  color: #1a1a1a;
  background: var(--white);
  padding-bottom: 4.5rem;
}

/* ── Utilities ─────────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section-label {
  display: block;
  color: var(--sky);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.pill-btn {
  display: inline-block;
  background: var(--sky);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.75rem 2rem;
  cursor: pointer;
  transition: filter 200ms, transform 100ms;
}
.pill-btn:hover {
  filter: brightness(1.12);
}
.pill-btn:active {
  transform: scale(0.96);
}

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease-out, transform 600ms ease-out;
  will-change: opacity, transform;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.check-item {
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
  align-items: flex-start;
  font-family: var(--font-body);
  font-size: 16px;
}

/* ── Ticker ────────────────────────────────────────────────────── */
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-wrap {
  overflow: hidden;
  white-space: nowrap;
}
.ticker-inner {
  display: flex;
  width: max-content;
  animation: ticker 56s linear infinite;
  will-change: transform;
}

/* ── Card hover ────────────────────────────────────────────────── */
.card {
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-deep);
}

/* ── Mobile Floating CTA Bar ──────────────────────────────────── */
.mobile-cta-bar {
  display: none;
  position: fixed;
  color: var(--white);
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: linear-gradient(to right, var(--dark), var(--navy));
  border-top: 1px solid var(--sky);
}

.mobile-cta-bar .mobile-apply-btn {
  white-space: nowrap;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.6; transform: scale(1.4); }
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
  animation: pulse-dot 1.5s ease-in-out infinite;
}

@media (max-width: 767px) {
  .mobile-cta-bar { display: flex; }
}
@media (min-width: 768px) {
  body { padding-bottom: 0; }
}

/* ══════════════════════════════════════════════════════════════════
   SECTION LAYOUTS (Task 3)
   ══════════════════════════════════════════════════════════════════ */

/* ── Navbar ────────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--navy);
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nav-brand img {
  height: 56px;
  width: auto;
}
.nav-wordmark {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 22px;
  color: var(--white);
  line-height: 1.1;
}
.nav-tagline {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--muted);
  line-height: 1.2;
}
.nav-cta {
  display: none;
}
@media (min-width: 768px) {
  .nav-cta { display: inline-block; }
}

/* ── Hero Pills Bar ────────────────────────────────────────────── */
.hero-pills-bar {
  background: var(--white);
  padding: 1rem 0;
}
.hero-pills-bar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.hero-pills-bar .hero-badges,
.hero-pills-bar .hero-tags {
  margin-bottom: 0;
}
.hero-pills-bar .hero-tag {
  background: rgba(27,58,107,0.08);
  color: var(--navy);
}

/* ── Hero ──────────────────────────────────────────────────────── */
#hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--dark) 100%);
  padding: 3rem 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
.hero-text h1 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1rem;
}
.hero-text .hero-sub {
  font-family: var(--font-body);
  font-size: 1.25rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.hero-text .hero-sub .highlight {
  color: var(--sky);
  font-weight: 500;
}
.hero-text .hero-body {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.hero-badge {
  display: inline-block;
  background: rgba(14,165,233,0.15);
  color: var(--sky);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.04em;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.8rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
}
.hero-services {
  list-style: none;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.hero-services .check-item {
  color: var(--white);
}
.hero-services .check-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--teal);
}
.hero-cta {
  font-size: 1.05rem;
  padding: 0.85rem 2.25rem;
}
.hero-trust {
  margin-top: 1rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--muted);
}
.hero-img {
  filter: drop-shadow(0 8px 32px rgba(0,0,0,0.3));
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
}
@media (min-width: 768px) {
  #hero { padding: 5rem 0; }
  .hero-grid { grid-template-columns: 60% 40%; }
  .hero-text h1 { font-size: 3.25rem; }
}

/* ── Ticker ────────────────────────────────────────────────────── */
.ticker {
  background: var(--navy);
  overflow: hidden;
  padding: 0.75rem 0;
}
.ticker-item {
  font-family: var(--font-head);
  font-size: 14px;
  text-transform: uppercase;
  color: var(--white);
  white-space: nowrap;
  padding: 0 1rem;
}
.ticker-sep {
  color: var(--sky);
  padding: 0 0.5rem;
}

/* ── Benefits ──────────────────────────────────────────────────── */
#benefits {
  background: var(--light-bg);
  padding: 5rem 0;
}
#benefits h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.75rem;
  color: #1a1a1a;
  margin-bottom: 2rem;
}
.benefits-img {
  display: block;
  margin: 0 auto 3rem;
  max-width: 860px;
  width: 100%;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.card {
  background: var(--dark);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  border: 1px solid rgba(14,165,233,0.15);
}
.card-emoji {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}
.card-title {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.card-sub {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(255,255,255,0.75);
}
@media (min-width: 640px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Requirements ──────────────────────────────────────────────── */
#requirements {
  background: var(--white);
  padding: 5rem 0;
}
#requirements h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.75rem;
  color: #1a1a1a;
  margin-bottom: 1.5rem;
}
.req-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
.req-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}
.req-checklist .check-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--teal);
}
.req-text p {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #4b5563;
  line-height: 1.6;
}
.req-img {
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  width: 100%;
  max-width: none;
}
@media (min-width: 768px) {
  .req-grid { grid-template-columns: 55% 45%; }
}

/* ── Stats ─────────────────────────────────────────────────────── */
#stats {
  background: var(--dark);
  padding: 4rem 0;
}
.stats-row {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.stat-block {
  text-align: center;
  padding: 2rem 3rem;
}
.stat-number {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 400;
  color: var(--sky);
  display: block;
}
.stat-label {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--white);
  margin-top: 0.5rem;
  display: block;
}
@media (min-width: 768px) {
  .stats-row {
    flex-direction: row;
    justify-content: center;
  }
  .stat-block + .stat-block {
    border-left: 1px solid rgba(255,255,255,0.12);
  }
  .stat-number { font-size: 56px; }
}

/* ── How It Works ──────────────────────────────────────────────── */
#how-it-works {
  background: var(--white);
  padding: 5rem 0;
  text-align: center;
}
#how-it-works h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.75rem;
  color: #1a1a1a;
  margin-bottom: 1.5rem;
}
.hiw-img {
  display: block;
  margin: 0 auto 3rem;
  max-width: 860px;
  width: 100%;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.hiw-checklist {
  max-width: 480px;
  margin: 2rem auto;
  text-align: left;
}
#how-it-works .check-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 420px;
  margin: 0 auto 0.75rem;
  font-family: var(--font-body);
  font-size: 16px;
  color: #1a1a1a;
}
#how-it-works .check-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background-color: var(--teal);
  border-radius: 50%;
  color: var(--white);
}
#how-it-works .check-icon circle {
  display: none;
}
.hiw-intro {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #374151;
  margin-bottom: 1rem;
}
.hiw-cta {
  margin-top: 2rem;
}

/* ── Booking Banner ────────────────────────────────────────────── */
.booking-banner {
  background: var(--dark);
  padding: 2.5rem 0;
  text-align: center;
}
.booking-banner .banner-line1 {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--white);
}
.booking-banner .banner-line2 {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--muted);
  margin-top: 0.5rem;
}

/* ── Apply Form ────────────────────────────────────────────────── */
#apply-form {
  background: linear-gradient(180deg, var(--dark) 0%, var(--navy) 100%);
  padding: 5rem 0;
}
.form-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 2.5rem;
  max-width: 520px;
  margin: 0 auto;
  box-shadow: var(--shadow-deep);
}
.form-card h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 28px;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.form-card > p {
  font-family: var(--font-body);
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 1.5rem;
}
.form-field {
  margin-bottom: 1.25rem;
}
.form-field label {
  display: block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.375rem;
}
.form-field input,
.form-field select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: #1a1a1a;
  background: var(--white);
  transition: outline 150ms, border-color 150ms;
}
.form-field input:focus,
.form-field select:focus {
  outline: 2px solid var(--sky);
  border-color: transparent;
}
.submit-btn {
  width: 100%;
  padding: 0.85rem;
  font-size: 1.05rem;
  margin-top: 0.5rem;
}
.success-state {
  display: none;
  text-align: center;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 500ms ease, transform 500ms ease;
}
.success-state.visible {
  opacity: 1;
  transform: translateY(0);
}
.success-state h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 24px;
  color: var(--navy);
  margin-top: 1rem;
}
.success-state p {
  font-family: var(--font-body);
  font-size: 14px;
  color: #6b7280;
  margin-top: 0.5rem;
}
@media (max-width: 576px) {
  .form-card {
    margin: 0 1rem;
    padding: 1.75rem;
  }
}

/* ── Footer ────────────────────────────────────────────────────── */
footer {
  background: var(--dark);
  padding: 2.5rem 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.footer-brand img {
  height: 40px;
  width: auto;
}
.footer-wordmark {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
}
.footer-tagline {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--muted);
}
.footer-right {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.8;
}
.footer-right a {
  color: var(--sky);
  text-decoration: none;
}
.footer-right a:hover {
  text-decoration: underline;
}
@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
}
