/* ===========================
   PNL Bookkeeping — styles.css
   =========================== */

/* 1. CSS Variables */
:root {
  --green: #0C9D68;
  --green-dark: #098057;
  --green-light: #E8F7F1;
  --green-mid: #D1F0E4;
  --navy: #101828;
  --grey-700: #344054;
  --grey-500: #667085;
  --grey-300: #D0D5DD;
  --grey-100: #F2F4F7;
  --bg: #F8FAF9;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(16,24,40,0.06), 0 1px 2px rgba(16,24,40,0.04);
  --shadow-md: 0 4px 8px rgba(16,24,40,0.08), 0 2px 4px rgba(16,24,40,0.04);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
}

/* 2. Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: hidden; scroll-padding-top: 88px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--navy);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Focus ring — visible for keyboard nav, hidden for mouse */
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip to main content link (accessibility) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  background: var(--green);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* 3. Typography */
h1 { font-size: clamp(1.75rem, 4.5vw, 2.75rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; }
h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.3; }
h4 { font-size: 1rem; font-weight: 600; }
p { color: var(--grey-700); }
.text-green { color: var(--green); }
.text-muted { color: var(--grey-500); }

/* 4. Container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* 5. Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 50px;
  font-size: 0.9375rem; font-weight: 600;
  cursor: pointer; transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--green); color: var(--white);
  border-color: var(--green);
}
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); transform: translateY(-2px); box-shadow: 0 0 0 4px rgba(12,157,104,0.15), 0 8px 24px rgba(12,157,104,0.25); }
.btn-outline {
  background: transparent; color: var(--navy);
  border-color: var(--grey-300);
}
.btn-outline:hover { border-color: var(--navy); transform: translateY(-1px); }
.btn-outline-white {
  background: transparent; color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline-white:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }
.btn-white {
  background: var(--white); color: var(--navy);
  border-color: var(--white);
}
.btn-white:hover { background: var(--grey-100); transform: translateY(-1px); }
.btn-sm { padding: 8px 18px; font-size: 0.875rem; }
.btn-arrow::after { content: '→'; font-size: 1rem; transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1); display: inline-block; }

/* 6. Navigation */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--grey-100);
  padding: 0;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-logo {
  font-size: 1.5rem; font-weight: 700;
  color: var(--navy);
  display: flex; align-items: center; gap: 4px;
}
.nav-logo span { color: var(--green); }
.nav-links { display: flex; align-items: center; gap: 36px; margin-left: 140px; }
.nav-links a {
  font-size: 0.9375rem; font-weight: 500;
  color: var(--grey-700);
  transition: color 0.15s;
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--navy); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--green); border-radius: 2px;
}
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; background: none; border: none; padding: 4px; }
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease; }
/* Animate to X when open */
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 7. Hero Sections */
.hero {
  background: var(--bg);
  padding: 56px 0 44px;
  overflow: hidden;
  position: relative;
}
.hero .container {
  position: relative;
  z-index: 1;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--green);
  margin-bottom: 20px;
}
.hero h1 { margin-bottom: 20px; }
.hero-lead {
  font-size: 1.0625rem; color: var(--grey-500);
  margin-bottom: 28px; line-height: 1.7;
}
.hero-checklist {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px;
  margin-bottom: 36px;
}
.hero-checklist li {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.9375rem; color: var(--grey-700); font-weight: 500;
}
.hero-checklist li::before {
  content: '✓'; color: var(--green); font-weight: 700; font-size: 0.875rem;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 32px; margin-top: 40px; padding-top: 32px;
  border-top: 1px solid var(--grey-300);
}
.hero-stat-num { font-size: 1.75rem; font-weight: 700; color: var(--navy); }
.hero-stat-label { font-size: 0.8125rem; color: var(--grey-500); font-weight: 500; }
/* Home page only — full-bleed absolute image */
.hero > .hero-image {
  position: absolute;
  top: 0; right: 0;
  width: 54%;
  height: 100%;
  z-index: 0;
}
.hero > .hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  display: block;
}
.hero > .hero-image::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 55%;
  height: 100%;
  background: linear-gradient(to right, var(--bg) 10%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

/* Inner pages — hero-image is a normal grid column, not absolute */
.hero-inner .hero-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.hero-inner .hero-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

/* Left-fade variant — blends image edge into section background */
.hero-image--fade::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--bg) 0%, transparent 44%);
  pointer-events: none;
}

/* Inner page hero */
.hero-inner {
  background: var(--bg);
  padding: 44px 0 36px;
}
.hero-inner .hero-grid {
  grid-template-columns: 1fr 1fr; gap: 48px;
}
.hero-inner h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }

/* 8. Section Spacing */
section { padding: 56px 0; }
section[id] { scroll-margin-top: 88px; }
.section-bg { background: var(--bg); }

