/* ==========================================================================
   NrbFamilySupports Protection - Warm Forest & Emerald Trust Shield Theme
   CSS Design System & Styles
   ========================================================================== */

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

:root {
  /* Color Palette */
  --bg-main: #062e22;
  --bg-surface: #093a2b;
  --bg-surface-elevated: #0c4434;
  --bg-card: #0e4c3b;
  --bg-card-hover: #125744;
  
  --emerald-300: #6ee7b7;
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-700: #047857;
  
  --emerald-glow: rgba(16, 185, 129, 0.18);
  --emerald-glow-strong: rgba(16, 185, 129, 0.35);
  
  --border-subtle: rgba(52, 211, 153, 0.16);
  --border-hover: rgba(52, 211, 153, 0.45);
  
  --text-main: #ffffff;
  --text-emerald-light: #ecfdf5;
  --text-emerald-sub: #a7f3d0;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Spacing & Sizes */
  --header-height: 80px;
  --container-max: 1240px;
  
  /* Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  
  /* Shadows & Effects */
  --shadow-card: 0 12px 32px -8px rgba(2, 20, 15, 0.6);
  --shadow-glow: 0 0 30px rgba(16, 185, 129, 0.25);
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--emerald-400);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--emerald-300);
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(6, 46, 34, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  transition: background-color var(--transition-normal);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--emerald-500), var(--emerald-700));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow);
}

.logo-icon svg {
  width: 24px;
  height: 24px;
  stroke: #ffffff;
}

.logo-text span {
  color: var(--emerald-400);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: var(--text-emerald-light);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--emerald-300);
  background-color: rgba(16, 185, 129, 0.1);
}

.btn-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 1.5rem;
  background: linear-gradient(135deg, var(--emerald-500), var(--emerald-600));
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  border: none;
  cursor: pointer;
}

.btn-header:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
  color: #ffffff;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  min-width: 48px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
}

.hamburger svg {
  width: 28px;
  height: 28px;
  stroke: var(--text-main);
}

/* Touch Targets Safeguard (min 48px x 48px for 375px+ Mobile Usability) */
a, button, input, select, textarea, [role="button"] {
  touch-action: manipulation;
}

.btn,
.btn-primary,
.btn-secondary,
.btn-header,
.hamburger,
.form-select,
.form-input,
.faq-question {
  min-height: 48px;
  min-width: 48px;
}

.logo {
  min-height: 48px;
  min-width: 48px;
  display: inline-flex;
  align-items: center;
}

.nav-link {
  min-height: 48px;
  min-width: 48px;
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
}

.footer-links a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  padding: 8px 0;
}

/* Mobile Nav Drawer */
.mobile-drawer {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-height));
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  z-index: 999;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-drawer.is-open {
  transform: translateX(0);
}

.mobile-drawer .nav-link {
  font-size: 1.15rem;
  padding: 12px 16px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 2rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--emerald-500), var(--emerald-600));
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.5);
  color: #ffffff;
}

.btn-secondary {
  background-color: rgba(16, 185, 129, 0.12);
  color: var(--emerald-300);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background-color: rgba(16, 185, 129, 0.22);
  border-color: var(--emerald-400);
  color: #ffffff;
}

/* Hero Section */
.hero-section {
  padding-top: calc(var(--header-height) + 3rem);
  padding-bottom: 5rem;
  position: relative;
  background: radial-gradient(circle at 50% 20%, rgba(16, 185, 129, 0.15) 0%, transparent 60%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background-color: rgba(16, 185, 129, 0.12);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  color: var(--emerald-300);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--emerald-300), var(--emerald-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 560px;
}

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

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.hero-image-wrapper img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* Key Metrics Stats Bar */
.stats-bar {
  padding: 3rem 0;
  background-color: var(--bg-surface);
  border-y: 1px solid var(--border-subtle);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stat-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.25rem;
  text-align: center;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--emerald-400);
}

.stat-number {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--emerald-400);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Longread Content Section */
.longread-section {
  padding: 5rem 0;
}

.longread-container {
  max-width: 860px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  color: var(--emerald-400);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.article-content {
  color: var(--text-emerald-light);
  font-size: 1.05rem;
  line-height: 1.75;
}

.article-content h2 {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 2.5rem 0 1.25rem 0;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.75rem;
}

.article-content h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--emerald-300);
  margin: 1.75rem 0 1rem 0;
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content ul, .article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.75rem;
}

