/* ============================================================
   FooterLab — Footer Design Patterns
   Framework-free HTML5/CSS3. Outfit + Inter. Vanilla JS.
   ============================================================ */

/* ——— Design tokens ——— */
:root {
  --ink: #111827;
  --navy: #0F172A;
  --teal: #14B8A6;
  --slate: #475569;
  --bg: #F8FAFC;
  --white: #FFFFFF;
  --line: #E5E7EB;

  --teal-soft: #E6F7F5;
  --navy-2: #1E293B;
  --ink-soft: #334155;
  --muted: #94A3B8;

  --radius: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow-md: 0 10px 30px -12px rgba(15, 23, 42, .18);
  --shadow-lg: 0 24px 60px -20px rgba(15, 23, 42, .28);

  --container: 1220px;
  --font-head: 'Outfit', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
}

/* ——— Reset & base ——— */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--navy); }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input { font-family: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}

/* ——— Layout container ——— */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

/* ——— Header / nav ——— */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header .container { display: flex; align-items: center; height: 72px; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
}
.nav-logo:hover { color: var(--teal); }
.nav-logo-mark {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  color: var(--white);
  font-size: 1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  display: inline-block;
  padding: 9px 15px;
  border-radius: var(--radius-pill);
  font-size: .92rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.nav-link:hover { color: var(--teal); background: var(--teal-soft); }
.nav-link.active {
  color: var(--white);
  background: var(--navy);
}
.nav-link.active:hover { color: var(--white); }

.nav-cta {
  margin-left: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--teal);
  color: var(--white);
  font-weight: 500;
  font-size: .92rem;
}
.nav-cta:hover { background: var(--navy); color: var(--white); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
  font-size: .98rem;
  font-weight: 600;
  letter-spacing: .01em;
  transition: all .25s ease;
}
.btn-teal { background: var(--teal); color: var(--white); }
.btn-teal:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--teal); color: var(--white); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }
.btn-sm { padding: 9px 18px; font-size: .86rem; }

/* ——— Page hero ——— */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 9vw, 110px) 0 clamp(48px, 7vw, 90px);
  background:
    radial-gradient(900px 480px at 82% -10%, rgba(20, 184, 166, .35), transparent 60%),
    radial-gradient(700px 420px at 0% 110%, rgba(20, 184, 166, .18), transparent 55%),
    linear-gradient(160deg, var(--navy) 0%, #16223b 55%, #0c1322 100%);
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.5), transparent 75%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.5), transparent 75%);
  pointer-events: none;
}
.page-hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}

.page-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 7px 15px;
  border: 1px solid rgba(20, 184, 166, .5);
  border-radius: var(--radius-pill);
  background: rgba(20, 184, 166, .12);
  color: #5eead4;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2.3rem, 5.4vw, 3.7rem);
  font-weight: 700;
  letter-spacing: -.03em;
  margin-bottom: 18px;
}
.page-hero h1 .accent { color: var(--teal); }

.page-hero-text {
  max-width: 560px;
  color: rgba(226, 232, 240, .85);
  font-size: 1.08rem;
  margin-bottom: 30px;
}

.page-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.page-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.14);
}
.page-hero-meta div { display: flex; flex-direction: column; gap: 2px; }
.page-hero-meta strong {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
}
.page-hero-meta span { font-size: .82rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }

.page-hero-media { position: relative; }
.page-hero-img {
  position: relative;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: var(--shadow-lg);
  transform: rotate(1.5deg);
  aspect-ratio: 8 / 5;
  object-fit: cover;
}
.page-hero-img-wrap {
  position: relative;
  border-radius: 24px;
  background: rgba(255,255,255,.06);
  padding: 12px;
  border: 1px solid rgba(255,255,255,.14);
  transform: rotate(-1deg);
}
.page-hero-badge {
  position: absolute;
  left: -18px;
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow-md);
  color: var(--navy);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .9rem;
}
.page-hero-badge .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(20,184,166,.25); }

/* ——— Section shell ——— */
.section { padding: clamp(64px, 8vw, 110px) 0; }
.section-alt { background: var(--white); border-block: 1px solid var(--line); }

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(40px, 6vw, 64px);
  text-align: center;
}
.section-tag {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--teal);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.section-title {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 14px;
}
.section-head p { color: var(--slate); font-size: 1.05rem; }

