/*
Theme Name: RupeeScout
Theme URI: https://rupeescout.com
Author: RupeeScout
Author URI: https://rupeescout.com
Description: A clean, fast, SEO-optimised finance blog theme for RupeeScout — India's trusted personal finance guide.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rupeescout
Tags: blog, finance, clean, minimal, responsive
*/

/* =============================================
   TOKENS
============================================= */
:root {
  --green:        #1a6b3c;   /* primary — trust, growth */
  --green-light:  #e8f5ee;   /* tinted backgrounds */
  --green-mid:    #2e8b57;   /* hover states */
  --gold:         #c8922a;   /* accent — rupee warmth */
  --gold-light:   #fdf3e3;   /* tag backgrounds */
  --ink:          #1a1a2e;   /* headings */
  --body:         #3d3d4e;   /* body text */
  --muted:        #6b7280;   /* meta, captions */
  --border:       #e5e7eb;   /* dividers */
  --bg:           #ffffff;
  --bg-alt:       #f9fafb;   /* alternating sections */

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --radius:       6px;
  --radius-lg:    12px;
  --shadow:       0 1px 3px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.06);
  --shadow-hover: 0 4px 8px rgba(0,0,0,.1), 0 8px 24px rgba(0,0,0,.08);

  --max-w:        1160px;
  --content-w:    720px;
}

/* =============================================
   RESET & BASE
============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; transition: color .2s; }
a:hover { color: var(--green-mid); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.25;
  font-weight: 700;
}

p { margin-bottom: 1.25rem; }
ul, ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }

/* =============================================
   LAYOUT
============================================= */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* =============================================
   HEADER & NAV
============================================= */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.site-logo__icon {
  width: 32px;
  height: 32px;
  background: var(--green);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 16px;
  font-family: var(--font-display);
}

.site-logo__text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.site-logo__text span { color: var(--green); }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-nav a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--body);
  letter-spacing: .01em;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}

.site-nav a:hover,
.site-nav .current-menu-item a {
  color: var(--green);
  border-bottom-color: var(--green);
}

.nav-cta {
  background: var(--green) !important;
  color: white !important;
  padding: 8px 18px !important;
  border-radius: var(--radius) !important;
  border-bottom: none !important;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--green-mid) !important;
  color: white !important;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--ink);
}

/* =============================================
   HERO
============================================= */
.hero {
  background: linear-gradient(135deg, #0d3d24 0%, #1a6b3c 60%, #2e8b57 100%);
  color: white;
  padding: 80px 24px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '₹';
  position: absolute;
  right: -40px;
  top: -60px;
  font-size: 320px;
  font-family: var(--font-display);
  color: rgba(255,255,255,.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.9);
  margin-bottom: 24px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  color: white;
  line-height: 1.15;
  max-width: 720px;
  margin: 0 auto 20px;
  letter-spacing: -0.02em;
}

.hero__title em {
  font-style: normal;
  color: #f0c96b;
}

.hero__sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,.8);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  border: 2px solid transparent;
}

.btn--primary {
  background: var(--gold);
  color: white;
  border-color: var(--gold);
}

.btn--primary:hover {
  background: #b07d22;
  border-color: #b07d22;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(200,146,42,.4);
}

.btn--outline {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,.5);
}

.btn--outline:hover {
  background: rgba(255,255,255,.1);
  border-color: white;
  color: white;
}

/* =============================================
   TRUST BAR
============================================= */
.trust-bar {
  background: var(--ink);
  padding: 14px 24px;
}

.trust-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.7);
  font-size: .85rem;
  font-weight: 500;
}

.trust-item__icon {
  color: var(--gold);
  font-size: 1rem;
}

/* =============================================
   SECTION TITLES
============================================= */
.section {
  padding: 72px 0;
}

.section--alt { background: var(--bg-alt); }

.section__header {
  text-align: center;
  margin-bottom: 48px;
}

.section__eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}

.section__title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 12px;
}

.section__sub {
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto;
  font-size: .95rem;
}

/* =============================================
   TOPIC CARDS (Homepage Categories)
============================================= */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.topic-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-decoration: none;
  transition: all .25s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.topic-card:hover {
  border-color: var(--green);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  color: inherit;
}

.topic-card__icon {
  font-size: 2rem;
  line-height: 1;
}

.topic-card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ink);
  font-weight: 700;
}

.topic-card__desc {
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.topic-card__link {
  font-size: .8rem;
  font-weight: 600;
  color: var(--green);
  margin-top: auto;
}

/* =============================================
   POST CARDS
============================================= */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.post-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all .25s;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.post-card__thumb {
  aspect-ratio: 16/9;
  background: var(--green-light);
  overflow: hidden;
}

.post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}

.post-card:hover .post-card__thumb img {
  transform: scale(1.03);
}

.post-card__thumb--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.post-card__body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card__cat {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-light);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.post-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.35;
}

.post-card__title a {
  color: inherit;
  text-decoration: none;
}

.post-card__title a:hover { color: var(--green); }

.post-card__excerpt {
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.post-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .78rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: auto;
}

