/*
Theme Name: Impact Lens Africa
Theme URI: https://impactlens-africa.com
Author: Impact Lens Africa
Author URI: https://impactlens-africa.com
Description: Custom WordPress theme for Impact Lens Africa, an independent advisory practice working at the intersection of sustainability, impact and strategic communication.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: impact-lens-africa
*/

/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
  --maroon: #760C14;
  --maroon-deep: #4D080D;
  --gold: #F7B334;
  --gold-light: #F9C25D;
  --amber-deep: #B98627;
  --white: #FFFFFF;
  --parchment: #FAF5EC;
  --rosewood: #D6B6B8;
  --ink: #231F20;
  --slate: #999590;
  --stone: #CBC6BF;
  --hairline: #DAD5CD;
  --container: 1280px;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Montserrat', -apple-system, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}
h1, h2, h3, h4 { font-family: 'Cinzel', serif; margin: 0; font-weight: 600; color: var(--maroon); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 14px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 40px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.text-center { text-align: center; }
.bg-white { background: var(--white); }
.bg-parchment { background: var(--parchment); }
.bg-maroon { background: var(--maroon); }
.bg-maroon-deep { background: var(--maroon-deep); }
.bg-gold { background: var(--gold); }
.mw-narrow { max-width: 720px; margin-left: auto; margin-right: auto; }
.mw-md { max-width: 860px; }

.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 2px; color: var(--amber-deep);
  text-transform: uppercase; display: block; margin-bottom: 12px;
}
.eyebrow.on-dark { color: var(--gold); }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 52px; }
.section-head.center { align-items: center; text-align: center; }
.section-head h2 { font-size: 34px; line-height: 1.3; }
.section-head p { color: var(--ink); font-size: 15.5px; line-height: 1.7; max-width: 680px; }
.section-head.on-dark h2 { color: var(--white); }
.section-head.on-dark p { color: #FFFFFF; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px;
  padding: 16px 30px; border-radius: 4px; border: none; white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease; cursor: pointer;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,0.18); filter: brightness(1.06); }

@keyframes ila-slide-in { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ila-glow-in { 0% { opacity: 0; box-shadow: 0 0 0 rgba(247,179,52,0); transform: scale(0.96); } 60% { opacity: 1; box-shadow: 0 0 32px rgba(247,179,52,0.55); } 100% { opacity: 1; box-shadow: 0 0 0 rgba(247,179,52,0); transform: scale(1); } }
@keyframes ila-float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-14px) rotate(3deg); } }
@keyframes ila-pop-in { 0% { opacity: 0; transform: scale(0.6); } 65% { opacity: 1; transform: scale(1.06); } 100% { opacity: 1; transform: scale(1); } }
.ila-slide-in { opacity: 0; }
.ila-slide-in.in-view { animation: ila-slide-in 0.7s ease-out forwards; }
.ila-glow-in.in-view { animation: ila-glow-in 1.4s ease-out forwards; }
.ila-float { animation: ila-float 5s ease-in-out infinite; }
.ila-pop-in { opacity: 0; }
.ila-pop-in.in-view { animation: ila-pop-in 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }

.ila-modal-backdrop { display:none; position:fixed; inset:0; background:rgba(35,31,32,0.65); z-index:999; align-items:center; justify-content:center; padding:24px; }
.ila-modal-backdrop.open { display:flex; }
.ila-modal-box { position:relative; background:var(--white); border-radius:14px; max-width:520px; width:100%; padding:44px; box-shadow:0 30px 60px rgba(0,0,0,0.3); }
.ila-modal-close { position:absolute; top:16px; right:16px; width:32px; height:32px; border-radius:50%; border:1px solid var(--hairline); background:var(--white); display:flex; align-items:center; justify-content:center; cursor:pointer; color:var(--ink); }
.ila-modal-desc p { margin:0 0 14px; }
.ila-modal-desc p:last-child { margin-bottom:0; }
.ila-modal-desc .ila-modal-line { font-weight:600; color:var(--maroon); margin:0 0 14px; }
.ila-modal-desc ul { margin:0; padding-left:20px; }
.ila-modal-desc li { margin-bottom:8px; }