/* ——— Pattern index (quick nav strip) ——— */
.pattern-index {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-bottom: clamp(40px, 6vw, 60px);
}
.pattern-tile {
  position: relative;
  display: block;
  padding: 0 0 14px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.pattern-tile:hover {
  transform: translateY(-5px);
  border-color: rgba(20,184,166,.6);
  box-shadow: var(--shadow-md);
}
.pattern-tile img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}
.pattern-tile figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px 0;
}
.pattern-tile strong {
  font-family: var(--font-head);
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink);
}
.pattern-tile span {
  font-size: .72rem;
  font-weight: 700;
  color: var(--teal);
  font-family: var(--font-head);
}
.pattern-tile:hover strong { color: var(--teal); }

/* ——— Showcase grid ——— */
.showcase { display: flex; flex-direction: column; gap: clamp(28px, 4vw, 44px); }

/* ——— Footer demo card ——— */
.footer-demo-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s ease, transform .3s ease;
}
.footer-demo-card:hover { box-shadow: var(--shadow-md); }

.fd-card-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px clamp(18px, 3vw, 30px);
  border-bottom: 1px solid var(--line);
}
.fd-num {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
}
.fd-num.teal { background: var(--teal); }
.fd-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.01em;
}
.fd-sub { font-size: .86rem; color: var(--slate); }
.fd-tags { margin-left: auto; display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.fd-tag {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--teal-soft);
  color: #0f766e;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.fd-tag.dark { background: var(--navy); color: #94a3b8; }
.fd-tag.light { background: var(--bg); color: var(--slate); border: 1px solid var(--line); }

/* Frame = canvas holding the live footer */
.fd-frame {
  padding: 0;
  background: var(--bg);
}
.fd-frame > * { /* the live footer fills the frame */
  border-radius: 0;
}

.fd-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px clamp(18px, 3vw, 30px);
  border-top: 1px solid var(--line);
  background: var(--white);
}
.fd-desc { font-size: .9rem; color: var(--slate); max-width: 640px; }
.fd-desc strong { color: var(--ink); font-weight: 500; }
.fd-copy {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border: 1px dashed var(--teal);
  border-radius: var(--radius-pill);
  background: var(--teal-soft);
  color: #0f766e;
  font-size: .8rem;
  font-weight: 600;
}
.fd-copy svg { width: 14px; height: 14px; }

/* ============================================================
   Live footer variants
   Each footer is self-contained inside .flv (footer live variant)
   ============================================================ */

/* ---------- Variant 1 · Classic multi-column ---------- */
.flv-classic {
  background: var(--navy);
  color: rgba(226, 232, 240, .82);
  font-size: .93rem;
}
.flv-classic a { color: rgba(226, 232, 240, .78); }
.flv-classic a:hover { color: #5eead4; }

.flv-classic-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(44px, 6vw, 70px) 0;
}
.flv-classic .brand { max-width: 300px; }
.flv-classic .brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.flv-classic .brand-avatar {
  width: 46px; height: 46px;
  border-radius: 13px;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.18);
}
.flv-classic .brand-name {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
}
.flv-classic .brand-desc { font-size: .9rem; line-height: 1.7; margin-bottom: 22px; }

.flv-col-title {
  font-family: var(--font-head);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 18px;
  padding-bottom: 10px;
  position: relative;
}
.flv-col-title::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 26px; height: 3px;
  border-radius: 2px;
  background: var(--teal);
}
.flv-classic .col-links { display: flex; flex-direction: column; gap: 11px; }
.flv-classic .col-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
}
.flv-classic .col-links a::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
  opacity: .7;
  transition: transform .25s ease;
}
.flv-classic .col-links a:hover::before { transform: scale(1.4); }

.flv-social { display: flex; gap: 10px; }
.flv-social a {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 11px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: rgba(226,232,240,.85);
  transition: all .25s ease;
}
.flv-social a:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
  transform: translateY(-3px);
}
.flv-social svg { width: 16px; height: 16px; }

.flv-classic-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 20px 0;
}
.flv-classic-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: .86rem;
  color: rgba(226,232,240,.7);
}
.flv-classic-bottom .legal { display: flex; gap: 22px; }
.flv-classic-bottom .legal a { font-size: .86rem; }

