/* ===================================================================
   NutriSight Daily - Modern Editorial CSS Design System
   Localization: English (Philippines) en-PH
   Palette: Warm Ivory, Deep Teal / Navy, Warm Amber & Sage Accents
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,600;1,6..72,400&display=swap');

:root {
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Newsreader', Georgia, serif;

  /* Color Palette */
  --bg-page: #FAF8F5;
  --bg-page-alt: #F3EFE9;
  --bg-surface: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-subtle: #F6F3EE;
  
  --text-main: #23312E;
  --text-muted: #5B6B67;
  --text-subtle: #82928E;
  
  --brand-deep: #0D2B27;
  --brand-teal: #144941;
  --brand-teal-light: #1E6B60;
  --brand-sage: #4E9A7E;
  --brand-sage-light: #EBF6F1;
  
  --accent-amber: #D97706;
  --accent-amber-light: #FEF3C7;
  --accent-gold: #B45309;
  
  --border-light: #E7DFD4;
  --border-medium: #D5CBBF;
  --border-focus: #1E6B60;
  
  --shadow-sm: 0 1px 3px rgba(13, 43, 39, 0.05);
  --shadow-md: 0 4px 14px rgba(13, 43, 39, 0.07);
  --shadow-lg: 0 10px 28px rgba(13, 43, 39, 0.10);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  --container-max: 1200px;
  --container-reading: 820px;
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.65;
  font-weight: 400;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--brand-teal);
  text-decoration: none;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover {
  color: var(--brand-deep);
  text-decoration: underline;
}

/* Container */
.site-container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.site-container-reading {
  max-width: var(--container-reading);
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--brand-deep);
  color: #FFFFFF;
  padding: 0.75rem 1.25rem;
  z-index: 9999;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 1rem;
}

/* Header & Navigation */
.site-header {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.top-notice-bar {
  background: var(--brand-deep);
  color: #D3E4DF;
  font-size: 0.8125rem;
  padding: 0.35rem 1rem;
  text-align: center;
}

.top-notice-bar strong {
  color: #F8FAF9;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-logo-img {
  height: 44px;
  width: auto;
}

/* Nav Menu */
.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  list-style: none;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link:hover, .nav-link.active {
  color: var(--brand-teal);
  background-color: var(--bg-page-alt);
  text-decoration: none;
}

/* Nav Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 260px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  z-index: 1010;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: var(--text-main);
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.dropdown-link:hover {
  background-color: var(--brand-sage-light);
  color: var(--brand-teal);
  text-decoration: none;
}

.dropdown-desc {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-search-trigger {
  background: var(--bg-page-alt);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s;
}

.btn-search-trigger:hover {
  background: #FFFFFF;
  border-color: var(--border-medium);
  color: var(--brand-deep);
}

.btn-menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-light);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--brand-deep);
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 320px;
  height: 100vh;
  background: #FFFFFF;
  z-index: 2000;
  box-shadow: -4px 0 20px rgba(0,0,0,0.15);
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  overflow-y: auto;
}

.mobile-nav-drawer.open {
  right: 0;
}

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(13, 43, 39, 0.4);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-nav-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 1.25rem;
}

.drawer-close-btn {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
}

.drawer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.drawer-link {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--brand-deep);
  padding: 0.6rem 0.5rem;
  border-radius: var(--radius-sm);
}

.drawer-link:hover {
  background: var(--bg-page-alt);
  text-decoration: none;
}

.drawer-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  padding-left: 0.5rem;
}

/* Breadcrumbs */
.site-breadcrumbs {
  background: var(--bg-page);
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.8125rem;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  color: var(--text-muted);
}

.breadcrumb-item a {
  color: var(--text-muted);
}

.breadcrumb-item a:hover {
  color: var(--brand-teal);
}

.breadcrumb-separator {
  color: var(--border-medium);
}

.breadcrumb-item.current {
  color: var(--brand-deep);
  font-weight: 600;
}

/* Main Content Area */
.site-main {
  flex: 1;
}

/* Section Common */
.section-py {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.section-py-sm {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.section-py-lg {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

/* Headings & Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--brand-deep);
  font-weight: 700;
  line-height: 1.25;
}

.font-serif {
  font-family: var(--font-serif);
}

.heading-page-hero {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.heading-section {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.heading-card {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.lead-text {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-green {
  background: var(--brand-sage-light);
  color: var(--brand-teal);
  border: 1px solid #C8E6D8;
}

.badge-amber {
  background: var(--accent-amber-light);
  color: var(--accent-gold);
  border: 1px solid #FCD34D;
}

.badge-neutral {
  background: var(--bg-card-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border-light);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background-color: var(--brand-teal);
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: var(--brand-deep);
  color: #FFFFFF;
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background-color: var(--accent-amber);
  color: #FFFFFF;
}

.btn-accent:hover {
  background-color: var(--accent-gold);
  color: #FFFFFF;
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--border-medium);
  color: var(--brand-deep);
}

.btn-outline:hover {
  background-color: var(--bg-surface);
  border-color: var(--brand-teal);
  color: var(--brand-teal);
}

/* Hero Section */
.hero-block {
  background: linear-gradient(180deg, #FFFFFF 0%, var(--bg-page) 100%);
  padding: 3.5rem 0 4rem;
  border-bottom: 1px solid var(--border-light);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.hero-media {
  position: relative;
}

.hero-image-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

.hero-image-caption {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  text-align: center;
  font-style: italic;
}

/* Feature & Guide Cards */
.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.card-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.editorial-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}

.editorial-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-medium);
}

.card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-page-alt);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.editorial-card:hover .card-media img {
  transform: scale(1.03);
}

.card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-meta {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-subtle);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.card-title a {
  color: var(--brand-deep);
}

.card-title a:hover {
  color: var(--brand-teal);
  text-decoration: none;
}

.card-excerpt {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  flex: 1;
  line-height: 1.55;
}

.card-footer-link {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--brand-teal);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: auto;
}

/* Callout & Alert Boxes */
.callout-box {
  background: var(--bg-card-subtle);
  border-left: 4px solid var(--brand-teal);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
}

.callout-box.amber {
  background: #FFFDF8;
  border-left-color: var(--accent-amber);
}

.callout-box.info {
  background: #F4F8FA;
  border-left-color: #0284C7;
}

.callout-box strong {
  color: var(--brand-deep);
  display: block;
  margin-bottom: 0.35rem;
}

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #FFFFFF;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

.data-table th, .data-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-light);
}