.article-box {
  background-color: var(--bg-card);
  border-left: 4px solid var(--emerald-400);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin: 2rem 0;
  border-top: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.article-box h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--emerald-300);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Calculator Section */
.calc-section {
  padding: 5rem 0;
  background-color: var(--bg-surface);
  border-y: 1px solid var(--border-subtle);
}

.calc-card {
  background: linear-gradient(145deg, var(--bg-card), var(--bg-surface-elevated));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-emerald-light);
  display: flex;
  justify-content: space-between;
}

.form-group label span.val-badge {
  color: var(--emerald-400);
  font-weight: 700;
}

.form-range {
  width: 100%;
  accent-color: var(--emerald-400);
  height: 8px;
  background: var(--bg-main);
  border-radius: 4px;
  cursor: pointer;
}

.form-select, .form-input {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  background-color: var(--bg-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 1rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-select:focus, .form-input:focus {
  border-color: var(--emerald-400);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.calc-results {
  background-color: var(--bg-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.result-item {
  margin-bottom: 1.5rem;
}

.result-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.result-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--emerald-400);
}

.result-breakdown {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  color: var(--text-emerald-light);
}

/* Features Grid */
.features-section {
  padding: 5rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: all var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--emerald-400);
  box-shadow: var(--shadow-glow);
}

.feature-icon {
  width: 54px;
  height: 54px;
  background-color: rgba(16, 185, 129, 0.12);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--emerald-400);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.feature-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Testimonials / Trust Section */
.testimonials-section {
  padding: 5rem 0;
  background-color: var(--bg-surface);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-text {
  font-style: italic;
  color: var(--text-emerald-light);
  margin-bottom: 1.5rem;
  font-size: 0.98rem;
}

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

.user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald-500), var(--emerald-700));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #ffffff;
}

.user-info h5 {
  font-size: 0.95rem;
  font-weight: 600;
}

.user-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* FAQ Accordion Section */
.faq-section {
  padding: 5rem 0;
}

.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item.active {
  border-color: var(--emerald-400);
}

.faq-question {
  width: 100%;
  min-height: 56px;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  gap: 1rem;
}

.faq-question svg {
  width: 20px;
  height: 20px;
  stroke: var(--emerald-400);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal), padding var(--transition-normal);
  padding: 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.faq-item.active .faq-answer {
  padding: 0 1.5rem 1.25rem 1.5rem;
  max-height: 300px;
}

/* Contact Block / Form */
.contact-section {
  padding: 5rem 0;
  background-color: var(--bg-surface);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background-color: rgba(16, 185, 129, 0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--emerald-400);
}

.contact-details h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.contact-details p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-form {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-textarea {
  width: 100%;
  min-height: 120px;
  padding: 0.75rem 1rem;
  background-color: var(--bg-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 1rem;
  outline: none;
  resize: vertical;
}

.form-textarea:focus {
  border-color: var(--emerald-400);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* Footer */
.footer {
  background-color: #031a13;
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem 0;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-about p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 1rem;
  max-width: 320px;
}

.footer-col h5 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--emerald-400);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Legal Pages Styling */
.legal-page {
  padding-top: calc(var(--header-height) + 3rem);
  padding-bottom: 5rem;
}

.legal-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 3rem;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: var(--shadow-card);
}

.legal-card h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.legal-card .date-tag {
  color: var(--emerald-400);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  display: block;
}

.legal-card h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--emerald-300);
  margin: 2rem 0 1rem 0;
}