/* ---------- Variant 2 · Newsletter CTA ---------- */
.flv-newsletter { background: var(--white); }
.flv-newsletter .newsletter-band {
  background: linear-gradient(120deg, var(--navy) 0%, #123f42 60%, var(--teal) 130%);
  padding: clamp(44px, 6vw, 72px) 0;
}
.newsletter-band .container {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
}
.newsletter-band h3 {
  color: var(--white);
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 10px;
}
.newsletter-band p { color: rgba(226,232,240,.8); max-width: 460px; }

.newsletter-form {
  display: flex;
  gap: 10px;
  background: var(--white);
  padding: 8px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg);
}
.newsletter-form input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  padding: 10px 16px;
  font-size: .95rem;
  color: var(--ink);
}
.newsletter-form input::placeholder { color: var(--muted); }
.newsletter-form .btn { flex: none; }

.flv-newsletter .quick {
  border-bottom: 1px solid var(--line);
  padding: 30px 0;
}
.flv-newsletter .quick .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.flv-newsletter .quick span {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .86rem;
  color: var(--ink);
  margin-right: 6px;
}
.flv-newsletter .quick a {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--slate);
  font-size: .83rem;
}
.flv-newsletter .quick a:hover { background: var(--teal-soft); border-color: var(--teal); color: #0f766e; }

.flv-newsletter .mini-links { padding: 34px 0 8px; }
.flv-newsletter .mini-links .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.flv-newsletter .mini-col h4 {
  font-size: .98rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.flv-newsletter .mini-col ul { display: flex; flex-direction: column; gap: 9px; }
.flv-newsletter .mini-col a { color: var(--slate); font-size: .88rem; }
.flv-newsletter .mini-col a:hover { color: var(--teal); padding-left: 4px; }

.flv-newsletter .mini-copy {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}
.flv-newsletter .mini-copy .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: .85rem;
  color: var(--slate);
}
.flv-newsletter .mini-copy a { font-weight: 500; }

/* ---------- Variant 3 · Minimal centered ---------- */
.flv-minimal {
  background: var(--bg);
  text-align: center;
  padding: clamp(48px, 7vw, 84px) 0;
}
.flv-minimal .min-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
}
.flv-minimal .min-mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  object-fit: cover;
}
.flv-minimal .min-name {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
}
.flv-minimal .min-tagline {
  max-width: 460px;
  margin: 0 auto 30px;
  color: var(--slate);
  font-size: 1rem;
}
.flv-minimal .min-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 26px;
  margin-bottom: 34px;
}
.flv-minimal .min-nav a {
  font-family: var(--font-head);
  font-size: .92rem;
  font-weight: 500;
  color: var(--slate);
  position: relative;
  padding: 4px 2px;
}
.flv-minimal .min-nav a::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  width: 0; height: 2px;
  background: var(--teal);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width .3s ease;
}
.flv-minimal .min-nav a:hover { color: var(--ink); }
.flv-minimal .min-nav a:hover::after { width: 100%; }
.flv-minimal .min-divider {
  width: 90px;
  height: 1px;
  background: var(--line);
  margin: 0 auto 22px;
}
.flv-minimal .min-copy { font-size: .86rem; color: var(--slate); margin-bottom: 22px; }
.flv-minimal .min-copy a { font-weight: 500; color: var(--ink); }
.flv-minimal .min-top {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--teal);
}
.flv-minimal .min-top:hover { color: var(--navy); }
.flv-minimal .min-top svg { width: 15px; height: 15px; }

