@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&family=Merriweather:wght@300;400;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-bg: #F8F8F8;
  --color-white: #ffffff;
  --color-indigo: #3F51B5;
  --color-green: #4CAF50;
  --color-amber: #FFC107;
  --color-text: #1a1a2e;
  --color-text-muted: #555570;
  --color-border: #dddde8;
  --color-card-bg: #ffffff;
  --color-section-alt: #f0f0f5;
  --font-heading: 'Open Sans', sans-serif;
  --font-body: 'Merriweather', serif;
  --radius: 6px;
  --shadow-sm: 0 2px 8px rgba(63,81,181,0.07);
  --shadow-md: 0 4px 20px rgba(63,81,181,0.10);
  --shadow-lg: 0 8px 40px rgba(63,81,181,0.13);
  --transition: 0.28s ease;
  --max-width: 1200px;
}

html { background-color: var(--color-bg); scroll-behavior: smooth; }
body { font-family: var(--font-body); font-size: 16px; line-height: 1.75; color: var(--color-text); background-color: var(--color-bg); }

a { color: var(--color-indigo); text-decoration: none; transition: color var(--transition); }
a:hover { color: #2c3a8c; }

img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.5rem; }
li { margin-bottom: 0.4rem; }

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.25; color: var(--color-text); }
h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.1rem, 2vw, 1.45rem); margin-bottom: 0.75rem; }

p { margin-bottom: 1.1rem; }
p:last-child { margin-bottom: 0; }

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

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ── HEADER ── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 2px 12px rgba(63,81,181,0.06);
  height: 68px;
  display: flex; align-items: center;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.logo { font-family: var(--font-heading); font-size: 1.55rem; font-weight: 700; color: var(--color-indigo); letter-spacing: -0.5px; text-decoration: none; }
.logo:hover { color: var(--color-indigo); }
.logo span { color: var(--color-amber); }

.nav-primary { display: flex; align-items: center; gap: 4px; list-style: none; padding: 0; margin: 0; }
.nav-primary a {
  font-family: var(--font-heading); font-size: 0.88rem; font-weight: 600;
  color: var(--color-text); padding: 6px 13px; border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  text-decoration: none;
}
.nav-primary a:hover, .nav-primary a.active { color: var(--color-indigo); background: rgba(63,81,181,0.07); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--color-text); margin: 5px 0; border-radius: 2px; transition: var(--transition); }

/* ── PAGE OFFSET ── */
.page-body { padding-top: 68px; }

/* ── HERO ── */
.hero {
  position: relative; min-height: 78vh; display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: #1a1a2e;
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.38; }
.hero-content { position: relative; z-index: 2; text-align: center; padding: 48px 24px; max-width: 860px; }
.hero-content h1 { color: var(--color-white); text-shadow: 0 2px 16px rgba(0,0,0,0.35); margin-bottom: 1.2rem; }
.hero-content p { color: rgba(255,255,255,0.82); font-size: 1.1rem; max-width: 600px; margin: 0 auto 2rem; font-family: var(--font-heading); font-weight: 400; line-height: 1.6; }

/* ── EDITORIAL INTRO ── */
.editorial-intro { background: var(--color-indigo); padding: 64px 24px; }
.editorial-intro .container { max-width: 860px; }
.editorial-intro h2, .editorial-intro p { color: var(--color-white); }
.editorial-intro h2 { margin-bottom: 1rem; }
.editorial-intro p { opacity: 0.9; font-size: 1.02rem; }