/* =============================================
   NEWSLETTER STRIP
============================================= */
.newsletter {
  background: linear-gradient(135deg, var(--ink) 0%, #2d2d44 100%);
  padding: 64px 24px;
  text-align: center;
}

.newsletter__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: white;
  margin-bottom: 10px;
}

.newsletter__sub {
  color: rgba(255,255,255,.65);
  margin-bottom: 28px;
  font-size: .95rem;
}

.newsletter__form {
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter__input {
  flex: 1;
  min-width: 220px;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: none;
  font-size: .95rem;
  font-family: var(--font-body);
  outline: none;
}

.newsletter__input:focus {
  box-shadow: 0 0 0 3px rgba(200,146,42,.4);
}

/* =============================================
   FOOTER
============================================= */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.7);
  padding: 56px 0 28px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer__brand p {
  font-size: .875rem;
  line-height: 1.6;
  margin-top: 12px;
  color: rgba(255,255,255,.55);
  max-width: 280px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.footer__logo-icon {
  width: 30px;
  height: 30px;
  background: var(--green);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 14px;
  font-family: var(--font-display);
}

.footer__logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
}

.footer__col h4 {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 16px;
  font-family: var(--font-body);
}

.footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col a {
  color: rgba(255,255,255,.65);
  font-size: .875rem;
  transition: color .2s;
  text-decoration: none;
}

.footer__col a:hover { color: white; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .8rem;
  color: rgba(255,255,255,.35);
  flex-wrap: wrap;
  gap: 12px;
}

.footer__disclaimer {
  font-size: .75rem;
  color: rgba(255,255,255,.3);
  max-width: 700px;
  line-height: 1.5;
  margin-top: 12px;
}

/* =============================================
   SINGLE POST / PAGE
============================================= */
.entry-header {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.entry-header .post-cat {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-light);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.entry-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.entry-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: .85rem;
  color: var(--muted);
  flex-wrap: wrap;
}

.entry-meta span { display: flex; align-items: center; gap: 4px; }

.entry-content {
  font-size: 1.05rem;
  line-height: 1.8;
}

.entry-content h2 {
  font-size: 1.6rem;
  margin: 2.5rem 0 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.entry-content h3 {
  font-size: 1.25rem;
  margin: 2rem 0 .75rem;
}

.entry-content ul, .entry-content ol {
  margin-bottom: 1.5rem;
}

.entry-content li { margin-bottom: .4rem; }

.entry-content blockquote {
  border-left: 4px solid var(--green);
  background: var(--green-light);
  padding: 20px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 2rem 0;
  font-style: italic;
  color: var(--ink);
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: .9rem;
}

.entry-content th {
  background: var(--green);
  color: white;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
}

.entry-content td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
}

.entry-content tr:nth-child(even) td { background: var(--bg-alt); }

/* Info box for finance tips */
.info-box {
  background: var(--gold-light);
  border: 1px solid #e8c07a;
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 2rem 0;
}

.info-box__title {
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
  font-size: .9rem;
}

/* =============================================
   SIDEBAR
============================================= */
.content-area {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

.widget {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.widget-title {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-body);
}

/* =============================================
   BLOG ARCHIVE
============================================= */
.archive-header {
  background: var(--green-light);
  border-bottom: 1px solid var(--border);
  padding: 48px 0 40px;
  margin-bottom: 48px;
}

.archive-header h1 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.archive-header p {
  color: var(--muted);
  margin-top: 8px;
  margin-bottom: 0;
}

/* =============================================
   PAGINATION
============================================= */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 56px;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 600;
  border: 1px solid var(--border);
  color: var(--body);
  transition: all .2s;
  text-decoration: none;
}

.pagination a:hover,
.pagination .current {
  background: var(--green);
  border-color: var(--green);
  color: white;
}

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 900px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .content-area {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-nav { display: none; }
  .site-nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    box-shadow: var(--shadow);
  }
  .site-nav.is-open ul {
    flex-direction: column;
    gap: 16px;
  }
  .menu-toggle { display: block; }
  .hero { padding: 56px 20px 48px; }
  .section { padding: 48px 0; }
  .footer__grid { grid-template-columns: 1fr; }
  .trust-bar__inner { gap: 20px; }
  .posts-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* =============================================
   HEADER FIXES - Larger & More Spacious
============================================= */
.site-header__inner {
  height: 80px !important;
}

.site-logo__text {
  font-size: 1.6rem !important;
}

.site-logo__icon {
  width: 40px !important;
  height: 40px !important;
  font-size: 20px !important;
}

.site-logo img {
  height: 56px !important;
}

.site-nav a {
  font-size: 1rem !important;
}

.site-nav ul {
  gap: 28px !important;
}

/* =============================================
   DROPDOWN MENU
============================================= */
.site-nav ul li {
  position: relative;
}

.site-nav ul li ul {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  min-width: 200px;
  padding: 8px 0;
  z-index: 200;
  flex-direction: column;
  gap: 0;
}

.site-nav ul li:hover > ul {
  display: flex;
}

.site-nav ul li ul li a {
  display: block;
  padding: 10px 18px;
  font-size: .9rem !important;
  color: var(--body) !important;
  border-bottom: none !important;
  white-space: nowrap;
}