/* ---------- Variant 4 · Mega menu ---------- */
.flv-mega {
  background: #0b1120;
  color: rgba(226,232,240,.8);
  font-size: .9rem;
}
.flv-mega a { color: rgba(203,213,225,.75); }
.flv-mega a:hover { color: #5eead4; }

.flv-mega-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: clamp(20px, 3vw, 36px);
  padding: clamp(44px, 6vw, 64px) 0;
}
.flv-mega .mega-brand .brand-avatar {
  width: 52px; height: 52px;
  border-radius: 14px;
  object-fit: cover;
  margin-bottom: 16px;
  border: 2px solid rgba(255,255,255,.16);
}
.flv-mega .mega-brand h4 {
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.flv-mega .mega-brand p { font-size: .86rem; line-height: 1.7; margin-bottom: 20px; }
.flv-mega .mega-contact { display: flex; flex-direction: column; gap: 8px; font-size: .86rem; }
.flv-mega .mega-contact a { display: inline-flex; align-items: center; gap: 8px; }
.flv-mega .mega-contact svg { width: 14px; height: 14px; color: var(--teal); flex: none; }

.flv-mega .mega-col h5 {
  font-family: var(--font-head);
  font-size: .86rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
}
.flv-mega .mega-col ul { display: flex; flex-direction: column; gap: 10px; }
.flv-mega .mega-col a { font-size: .86rem; transition: padding .2s ease; }
.flv-mega .mega-col a:hover { padding-left: 5px; color: #5eead4; }

.flv-mega-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 24px 0;
}
.flv-mega-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.flv-mega-bottom .pay { display: flex; gap: 8px; }
.flv-mega-bottom .pay span {
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: rgba(226,232,240,.8);
  font-family: var(--font-head);
}
.flv-mega-bottom .copy { font-size: .82rem; color: rgba(148,163,184,.9); }

/* ---------- Variant 5 · Social-focused ---------- */
.flv-social {
  background: #0f2335;
  text-align: center;
  padding: clamp(52px, 7vw, 90px) 0;
  color: rgba(226,232,240,.82);
}
.flv-social .soc-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.flv-social .soc-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(20,184,166,.6);
}
.flv-social .soc-name {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
}
.flv-social .soc-tagline {
  max-width: 480px;
  margin: 0 auto 34px;
  color: rgba(203,213,225,.8);
  font-size: 1rem;
}
.flv-social .soc-icons {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 40px;
}
.flv-social .soc-icons a {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.16);
  color: rgba(226,232,240,.9);
  transition: all .28s ease;
}
.flv-social .soc-icons a:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--navy);
  transform: translateY(-5px);
}
.flv-social .soc-icons svg { width: 21px; height: 21px; }

.flv-social .soc-mini {
  max-width: 420px;
  margin: 0 auto 34px;
}
.flv-social .soc-mini .soc-mini-label {
  display: block;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.flv-social .soc-mini-row {
  display: flex;
  gap: 8px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-pill);
  padding: 6px;
}
.flv-social .soc-mini-row input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: var(--white);
  padding: 8px 14px;
  font-size: .9rem;
}
.flv-social .soc-mini-row input::placeholder { color: rgba(148,163,184,.9); }
.flv-social .soc-mini-row .btn { padding: 9px 18px; font-size: .84rem; }
.flv-social .soc-copy { font-size: .85rem; color: rgba(148,163,184,.9); }
.flv-social .soc-copy a { color: #5eead4; }

/* ---------- Variant 6 · Card / image footer ---------- */
.flv-cards { background: var(--bg); }
.flv-cards-main {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(28px, 5vw, 56px);
  padding: clamp(44px, 6vw, 64px) 0 40px;
}
.flv-cards .cards-brand h3 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 12px;
}
.flv-cards .cards-brand p { color: var(--slate); font-size: .93rem; margin-bottom: 22px; max-width: 420px; }
.flv-cards .cards-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.flv-cards .cards-cta .btn { padding: 11px 20px; font-size: .88rem; }

.flv-cards .cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.flv-cards .card-thumb {
  position: relative;
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform .3s ease, box-shadow .3s ease;
}
.flv-cards .card-thumb:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.flv-cards .card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.flv-cards .card-thumb:hover img { transform: scale(1.08); }
.flv-cards .card-thumb span {
  position: absolute;
  inset: auto 0 0 0;
  padding: 20px 10px 8px;
  font-size: .72rem;
  font-weight: 600;
  color: var(--white);
  background: linear-gradient(to top, rgba(15,23,42,.75), transparent);
  opacity: 0;
  transition: opacity .3s ease;
}
.flv-cards .card-thumb:hover span { opacity: 1; }

.flv-cards-bottom {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}
.flv-cards-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: .86rem;
  color: var(--slate);
}
.flv-cards-bottom .cards-foot-links { display: flex; gap: 20px; }
.flv-cards-bottom a { color: var(--slate); }
.flv-cards-bottom a:hover { color: var(--teal); }

/* ============================================================
   Forms (used inside newsletter footers + contact demo)
   ============================================================ */
.form { width: 100%; }
.form-row { display: flex; gap: 14px; flex-wrap: wrap; }
.form-group { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
.form-label { font-family: var(--font-head); font-size: .82rem; font-weight: 600; color: var(--ink); }
.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: .93rem;
  color: var(--ink);
  outline: none;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.form-input:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(20,184,166,.14); }
