/*
  FeatureWorth — Shared Layout System
  Colours: #eeff00 (electric yellow), #0e2f36 (deep teal)
  Save this as fw-layout.css and include in every tool page
  Also copy the header/footer HTML blocks into each page
*/

/* ── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --yellow:   #eeff00;
  --yellow-d: #c8d900;
  --teal:     #0e2f36;
  --teal-m:   #163f4a;
  --teal-l:   #1e5060;
  --white:    #ffffff;
  --off:      #f7f8f2;
  --grey-l:   #f0f1ec;
  --grey-m:   #999;
  --grey-d:   #444;
  --black:    #0a0a0a;
  --radius:   10px;
  --shadow:   0 2px 16px rgba(14,47,54,.10);
  --shadow-h: 0 8px 32px rgba(14,47,54,.18);
  --trans:    all .2s ease;
  --font:     'DM Sans', sans-serif;
  --font-d:   'Playfair Display', serif;
  --nav-h:    64px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--teal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font); }
img { display: block; max-width: 100%; }

/* ── HEADER ───────────────────────────────────────────────── */
.fw-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: var(--teal);
  border-bottom: 2px solid rgba(238,255,0,.15);
  display: flex;
  align-items: center;
}

.fw-header-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Logo */
.fw-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.fw-logo-mark {
  width: 32px;
  height: 32px;
  background: var(--yellow);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 15px;
  color: var(--teal);
  letter-spacing: -1px;
  flex-shrink: 0;
}

.fw-logo-text {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.3px;
}

.fw-logo-text span {
  color: var(--yellow);
}

/* Nav */
.fw-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.fw-nav a {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.72);
  padding: 6px 12px;
  border-radius: 6px;
  transition: var(--trans);
  white-space: nowrap;
}

.fw-nav a:hover, .fw-nav a.active {
  color: var(--white);
  background: rgba(238,255,0,.12);
}

.fw-nav a.active {
  color: var(--yellow);
}

/* CTA button in header */
.fw-header-cta {
  margin-left: auto;
  flex-shrink: 0;
  background: var(--yellow);
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 6px;
  border: none;
  letter-spacing: .3px;
  transition: var(--trans);
  text-decoration: none;
  white-space: nowrap;
}

.fw-header-cta:hover {
  background: var(--yellow-d);
  transform: translateY(-1px);
}

/* Mobile hamburger */
.fw-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  margin-left: auto;
  cursor: pointer;
}

.fw-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--trans);
}

/* Mobile nav overlay */
.fw-mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--teal);
  z-index: 999;
  flex-direction: column;
  padding: 24px;
  gap: 8px;
  overflow-y: auto;
}

.fw-mobile-nav.open {
  display: flex;
}

.fw-mobile-nav a {
  font-size: 16px;
  font-weight: 500;
  color: rgba(255,255,255,.8);
  padding: 14px 16px;
  border-radius: 8px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: var(--trans);
}

.fw-mobile-nav a:hover, .fw-mobile-nav a.active {
  color: var(--yellow);
  background: rgba(238,255,0,.08);
}

.fw-mobile-nav .fw-header-cta {
  margin: 12px 0 0;
  text-align: center;
  display: block;
}

/* ── FOOTER ───────────────────────────────────────────────── */
.fw-footer {
  background: var(--teal);
  color: rgba(255,255,255,.65);
  padding: 52px 0 28px;
  margin-top: 72px;
  border-top: 2px solid rgba(238,255,0,.12);
}

.fw-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}

.fw-footer-brand {}

.fw-footer-brand .fw-logo {
  margin-bottom: 14px;
}

.fw-footer-brand p {
  font-size: 13px;
  line-height: 1.7;
  max-width: 240px;
  color: rgba(255,255,255,.55);
}

.fw-footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 16px;
}

.fw-footer-col a {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,.6);
  padding: 4px 0;
  transition: color .15s;
}

.fw-footer-col a:hover {
  color: var(--white);
}

.fw-footer-bottom {
  max-width: 1200px;
  margin: 36px auto 0;
  padding: 20px 24px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.fw-footer-bottom p {
  font-size: 12px;
  color: rgba(255,255,255,.35);
}

.fw-footer-bottom a {
  font-size: 12px;
  color: rgba(255,255,255,.4);
  transition: color .15s;
}

.fw-footer-bottom a:hover {
  color: rgba(255,255,255,.7);
}

/* ── STATS BAR ────────────────────────────────────────────── */
.fw-stats-bar {
  background: var(--off);
  border-bottom: 1px solid rgba(14,47,54,.08);
  padding: 10px 0;
}

.fw-stats-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
  overflow-x: auto;
  scrollbar-width: none;
}

.fw-stats-bar-inner::-webkit-scrollbar { display: none; }

.fw-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.fw-stat-num {
  font-size: 14px;
  font-weight: 700;
  color: var(--teal);
}

.fw-stat-lbl {
  font-size: 12px;
  color: var(--grey-m);
}

.fw-stat-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(14,47,54,.15);
  margin-left: 8px;
}

.fw-stat-dot:last-child { display: none; }

/* ── PAGE HERO ────────────────────────────────────────────── */
.fw-hero {
  background: var(--teal);
  padding: 52px 24px 48px;
  position: relative;
  overflow: hidden;
}

.fw-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(238,255,0,.12) 0%, transparent 70%);
  pointer-events: none;
}

