/* JBooks landing — navy, white, teal accent */

:root {
  --navy: #002d72;
  --navy-dark: #001a44;
  --teal: #0a7c86;
  --teal-hover: #09656d;
  --text: #3d4454;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --footer-bg: #f3f4f6;
  --icon-circle: #e0f2fe;
  --shadow-card: 0 12px 40px rgba(0, 45, 114, 0.12);
  --radius: 12px;
  --radius-pill: 999px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --max-w: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: #fff;
}

.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;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.scroll-anchor {
  scroll-margin-top: 88px;
  height: 0;
  overflow: hidden;
}

.icon-flight {
  display: block;
  fill: currentColor;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

/* Landing — hero image through header (full artwork visible) */
.page-landing .landing-hero-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 1448 / 1086;
  overflow: hidden;
}

.page-landing .landing-hero-shell .hero-bg,
.page-landing .landing-hero-shell .hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-landing .landing-hero-shell .hero-bg {
  background-image: url("../assets/images/jbooks-landing-page.png");
  background-size: 100% 100%;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #e8c9a8;
}

.page-landing .landing-hero-shell .hero-overlay {
  background: linear-gradient(
    105deg,
    rgba(0, 26, 68, 0.42) 0%,
    rgba(0, 26, 68, 0.28) 35%,
    rgba(0, 45, 114, 0.12) 55%,
    rgba(255, 255, 255, 0.08) 100%
  );
}

.page-landing .site-header--landing {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  background: transparent;
  border-bottom: none;
}

