/* =========================================
   iwantfinance.co.uk — Global Stylesheet
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;700;800&family=Inter:wght@400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #0D1B2A;
  --navy-mid:   #152336;
  --teal:       #00C2A8;
  --teal-dark:  #009E8A;
  --orange:     #FF6B35;
  --orange-dark:#E55A25;
  --off-white:  #F5F7FA;
  --white:      #FFFFFF;
  --mid:        #8899AA;
  --light:      #E2E8F0;
  --text:       #1A2B3C;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--off-white);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

/* ---- NAV ---- */
.site-nav {
  background: var(--navy);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--white);
  letter-spacing: -0.5px;
  text-decoration: none;
}
.nav-logo span { color: var(--teal); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}
.nav-links a {
  color: #AAB8C4;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }

.nav-cta {
  background: var(--teal) !important;
  color: var(--navy) !important;
  padding: 0.45rem 1.1rem !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 0.82rem !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ---- HERO ---- */
.hero {
  background: var(--navy);
  padding: 5rem 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero-glow-1 {
  width: 400px; height: 400px;
  background: var(--teal);
  opacity: 0.05;
  top: -100px; right: -80px;
}
.hero-glow-2 {
  width: 300px; height: 300px;
  background: var(--orange);
  opacity: 0.06;
  bottom: -80px; left: -60px;
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(0,194,168,0.15);
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  border-radius: 30px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.12;
  letter-spacing: -1.5px;
  margin-bottom: 1.1rem;
}
.hero h1 em { color: var(--teal); font-style: normal; }

.hero-sub {
  color: #AAB8C4;
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto 2.25rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-family: 'Inter', sans-serif;
}
.btn-primary {
  background: var(--orange);
  color: var(--white);
}
.btn-primary:hover { background: var(--orange-dark); text-decoration: none; color: var(--white); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-outline:hover { border-color: var(--teal); color: var(--teal); text-decoration: none; }

.btn-teal {
  background: var(--teal);
  color: var(--navy);
}
.btn-teal:hover { background: var(--teal-dark); text-decoration: none; color: var(--navy); }

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  border-radius: 8px;
}

/* ---- FILTER TABS ---- */
.filter-strip {
  background: var(--navy-mid);
  padding: 1rem 2rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.filter-btn {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: #AAB8C4;
  padding: 0.45rem 1.1rem;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--navy);
  font-weight: 600;
}

/* ---- MAIN LAYOUT ---- */
.main-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.wide-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

/* ---- STATS BAR ---- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--light);
  border-radius: 14px;
  padding: 1.25rem;
  text-align: center;
}
.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--mid);
  margin-top: 4px;
}

/* ---- AD NOTE ---- */
.ad-note {
  background: #FFFBE8;
  border: 1px solid #F0DC82;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.78rem;
  color: #7A6000;
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

/* ---- SECTION HEADER ---- */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1rem;
}
.section-header h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
}
.section-header a {
  font-size: 0.82rem;
  color: var(--teal);
  font-weight: 500;
}

/* ---- PROVIDER CARDS ---- */
.provider-list { display: flex; flex-direction: column; gap: 0.75rem; }

.provider-card {
  background: var(--white);
  border: 1px solid var(--light);
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 1rem;
  position: relative;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.provider-card:hover {
  box-shadow: 0 4px 20px rgba(0,194,168,0.1);
  border-color: rgba(0,194,168,0.4);
}
.provider-card.featured {
  border-color: var(--teal);
  border-width: 2px;
}
.featured-badge {
  position: absolute;
  top: -11px;
  left: 1.25rem;
  background: var(--teal);
  color: var(--navy);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.provider-logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 0.7rem;
  flex-shrink: 0;
  text-align: center;
  line-height: 1.2;
}

.provider-info h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 2px; }
.provider-info p { font-size: 0.78rem; color: var(--mid); }

.provider-tags { display: flex; gap: 0.4rem; margin-top: 6px; flex-wrap: wrap; }
.tag {
  font-size: 0.66rem;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}
.tag-fast    { background: #FFF3E8; color: #B84400; }
.tag-free    { background: #EAF6F1; color: #007A50; }
.tag-credit  { background: #F0EEFF; color: #5B1FCC; }
.tag-fca     { background: #E6F2FF; color: #0050BB; }
.tag-popular { background: #FFF0F5; color: #B00050; }

.provider-rate { text-align: right; min-width: 100px; }
.rate-num {
  font-family: 'Syne', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy);
}
.rate-label { font-size: 0.64rem; color: var(--mid); display: block; margin-bottom: 6px; }

/* ---- GUIDE CARDS ---- */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.85rem;
  margin-top: 2.5rem;
}
.guide-card {
  background: var(--white);
  border: 1px solid var(--light);
  border-radius: 14px;
  padding: 1.25rem 1rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  display: block;
}
.guide-card:hover {
  border-color: var(--teal);
  box-shadow: 0 2px 12px rgba(0,194,168,0.08);
  text-decoration: none;
}
.guide-icon { font-size: 1.75rem; margin-bottom: 0.5rem; }
.guide-card h3 { font-family: 'Syne', sans-serif; font-size: 0.88rem; font-weight: 700; margin-bottom: 3px; }
.guide-card p { font-size: 0.72rem; color: var(--mid); }

/* ---- ARTICLE / GUIDE PAGE ---- */
.article-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}
.article-wrap h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
.article-meta { font-size: 0.78rem; color: var(--mid); margin-bottom: 2rem; }
.article-wrap h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
}
.article-wrap p { margin-bottom: 1rem; font-size: 0.97rem; }
.article-wrap ul, .article-wrap ol {
  margin: 0.5rem 0 1rem 1.25rem;
  font-size: 0.97rem;
}
.article-wrap li { margin-bottom: 0.4rem; }

.article-cta-box {
  background: var(--navy);
  border-radius: 16px;
  padding: 1.75rem;
  margin: 2rem 0;
  text-align: center;
}
.article-cta-box h3 {
  font-family: 'Syne', sans-serif;
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.article-cta-box p { color: #AAB8C4; font-size: 0.85rem; margin-bottom: 1.25rem; }

/* ---- FOOTER ---- */
.site-footer {
  background: var(--navy);
  color: #6B7F8F;
  padding: 3rem 2rem 2rem;
  margin-top: 3rem;
  font-size: 0.78rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-inner {
  max-width: 900px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand .nav-logo { display: inline-block; margin-bottom: 0.75rem; font-size: 1.1rem; }
.footer-brand p { line-height: 1.7; max-width: 300px; }
.footer-col h4 {
  font-family: 'Syne', sans-serif;
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: 0.3px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.4rem; }
.footer-col a { color: #6B7F8F; text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--teal); }
.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,0.07); margin-bottom: 1.25rem; }
.footer-legal { line-height: 1.7; }
.footer-legal strong { color: var(--teal); }

/* ---- RESPONSIVE ---- */
@media (max-width: 700px) {
  .site-nav { padding: 0 1rem; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--navy);
    padding: 1rem 1.5rem 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .hamburger { display: flex; }
  .hero { padding: 3rem 1.25rem 2.5rem; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .stats-bar .stat-card:last-child { grid-column: span 2; }
  .provider-card { grid-template-columns: 48px 1fr; }
  .provider-rate { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .main-wrap, .wide-wrap { padding: 1.5rem 1rem; }
  .article-wrap { padding: 1.5rem 1rem 3rem; }
}