/* ── SECTION ── */
.section { padding: 72px 24px; }
.section-alt { background: var(--color-section-alt); }
.section-dark { background: #1a1a2e; }
.section-dark h2, .section-dark h3, .section-dark p { color: rgba(255,255,255,0.9); }

.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { color: var(--color-indigo); }
.section-header p { color: var(--color-text-muted); max-width: 640px; margin: 0.5rem auto 0; font-family: var(--font-heading); font-size: 0.97rem; }

/* ── TWO-COLUMN ── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }
.two-col img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; height: 380px; object-fit: cover; }
.two-col-text h2 { color: var(--color-indigo); margin-bottom: 1rem; }
.two-col-text p { color: var(--color-text-muted); }

/* ── CARDS GRID ── */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  background: var(--color-card-bg); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 28px 24px;
  transition: box-shadow var(--transition), transform var(--transition);
  border: 1px solid var(--color-border);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card h3 { color: var(--color-indigo); margin-bottom: 0.6rem; }
.card p { color: var(--color-text-muted); font-size: 0.93rem; margin-bottom: 1rem; }
.card img { border-radius: calc(var(--radius) - 2px); margin-bottom: 1rem; width: 100%; height: 200px; object-fit: cover; }

/* ── ACCORDION ── */
.accordion-list { list-style: none; padding: 0; }
.accordion-item { border: 1px solid var(--color-border); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; }
.accordion-trigger {
  width: 100%; background: var(--color-white); border: none; cursor: pointer;
  padding: 18px 22px; display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-heading); font-size: 0.97rem; font-weight: 600;
  color: var(--color-text); text-align: left; transition: background var(--transition);
}
.accordion-trigger:hover { background: rgba(63,81,181,0.04); }
.accordion-trigger .acc-icon { width: 24px; height: 24px; flex-shrink: 0; background: var(--color-amber); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; font-weight: 700; color: var(--color-text); transition: transform var(--transition); }
.accordion-trigger[aria-expanded="true"] .acc-icon { transform: rotate(45deg); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.accordion-body.open { max-height: 400px; }
.accordion-body-inner { padding: 0 22px 18px; font-size: 0.93rem; color: var(--color-text-muted); }

/* ── TABLE ── */
.data-table { width: 100%; border-collapse: collapse; font-family: var(--font-heading); font-size: 0.9rem; margin-top: 1.5rem; }
.data-table th { background: var(--color-indigo); color: var(--color-white); padding: 12px 16px; text-align: left; font-weight: 600; }
.data-table td { padding: 11px 16px; border-bottom: 1px solid var(--color-border); color: var(--color-text-muted); }
.data-table tr:nth-child(even) td { background: rgba(63,81,181,0.03); }
.data-table tr:last-child td { border-bottom: none; }

/* ── FAQ PREVIEW ── */
.faq-preview { text-align: center; padding: 64px 24px; background: var(--color-white); }
.faq-preview h2 { color: var(--color-indigo); margin-bottom: 1rem; }
.faq-questions { list-style: none; padding: 0; max-width: 620px; margin: 1.5rem auto 2rem; }
.faq-questions li { padding: 12px 0; border-bottom: 1px solid var(--color-border); font-family: var(--font-heading); font-size: 0.93rem; color: var(--color-text-muted); text-align: left; }
.faq-questions li:last-child { border-bottom: none; }

/* ── CONTACT PREVIEW ── */
.contact-preview { padding: 72px 24px; background: var(--color-section-alt); }
.contact-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-bottom: 40px; }
.contact-col { display: flex; gap: 14px; align-items: flex-start; }
.contact-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--color-indigo); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.contact-icon svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2; }
.contact-col-text h4 { font-family: var(--font-heading); font-size: 0.88rem; font-weight: 600; color: var(--color-indigo); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.contact-col-text p { font-size: 0.88rem; color: var(--color-text-muted); }

/* ── SOFT CTA ── */
.soft-cta { position: relative; min-height: 380px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #1a1a2e; }
.soft-cta-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.3; }
.soft-cta-content { position: relative; z-index: 2; text-align: center; padding: 56px 24px; }
.soft-cta-content h2 { color: var(--color-white); margin-bottom: 0.75rem; }
.soft-cta-content p { color: rgba(255,255,255,0.75); font-family: var(--font-heading); margin-bottom: 2rem; font-size: 0.97rem; }

/* ── BUTTONS ── */
.btn {
  display: inline-block; font-family: var(--font-heading); font-size: 0.9rem; font-weight: 600;
  padding: 13px 30px; border-radius: var(--radius); cursor: pointer;
  border: none; transition: box-shadow var(--transition), transform var(--transition), background var(--transition);
  text-decoration: none; line-height: 1;
}
.btn-primary { background: var(--color-indigo); color: var(--color-white); }
.btn-primary:hover { background: #2c3a8c; color: var(--color-white); box-shadow: 0 4px 18px rgba(63,81,181,0.28); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--color-indigo); border: 2px solid var(--color-indigo); }
.btn-outline:hover { background: rgba(63,81,181,0.07); color: var(--color-indigo); }
.btn-white { background: var(--color-white); color: var(--color-indigo); }
.btn-white:hover { box-shadow: 0 4px 18px rgba(63,81,181,0.18); color: var(--color-indigo); transform: translateY(-2px); }

/* ── GLOSSARY ── */
.glossary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.glossary-item { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--color-border); align-items: baseline; }
.glossary-term { font-family: var(--font-heading); font-weight: 700; color: var(--color-indigo); font-size: 0.95rem; }
.glossary-def { font-size: 0.9rem; color: var(--color-text-muted); }

/* ── TIMELINE ── */
.timeline { position: relative; padding: 16px 0; }
.timeline::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--color-border); transform: translateX(-50%); }
.timeline-item { position: relative; display: flex; margin-bottom: 40px; }
.timeline-item:nth-child(odd) { flex-direction: row; justify-content: flex-end; padding-right: calc(50% + 32px); }
.timeline-item:nth-child(even) { flex-direction: row; justify-content: flex-start; padding-left: calc(50% + 32px); }
.timeline-dot { position: absolute; left: 50%; top: 6px; width: 14px; height: 14px; background: var(--color-indigo); border-radius: 50%; transform: translateX(-50%); border: 3px solid var(--color-bg); z-index: 1; }
.timeline-content { max-width: 420px; }
.timeline-year { font-family: var(--font-heading); font-size: 0.8rem; font-weight: 700; color: var(--color-amber); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.timeline-content h3 { color: var(--color-indigo); font-size: 1rem; margin-bottom: 0.4rem; }
.timeline-content p { font-size: 0.88rem; color: var(--color-text-muted); }

/* ── STAT STRIP ── */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--color-indigo); }
.stat-item { padding: 32px 24px; text-align: center; border-right: 1px solid rgba(255,255,255,0.15); }
.stat-item:last-child { border-right: none; }
.stat-number { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; color: var(--color-white); }
.stat-label { font-family: var(--font-heading); font-size: 0.82rem; color: rgba(255,255,255,0.72); margin-top: 6px; }