.fw-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.fw-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 14px;
}

.fw-hero h1 {
  font-family: var(--font-d);
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 12px;
}

.fw-hero h1 em {
  font-style: italic;
  color: var(--yellow);
}

.fw-hero p {
  font-size: 15px;
  color: rgba(255,255,255,.65);
  max-width: 540px;
  line-height: 1.7;
}

/* ── TOOL CONTAINER ───────────────────────────────────────── */
.fw-tool-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

/* ── SECTION LABELS ───────────────────────────────────────── */
.fw-section-label {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--teal-l);
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.fw-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(14,47,54,.12);
}
/* ── Shimmer highlight — replaces italic em in all headings ── */
h1 em, h2 em, .fw-hero h1 em {
  font-style:   normal;
  font-weight:  800;
  background:   linear-gradient(90deg, #eeff00 0%, #fff 45%, #eeff00 80%);
  background-size: 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fw-shimmer 3s linear infinite;
}

@keyframes fw-shimmer {
  0%   { background-position: 200%; }
  100% { background-position: -200%; }
}

/* ── CARDS ────────────────────────────────────────────────── */
.fw-card {
  background: var(--white);
  border: 1.5px solid rgba(14,47,54,.10);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--trans);
}

.fw-card:hover {
  border-color: rgba(14,47,54,.2);
  box-shadow: var(--shadow-h);
  transform: translateY(-2px);
}

/* ── BUTTONS ──────────────────────────────────────────────── */
.fw-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 8px;
  border: none;
  letter-spacing: .3px;
  transition: var(--trans);
  cursor: pointer;
  font-family: var(--font);
}

.fw-btn-primary {
  background: var(--yellow);
  color: var(--teal);
}

.fw-btn-primary:hover {
  background: var(--yellow-d);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(238,255,0,.3);
}

.fw-btn-secondary {
  background: transparent;
  color: var(--teal);
  border: 1.5px solid rgba(14,47,54,.2);
}

.fw-btn-secondary:hover {
  border-color: var(--teal);
  background: var(--off);
}

.fw-btn-ghost {
  background: rgba(238,255,0,.12);
  color: var(--yellow);
  border: 1px solid rgba(238,255,0,.2);
}

.fw-btn-ghost:hover {
  background: rgba(238,255,0,.2);
}

.fw-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ── BADGE ────────────────────────────────────────────────── */
.fw-badge {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 99px;
}

.fw-badge-yellow {
  background: rgba(238,255,0,.15);
  color: var(--teal);
  border: 1px solid rgba(238,255,0,.4);
}

.fw-badge-teal {
  background: rgba(14,47,54,.08);
  color: var(--teal);
  border: 1px solid rgba(14,47,54,.15);
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .fw-nav { display: none; }
  .fw-header-cta { display: none; }
  .fw-hamburger { display: flex; }

  .fw-footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .fw-footer-brand {
    grid-column: 1 / -1;
  }

  .fw-hero { padding: 36px 20px 32px; }
  .fw-tool-wrap { padding: 28px 16px 48px; }
}

@media (max-width: 480px) {
  .fw-footer-inner {
    grid-template-columns: 1fr;
  }
  .fw-stats-bar-inner { gap: 20px; }
}

/* ── SCROLL ANIMATION ─────────────────────────────────────── */
@keyframes fw-fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

.fw-fade-up { animation: fw-fade-up .4s ease forwards; }
/* ── TOOLS DROPDOWN ───────────────────────────────────────── */
.fw-nav-dropdown {
  position: relative;
}

.fw-nav-tools-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.72);
  padding: 6px 12px;
  border-radius: 6px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  transition: var(--trans);
  white-space: nowrap;
}

.fw-nav-tools-btn:hover,
.fw-nav-tools-btn.active {
  color: var(--white);
  background: rgba(238,255,0,.12);
}

.fw-nav-tools-btn.active {
  color: var(--yellow);
}

.fw-nav-tools-btn svg {
  transition: transform .2s ease;
  opacity: .7;
}

.fw-dropdown-panel {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  background: var(--teal-m);
  border: 1px solid rgba(238,255,0,.15);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 16px 48px rgba(0,0,0,.35), 0 0 0 1px rgba(238,255,0,.08);
  z-index: 2000;
  animation: fw-drop-in .18s ease;
}

.fw-dropdown-panel.open {
  display: block;
}

.fw-dropdown-panel.open + .fw-nav-tools-btn svg,
.fw-nav-tools-btn[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

@keyframes fw-drop-in {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.fw-drop-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  transition: background .15s;
  color: rgba(255,255,255,.85);
}

.fw-drop-item:hover,
.fw-drop-item.active {
  background: rgba(238,255,0,.1);
  color: var(--white);
}

.fw-drop-item.active .fw-drop-label {
  color: var(--yellow);
}

.fw-drop-icon {
  font-size: 18px;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}

.fw-drop-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.fw-drop-label {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.fw-drop-desc {
  font-size: 11px;
  color: rgba(255,255,255,.45);
  font-weight: 400;
}

/* ── MOBILE NAV SECTION LABEL ─────────────────────────────── */
.fw-mobile-section-lbl {
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(238,255,0,.5);
  font-weight: 700;
  padding: 8px 16px 4px;
}

.fw-mobile-divider {
  height: 1px;
  background: rgba(255,255,255,.08);
  margin: 8px 0;
}