.ila-chat-btn { position:fixed; bottom:24px; right:24px; height:56px; padding:0 24px 0 18px; border-radius:30px; background:var(--maroon); color:var(--white); border:none; display:flex; align-items:center; justify-content:center; gap:10px; font-family:'Montserrat', sans-serif; font-size:14px; font-weight:700; letter-spacing:0.3px; box-shadow:0 10px 26px rgba(0,0,0,0.25); cursor:pointer; z-index:998; transition:transform 0.15s ease; }
@media (max-width: 600px) { .ila-chat-btn { bottom:16px; right:16px; height:50px; padding:0 18px 0 14px; font-size:13px; } .ila-chat-panel { bottom:80px; right:16px; } }
.ila-chat-btn:hover { transform:scale(1.06); }
.ila-chat-panel { position:fixed; bottom:96px; right:24px; width:360px; max-width:calc(100vw - 32px); height:480px; max-height:70vh; background:var(--white); border-radius:16px; box-shadow:0 20px 50px rgba(0,0,0,0.3); display:none; flex-direction:column; overflow:hidden; z-index:998; }
.ila-chat-panel.open { display:flex; }
.ila-chat-head { background:var(--maroon); color:var(--white); padding:16px 18px; display:flex; align-items:center; justify-content:space-between; flex-shrink:0; }
.ila-chat-head-title { display:flex; flex-direction:column; gap:2px; }
.ila-chat-head-title strong { font-family:'Cinzel', serif; font-size:14px; }
.ila-chat-head-title span { font-size:11px; color:rgba(255,255,255,0.75); }
.ila-chat-close { background:none; border:none; color:var(--white); cursor:pointer; font-size:16px; line-height:1; padding:4px; }
.ila-chat-body { flex:1; overflow-y:auto; padding:16px; display:flex; flex-direction:column; gap:12px; background:var(--parchment); }
.ila-chat-msg { max-width:85%; padding:10px 14px; border-radius:12px; font-size:13.5px; line-height:1.55; }
.ila-chat-msg.bot { align-self:flex-start; background:var(--white); border:1px solid var(--hairline); color:var(--ink); border-bottom-left-radius:2px; }
.ila-chat-msg.user { align-self:flex-end; background:var(--maroon); color:var(--white); border-bottom-right-radius:2px; }
.ila-chat-quick { display:flex; flex-direction:column; gap:6px; align-self:flex-start; max-width:92%; }
.ila-chat-quick button { text-align:left; background:var(--white); border:1px solid var(--maroon); color:var(--maroon); font-size:12.5px; font-weight:600; padding:8px 12px; border-radius:20px; cursor:pointer; }
.ila-chat-quick button:hover { background:var(--maroon); color:var(--white); }
.ila-chat-input-row { display:flex; gap:8px; padding:12px; border-top:1px solid var(--hairline); flex-shrink:0; background:var(--white); }
.ila-chat-input-row input { flex:1; border:1px solid var(--hairline); border-radius:20px; padding:10px 16px; font-size:13px; font-family:'Montserrat', sans-serif; outline:none; }
.ila-chat-input-row input:focus { border-color:var(--maroon); }
.ila-chat-send { background:var(--maroon); color:var(--white); border:none; width:38px; height:38px; border-radius:50%; flex-shrink:0; display:flex; align-items:center; justify-content:center; cursor:pointer; }
.btn-gold { background: var(--gold); color: var(--maroon-deep); }
.btn-maroon { background: var(--maroon); color: var(--white); }
.btn-maroon-deep { background: var(--maroon-deep); color: var(--white); }
.btn-outline-light { border: 1.5px solid rgba(255,255,255,0.45); color: var(--white); background: transparent; }
.btn-sm { padding: 13px 22px; font-size: 12.5px; }
.btn-link { display: inline-flex; align-items: center; gap: 6px; color: var(--maroon); font-weight: 600; font-size: 13px; background: none; padding: 0; transition: opacity 0.15s ease; }
.btn-link:hover { opacity: 0.7; text-decoration: underline; }
.header-cta.btn:hover, .footer-social a:hover { filter: none; }
.category-bar a { transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease; }
.footer-social a, .contact-detail .icon-badge, .icon-badge { transition: transform 0.15s ease, box-shadow 0.15s ease; }
.footer-social a:hover { transform: translateY(-2px); background: rgba(255,255,255,0.1); }

/* ==========================================================================
   Header / navigation
   ========================================================================== */