/* ── INSIGHT PANEL ── */
.insight-panel { background: var(--color-white); border-left: 4px solid var(--color-indigo); padding: 20px 24px; margin: 2rem 0; border-radius: 0 var(--radius) var(--radius) 0; box-shadow: var(--shadow-sm); }
.insight-panel p { font-size: 0.95rem; color: var(--color-text-muted); margin: 0; }

.highlight-text { color: var(--color-indigo); font-weight: 600; }

/* ── BLOG ARTICLE ── */
.article-hero { position: relative; height: 420px; overflow: hidden; background: #1a1a2e; }
.article-hero img { width: 100%; height: 100%; object-fit: cover; opacity: 0.72; }
.article-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 40%, rgba(26,26,46,0.65) 100%); }
.article-meta { position: absolute; bottom: 32px; left: 0; right: 0; }
.article-meta-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.article-meta .category-tag { display: inline-block; font-family: var(--font-heading); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; background: var(--color-amber); color: var(--color-text); padding: 4px 12px; border-radius: 3px; margin-bottom: 10px; }
.article-meta h1 { color: var(--color-white); font-size: clamp(1.6rem, 3.5vw, 2.5rem); max-width: 780px; }
.article-byline { margin-top: 10px; font-family: var(--font-heading); font-size: 0.82rem; color: rgba(255,255,255,0.75); }
.article-byline span { margin-right: 18px; }

.article-body { max-width: 820px; margin: 0 auto; padding: 56px 24px; }
.article-body h2 { color: var(--color-indigo); margin-top: 2.5rem; margin-bottom: 1rem; }
.article-body h3 { color: var(--color-text); margin-top: 1.8rem; margin-bottom: 0.75rem; }
.article-body p { color: var(--color-text-muted); }
.article-body ul, .article-body ol { color: var(--color-text-muted); }

.article-breadcrumb { background: var(--color-section-alt); border-bottom: 1px solid var(--color-border); }
.article-breadcrumb .container { padding: 10px 24px; }
.article-breadcrumb nav { font-family: var(--font-heading); font-size: 0.82rem; color: var(--color-text-muted); }
.article-breadcrumb a { color: var(--color-indigo); }
.article-breadcrumb span { margin: 0 6px; }