.legal-card p, .legal-card li {
  color: var(--text-emerald-light);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.legal-card ul {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Toast alert */
.toast-msg {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--emerald-600);
  color: #ffffff;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-normal);
}

.toast-msg.show {
  transform: translateY(0);
  opacity: 1;
}

/* Responsive Media Queries (Mobile 375px+ Optimization & Emerald Trust Styling) */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .calc-card {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .features-grid, .testimonials-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .header {
    height: 70px;
  }

  .header-container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
  }

  /* REQUIREMENT 1: ONLY Logo on left and Hamburger on right on mobile (<768px) */
  .header-container > *:not(.logo):not(.hamburger) {
    display: none !important;
  }

  .logo {
    display: flex !important;
    align-items: center !important;
    gap: 10px;
    font-size: 1.15rem;
    min-height: 48px;
    min-width: 48px;
  }

  .logo-icon {
    width: 36px;
    height: 36px;
  }

  .hamburger {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 48px !important;
    min-height: 48px !important;
    padding: 10px !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer;
  }

  .mobile-drawer {
    top: 70px;
    height: calc(100vh - 70px);
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .features-grid, .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .legal-card {
    padding: 1.75rem;
  }
}

/* Specific 375px+ Mobile Screen Optimizations (Emerald Trust & Touch Adaptation) */
@media (max-width: 480px) {
  html {
    font-size: 15px;
  }

  .container {
    padding: 0 1rem;
    box-sizing: border-box;
  }

  .hero-section {
    padding-top: calc(70px + 1.75rem);
    padding-bottom: 3rem;
  }

  .hero-title {
    font-size: clamp(1.75rem, 7vw, 2.2rem);
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.85rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  /* Emerald Trust Feature Cards (375px adaptation) */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .feature-card {
    background: linear-gradient(145deg, #0e4c3b 0%, #093a2b 100%);
    border: 1px solid rgba(52, 211, 153, 0.22);
    border-radius: var(--radius-md);
    padding: 1.5rem 1.25rem;
    box-shadow: 0 8px 24px -6px rgba(2, 20, 15, 0.5);
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  }

  .feature-card:hover, .feature-card:active {
    border-color: var(--emerald-400);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.25);
  }

  .feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(52, 211, 153, 0.25);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
  }

  .feature-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #ffffff;
  }

  .feature-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
  }

  /* Emerald Trust Stat Cards 375px adaptation */
  .stats-bar {
    padding: 2rem 0;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat-card {
    background: linear-gradient(145deg, #0e4c3b 0%, #093a2b 100%);
    border: 1px solid rgba(52, 211, 153, 0.2);
    border-radius: var(--radius-md);
    padding: 1.25rem 1rem;
  }

  .stat-number {
    font-size: clamp(1.75rem, 7vw, 2.2rem);
  }

  .stat-label {
    font-size: 0.88rem;
  }

  /* Calculator Section & Card 375px adaptation */
  .calc-section {
    padding: 3rem 0;
  }

  .calc-card {
    grid-template-columns: 1fr;
    padding: 1.5rem 1rem;
    gap: 1.5rem;
  }

  .calc-results {
    padding: 1.25rem 1rem;
  }

  .result-value {
    font-size: clamp(1.75rem, 7vw, 2.2rem);
    word-break: break-word;
  }

  .breakdown-row {
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.88rem;
  }

  /* Testimonials Grid & Card 375px adaptation */
  .testimonials-section {
    padding: 3rem 0;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .testimonial-card {
    background: linear-gradient(145deg, #0e4c3b 0%, #093a2b 100%);
    border: 1px solid rgba(52, 211, 153, 0.2);
    border-radius: var(--radius-md);
    padding: 1.5rem 1.25rem;
  }

  .testimonial-text {
    font-size: 0.92rem;
    margin-bottom: 1.25rem;
  }

  /* Longread Section 375px adaptation */
  .longread-section {
    padding: 3rem 0;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .section-title {
    font-size: clamp(1.6rem, 6vw, 2.1rem);
  }

  .article-content h2 {
    font-size: 1.35rem;
    flex-direction: row;
    align-items: flex-start;
  }

  .article-content h3 {
    font-size: 1.15rem;
  }

  .article-box {
    padding: 1.25rem 1rem;
  }

  /* Contact Cards & Form 375px adaptation */
  .contact-section {
    padding: 3rem 0;
  }

  .contact-card {
    padding: 1.25rem 1rem;
  }

  .contact-details p {
    word-break: break-word;
  }

  .contact-form {
    padding: 1.5rem 1.25rem;
  }

  /* Legal Card 375px adaptation */
  .legal-card {
    padding: 1.5rem 1rem;
  }

  .legal-card h1 {
    font-size: 1.75rem;
  }

  /* Footer 375px adaptation */
  .footer {
    padding: 3rem 0 1.5rem 0;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
}