.site-header {
  width: 100%; height: 96px; background: var(--white); border-bottom: 1px solid var(--hairline);
  position: sticky; top: 0; z-index: 100;
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-logo img, .custom-logo-link img { height: 60px; width: auto; }
.primary-nav { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.primary-nav ul { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.primary-nav a {
  font-size: 12px; font-weight: 600; letter-spacing: 0.5px; color: var(--ink);
  padding-bottom: 4px; border-bottom: 2px solid transparent; white-space: nowrap;
}
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav .current_page_item > a {
  color: var(--maroon); border-bottom-color: var(--gold);
}
.header-cta { flex-shrink: 0; }
.nav-toggle { display: none; background: none; border: none; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--maroon); margin: 5px 0; }

/* ==========================================================================
   Breadcrumb page header
   ========================================================================== */
.page-hero {
  position: relative; overflow: hidden; background: var(--maroon); padding: 64px 0;
}
.page-hero .watermark { position: absolute; right: 20px; top: -40px; width: 220px; opacity: 0.08; pointer-events: none; }
.page-hero .crumb { font-size: 13px; font-weight: 600; letter-spacing: 1px; color: #FFFFFF; margin-bottom: 14px; }
.page-hero .crumb a { color: #FFFFFF; }
.page-hero .crumb span { color: var(--gold); }
.page-hero h1 { font-size: 42px; color: var(--white); margin-bottom: 14px; }
.page-hero p { font-size: 16px; color: #FFFFFF; max-width: 680px; line-height: 1.7; }

/* ==========================================================================
   Home hero
   ========================================================================== */
.home-hero {
  position: relative; overflow: hidden; min-height: 640px; display: flex; align-items: center;
  background-color: var(--maroon-deep);
}
.home-hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
.home-hero .scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(77,8,13,0.94) 0%, rgba(77,8,13,0.86) 38%, rgba(118,12,20,0.55) 68%, rgba(118,12,20,0.25) 100%);
}
.home-hero .container { position: relative; z-index: 2; max-width: none; margin: 0; padding: 0 80px; }
.home-hero-content { max-width: 640px; display: flex; flex-direction: column; gap: 26px; align-items: flex-start; text-align: left; }
.home-hero-content .eyebrow { color: var(--gold); }
.home-hero-content h1 { font-size: 52px; line-height: 1.15; color: var(--white); }
.home-hero-content p { font-size: 17px; line-height: 1.75; color: #FFFFFF; max-width: 520px; }
.home-hero-actions { display: flex; gap: 16px; margin-top: 10px; flex-wrap: wrap; }

/* ==========================================================================
   Cards & grids
   ========================================================================== */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0,1fr)); }
.flex-row { display: flex; gap: 22px; }

.icon-badge {
  width: 52px; height: 52px; border-radius: 50%; background: var(--gold-light);
  display: flex; align-items: center; justify-content: center; color: var(--maroon); flex-shrink: 0;
}
.icon-badge.square { border-radius: 10px; }
.icon-badge.on-parchment { background: var(--parchment); }
.icon-badge.on-white { background: var(--white); }
.icon-badge.on-maroon { background: var(--maroon); color: var(--gold); }
.icon-badge svg { width: 26px; height: 26px; }

.value-card, .service-card {
  display: flex; flex-direction: column; gap: 16px; padding: 30px 24px;
  background: var(--white); border: 1px solid var(--hairline); border-radius: 10px;
  transition: transform 0.18s ease, box-shadow 0.18s ease; cursor: pointer;
}
.value-card:hover, .service-card:hover { transform: translateY(-5px); box-shadow: 0 16px 32px rgba(0,0,0,0.12); }
.value-card.on-parchment { background: var(--parchment); border: none; }
.value-card h3, .service-card h3 { font-size: 17px; color: var(--maroon); font-weight: 600; line-height: 1.3; }
.value-card p, .service-card p { font-size: 13px; line-height: 1.65; color: var(--ink); }
.service-card p { color: var(--ink); flex-grow: 1; }
.service-tag { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; color: var(--amber-deep); }

.stat-card { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 36px 30px; background: var(--maroon); border-radius: 10px; }
.stat-card .num { font-family: 'Cinzel', serif; font-size: 44px; color: var(--gold); font-weight: 700; }
.stat-card p { font-size: 14px; line-height: 1.7; color: #FFFFFF; }

.pill { padding: 14px 24px; background: var(--white); border: 1px solid var(--hairline); border-radius: 30px; font-size: 14px; font-weight: 500; transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease; }
.pill:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,0.08); border-color: var(--maroon); }