/* 9. Section Headers */
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { margin-bottom: 12px; }
.section-header p { font-size: 1.0625rem; color: var(--grey-500); max-width: 560px; margin: 0 auto; }
.section-eyebrow {
  display: inline-block;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--green);
  margin-bottom: 12px;
}

/* 10. Cards */
.card {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: 0 8px 28px rgba(12,157,104,0.12), 0 2px 8px rgba(16,24,40,0.06); transform: translateY(-3px); }
.card-icon {
  width: 48px; height: 48px;
  background: var(--green-light);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.card-icon svg { width: 24px; height: 24px; stroke: var(--green); fill: none; stroke-width: 1.75; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.9375rem; }

.card-list {
  margin-top: 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.card-list li {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.875rem; color: var(--grey-500);
}
.card-list li::before {
  content: ''; width: 6px; height: 6px; flex-shrink: 0;
  border-radius: 50%; background: var(--green);
}

/* 11. Grid Layouts */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* 12. Why Choose PnL — 3 benefit cards */
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.benefit-card {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

/* 13. Cashflow Feature Section */
.cashflow-section {
  background: var(--bg);
  padding: 36px 0;
}
.cashflow-grid {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center;
}
.cashflow-content h2 { margin-bottom: 20px; }
.cashflow-content p { margin-bottom: 24px; font-size: 1.0625rem; }

/* Cashflow dashboard mockup */
.cashflow-mockup {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid var(--grey-100);
}
.mockup-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--grey-100);
  display: flex; align-items: center; justify-content: space-between;
}
.mockup-title { font-size: 0.875rem; font-weight: 600; }
.mockup-badge {
  font-size: 0.75rem; color: var(--grey-500);
  background: var(--grey-100); padding: 4px 10px; border-radius: 20px;
}
.mockup-body { padding: 20px; }
.mockup-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px;
}
.mockup-stat-label { font-size: 0.6875rem; color: var(--grey-500); margin-bottom: 4px; }
.mockup-stat-value { font-size: 1rem; font-weight: 700; color: var(--navy); }
.mockup-stat-value.positive { color: var(--green); }
.mockup-stat-value.negative { color: #F04438; }
.mockup-chart {
  height: 100px; background: var(--bg);
  border-radius: var(--radius-sm);
  display: flex; align-items: flex-end; padding: 12px; gap: 8px;
  margin-bottom: 12px;
}
.chart-bar {
  flex: 1; border-radius: 4px 4px 0 0;
  background: var(--green-mid);
  transition: height 0.3s;
}
.chart-bar.active { background: var(--green); }
.mockup-alert {
  display: flex; align-items: center; gap: 10px;
  background: var(--green-light); border-radius: var(--radius-sm);
  padding: 10px 14px; font-size: 0.8125rem;
}
.mockup-alert-icon { font-size: 1rem; }

/* Cashflow screenshot image */
.cashflow-screenshot-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.cashflow-screenshot-img {
  width: 100%;
  height: auto;
  display: block;
}

/* 14. Services Preview (home page) */
.services-preview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service-card {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}
.service-card:hover { box-shadow: 0 8px 28px rgba(12,157,104,0.12), 0 2px 8px rgba(16,24,40,0.06); transform: translateY(-3px); }
.service-card .card-icon { margin-bottom: 16px; }
.service-card h3 { font-size: 1rem; margin-bottom: 8px; }
.service-card p { font-size: 0.875rem; color: var(--grey-500); margin-bottom: 16px; }
.learn-more {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.875rem; font-weight: 600; color: var(--green);
  transition: gap 0.15s;
}
.learn-more:hover { gap: 10px; }

/* 15. Partners */
.partners { padding: 32px 0; background: var(--white); border-top: 1px solid var(--grey-100); border-bottom: 1px solid var(--grey-100); }
.partners-label {
  text-align: center; font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--grey-500); margin-bottom: 28px;
}
.partners-logos { display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; }
.partner-logo {
  display: flex; align-items: center; gap: 10px;
  opacity: 0.7; transition: opacity 0.2s;
}
.partner-logo:hover { opacity: 1; }
.partner-logo-real { height: 52px; width: auto; display: block; border-radius: 0; }
.partner-logo-img {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1rem; color: var(--white);
}
.partner-logo-img.xero { background: #13B5EA; }
.partner-logo-img.qb { background: #2CA01C; }
.partner-logo-img.cf { background: #4CAF50; }
.partner-logo-text { display: flex; flex-direction: column; }
.partner-logo-name { font-size: 1rem; font-weight: 700; color: var(--navy); }
.partner-logo-desc { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--grey-500); }

/* 16. CTA Banner */
.cta-banner {
  background: var(--navy);
  padding: 48px 0;
}
.cta-banner-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.cta-banner-left { display: flex; align-items: center; gap: 20px; }
.cta-banner-icon {
  width: 56px; height: 56px; flex-shrink: 0;
  background: rgba(12,157,104,0.2); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.cta-banner-icon svg { width: 28px; height: 28px; stroke: var(--green); fill: none; stroke-width: 1.75; }
.cta-banner h2 { font-size: 1.375rem; color: var(--white); margin-bottom: 4px; }
.cta-banner p { color: rgba(255,255,255,0.65); font-size: 0.9375rem; }
.cta-banner-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.cta-phone { display: flex; align-items: center; gap: 8px; color: var(--white); font-weight: 600; }
.cta-phone svg { width: 16px; height: 16px; stroke: var(--green); fill: none; stroke-width: 2; }

/* 17. Footer */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.65);
  padding: 40px 0 28px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 40px; margin-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand p { font-size: 0.9rem; margin-top: 12px; line-height: 1.7; max-width: 260px; }
.footer-logo { font-size: 1.125rem; font-weight: 700; color: var(--white); }
.footer-logo span { color: var(--green); }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.footer-social a:hover { background: var(--green); }
.footer-social svg { width: 16px; height: 16px; fill: white; }
.footer-col h4 { font-size: 0.875rem; font-weight: 600; color: var(--white); margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.875rem; color: rgba(255,255,255,0.55); transition: color 0.15s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.8125rem;
}
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { color: rgba(255,255,255,0.45); }
.footer-bottom-links a:hover { color: var(--white); }

/* 18. Pricing Cards */
.pricing-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.pricing-tab {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 50px;
  font-size: 0.9rem; font-weight: 500; cursor: pointer;
  border: 2px solid var(--grey-300);
  color: var(--grey-700);
  background: var(--white);
  transition: all 0.2s;
}
.pricing-tab.active {
  background: var(--green); color: var(--white); border-color: var(--green);
}
.pricing-tab svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }

.pricing-section { margin-bottom: 64px; }
.pricing-section-header { margin-bottom: 28px; }
.pricing-section-header h3 { font-size: 1.375rem; margin-bottom: 4px; }
.pricing-section-header p { font-size: 0.9375rem; color: var(--grey-500); }

.pricing-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pricing-card {
  background: var(--white);
  border: 1.5px solid var(--grey-100);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  position: relative;
  display: flex; flex-direction: column;
}
.pricing-card.featured {
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green), var(--shadow-md);
}
.pricing-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--green); color: var(--white);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 14px; border-radius: 20px;
}
.pricing-card-icon {
  width: 40px; height: 40px;
  background: var(--green-light); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.pricing-card-icon svg { width: 20px; height: 20px; stroke: var(--green); fill: none; stroke-width: 2; }
.pricing-card h4 { font-size: 1.125rem; margin-bottom: 4px; }
.pricing-card .pricing-desc { font-size: 0.875rem; color: var(--grey-500); margin-bottom: 20px; }
.pricing-amount { margin-bottom: 20px; }
.pricing-amount .price { font-size: 2rem; font-weight: 800; color: var(--navy); }
.pricing-amount .period { font-size: 0.875rem; color: var(--grey-500); }
.pricing-amount .price-from { font-size: 0.875rem; color: var(--grey-500); font-weight: 400; margin-right: 2px; }
.pricing-card-features { flex: 1; margin-bottom: 24px; }
.pricing-card-features li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.875rem; color: var(--grey-700);
  padding: 6px 0; border-bottom: 1px solid var(--grey-100);
}
.pricing-card-features li:last-child { border-bottom: none; }
.pricing-check { color: var(--green); font-weight: 700; flex-shrink: 0; }