.site-nav ul li ul li a:hover {
  background: var(--green-light);
  color: var(--green) !important;
}

/* Arrow indicator on parent */
.site-nav ul li:has(ul) > a::after {
  content: ' ▾';
  font-size: .7rem;
  opacity: .6;
}

/* =============================================
   DROPDOWN FIX - No gap, stays open
============================================= */
.site-nav ul li ul {
  top: 100% !important;
  padding-top: 8px !important;
  margin-top: 0 !important;
}

.site-nav ul li::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
}

.site-nav ul li:hover > ul,
.site-nav ul li ul:hover {
  display: flex !important;
}

/* =============================================
   RESPONSIVE OVERHAUL
============================================= */

/* ── Desktop (1024px+) ── */
@media (min-width: 1024px) {
  .site-header__inner { height: 80px; }
  .site-nav ul { gap: 28px; }
  .site-nav a { font-size: .95rem; }
  .hero { padding: 100px 24px 90px; }
  .topics-grid { grid-template-columns: repeat(3, 1fr); }
  .posts-grid { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

/* ── Tablet (768px - 1023px) ── */
@media (min-width: 768px) and (max-width: 1023px) {
  .site-header__inner { height: 70px; padding: 0 20px; }
  .site-nav ul { gap: 16px; }
  .site-nav a { font-size: .82rem; }
  .hero { padding: 72px 20px 64px; }
  .hero__title { font-size: 2.25rem; }
  .topics-grid { grid-template-columns: repeat(2, 1fr); }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .content-area { grid-template-columns: 1fr; }
  .trust-bar__inner { gap: 24px; }
}

/* ── Mobile (up to 767px) ── */
@media (max-width: 767px) {

  /* Header */
  .site-header__inner { height: 64px; padding: 0 16px; }
  .site-logo img { height: 38px !important; }
  .menu-toggle { display: flex !important; align-items: center; justify-content: center; }

  /* Nav — hidden by default, shown when .is-open */
  .site-nav {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 999;
    overflow-y: auto;
    padding: 24px 20px;
    border-top: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0,0,0,.12);
  }

  .site-nav.is-open {
    display: block !important;
  }

  .site-nav ul {
    flex-direction: column !important;
    gap: 0 !important;
  }

  .site-nav ul > li {
    border-bottom: 1px solid var(--border);
  }

  .site-nav ul > li > a {
    display: block;
    padding: 14px 4px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: var(--ink) !important;
    border-bottom: none !important;
  }

  /* Submenu on mobile */
  .site-nav ul li ul {
    position: static !important;
    display: none;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 0 8px 16px !important;
    background: transparent !important;
    flex-direction: column !important;
    gap: 0 !important;
  }

  .site-nav ul li ul li a {
    padding: 10px 4px !important;
    font-size: .9rem !important;
    color: var(--muted) !important;
    border-bottom: none !important;
  }

  .site-nav ul li ul li a:hover {
    color: var(--green) !important;
    background: transparent !important;
  }

  /* Nav CTA button */
  .nav-cta {
    display: inline-block !important;
    margin-top: 20px !important;
    width: 100% !important;
    text-align: center !important;
    padding: 12px !important;
  }

  /* Hero */
  .hero { padding: 56px 16px 48px; }
  .hero__title { font-size: 1.85rem; }
  .hero__sub { font-size: 1rem; }
  .hero__actions { flex-direction: column; align-items: center; }
  .hero__actions .btn { width: 100%; max-width: 280px; justify-content: center; }

  /* Trust bar */
  .trust-bar { padding: 12px 16px; }
  .trust-bar__inner { gap: 16px; justify-content: flex-start; }
  .trust-item { font-size: .8rem; }

  /* Sections */
  .section { padding: 48px 0; }
  .container { padding: 0 16px; }
  .container--narrow { padding: 0 16px; }

  /* Topic cards */
  .topics-grid { grid-template-columns: 1fr; gap: 14px; }
  .topic-card { padding: 20px; flex-direction: row; align-items: flex-start; gap: 16px; }
  .topic-card__icon { font-size: 1.5rem; flex-shrink: 0; }

  /* Post cards */
  .posts-grid { grid-template-columns: 1fr; gap: 20px; }

  /* Newsletter */
  .newsletter { padding: 48px 16px; }
  .newsletter__form { flex-direction: column; }
  .newsletter__input { width: 100%; }
  .newsletter__form .btn { width: 100%; justify-content: center; }

  /* Footer */
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; text-align: center; gap: 8px; }
  .site-footer { padding: 48px 0 24px; }

  /* Single post */
  .content-area { grid-template-columns: 1fr; }
  .entry-header h1 { font-size: 1.6rem; }
  .entry-content { font-size: 1rem; }
  .entry-content table { font-size: .8rem; display: block; overflow-x: auto; }

  /* Archive header */
  .archive-header { padding: 32px 0 28px; }
}

/* ── Small mobile (up to 380px) ── */
@media (max-width: 380px) {
  .hero__title { font-size: 1.6rem; }
  .site-logo img { height: 32px !important; }
}