.form-textarea { min-height: 110px; resize: vertical; }
.form-ok {
  display: none;
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #047857;
  font-size: .88rem;
  font-weight: 500;
}
.form-ok.show { display: block; }
.form-err {
  display: none;
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: .88rem;
  font-weight: 500;
}
.form-err.show { display: block; }

/* ============================================================
   Page footer (the showcase site's own footer)
   ============================================================ */
.site-footer {
  background: var(--navy);
  color: rgba(226,232,240,.8);
  padding: clamp(48px, 6vw, 72px) 0 0;
}
.site-footer .container:first-child {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: 44px;
}
.site-footer h4 {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 18px;
}
.site-footer .about-text { font-size: .92rem; line-height: 1.7; max-width: 380px; margin-bottom: 22px; }
.site-footer ul { display: flex; flex-direction: column; gap: 10px; }
.site-footer ul a { font-size: .9rem; color: rgba(203,213,225,.75); }
.site-footer ul a:hover { color: #5eead4; }
.site-footer .mini-form { display: flex; gap: 8px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius-pill); padding: 6px; }
.site-footer .mini-form input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; color: var(--white); padding: 8px 14px; font-size: .9rem; }
.site-footer .mini-form input::placeholder { color: rgba(148,163,184,.9); }
.site-footer .mini-form .btn { padding: 9px 16px; font-size: .82rem; }
.site-footer .site-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 22px 0;
}
.site-footer .site-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: .86rem;
}
.site-footer .site-bottom a { color: #5eead4; }

/* ============================================================
   Back to top
   ============================================================ */
.back-to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 70;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--teal);
  color: var(--white);
  border: none;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all .3s ease;
}
.back-to-top:hover { background: var(--navy); }
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top svg { width: 20px; height: 20px; }

/* ============================================================
   Reveal on scroll
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   404 page
   ============================================================ */
.page-404 {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 0;
  background:
    radial-gradient(700px 400px at 50% -5%, rgba(20,184,166,.14), transparent 60%),
    var(--bg);
}
.page-404 .code {
  font-family: var(--font-head);
  font-size: clamp(6rem, 20vw, 11rem);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, var(--navy) 30%, var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.page-404 h1 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 700; margin: 8px 0 14px; }
.page-404 p { color: var(--slate); max-width: 460px; margin: 0 auto 30px; font-size: 1.02rem; }
.page-404 .actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .page-hero .container { grid-template-columns: 1fr; }
  .page-hero-media { max-width: 560px; }
  .pattern-index { grid-template-columns: repeat(3, 1fr); }

  .flv-classic-main { grid-template-columns: 1fr 1fr; }
  .flv-classic .brand { grid-column: 1 / -1; max-width: none; }

  .flv-mega-main { grid-template-columns: 1fr 1fr 1fr; }
  .flv-mega .mega-brand { grid-column: 1 / -1; }

  .newsletter-band .container { grid-template-columns: 1fr; text-align: center; }
  .newsletter-band p { margin: 0 auto; }
  .newsletter-form { max-width: 460px; margin: 0 auto; }

  .flv-newsletter .mini-links .container { grid-template-columns: repeat(2, 1fr); }

  .site-footer .container:first-child { grid-template-columns: 1fr 1fr; }
  .site-footer .about { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .header .container { height: 64px; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 16px 20px 20px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-link, .nav-cta { text-align: center; margin-left: 0; }
  .nav-cta { margin-top: 4px; }

  .page-hero-actions { flex-direction: column; align-items: stretch; }
  .page-hero-actions .btn { width: 100%; }

  .pattern-index { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  .fd-card-head { flex-wrap: wrap; }
  .fd-tags { margin-left: 0; width: 100%; }

  .flv-classic-main { grid-template-columns: 1fr; }
  .flv-classic-bottom .container { justify-content: center; text-align: center; }

  .flv-mega-main { grid-template-columns: 1fr 1fr; }
  .flv-newsletter .mini-links .container { grid-template-columns: 1fr; }
  .flv-mega-bottom .container { justify-content: center; text-align: center; }

  .flv-cards-main { grid-template-columns: 1fr; }
  .flv-cards .cards-grid { grid-template-columns: repeat(3, 1fr); }

  .site-footer .container:first-child { grid-template-columns: 1fr; }
  .site-footer .site-bottom .container { justify-content: center; text-align: center; }
}

@media (max-width: 460px) {
  .pattern-index { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; border-radius: var(--radius); }
  .newsletter-form .btn { width: 100%; }
  .flv-cards .cards-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