/* 19. Pricing table */
.pricing-table-section { background: var(--bg); padding: 48px 0; }
.pricing-table-section h2 { margin-bottom: 32px; }
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.pricing-table th {
  background: var(--navy); color: var(--white);
  padding: 16px 20px; text-align: left; font-size: 0.875rem; font-weight: 600;
}
.pricing-table th:first-child { border-radius: 0; }
.pricing-table td {
  padding: 14px 20px; border-bottom: 1px solid var(--grey-100);
  font-size: 0.9rem;
}
.pricing-table tr:last-child td { border-bottom: none; }
.pricing-table tr:hover td { background: var(--bg); }
.pricing-table .arrow-cell { color: var(--green); font-weight: 600; }

/* 20. Services page — service group cards */
.service-group { margin-bottom: 72px; }
.service-group-header { margin-bottom: 32px; }
.service-group-header h2 { font-size: 1.75rem; margin-bottom: 6px; }
.service-group-header p { color: var(--grey-500); }

.bas-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  background: var(--white); border: 1px solid var(--grey-100);
  border-radius: var(--radius-lg); padding: 40px;
  box-shadow: var(--shadow-sm);
}
.bas-features { display: flex; flex-direction: column; gap: 10px; }
.bas-features li {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.9375rem; color: var(--grey-700);
}
.bas-features li::before {
  content: '✓'; color: var(--green); font-weight: 700;
}
.bas-image {
  background: var(--green-light); border-radius: var(--radius);
  padding: 32px; text-align: center;
}
.bas-image svg { width: 80px; height: 80px; stroke: var(--green); fill: none; stroke-width: 1.25; margin: 0 auto; }