.client-logo { transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease; filter: grayscale(70%); opacity: 0.85; cursor: pointer; }
.client-logo:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(0,0,0,0.1); filter: grayscale(0%); opacity: 1; }
.pill-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; max-width: 1100px; margin: 0 auto; }

.lens-row { padding: 64px 0; }
.lens-row .inner { display: flex; align-items: center; gap: 64px; }
.lens-row.reverse .inner { flex-direction: row-reverse; }
.lens-row .lens-num { font-family: 'Cinzel', serif; font-size: 30px; color: var(--gold-light); font-weight: 700; }
.lens-row .lens-text { flex: 1; display: flex; flex-direction: column; gap: 16px; }
.lens-row .lens-text h3 { font-size: 26px; }
.lens-row .lens-media { flex: 1; }
.lens-row .lens-media img { width: 100%; height: 300px; object-fit: cover; border-radius: 10px; }
.lens-row .lens-header { display: flex; align-items: center; gap: 16px; }

.img-placeholder {
  width: 100%; box-sizing: border-box; background: var(--parchment); border: 1px dashed var(--hairline);
  border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; color: var(--ink); text-align: center; padding: 20px;
}

/* ==========================================================================
   FAQ (native details/summary accordion)
   ========================================================================== */
.faq-list { background: var(--white); border-radius: 12px; padding: 8px 40px; }
.faq-item { border-top: 1px solid var(--hairline); padding: 24px 0; }
.faq-item:first-child { border-top: none; }
.faq-item summary {
  font-family: 'Cinzel', serif; font-size: 16.5px; color: var(--maroon); font-weight: 600;
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ''; flex-shrink: 0; width: 10px; height: 10px; border-right: 2px solid var(--amber-deep);
  border-bottom: 2px solid var(--amber-deep); transform: rotate(45deg); transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-item .faq-answer { font-size: 14px; line-height: 1.75; color: var(--ink); max-width: 920px; margin-top: 14px; }

/* ==========================================================================
   Forms
   ========================================================================== */
.form-panel { flex: 1.2; display: flex; flex-direction: column; gap: 24px; padding: 48px; background: var(--parchment); border-radius: 12px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label { font-size: 12.5px; font-weight: 600; letter-spacing: 0.5px; color: var(--ink); }
.form-field input, .form-field textarea {
  font-size: 14px; color: var(--ink); padding: 14px 16px; border: 1px solid var(--hairline);
  border-radius: 6px; box-sizing: border-box; width: 100%; background: var(--white);
}
.form-field textarea { resize: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-notice { padding: 16px 20px; border-radius: 6px; font-size: 14px; margin-bottom: 8px; }
.form-notice.success { background: #E3F1E6; color: #2A5C34; }
.form-notice.error { background: #F6E0E0; color: var(--maroon); }

.contact-detail { display: flex; align-items: flex-start; gap: 16px; }
.contact-detail .icon-badge { width: 44px; height: 44px; }
.contact-detail .label { font-size: 12px; color: var(--ink); font-weight: 600; letter-spacing: 0.5px; }
.contact-detail .value { font-size: 15px; color: var(--ink); }

/* ==========================================================================
   Blog / Insights
   ========================================================================== */
.category-bar { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 56px; }
.category-bar a { padding: 10px 20px; border: 1px solid var(--hairline); border-radius: 20px; font-size: 13px; font-weight: 600; color: var(--ink); }
.category-bar a.active, .category-bar a:hover { background: var(--maroon); color: var(--white); border-color: var(--maroon); }
.article-card { display: flex; flex-direction: column; gap: 16px; transition: transform 0.18s ease; cursor: pointer; }
.article-card:hover { transform: translateY(-5px); }
.article-card:hover img { box-shadow: 0 16px 32px rgba(0,0,0,0.15); }
.article-card img { width: 100%; height: 200px; object-fit: cover; border-radius: 8px; }
.article-meta { display: flex; gap: 10px; align-items: center; }
.article-meta .cat { font-size: 10.5px; font-weight: 700; letter-spacing: 0.5px; color: var(--maroon); background: var(--parchment); padding: 4px 10px; border-radius: 20px; }
.article-meta .date { font-size: 11.5px; color: var(--ink); }
.article-card h3 { font-size: 17px; line-height: 1.35; }
.article-card .excerpt { font-size: 13px; line-height: 1.65; color: var(--ink); }
.featured-article { display: flex; gap: 64px; align-items: center; padding: 96px 0 60px; }
.featured-article img { width: 100%; height: 380px; object-fit: cover; border-radius: 10px; }
.newsletter-form { display: flex; gap: 12px; margin-top: 8px; flex-wrap: wrap; justify-content: center; }
.newsletter-form input[type=email] { padding: 14px 18px; border: none; border-radius: 4px; width: 280px; }
.pagination { display: flex; gap: 10px; justify-content: center; margin-top: 56px; }
.pagination a, .pagination span { padding: 10px 18px; border: 1px solid var(--hairline); border-radius: 4px; font-size: 13px; font-weight: 600; }
.pagination .current { background: var(--maroon); color: var(--white); border-color: var(--maroon); }

.single-post-hero { background: var(--maroon); padding: 72px 0; }
.single-post-hero h1 { color: var(--white); font-size: 38px; line-height: 1.3; }
.single-post-hero .meta { color: #FFFFFF; font-size: 13px; margin-top: 12px; }
.entry-content { max-width: 800px; margin: 0 auto; padding: 80px 40px; font-size: 16px; line-height: 1.85; }
.entry-content h2 { font-size: 26px; margin: 40px 0 16px; }
.entry-content h3 { font-size: 20px; margin: 32px 0 12px; }
.entry-content img { border-radius: 8px; margin: 24px 0; }
.entry-content a { color: var(--maroon); text-decoration: underline; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--maroon-deep); padding: 72px 0 40px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 48px; }
.footer-brand { display: flex; flex-direction: column; gap: 18px; max-width: 300px; align-items: flex-start; }
.footer-brand img { width: 121px; height: 81px; flex-shrink: 0; align-self: flex-start; }
.footer-brand .tag { font-size: 13px; font-weight: 600; letter-spacing: 1px; color: var(--gold); }
.footer-brand p { font-size: 13px; line-height: 1.7; color: #FFFFFF; }
.footer-col { display: flex; flex-direction: column; gap: 14px; min-width: 180px; }
.footer-col .head { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; color: var(--gold); text-transform: uppercase; }
.footer-col a, .footer-col .row { font-size: 14px; color: #FFFFFF; display: flex; align-items: center; gap: 10px; transition: opacity 0.15s ease; }
.footer-col a:hover { opacity: 0.7; text-decoration: underline; }
.footer-divider { height: 1px; background: rgba(255,255,255,0.15); margin-bottom: 24px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-bottom .copyright { font-size: 12px; color: #FFFFFF; }
.footer-social { display: flex; gap: 14px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25); display: flex; align-items: center; justify-content: center; color: var(--white); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .grid-5 { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .flex-row { flex-wrap: wrap; }
  .flex-row > * { flex: 1 1 240px; }
}
@media (max-width: 900px) {
  .header-cta { display: none; }
  .primary-nav { position: fixed; top: 96px; left: 0; right: 0; z-index: 99; background: var(--white); flex-direction: column;
    align-items: flex-start; padding: 24px 40px; border-bottom: 1px solid var(--hairline); gap: 16px;
    max-height: calc(100vh - 96px); overflow-y: auto; transform: translateY(-120%); transition: transform 0.25s ease; }
  .primary-nav.open { transform: translateY(0); }
  .primary-nav ul { flex-direction: column; align-items: flex-start; gap: 16px; }
  .nav-toggle { display: block; }
  .home-hero-content h1 { font-size: 38px; }
  .home-hero .container { padding: 0 40px; }
  .section { padding: 64px 0; }
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .lens-row .inner, .lens-row.reverse .inner { flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
  .featured-article { flex-direction: column; padding-top: 64px; }
  .footer-top { flex-direction: column; }
  .page-hero h1 { font-size: 32px; }
  .stack-mobile { flex-direction: column !important; }
}
@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .home-hero .container { padding: 0 20px; }
  .home-hero-content h1 { font-size: 30px; }
  .home-hero-actions { flex-direction: column; align-items: stretch; }
  .stat-card, .flex-row { flex-direction: column; }
}