/* ── BLOG LISTING ── */
.blogs-hero { position: relative; height: 320px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #1a1a2e; }
.blogs-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.blogs-hero-content { position: relative; z-index: 2; text-align: center; padding: 24px; }
.blogs-hero-content h1 { color: var(--color-white); margin-bottom: 0.75rem; }
.blogs-hero-content p { color: rgba(255,255,255,0.8); font-family: var(--font-heading); font-size: 0.97rem; max-width: 560px; margin: 0 auto; }

/* ── PAGE HERO (inner pages) ── */
.page-hero { padding: 80px 24px 64px; background: var(--color-section-alt); border-bottom: 1px solid var(--color-border); }
.page-hero h1 { color: var(--color-indigo); margin-bottom: 0.75rem; }
.page-hero p { color: var(--color-text-muted); max-width: 640px; font-family: var(--font-heading); font-size: 0.97rem; }

/* ── QUOTE BLOCK ── */
.quote-block { background: var(--color-indigo); padding: 64px 24px; text-align: center; }
.quote-block blockquote { max-width: 760px; margin: 0 auto; }
.quote-block blockquote p { color: var(--color-white); font-size: 1.25rem; font-style: italic; line-height: 1.65; }
.quote-block blockquote footer { color: rgba(255,255,255,0.65); font-family: var(--font-heading); font-size: 0.85rem; margin-top: 1.2rem; }

/* ── CONTACT PAGE ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 56px; align-items: start; }
.contact-info-panel { background: var(--color-white); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 36px 32px; border: 1px solid var(--color-border); }
.contact-info-panel h2 { color: var(--color-indigo); margin-bottom: 1.5rem; font-size: 1.5rem; }
.contact-detail { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.contact-detail-icon { width: 40px; height: 40px; background: rgba(63,81,181,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-detail-icon svg { width: 18px; height: 18px; stroke: var(--color-indigo); fill: none; stroke-width: 2; }
.contact-detail-text label { display: block; font-family: var(--font-heading); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-text-muted); margin-bottom: 3px; }
.contact-detail-text p, .contact-detail-text a { font-size: 0.93rem; color: var(--color-text); }
.hours-panel { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--color-border); }
.hours-panel h3 { font-size: 0.9rem; font-family: var(--font-heading); text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-text-muted); margin-bottom: 10px; }
.hours-row { display: flex; justify-content: space-between; font-family: var(--font-heading); font-size: 0.88rem; padding: 6px 0; border-bottom: 1px solid var(--color-border); color: var(--color-text-muted); }
.hours-row:last-child { border-bottom: none; }
.hours-row strong { color: var(--color-text); }

.contact-form-panel { background: var(--color-white); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 36px 32px; border: 1px solid var(--color-border); }
.contact-form-panel h2 { color: var(--color-indigo); margin-bottom: 1.5rem; font-size: 1.5rem; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-family: var(--font-heading); font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-text-muted); margin-bottom: 6px; }
.form-group input, .form-group textarea {
  width: 100%; padding: 13px 16px;
  border: 1px solid var(--color-border); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 0.93rem; color: var(--color-text);
  background: var(--color-bg); transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--color-indigo); box-shadow: 0 0 0 3px rgba(63,81,181,0.1); }
.form-group textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── LEGAL PAGES ── */
.legal-body { max-width: 820px; margin: 0 auto; padding: 56px 24px 80px; }
.legal-body h1 { color: var(--color-indigo); margin-bottom: 0.5rem; }
.legal-date { font-family: var(--font-heading); font-size: 0.82rem; color: var(--color-text-muted); margin-bottom: 2.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--color-border); }
.legal-body h2 { color: var(--color-text); margin-top: 2.5rem; margin-bottom: 0.75rem; font-size: 1.2rem; }
.legal-body p, .legal-body li { font-size: 0.95rem; color: var(--color-text-muted); }
.legal-body ul { margin-bottom: 1rem; }