.data-table th {
  background: var(--bg-page-alt);
  color: var(--brand-deep);
  font-weight: 700;
  white-space: nowrap;
}

.data-table tr:hover td {
  background-color: var(--bg-page);
}

/* Article Prose */
.article-prose {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-main);
}

.article-prose h2 {
  font-size: 1.65rem;
  margin-top: 2.25rem;
  margin-bottom: 0.85rem;
  border-bottom: 2px solid var(--bg-page-alt);
  padding-bottom: 0.4rem;
}

.article-prose h3 {
  font-size: 1.3rem;
  margin-top: 1.75rem;
  margin-bottom: 0.65rem;
}

.article-prose p {
  margin-bottom: 1.25rem;
}

.article-prose ul, .article-prose ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.article-prose li {
  margin-bottom: 0.5rem;
}

/* Article Aside / Table of Contents */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
}

.toc-box {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  position: sticky;
  top: 90px;
}

.toc-title {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--brand-deep);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.875rem;
}

.toc-list a {
  color: var(--text-muted);
}

.toc-list a:hover {
  color: var(--brand-teal);
  text-decoration: underline;
}

/* Interactive Checklist Tool */
.checklist-container {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.checklist-progress-bar {
  width: 100%;
  height: 12px;
  background: var(--bg-page-alt);
  border-radius: 999px;
  overflow: hidden;
  margin: 1rem 0 1.5rem;
}

.checklist-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brand-sage), var(--brand-teal));
  transition: width 0.3s ease;
}

.checklist-status-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  color: var(--brand-deep);
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--bg-surface);
}

.checklist-item:hover {
  background: var(--bg-page);
  border-color: var(--border-medium);
}

.checklist-item.checked {
  background: var(--brand-sage-light);
  border-color: #A3D8BE;
}

.checklist-checkbox {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  accent-color: var(--brand-teal);
  cursor: pointer;
}

.checklist-text h4 {
  font-size: 0.975rem;
  font-weight: 600;
  color: var(--brand-deep);
  margin-bottom: 0.2rem;
}

.checklist-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.checklist-result-card {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  background: var(--bg-page-alt);
  border: 1px solid var(--border-medium);
}

/* Interactive Food Choice Assistant */
.assistant-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.assistant-step-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-deep);
  margin-bottom: 1rem;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.choice-btn {
  background: var(--bg-surface);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-family: inherit;
}

