/* =====================================================================
   Fiction Bank — Landing page styles
   ===================================================================== */

/* ------------------------------ Header ------------------------------ */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

/* Top utility bar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  gap: 16px;
}

.segments { display: flex; gap: 22px; }
.segments a {
  color: var(--text);
  font-size: .9rem;
  padding: 4px 0 8px;
  border-bottom: 3px solid transparent;
}
.segments a.is-active { font-weight: 700; border-bottom-color: var(--brand); }
.segments a:hover { text-decoration: none; color: var(--brand); }

.utilities {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: .9rem;
}
.utilities a, .utilities button {
  color: var(--text);
  background: none;
  border: 0;
  font-size: .9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.utilities a:hover { color: var(--brand); text-decoration: none; }
.icon-btn { padding: 4px; border-radius: 50%; }
.icon-btn:hover { background: #e8f0f5; }

/* Language toggle (styled like a utility link) */
.lang-toggle { cursor: pointer; }
.lang-toggle:hover { color: var(--brand); text-decoration: underline; }

/* Customer-service dropdown */
.dropdown { position: relative; }
.dropdown__btn { cursor: pointer; }
.dropdown__btn .caret { font-size: .8rem; transition: transform .15s ease; }
.dropdown.is-open .dropdown__btn .caret { transform: rotate(180deg); }
.dropdown__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-card);
  list-style: none;
  margin: 0;
  padding: 6px 0;
  display: none;
  z-index: 60;
}
.dropdown.is-open .dropdown__menu { display: block; }
.utilities .dropdown__menu a {
  display: block;
  padding: 10px 16px;
  color: var(--text);
  font-size: .9rem;
}
.utilities .dropdown__menu a:hover { background: #eef4fc; color: var(--brand); text-decoration: none; }

/* Brand row */
.brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0 6px;
}
.brand-row .brand { color: var(--brand-dark); font-size: 1.05rem; }

/* Primary navigation */
.mainnav { display: flex; align-items: center; flex: 1; min-width: 0; }
.mainnav__list {
  list-style: none;
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 6px 0 0;
  flex-wrap: nowrap;
}
.mainnav__list a {
  color: var(--text);
  font-size: .9rem;
  padding: 6px 0 12px;
  border-bottom: 3px solid transparent;
  display: inline-block;
  white-space: nowrap;
}
.mainnav__list a.is-active { color: var(--brand); border-bottom-color: var(--brand); }
.mainnav__list a:hover { color: var(--brand); text-decoration: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 8px 10px;
  align-items: center;
  gap: 8px;
  color: var(--brand-dark);
  font-weight: 600;
}
.nav-toggle .bars { display: inline-block; width: 18px; height: 2px; background: currentColor; position: relative; }
.nav-toggle .bars::before, .nav-toggle .bars::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor;
}
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after { top: 6px; }

/* ------------------------------- Hero ------------------------------- */

/* ---------------------------------------------------------------------
   BACKGROUND PHOTO BEHIND THE HERO (landing page)
   To use your own photo: drop it in /assets (e.g. assets/hero-bg.jpg)
   and change the line below to:
       --hero-bg-image: url("../assets/hero-bg.jpg");
   Recommended: landscape ~1920 × 900 px, JPG, under ~500 KB.
   Leave it as "none" to keep the painted gradient background.
   --------------------------------------------------------------------- */
:root { --hero-bg-image: url("../assets/hero-bg.png"); }

.hero {
  position: relative;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(8,28,56,.45) 0%, rgba(8,28,56,.60) 100%),
    var(--hero-bg-image),
    linear-gradient(120deg, #2a4d6e 0%, #486f88 38%, #b78e63 78%, #d9b483 100%);
  background-size: cover, cover, cover;
  background-position: center, center, center;
  background-repeat: no-repeat, no-repeat, no-repeat;
  overflow: hidden;
}
.hero::after {
  /* soft sun glow lower-left to evoke a sunlit patio */
  content: "";
  position: absolute;
  left: -10%; bottom: -30%;
  width: 60%; height: 120%;
  background: radial-gradient(closest-side, rgba(255, 225, 170, .35), transparent);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: center;
  padding: 56px 0 70px;
  position: relative;
  z-index: 1;
}

.hero__offer { max-width: 560px; }