/* Why cashflow section on services page */
.why-cashflow {
  background: var(--navy); color: var(--white); padding: 52px 0;
}
.why-cashflow-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.why-cashflow h2 { color: var(--white); margin-bottom: 20px; }
.why-cashflow h2 span { color: var(--green); }
.why-cashflow p { color: rgba(255,255,255,0.7); margin-bottom: 12px; font-size: 1rem; }
.why-statements { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.why-statement {
  display: flex; align-items: center; gap: 12px;
  color: rgba(255,255,255,0.85); font-size: 0.9375rem;
}
.why-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex-shrink: 0; }

/* 21. Contact page */
.contact-grid { display: grid; grid-template-columns: 1fr 0.75fr; gap: 48px; align-items: start; }
.contact-form { background: var(--white); border: 1px solid var(--grey-100); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-sm); }
.contact-form h2 { margin-bottom: 6px; font-size: 1.5rem; }
.contact-form .form-lead { color: var(--grey-500); margin-bottom: 28px; font-size: 0.9375rem; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--grey-300); border-radius: var(--radius-sm);
  font-size: 1rem; font-family: inherit; color: var(--navy);
  background: var(--white);
  transition: border-color 0.15s;
  outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--green);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.contact-sidebar { display: flex; flex-direction: column; gap: 20px; }
.why-choose-card { background: var(--white); border: 1px solid var(--grey-100); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); }
.why-choose-card h3 { margin-bottom: 24px; }
.why-choose-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.why-choose-item:last-child { margin-bottom: 0; }
.why-choose-icon { width: 40px; height: 40px; background: var(--green-light); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.why-choose-icon svg { width: 18px; height: 18px; stroke: var(--green); fill: none; stroke-width: 2; }
.why-choose-text h4 { margin-bottom: 2px; }
.why-choose-text p { font-size: 0.875rem; color: var(--grey-500); }
.contact-info-card { background: var(--white); border: 1px solid var(--grey-100); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); }
.contact-info-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.contact-info-item:last-child { margin-bottom: 0; }
.contact-info-icon { width: 40px; height: 40px; background: var(--green-light); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-info-icon svg { width: 18px; height: 18px; stroke: var(--green); fill: none; stroke-width: 2; }
.contact-info-text h4 { margin-bottom: 2px; }
.contact-info-text a { color: var(--green); font-size: 0.9rem; }
.contact-info-text p { font-size: 0.875rem; color: var(--grey-500); }

/* 22. About / Who we work with */
.audience-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.audience-card { background: var(--white); border: 1px solid var(--grey-100); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-sm); }
.audience-card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.audience-card > p { margin-bottom: 20px; }
.audience-features li { display: flex; align-items: center; gap: 10px; font-size: 0.9375rem; color: var(--grey-700); padding: 6px 0; }
.audience-features li::before { content: '✓'; color: var(--green); font-weight: 700; }

/* 23. Mobile Navigation */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--white);
  padding: 20px 24px;
  border-top: 1px solid var(--grey-100);
  gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 12px 0; font-size: 1rem; font-weight: 500;
  color: var(--grey-700); border-bottom: 1px solid var(--grey-100);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu .btn { margin-top: 8px; text-align: center; justify-content: center; }

/* 24. Responsive */

/* ── Tablet large (≤1024px): collapse nav to hamburger ── */
@media (max-width: 1024px) {
  .nav-links, .nav-actions { display: none; }
  .nav-hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .hero-stat-num { font-size: 1.375rem; }
}