.choice-btn:hover {
  border-color: var(--brand-sage);
  background: var(--bg-page);
}

.choice-btn.selected {
  border-color: var(--brand-teal);
  background: var(--brand-sage-light);
}

.choice-btn-title {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--brand-deep);
}

.choice-btn-desc {
  font-size: 0.775rem;
  color: var(--text-muted);
}

.recommendation-panel {
  background: var(--bg-page);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 1.5rem;
}

/* Interactive Food Comparison Tool */
.comparison-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.5rem;
  background: var(--bg-surface);
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.filter-btn {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--brand-teal);
  color: #FFFFFF;
  border-color: var(--brand-teal);
}

/* FAQ Accordion */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item:hover {
  border-color: var(--border-medium);
}

.faq-toggle {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.15rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-deep);
  cursor: pointer;
}

.faq-toggle:focus {
  outline: 2px solid var(--border-focus);
}

.faq-icon {
  font-size: 1.25rem;
  transition: transform 0.25s ease;
  color: var(--brand-teal);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-content {
  display: none;
  padding: 0 1.25rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
  border-top: 1px solid var(--bg-page-alt);
}

.faq-item.open .faq-content {
  display: block;
  padding-top: 0.85rem;
}

/* Contact Form */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-full {
  grid-column: 1 / -1;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-deep);
}

.form-control {
  font-family: inherit;
  font-size: 0.9375rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  color: var(--text-main);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--brand-teal);
  box-shadow: 0 0 0 3px rgba(20, 73, 65, 0.12);
}

.form-control.error {
  border-color: #DC2626;
  background-color: #FEF2F2;
}

.form-error-msg {
  font-size: 0.75rem;
  color: #DC2626;
  min-height: 1rem;
}

.form-status-alert {
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-top: 1.25rem;
  font-size: 0.9rem;
  display: none;
}

.form-status-alert.success {
  display: block;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #065F46;
}

.form-status-alert.error {
  display: block;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #991B1B;
}

/* Search Modal */
.search-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(13, 43, 39, 0.5);
  backdrop-filter: blur(2px);
  z-index: 3000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 5rem 1.5rem 2rem;
}

.search-modal-backdrop.open {
  display: flex;
}

.search-modal-card {
  width: 100%;
  max-width: 600px;
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.search-modal-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.search-input-field {
  width: 100%;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 1.05rem;
  color: var(--brand-deep);
}

.search-results-list {
  max-height: 380px;
  overflow-y: auto;
  padding: 0.5rem 0;
  list-style: none;
}

.search-result-item a {
  display: block;
  padding: 0.75rem 1.25rem;
  color: var(--text-main);
  transition: background 0.15s;
}

.search-result-item a:hover {
  background: var(--bg-page-alt);
  text-decoration: none;
}

.search-result-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--brand-deep);
}

.search-result-snippet {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Cookie Consent Banner */
.cookie-banner-wrapper {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  max-width: 440px;
  background: #FFFFFF;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
  z-index: 2500;
  display: none;
}

.cookie-banner-wrapper.visible {
  display: block;
}

.cookie-banner-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-deep);
  margin-bottom: 0.5rem;
}

.cookie-banner-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.cookie-banner-actions {
  display: flex;
  gap: 0.5rem;
}

/* Footer */
.site-footer {
  background: var(--brand-deep);
  color: #D3E0DC;
  padding: 4rem 0 2rem;
  margin-top: auto;
  border-top: 1px solid #1E4640;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-col-title {
  color: #F8FAF9;
  font-size: 0.9375rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 1.25rem;
}

.footer-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #B5CCC5;
  margin-top: 0.75rem;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-link {
  color: #B5CCC5;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-link:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.footer-disclaimer-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #A2BEB6;
  margin-bottom: 2rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8125rem;
  color: #8DA9A1;
}

/* Media Queries */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .card-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .card-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .article-layout {
    grid-template-columns: 1fr;
  }
  .toc-box {
    position: static;
    margin-bottom: 2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .primary-nav, .btn-search-trigger {
    display: none;
  }
  .btn-menu-toggle {
    display: inline-flex;
  }
  .heading-page-hero {
    font-size: 2rem;
  }
  .card-grid-3, .card-grid-2, .card-grid-4 {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .cookie-banner-wrapper {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: none;
  }
}