/* ── THANK YOU ── */
.thankyou-wrap { min-height: calc(100vh - 68px); display: flex; align-items: center; justify-content: center; padding: 48px 24px; background: var(--color-bg); }
.thankyou-box { text-align: center; max-width: 500px; }
.thankyou-box h1 { color: var(--color-indigo); margin-bottom: 1rem; }
.thankyou-box p { color: var(--color-text-muted); font-family: var(--font-heading); font-size: 0.93rem; margin-bottom: 2rem; }

/* ── ABOUT PAGE ── */
.about-intro-quote { background: var(--color-indigo); padding: 72px 24px; text-align: center; }
.about-intro-quote h2 { color: var(--color-white); font-size: clamp(1.3rem, 2.5vw, 1.8rem); font-weight: 400; font-style: italic; max-width: 820px; margin: 0 auto 1rem; font-family: var(--font-body); }
.about-intro-quote p { color: rgba(255,255,255,0.7); font-family: var(--font-heading); font-size: 0.85rem; }

/* ── FLOW DIAGRAM ── */
.flow-diagram { display: flex; align-items: center; justify-content: center; gap: 0; flex-wrap: wrap; margin: 2rem 0; }
.flow-node { background: var(--color-indigo); color: var(--color-white); border-radius: var(--radius); padding: 16px 22px; text-align: center; font-family: var(--font-heading); font-size: 0.88rem; font-weight: 600; min-width: 130px; box-shadow: var(--shadow-sm); }
.flow-arrow { padding: 0 10px; color: var(--color-text-muted); font-size: 1.4rem; }