/* ── Tablet (769px–1024px): hero layout ── */
@media (min-width: 769px) and (max-width: 1024px) {
  /* Hero: image covers right half, push text column to use full left width */
  .hero { padding: 64px 0 56px; }
  .hero-grid { grid-template-columns: 55% 1fr; gap: 0; }
  .hero-image { width: 50%; }
  .hero-image::after { width: 65%; }

  /* Inner page grids */
  .hero-inner .hero-grid { grid-template-columns: 1fr; }
  .hero-inner .hero-image { display: none; }

  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .pricing-cards { grid-template-columns: repeat(2, 1fr); }
  .cashflow-grid { gap: 40px; }
  .why-cashflow-grid { gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
  .bas-card { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .founder-card { gap: 28px; }
}

/* ── Mobile (≤768px) ── */
@media (max-width: 768px) {
  h1 { font-size: clamp(1.75rem, 7vw, 2.25rem); }
  h2 { font-size: clamp(1.375rem, 5vw, 1.75rem); }
  section { padding: 32px 0; }

  /* Hero */
  .hero { padding: 36px 0 28px; min-height: unset; }
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-image { display: none; }
  .hero-checklist { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .hero-inner .hero-grid { grid-template-columns: 1fr; }
  .hero-inner .hero-image { display: none; }

  /* Grids */
  .benefits-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .cashflow-grid { grid-template-columns: 1fr; }
  .services-preview { grid-template-columns: 1fr 1fr; }
  .pricing-cards { grid-template-columns: 1fr; }

  /* About page */
  .values-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .founder-card { grid-template-columns: 1fr; text-align: center; }
  .founder-avatar { margin: 0 auto; }
  .credentials-list { justify-content: center; }
  .about-story-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-story-grid .story-image { display: none; }

  /* Testimonials */
  .testimonial-card { flex: 0 0 100%; }
  .carousel-btn { display: none; }

  /* Pricing table — horizontal scroll */
  .pricing-table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .pricing-table { min-width: 480px; }
  /* Pricing tabs — horizontal scroll on mobile */
  .pricing-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: none;
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .pricing-tabs::-webkit-scrollbar { display: none; }
  .pricing-tab { flex-shrink: 0; font-size: 0.8125rem; padding: 8px 14px; }

  /* CTA Banner */
  .cta-banner-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .cta-banner-content { flex-direction: column; align-items: flex-start; gap: 16px; }
  .cta-banner-actions { width: 100%; flex-direction: column; align-items: flex-start; gap: 12px; }

  /* Contact */
  .contact-hero { padding: 36px 0 28px !important; }
  .contact-grid { grid-template-columns: 1fr; }
  .bas-card { grid-template-columns: 1fr; }
  .why-cashflow-grid { grid-template-columns: 1fr; }
  .audience-cards { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer-bottom-links { flex-wrap: wrap; justify-content: center; }
}

/* ── Small mobile (≤480px) ── */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .grid-4 { grid-template-columns: 1fr; }
  .services-preview { grid-template-columns: 1fr; }
  .mockup-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { flex-direction: column; gap: 16px; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-banner-actions .btn { width: 100%; justify-content: center; }
  .partners-logos { gap: 28px; }
}

/* =====================================================
   PREMIUM UPGRADES
   ===================================================== */

/* ── Keyframes ── */
@keyframes featured-glow {
  0%, 100% { box-shadow: 0 0 0 1px var(--green), 0 0 20px rgba(12,157,104,0.10); }
  50%       { box-shadow: 0 0 0 1px var(--green), 0 0 48px rgba(12,157,104,0.24); }
}

/* ── Global polish ── */
::selection { background: var(--green); color: var(--white); }

::-webkit-scrollbar       { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--grey-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--green); }

/* Gradient text utility — apply to a <span> inside a heading */
.gradient-text {
  background: linear-gradient(135deg, var(--green) 0%, #00D4A0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Scroll-reveal with stagger ── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity  0.65s cubic-bezier(0.4, 0, 0.2, 1) calc(var(--stagger, 0) * 90ms),
    transform 0.65s cubic-bezier(0.4, 0, 0.2, 1) calc(var(--stagger, 0) * 90ms);
}
.fade-in.visible { opacity: 1; transform: none; }

/* ── Nav scrolled state ── */
.nav.scrolled {
  background: rgba(255,255,255,0.98);
  box-shadow: 0 2px 20px rgba(16,24,40,0.08);
  border-bottom-color: transparent;
}
.nav-logo { transition: opacity 0.15s; }
.nav-logo:hover { opacity: 0.8; }

/* ── Button — press & arrow ── */
.btn:active { transform: scale(0.97) !important; }
.btn-arrow:hover::after { transform: translateX(5px); }

/* ── Cards — icon colour flip on hover ── */
.card-icon,
.card-icon svg,
.pricing-card-icon,
.pricing-card-icon svg { transition: background 0.25s, stroke 0.25s, fill 0.25s; }

.card:hover .card-icon,
.service-card:hover .card-icon,
.benefit-card:hover .card-icon { background: var(--green); }

.card:hover .card-icon svg,
.service-card:hover .card-icon svg,
.benefit-card:hover .card-icon svg { stroke: var(--white); }

/* ── Pricing — featured card glow pulse ── */
.pricing-card.featured { animation: featured-glow 3s ease-in-out infinite; }

/* ── CTA Banner — radial green glow overlay ── */
.cta-banner { position: relative; overflow: hidden; }
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 130% at 85% 50%, rgba(12,157,104,0.16) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.cta-banner .container { position: relative; z-index: 1; }

/* ── Footer — gradient top border ── */
.footer {
  border-top: 1px solid transparent;
  background-image: linear-gradient(var(--navy), var(--navy)),
    linear-gradient(to right, transparent 5%, var(--green) 45%, var(--green) 55%, transparent 95%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}
.footer-social a { transform: translateY(0); transition: background 0.2s, transform 0.2s; }
.footer-social a:hover { transform: translateY(-3px); }

/* ── Blog cards — green image overlay on hover ── */
.blog-card-image { position: relative; overflow: hidden; }
.blog-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(12,157,104,0.18);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.blog-card:hover .blog-card-image::after { opacity: 1; }

/* ── Reading progress bar (injected by JS on article pages) ── */
#reading-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(to right, var(--green), #00D4A0);
  z-index: 9999;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ── Floating labels (contact form) ── */
.form-float { position: relative; }
.form-float input,
.form-float textarea {
  padding: 24px 16px 8px;
}
.form-float label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9375rem;
  color: var(--grey-500);
  font-weight: 400;
  pointer-events: none;
  transition: top 0.2s cubic-bezier(0.4, 0, 0.2, 1),
              font-size 0.2s cubic-bezier(0.4, 0, 0.2, 1),
              color 0.2s,
              transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  line-height: 1;
}
.form-float textarea ~ label {
  top: 24px;
  transform: none;
}
/* Label floats when input is focused or has a value */
.form-float input:focus ~ label,
.form-float input:not(:placeholder-shown) ~ label {
  top: 7px;
  transform: none;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.02em;
}
.form-float textarea:focus ~ label,
.form-float textarea:not(:placeholder-shown) ~ label {
  top: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.02em;
}
.form-float input:focus,
.form-float textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(12,157,104,0.12);
  outline: none;
}

/* ── Accessibility: reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .fade-in { transition: none !important; opacity: 1 !important; transform: none !important; }
  .fade-in.visible { opacity: 1 !important; transform: none !important; }
  .pricing-card.featured { animation: none; }
  #reading-progress { transition: none; }
  .btn { transition: none; }
}

/* ===========================
   Selectable Pricing Cards
   =========================== */

.pricing-card.selectable { cursor: pointer; position: relative; transition: border-color 0.2s, box-shadow 0.2s; }
.pricing-card.selectable:hover { border-color: var(--green); }

.card-selected-badge {
  display: none;
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--green);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px 3px 6px;
  border-radius: 20px;
  align-items: center;
  gap: 4px;
}
.card-selected-badge svg { width: 11px; height: 11px; stroke: var(--white); fill: none; stroke-width: 3; }

.pricing-card.selectable.selected {
  border-color: var(--green);
  box-shadow: 0 0 0 2px var(--green), 0 8px 28px rgba(12, 157, 104, 0.15);
}
.pricing-card.selectable.selected .card-selected-badge { display: flex; }
.pricing-card.selectable.selected .select-btn {
  background: var(--green) !important;
  color: var(--white) !important;
  border-color: var(--green) !important;
}
.pricing-card.selectable.disabled {
  opacity: 0.42;
  pointer-events: none;
  cursor: not-allowed;
}

/* ===========================
   Testimonials Carousel
   =========================== */

.testimonials-section { padding: 36px 0 56px; background: var(--white); }

.testimonials-outer {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimonials-viewport {
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.testimonials-track {
  display: flex;
  gap: 24px;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.testimonial-card {
  flex-shrink: 0;
  background: var(--bg);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.testimonial-stars {
  color: #F59E0B;
  font-size: 1rem;
  letter-spacing: 3px;
  margin-bottom: 16px;
}

.testimonial-quote {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--grey-700);
  margin-bottom: 24px;
  font-style: italic;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green);
  font-size: 0.8125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testimonial-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
}

.testimonial-role {
  font-size: 0.8125rem;
  color: var(--grey-500);
  margin-top: 2px;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--grey-300);
  background: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--navy);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.carousel-btn:hover { background: var(--green); border-color: var(--green); color: var(--white); }
.carousel-btn:disabled { opacity: 0.3; cursor: default; pointer-events: none; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grey-300);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.carousel-dot.active { background: var(--green); transform: scale(1.35); }

/* ===========================
   BAS Notices
   =========================== */

.bas-included-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #f0faf6;
  border: 1px solid rgba(12, 157, 104, 0.3);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 28px;
  color: var(--navy);
  font-size: 0.9rem;
  line-height: 1.5;
}
.bas-included-notice svg { width: 22px; height: 22px; stroke: var(--green); fill: none; stroke-width: 2; flex-shrink: 0; margin-top: 1px; }
.bas-included-notice strong { display: block; margin-bottom: 2px; }

.bk-includes-bas-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(12, 157, 104, 0.07);
  border-left: 3px solid var(--green);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 16px;
  margin-bottom: 28px;
  font-size: 0.88rem;
  color: var(--navy);
}
.bk-includes-bas-notice svg { width: 16px; height: 16px; stroke: var(--green); fill: none; stroke-width: 2; flex-shrink: 0; margin-top: 2px; }

/* ===========================
   Quote Builder
   =========================== */

.quote-section { background: var(--navy); padding: 48px 0; }
.quote-builder { background: var(--white); border-radius: var(--radius-lg); padding: 40px; }

.quote-builder-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.quote-builder-header h2 { margin-bottom: 6px; }
.quote-builder-header p { color: #6b7280; margin: 0; }

.quote-clear-btn {
  background: none;
  border: 1px solid #d1d5db;
  color: #6b7280;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 50px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color 0.2s, color 0.2s;
}
.quote-clear-btn:hover { border-color: var(--navy); color: var(--navy); }

.quote-table-wrapper { overflow-x: auto; margin-bottom: 20px; }
.quote-table { width: 100%; border-collapse: collapse; }
.quote-table thead th {
  background: var(--bg);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #6b7280;
  padding: 10px 16px;
  text-align: left;
  border-bottom: 2px solid #e5e7eb;
}
.quote-table tbody tr:last-child td { border-bottom: none; }
.quote-table td { padding: 14px 16px; border-bottom: 1px solid #f3f4f6; font-size: 0.9rem; }
.quote-row-category { font-weight: 700; color: var(--navy); }
.quote-row-name { color: #374151; }
.quote-included-tag {
  background: var(--green-light);
  color: var(--green);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 6px;
}
.quote-row-period { color: #6b7280; font-size: 0.84rem; }
.quote-row-price { font-weight: 700; color: var(--navy); text-align: right; }
.quote-price-zero { color: var(--green); }

.quote-totals {
  border-top: 2px solid #e5e7eb;
  padding-top: 18px;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.quote-total-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.92rem;
  color: #374151;
}
.quote-total-val { font-weight: 600; color: var(--navy); }
.quote-total-val small { font-weight: 400; color: #6b7280; }
.quote-grand-total-line {
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
}
.quote-grand-total-val { font-size: 1.3rem; font-weight: 800; color: var(--green); }

.quote-inquiry { border-top: 2px solid #e5e7eb; padding-top: 28px; }
.quote-inquiry h3 { margin-bottom: 6px; }
.quote-inquiry > p { color: #6b7280; margin-bottom: 20px; }

.quote-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: end;
  margin-bottom: 12px;
}
.quote-form-row-bottom {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}
.quote-form-row-bottom .form-group {
  flex: 1;
  margin-bottom: 0;
}
.quote-form-row-bottom .btn {
  flex-shrink: 0;
  flex-grow: 0;
  width: 165px;
  white-space: nowrap;
  height: 48px;
  padding: 0 24px;
}
.quote-disclaimer { font-size: 0.78rem; color: #9ca3af; }

@media (max-width: 768px) {
  .quote-builder { padding: 24px 20px; }
  .quote-builder-header { flex-direction: column; }
  .quote-form-row { grid-template-columns: 1fr; }
  .quote-form-row-bottom { flex-direction: column; align-items: stretch; }
  .quote-form-row .btn, .quote-form-row-bottom .btn { width: 100%; justify-content: center; }
}

/* ===========================
   Blog — Listing Page
   =========================== */

.blog-hero { background: var(--navy); color: var(--white); }
.blog-hero .hero-label { color: var(--green); }
.blog-hero h1 { color: var(--white); }
.blog-hero .hero-sub { color: rgba(255,255,255,0.75); max-width: 560px; }

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

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.blog-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  transform: translateY(-2px);
}

.blog-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg);
}
.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.blog-card:hover .blog-card-image img { transform: scale(1.03); }

.blog-card-image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e6f7f1 0%, #d0f0e4 100%);
}
.blog-card-icon { font-size: 2.5rem; }

.blog-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
}

.blog-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.blog-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  margin: 0;
}
.blog-card-title a {
  color: inherit;
  text-decoration: none;
}
.blog-card-title a:hover { color: var(--green); }

.blog-card-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
  flex: 1;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: auto;
}
.blog-card-footer time {
  font-size: 0.8rem;
  color: var(--text-light);
}
.blog-card-read-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
  white-space: nowrap;
}
.blog-card-read-more:hover { text-decoration: underline; }