/* Header — readable on busy hero artwork */
.page-landing .site-header--landing .logo--header .logo-img {
  filter:
    drop-shadow(-1px -1px 0 #fff)
    drop-shadow(1px -1px 0 #fff)
    drop-shadow(-1px 1px 0 #fff)
    drop-shadow(1px 1px 0 #fff);
}

.page-landing .site-header--landing .btn-login-link,
.page-landing .site-header--landing .btn-account {
  color: #fff;
  border: 2px solid #fff;
}

.page-landing .site-header--landing .btn-login-link {
  background: rgba(255, 255, 255, 0.08);
}

.page-landing .site-header--landing .btn-login-link:hover {
  color: var(--navy);
  background: #fff;
  border-color: #fff;
}

.page-landing .site-header--landing .btn-account {
  background: rgba(255, 255, 255, 0.18);
}

.page-landing .site-header--landing .btn-account:hover {
  color: var(--navy);
  background: #fff;
  border-color: #fff;
}

.page-landing .logo--header .logo-img {
  --logo-height: 3.85rem;
  --logo-max-width: min(260px, 58vw);
}

@media (min-width: 768px) {
  .page-landing .logo--header .logo-img {
    --logo-height: 4.5rem;
    --logo-max-width: 300px;
  }

  .page-landing .site-header--landing .header-inner {
    min-height: 88px;
  }
}

.page-landing .landing-hero-shell .hero {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
  padding-top: 5.5rem;
  padding-bottom: 2rem;
  pointer-events: none;
}

.page-landing .landing-hero-shell .hero-content {
  pointer-events: auto;
}

/* Hero copy — readable on busy artwork (no background panel) */
.page-landing .hero-title {
  color: #fff;
  text-shadow:
    0 0 24px rgba(0, 26, 68, 0.85),
    0 2px 4px rgba(0, 0, 0, 0.9),
    0 4px 20px rgba(0, 0, 0, 0.65);
}

.page-landing .hero-subtitle {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.65;
  text-shadow:
    0 0 18px rgba(0, 26, 68, 0.8),
    0 1px 3px rgba(0, 0, 0, 0.85),
    0 3px 14px rgba(0, 0, 0, 0.55);
}

.page-landing .hero-badge {
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.page-landing .landing-main {
  background: #fff;
  position: relative;
  z-index: 1;
}

.page-landing .features,
.page-landing .journey {
  background: #fff;
}

.page-landing .site-footer {
  position: relative;
  z-index: 2;
  background: var(--footer-bg);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 767px) {
  .header-inner {
    padding-bottom: 0.5rem;
  }

  .nav-main {
    display: flex;
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 1.25rem;
    padding-top: 0.65rem;
    border-top: 1px solid var(--border);
    position: static;
    transform: none;
  }
}

/* Logo image styles live in css/brand.css */

.nav-main {
  display: flex;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .header-inner {
    flex-wrap: nowrap;
  }

  .nav-main {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

.nav-main a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-main a:hover {
  color: var(--navy);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.header-greeting {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}

.btn-login-link {
  padding: 0.55rem 1.25rem;
  color: var(--navy);
  background: transparent;
  border: 2px solid transparent;
  font-weight: 600;
}

.btn-login-link:hover {
  color: var(--navy-dark);
}

.btn-account {
  padding: 0.55rem 1.25rem;
  color: var(--navy);
  background: transparent;
  border: 2px solid var(--navy);
}

.btn-account:hover {
  background: var(--navy);
  color: #fff;
}

/* Hero */
.hero {
  position: relative;
  min-height: 560px;
  padding-bottom: 7rem;
  display: flex;
  flex-direction: column;
}

@media (min-width: 900px) {
  .hero {
    min-height: 620px;
    padding-bottom: 8.5rem;
  }
}

.hero-bg {
  background-color: var(--navy-dark);
  background-image: url("../assets/images/jbooks-landing-page.png");
  background-size: cover;
  background-position: center top;
}

.hero-overlay {
  background: linear-gradient(
    180deg,
    rgba(0, 26, 68, 0.35) 0%,
    rgba(0, 45, 114, 0.25) 35%,
    rgba(248, 250, 252, 0.15) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 3rem;
  max-width: 36rem;
}

@media (min-width: 900px) {
  .hero-content {
    padding-top: 4.5rem;
  }
}

.hero-badge {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.4rem 0.85rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--navy);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  margin: 0;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 32rem;
}

.hero-search-wrap {
  position: relative;
  z-index: 2;
  margin-top: auto;
  transform: translateY(50%);
}

@media (min-width: 900px) {
  .hero-search-wrap {
    transform: translateY(45%);
  }
}

/* Search card */
.search-card {
  display: grid;
  gap: 0;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  overflow: hidden;
}

@media (min-width: 900px) {
  .search-card {
    grid-template-columns: 1fr 1fr 1fr auto;
    align-items: stretch;
  }
}

.search-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 900px) {
  .search-field {
    border-bottom: none;
    border-right: 1px solid var(--border);
  }
}

.search-field:last-of-type {
  border-bottom: 1px solid var(--border);
}

@media (min-width: 900px) {
  .search-field:last-of-type {
    border-bottom: none;
  }
}

.search-field-icon {
  flex-shrink: 0;
  color: var(--navy);
  opacity: 0.85;
}

.search-field-label {
  position: absolute;
  left: 3.25rem;
  top: 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  flex: 1;
  min-width: 0;
  margin-top: 0.85rem;
  padding: 0.15rem 0;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  color: var(--navy);
  background: transparent;
}

.search-input::placeholder {
  color: #9ca3af;
}

.search-input:focus {
  outline: none;
}

.search-input-date {
  color-scheme: light;
}

.btn-search {
  padding: 1.15rem 1.5rem;
  margin: 0;
  border: none;
  background: var(--navy);
  color: #fff;
  font-size: 0.95rem;
  white-space: nowrap;
}

.btn-search:hover {
  background: var(--navy-dark);
}

@media (max-width: 899px) {
  .btn-search {
    width: 100%;
    border-radius: 0;
  }
}

/* Features */
.section {
  padding: 5rem 0 4rem;
}

.features {
  padding-top: 6.5rem;
}

@media (min-width: 900px) {
  .features {
    padding-top: 7.5rem;
  }
}

.section-title {
  margin: 0 0 0.75rem;
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.section-lead {
  margin: 0 auto 2.5rem;
  max-width: 36rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.feature-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.feature-card {
  position: relative;
  padding: 1.75rem 1.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow 0.2s;
}

.feature-card:hover {
  box-shadow: 0 8px 24px rgba(0, 45, 114, 0.08);
}

.feature-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--navy);
  border: 1px solid #bae6fd;
  background: #f0f9ff;
  border-radius: 6px;
}

.feature-icon-wrap {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background: var(--icon-circle);
  border-radius: 50%;
  color: var(--navy);
}

.feature-title {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
}

.feature-text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.feature-card--highlight {
  padding-top: 2.5rem;
}

/* Journey two-column */
.journey {
  padding-top: 3rem;
}

.journey-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .journey-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }
}

.journey-image {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background-color: var(--navy-dark);
  background-image: url("https://images.unsplash.com/photo-1436491865332-7a61a109cc05?auto=format&fit=crop&w=1200&q=80");
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-card);
}

.journey-title {
  margin: 0 0 1rem;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.journey-desc {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 1.02rem;
}

.journey-list {
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
}

.journey-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  font-size: 0.98rem;
  color: var(--text);
}

.journey-check {
  flex-shrink: 0;
  color: var(--navy);
  margin-top: 2px;
}

.btn-teal {
  padding: 0.85rem 1.5rem;
  background: var(--teal);
  color: #fff;
  border: none;
}

.btn-teal:hover {
  background: var(--teal-hover);
}

/* Footer */
.site-footer {
  background: var(--footer-bg);
  padding: 3rem 0 0;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 2rem;
  }
}

.footer-brand .logo {
  display: inline-block;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 16rem;
}

.footer-heading {
  margin: 0 0 0.85rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: var(--navy);
}

.footer-col li + li {
  margin-top: 0.5rem;
}

.newsletter-form {
  display: flex;
  gap: 0;
  max-width: 100%;
}

.newsletter-form input {
  flex: 1;
  min-width: 0;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 6px 0 0 6px;
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
}

.newsletter-form input::placeholder {
  color: #9ca3af;
}

.newsletter-form input:focus {
  outline: 2px solid rgba(0, 45, 114, 0.2);
  outline-offset: 0;
  z-index: 1;
}

.btn-newsletter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  flex-shrink: 0;
  border: none;
  background: var(--navy);
  color: #fff;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-newsletter:hover {
  background: var(--navy-dark);
}

.footer-bar {
  border-top: 1px solid var(--border);
  padding: 1rem 0 1.5rem;
}

.footer-bar p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}