.offer-badge {
  display: inline-block;
  background: #f2c200;
  color: #2b2300;
  font-weight: 800;
  font-size: 0.74rem;
  align-items: center;
  justify-content: center;
  letter-spacing: .08em;
  padding: 6px 14px;
  border-radius: 2px;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.offer-layout { display: flex; gap: 26px; align-items: flex-start; }

.offer-text h1 {
  font-size: 2.5rem;
  line-height: 1.1;
  margin: 0 0 14px;
  font-weight: 800;
  text-shadow: 0 1px 8px rgba(0,0,0,.25);
}
.offer-text .strike { text-decoration: line-through; opacity: .8; font-weight: 700; }
.offer-text p {
  font-size: 1.02rem;
  margin: 0 0 22px;
  max-width: 420px;
  text-shadow: 0 1px 6px rgba(0,0,0,.3);
}

/* CSS credit card */
.card-art {
  width: 200px;
  flex: 0 0 200px;
  aspect-ratio: 1.586;
  border-radius: 12px;
  padding: 14px;
  color: #fff;
  background:
    radial-gradient(120% 140% at 80% 10%, #3a7bd5 0%, #1f4e8c 45%, #0c2e5c 100%);
  box-shadow: 0 14px 30px rgba(0,0,0,.35);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card-art::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.18) 50%, transparent 60%);
}
.card-art__top { display: flex; align-items: center; justify-content: space-between; }
.card-art__brand { font-weight: 800; letter-spacing: .12em; font-size: .8rem; }
.card-art__chip {
  width: 34px; height: 25px;
  border-radius: 5px;
  margin-top: 14px;
  background: linear-gradient(135deg, #e8d28a, #b8923f);
  position: relative;
}
.card-art__chip::after {
  content: ""; position: absolute; inset: 4px;
  border: 1px solid rgba(0,0,0,.25); border-radius: 3px;
}
.card-art__tier { font-size: .62rem; letter-spacing: .22em; opacity: .85; }
.card-art__number { font-size: .82rem; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.card-art__bottom { display: flex; align-items: flex-end; justify-content: space-between; }
.card-art__name { font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; }
.card-art__net { display: flex; }
.card-art__net span {
  width: 18px; height: 18px; border-radius: 50%; display: inline-block;
}
.card-art__net span:first-child { background: rgba(235,65,55,.9); }
.card-art__net span:last-child { background: rgba(245,160,30,.9); margin-left: -8px; }

/* Debit card image (replaces the CSS card-art) */
.card-art-img {
  width: 240px;
  flex: 0 0 240px;
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(0,0,0,.40);
  display: block;
  object-fit: contain;
  height: auto;
}

/* Hero login card */
.hero__login {
  background: #fff;
  color: var(--text);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 26px 26px 28px;
}

/* ------------------------------ Sections ---------------------------- */
.features { padding: 56px 0; }
.features__head { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.features__head h2 { font-size: 1.9rem; margin: 0 0 10px; color: var(--brand-dark); }
.features__head p { color: var(--muted); margin: 0; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  box-shadow: var(--shadow-soft);
  transition: transform .15s ease, box-shadow .15s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(8,28,56,.14); }
.feature__icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: #eaf2fc; color: var(--brand);
  margin-bottom: 14px;
}
.feature__icon svg { width: 24px; height: 24px; }
.feature h3 { margin: 0 0 8px; font-size: 1.12rem; color: var(--brand-dark); }
.feature p { margin: 0; color: var(--muted); font-size: .94rem; }

/* CTA strip */
.cta {
  background: linear-gradient(120deg, var(--brand-dark), #14406f);
  color: #fff;
  text-align: center;
  padding: 48px 0;
}
.cta h2 { font-size: 1.8rem; margin: 0 0 10px; }
.cta p { margin: 0 0 22px; opacity: .9; }

/* ------------------------------ Footer ------------------------------ */
.site-footer {
  background: #f1f4f8;
  border-top: 1px solid var(--line);
  padding: 36px 0 28px;
  font-size: .85rem;
  color: var(--muted);
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 26px;
}
.footer-cols h4 { color: var(--brand-dark); font-size: .92rem; margin: 0 0 12px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin-bottom: 8px; }
.footer-cols a { color: var(--muted); }
.footer-cols a:hover { color: var(--brand); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.footer-bottom .disclaimer { width: 100%; max-width: 760px; margin: 6px auto 0; font-size: .76rem; line-height: 1.5; }

/* ============================ Responsive ============================ */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr 340px; gap: 28px; }
  .offer-text h1 { font-size: 2.1rem; }
}

@media (max-width: 860px) {
  .topbar { flex-wrap: wrap; }
  .segments { order: 2; width: 100%; }
  .utilities { order: 1; margin-left: auto; }

  .nav-toggle { display: inline-flex; }
  .mainnav__list {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: var(--shadow-card);
    padding: 6px 0;
  }
  .mainnav.is-open .mainnav__list { display: flex; }
  .mainnav__list li { width: 100%; }
  .mainnav__list a { padding: 12px 20px; width: 100%; border-bottom: 1px solid var(--line); }
  .mainnav { position: static; }
  .brand-row { position: relative; justify-content: space-between; }

  .hero__grid { grid-template-columns: 1fr; }
  .hero__login { max-width: 420px; margin: 0 auto; width: 100%; }
  .offer-layout { flex-direction: column; align-items: flex-start; gap: 18px; }
  .card-art { width: 220px; }
  .card-art-img { width: 200px; flex: 0 0 200px; }

  .feature-grid { grid-template-columns: 1fr 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .utilities .util-hide-sm { display: none; }
  .segments { gap: 12px; font-size: .82rem; overflow-x: auto; flex-wrap: nowrap; }
  .hero__grid { padding: 24px 0 32px; gap: 20px; }
  .offer-layout { gap: 14px; }
  .card-art-img { width: 160px; flex: 0 0 160px; }
  .offer-text h1 { font-size: 1.7rem; }
  .offer-text p { font-size: .94rem; }
  .hero__login { padding: 20px 18px 22px; }
  .feature-grid { grid-template-columns: 1fr; }
  .features { padding: 36px 0; }
  .features__head h2 { font-size: 1.4rem; }
  .footer-cols { grid-template-columns: 1fr; gap: 18px; }
  .cta h2 { font-size: 1.5rem; }
  .cta { padding: 36px 0; }
}