.blog-loading {
  grid-column: 1/-1;
  text-align: center;
  color: var(--text-light);
  padding: 60px 0;
}
.blog-empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 80px 20px;
}
.blog-empty-icon { font-size: 3rem; margin-bottom: 16px; }
.blog-empty h2 { color: var(--navy); margin-bottom: 12px; }
.blog-empty p { color: var(--text-light); margin-bottom: 28px; }

/* ===========================
   Blog — Article Page
   =========================== */

.article-header-section {
  background: var(--navy);
  color: var(--white);
  padding: 56px 0 40px;
}

.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.article-breadcrumb a { color: rgba(255,255,255,0.65); text-decoration: none; }
.article-breadcrumb a:hover { color: var(--white); }
.article-breadcrumb span:not([aria-hidden]) { color: rgba(255,255,255,0.45); }
.article-breadcrumb [aria-hidden] { color: rgba(255,255,255,0.35); }

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.article-date {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
}

.article-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.article-tag {
  display: inline-block;
  background: rgba(12,157,104,0.15);
  color: #5debb5;
  border: 1px solid rgba(12,157,104,0.3);
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.article-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin: 0 0 20px;
  max-width: 760px;
}

.article-lead {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
  max-width: 660px;
  margin: 0;
}

.article-hero-image {
  width: 100%;
  max-height: 480px;
  overflow: hidden;
}
.article-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-hero-placeholder {
  width: 100%;
  height: 12px;
  background: linear-gradient(to right, var(--green-dark), var(--green), #00D4A0);
}

.article-body-section { padding: 48px 0 56px; background: var(--bg); }

.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
  align-items: start;
}