/* ── MATRIX BLOCK ── */
.matrix-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.matrix-cell { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.matrix-cell-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.matrix-cell-icon { width: 36px; height: 36px; background: rgba(63,81,181,0.1); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; }
.matrix-cell-icon svg { width: 18px; height: 18px; stroke: var(--color-indigo); fill: none; stroke-width: 2; }
.matrix-cell h3 { color: var(--color-indigo); margin: 0; font-size: 1rem; }
.matrix-cell p { font-size: 0.88rem; color: var(--color-text-muted); margin: 0; }

/* ── WATER MOTIF ── */
.water-divider { display: flex; align-items: center; justify-content: center; margin: 2rem 0; gap: 12px; }
.water-divider span { display: block; width: 6px; height: 6px; background: var(--color-indigo); border-radius: 50%; opacity: 0.35; }
.water-divider span:nth-child(2) { width: 10px; height: 10px; opacity: 0.55; }
.water-divider span:nth-child(3) { width: 14px; height: 14px; opacity: 0.7; background: rgba(63,81,181,0.6); }
.water-divider span:nth-child(4) { width: 10px; height: 10px; opacity: 0.55; }
.water-divider span:nth-child(5) { width: 6px; height: 6px; opacity: 0.35; }

/* ── DIAGRAM STATIC ── */
.phase-diagram { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 32px; margin: 2rem 0; box-shadow: var(--shadow-sm); }
.phase-diagram h4 { font-family: var(--font-heading); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-text-muted); margin-bottom: 1.5rem; }
.phase-bar { display: flex; height: 44px; border-radius: 4px; overflow: hidden; margin-bottom: 1rem; }
.phase-bar-segment { display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-size: 0.72rem; font-weight: 700; color: var(--color-white); white-space: nowrap; }
.phase-nrem1 { background: #7986cb; }
.phase-nrem2 { background: var(--color-indigo); }
.phase-nrem3 { background: #1a237e; }
.phase-rem { background: var(--color-green); }
.phase-legend { display: flex; gap: 20px; flex-wrap: wrap; }
.phase-legend-item { display: flex; align-items: center; gap: 6px; font-family: var(--font-heading); font-size: 0.78rem; color: var(--color-text-muted); }
.phase-legend-dot { width: 12px; height: 12px; border-radius: 3px; }

/* ── ABSTRACT FLOW ── */
.stress-flow { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 2rem auto; max-width: 500px; }
.stress-node { width: 100%; text-align: center; padding: 16px 24px; border-radius: var(--radius); font-family: var(--font-heading); font-size: 0.88rem; font-weight: 600; }
.stress-node-a { background: rgba(63,81,181,0.12); color: var(--color-indigo); }
.stress-node-b { background: rgba(255,193,7,0.18); color: #7a5c00; }
.stress-node-c { background: rgba(76,175,80,0.12); color: #2e6b31; }
.stress-arrow { color: var(--color-text-muted); font-size: 1.2rem; }

/* ── DAY-NIGHT SPLIT ── */
.day-night-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); margin: 2rem 0; }
.day-zone { background: #fffbef; padding: 36px 28px; border-right: 1px solid var(--color-border); }
.night-zone { background: #1a1a2e; padding: 36px 28px; }
.night-zone h3, .night-zone p { color: rgba(255,255,255,0.87); }
.night-zone h3 { color: var(--color-amber); }
.day-zone h3 { color: var(--color-indigo); }
.day-zone p { color: var(--color-text-muted); }

/* ── FOOTER ── */
.site-footer { background: #1a1a2e; color: rgba(255,255,255,0.8); padding: 64px 24px 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 48px; }
.footer-brand .logo { color: rgba(255,255,255,0.95); display: inline-block; margin-bottom: 12px; font-size: 1.4rem; }
.footer-brand p { font-size: 0.85rem; color: rgba(255,255,255,0.55); line-height: 1.7; }
.footer-col h4 { font-family: var(--font-heading); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.45); margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 0.88rem; color: rgba(255,255,255,0.65); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--color-white); }
.footer-contact p { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-bottom: 6px; }
.footer-hours { font-size: 0.82rem; color: rgba(255,255,255,0.45); margin-top: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-family: var(--font-heading); font-size: 0.8rem; color: rgba(255,255,255,0.4); }
.footer-editorial-note { font-family: var(--font-heading); font-size: 0.78rem; color: rgba(255,255,255,0.38); }

/* ── COOKIE BANNER ── */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: #1a1a2e; border-top: 1px solid rgba(255,255,255,0.1);
  padding: 18px 24px; display: none;
}
#cookie-banner.visible { display: block; }
.cookie-inner { max-width: var(--max-width); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cookie-text p { font-family: var(--font-heading); font-size: 0.82rem; color: rgba(255,255,255,0.75); margin: 0; }
.cookie-text a { color: var(--color-amber); }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn { font-family: var(--font-heading); font-size: 0.82rem; font-weight: 600; padding: 9px 20px; border-radius: var(--radius); cursor: pointer; border: none; transition: background var(--transition); }
.cookie-btn-accept { background: var(--color-indigo); color: var(--color-white); }
.cookie-btn-accept:hover { background: #2c3a8c; }
.cookie-btn-decline { background: transparent; color: rgba(255,255,255,0.55); border: 1px solid rgba(255,255,255,0.2); }
.cookie-btn-decline:hover { color: var(--color-white); border-color: rgba(255,255,255,0.5); }

/* ── 404 ── */
.error-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 48px 24px; background: var(--color-bg); }
.error-page h1 { font-size: 7rem; color: var(--color-indigo); opacity: 0.15; line-height: 1; margin-bottom: 0.25rem; }
.error-page h2 { color: var(--color-text); margin-bottom: 1rem; }
.error-page p { color: var(--color-text-muted); font-family: var(--font-heading); margin-bottom: 2rem; }

/* ── ANIMATIONS ── */
.fade-in { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.fade-in.visible { opacity: 1; transform: none; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .two-col img { height: 280px; }
  .two-col.reverse { direction: ltr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .timeline::before { left: 20px; }
  .timeline-item:nth-child(odd), .timeline-item:nth-child(even) { padding-left: 52px; padding-right: 0; justify-content: flex-start; }
  .timeline-dot { left: 20px; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.15); }
  .glossary-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-primary { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--color-white); border-bottom: 1px solid var(--color-border); padding: 16px 24px; gap: 4px; box-shadow: var(--shadow-md); }
  .nav-primary.open { display: flex; }
  .nav-toggle { display: block; }
  .cards-grid { grid-template-columns: 1fr; }
  .contact-cols { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .matrix-grid { grid-template-columns: 1fr; }
  .day-night-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .flow-diagram { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); }
  .hero { min-height: 60vh; }
  .phase-legend { flex-direction: column; gap: 8px; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .glossary-item { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section { padding: 48px 16px; }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.35rem; }
  .stat-strip { grid-template-columns: 1fr; }
  .article-hero { height: 280px; }
  .contact-info-panel, .contact-form-panel { padding: 24px 18px; }
}