/* Rendered markdown content */
.prose {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
}
.prose h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin: 2.25em 0 0.75em;
  padding-top: 0.5em;
  border-top: 2px solid var(--border);
}
.prose h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin: 1.75em 0 0.6em;
}
.prose p { margin: 0 0 1.25em; }
.prose ul, .prose ol {
  margin: 0 0 1.25em;
  padding-left: 1.75em;
}
.prose li { margin-bottom: 0.5em; }
.prose strong { font-weight: 700; color: var(--navy); }
.prose a { color: var(--green); font-weight: 500; }
.prose a:hover { text-decoration: underline; }
.prose hr {
  border: none;
  border-top: 2px solid var(--border);
  margin: 2.5em 0;
}
.prose blockquote {
  border-left: 4px solid var(--green);
  margin: 1.5em 0;
  padding: 1em 1.5em;
  background: #f0faf6;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--navy);
  font-style: italic;
}
.prose code {
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.875em;
  color: var(--navy);
}
.prose pre {
  background: var(--navy);
  color: #e2e8f0;
  padding: 20px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 1.5em 0;
}
.prose pre code { background: none; color: inherit; padding: 0; }

/* Article sidebar */
.article-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-cta {
  background: var(--green);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}
.sidebar-cta h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 10px;
}
.sidebar-cta p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  margin: 0 0 20px;
  line-height: 1.5;
}
.sidebar-cta .btn-primary {
  background: var(--white);
  color: var(--green);
  width: 100%;
  justify-content: center;
}
.sidebar-cta .btn-primary:hover { background: #f0faf6; }

.sidebar-contact {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.sidebar-contact h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.sidebar-contact a {
  display: block;
  font-size: 0.9rem;
  color: var(--green);
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 6px;
}
.sidebar-contact a:hover { text-decoration: underline; }

.article-back-link { margin-top: 32px; }

/* Article share bar */
.article-share {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 24px 0;
  border-top: 1px solid var(--grey-100);
  border-bottom: 1px solid var(--grey-100);
  margin-top: 40px;
  margin-bottom: 8px;
}
.article-share-label {
  font-size: .875rem; font-weight: 600; color: var(--grey-700); white-space: nowrap;
}
.article-share-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.share-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: 50px;
  font-size: .875rem; font-weight: 600;
  text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent;
  transition: background .18s, border-color .18s, transform .15s;
  white-space: nowrap;
}
.share-btn:hover { transform: translateY(-1px); }
.share-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.share-linkedin { background: #0a66c2; color: #fff; border-color: #0a66c2; }
.share-linkedin svg { fill: #fff; stroke: none; }
.share-linkedin:hover { background: #004182; border-color: #004182; color: #fff; }
.share-facebook { background: #1877f2; color: #fff; border-color: #1877f2; }
.share-facebook svg { fill: #fff; stroke: none; }
.share-facebook:hover { background: #0d5abf; border-color: #0d5abf; color: #fff; }
.share-twitter { background: #000; color: #fff; border-color: #000; }
.share-twitter svg { fill: #fff; stroke: none; }
.share-twitter:hover { background: #333; border-color: #333; color: #fff; }
.share-copy { background: var(--white); color: var(--navy); border-color: var(--grey-300); }
.share-copy svg { stroke: var(--navy); fill: none; stroke-width: 2; }
.share-copy:hover { border-color: var(--navy); background: var(--bg); }
.share-copy.copied { background: var(--green); color: #fff; border-color: var(--green); }
.share-copy.copied svg { stroke: #fff; }

/* ===========================
   Blog — Responsive
   =========================== */

@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; gap: 40px; }
  .article-sidebar { position: static; flex-direction: row; }
  .sidebar-cta { flex: 1; }
  .sidebar-contact { flex: 1; }
}

@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
  .article-header-section { padding: 56px 0 40px; }
  .article-body-section { padding: 40px 0 56px; }
  .article-sidebar { flex-direction: column; }
  .article-title { font-size: 1.75rem; }
}
