/* ==========================================================================
   fatoviy — Contemporary Romanian Nutrition & Eye Wellbeing Editorial
   Custom HSL Palette (Base Hue 188, Warm Ochre Accent Hue 28, Natural Cream Hue 42)
   ========================================================================== */

:root {
  --primary-deep: hsl(188, 68%, 16%);
  --primary-mid: hsl(188, 62%, 24%);
  --accent-cta: hsl(28, 82%, 48%);
  --accent-cta-hover: hsl(28, 85%, 41%);
  --accent-soft: hsl(34, 72%, 92%);
  --surface-canvas: hsl(42, 38%, 97%);
  --surface-paper: hsl(42, 45%, 99%);
  --surface-sage: hsl(165, 22%, 92%);
  --ink-main: hsl(192, 32%, 14%);
  --ink-muted: hsl(190, 14%, 36%);
  --border-subtle: hsla(188, 45%, 20%, 0.14);
  --border-strong: hsla(188, 45%, 20%, 0.28);

  --font-serif: 'Lora', Georgia, serif;
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-soft: 0 12px 32px hsla(188, 65%, 12%, 0.07);
  --shadow-card: 0 6px 20px hsla(188, 55%, 14%, 0.05);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  background-color: var(--surface-canvas);
  color: var(--ink-main);
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.96rem + 0.18vw, 1.09rem);
  line-height: 1.72;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

a {
  color: var(--primary-mid);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

a:hover {
  color: var(--accent-cta-hover);
}

h1, h2, h3, h4, .font-editorial {
  font-family: var(--font-serif);
  color: var(--primary-deep);
  font-weight: 600;
  line-height: 1.24;
  margin-top: 0;
}

h1 {
  font-size: clamp(2.2rem, 1.65rem + 2.3vw, 3.85rem);
  letter-spacing: -0.015em;
}

h2 {
  font-size: clamp(1.65rem, 1.3rem + 1.35vw, 2.55rem);
  margin-bottom: 1.1rem;
}

h3 {
  font-size: clamp(1.22rem, 1.08rem + 0.48vw, 1.55rem);
  margin-bottom: 0.75rem;
}

p {
  margin-top: 0;
  margin-bottom: 1.15rem;
}

.eyebrow-tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--primary-mid);
  background: var(--surface-sage);
  padding: 0.3rem 0.72rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}

.caption-note {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--ink-muted);
  margin-top: 0.6rem;
  margin-bottom: 0;
  padding-left: 0.8rem;
  border-left: 2px solid var(--accent-cta);
}

.editorial-index-num {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 1.9rem + 2vw, 4rem);
  line-height: 1;
  color: var(--accent-cta);
  font-weight: 600;
  display: block;
  margin-bottom: 0.45rem;
}

/* Buttons & CTAs */
.btn-cta-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background-color: var(--accent-cta);
  color: hsl(0, 0%, 100%);
  font-weight: 700;
  font-size: 0.96rem;
  padding: 0.9rem 1.65rem;
  border: 1px solid var(--accent-cta);
  border-radius: var(--radius-sm);
  text-decoration: none;
  box-shadow: 0 6px 18px hsla(28, 82%, 44%, 0.24);
}

.btn-cta-main:hover {
  background-color: var(--accent-cta-hover);
  border-color: var(--accent-cta-hover);
  color: hsl(0, 0%, 100%);
  transform: translateY(-1px);
}

.btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background-color: var(--surface-paper);
  color: var(--primary-deep);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.88rem 1.5rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.btn-cta-secondary:hover {
  background-color: var(--primary-deep);
  border-color: var(--primary-deep);
  color: hsl(0, 0%, 100%);
}

/* ==========================================================================
   HEADER & CSS-ONLY NAVIGATION (Unified across all pages)
   ========================================================================== */
.site-header {
  background-color: var(--surface-paper);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-topbar {
  background-color: var(--primary-deep);
  color: hsla(42, 45%, 96%, 0.88);
  font-size: 0.8rem;
  padding: 0.38rem 0;
}

.header-topbar a {
  color: hsl(34, 88%, 74%);
  text-decoration: none;
  font-weight: 600;
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.95rem 0;
}

.brand-lockup {
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 1.35rem + 0.65vw, 2.05rem);
  font-weight: 700;
  color: var(--primary-deep);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.brand-sub {
  font-size: 0.76rem;
  color: var(--ink-muted);
  margin-top: 0.22rem;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 1.65rem;
}

.nav-desktop a {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink-main);
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] {
  color: var(--primary-deep);
  border-bottom-color: var(--accent-cta);
}

.nav-desktop a.nav-pill-cta {
  background-color: var(--primary-deep);
  color: hsl(0, 0%, 100%);
  padding: 0.52rem 1.05rem;
  border-radius: var(--radius-sm);
  border-bottom: none;
}

.nav-desktop a.nav-pill-cta:hover,
.nav-desktop a.nav-pill-cta[aria-current="page"] {
  background-color: var(--accent-cta);
  color: hsl(0, 0%, 100%);
}

/* CSS-only Mobile Menu */
.nav-mobile-details {
  display: none;
}

.nav-mobile-details summary {
  list-style: none;
  cursor: pointer;
  padding: 0.48rem 0.95rem;
  border: 1px solid var(--primary-deep);
  color: var(--primary-deep);
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
  user-select: none;
}

.nav-mobile-details summary::-webkit-details-marker {
  display: none;
}

.nav-mobile-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--surface-paper);
  border-bottom: 2px solid var(--primary-deep);
  padding: 1.25rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  box-shadow: var(--shadow-soft);
}

.nav-mobile-panel a {
  font-size: 1.02rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-main);
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.nav-mobile-panel a[aria-current="page"] {
  color: var(--accent-cta-hover);
}

@media (max-width: 991px) {
  .nav-desktop {
    display: none;
  }
  .nav-mobile-details {
    display: block;
  }
}

/* ==========================================================================
   SURFACES, CARDS, RATIO FRAMES & BLOCKS
   ========================================================================== */
.bg-canvas { background-color: var(--surface-canvas); }
.bg-paper  { background-color: var(--surface-paper); }
.bg-sage   { background-color: var(--surface-sage); }
.bg-ochre-soft { background-color: var(--accent-soft); }

.bg-deep-teal {
  background-color: var(--primary-deep);
  color: hsl(42, 42%, 96%);
}

.bg-deep-teal h2,
.bg-deep-teal h3,
.bg-deep-teal .font-editorial {
  color: hsl(0, 0%, 100%);
}

.bg-deep-teal p,
.bg-deep-teal li {
  color: hsla(42, 42%, 96%, 0.9);
}

.bg-deep-teal .eyebrow-tag {
  background: hsla(0, 0%, 100%, 0.12);
  color: hsl(34, 88%, 74%);
}

.section-space {
  padding: clamp(3.25rem, 2.5rem + 2.8vw, 5.25rem) 0;
}

.prose-limit {
  max-width: 66ch;
}

.soft-card {
  background: var(--surface-paper);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.trust-strip {
  background: var(--surface-paper);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--primary-deep);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-card);
}

.quote-callout {
  border-left: 3px solid var(--accent-cta);
  padding: 0.75rem 0 0.75rem 1.35rem;
  margin: 1.75rem 0;
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 1rem + 0.35vw, 1.28rem);
  font-style: italic;
  color: var(--primary-deep);
}

/* Image Ratios */
.ratio-21x9 { aspect-ratio: 21 / 9; width: 100%; object-fit: cover; }
.ratio-16x9 { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
.ratio-3x4  { aspect-ratio: 3 / 4;  width: 100%; object-fit: cover; }
.ratio-2x3  { aspect-ratio: 2 / 3;  width: 100%; object-fit: cover; }
.ratio-1x1  { aspect-ratio: 1 / 1;  width: 100%; object-fit: cover; }
.ratio-4x3  { aspect-ratio: 4 / 3;  width: 100%; object-fit: cover; }
.ratio-5x4  { aspect-ratio: 5 / 4;  width: 100%; object-fit: cover; }
.ratio-3x2  { aspect-ratio: 3 / 2;  width: 100%; object-fit: cover; }

/* Tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface-paper);
  box-shadow: var(--shadow-card);
}

.table-custom {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  text-align: left;
}

.table-custom th {
  background-color: var(--primary-deep);
  color: hsl(0, 0%, 100%);
  font-family: var(--font-serif);
  font-weight: 600;
  padding: 0.95rem 1.1rem;
  border-bottom: 2px solid var(--accent-cta);
}

.table-custom td {
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}

.table-custom tr:nth-child(even) td {
  background-color: hsla(165, 22%, 92%, 0.4);
}

/* FAQ <details> */
.faq-disclosure {
  background: var(--surface-paper);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
}

.faq-disclosure summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--primary-deep);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-disclosure summary::-webkit-details-marker {
  display: none;
}

.faq-disclosure summary::after {
  content: "+";
  font-family: var(--font-sans);
  font-size: 1.35rem;
  color: var(--accent-cta);
  flex-shrink: 0;
}

.faq-disclosure[open] summary::after {
  content: "−";
}

.faq-content {
  padding-top: 0.85rem;
  color: var(--ink-main);
  border-top: 1px solid var(--border-subtle);
  margin-top: 0.85rem;
}

/* Recipes */
.recipe-entry {
  scroll-margin-top: 6.5rem;
  margin-bottom: 4rem;
}

.recipe-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0.9rem 0 1.25rem;
}

.recipe-badge {
  font-size: 0.84rem;
  font-weight: 600;
  background: var(--surface-sage);
  color: var(--primary-deep);
  padding: 0.32rem 0.75rem;
  border-radius: var(--radius-sm);
}

.bg-deep-teal .recipe-badge {
  background: hsla(0, 0%, 100%, 0.12);
  color: hsl(34, 88%, 74%);
}

.allergen-callout {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent-cta);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.1rem;
  font-size: 0.91rem;
  margin-top: 1.15rem;
  color: var(--ink-main);
}

.bg-deep-teal .allergen-callout {
  background: hsla(0, 0%, 100%, 0.09);
  color: hsl(42, 42%, 96%);
}

/* Educational Responsible Notice */
.editorial-disclaimer {
  background-color: var(--surface-paper);
  border: 1px solid var(--border-subtle);
  border-top: 3px solid var(--primary-mid);
  border-radius: var(--radius-md);
  padding: 1.65rem 1.9rem;
  margin-top: 3rem;
  font-size: 0.91rem;
  line-height: 1.65;
  color: var(--ink-muted);
}

.editorial-disclaimer strong {
  color: var(--primary-deep);
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-serif);
  font-size: 1rem;
}

/* Forms */
.form-label-custom {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--primary-deep);
  margin-bottom: 0.4rem;
}

.form-input-custom {
  width: 100%;
  padding: 0.78rem 0.95rem;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  color: var(--ink-main);
  background-color: var(--surface-canvas);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
}

.form-input-custom:focus {
  outline: 2px solid var(--accent-cta);
  border-color: var(--primary-deep);
  background-color: var(--surface-paper);
}

/* ==========================================================================
   FOOTER (Unified across all pages)
   ========================================================================== */
.site-footer {
  background-color: var(--primary-deep);
  color: hsl(42, 42%, 96%);
  padding: 4.25rem 0 2.25rem;
  border-top: 4px solid var(--accent-cta);
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 1.5rem + 1.2vw, 2.75rem);
  font-weight: 700;
  color: hsl(0, 0%, 100%);
  line-height: 1.1;
  margin-bottom: 0.55rem;
}

.footer-tagline {
  color: hsl(34, 88%, 74%);
  font-size: 0.94rem;
  margin-bottom: 1.1rem;
}

.footer-text {
  color: hsla(42, 42%, 96%, 0.84);
  font-size: 0.93rem;
  max-width: 44ch;
}

.footer-col-title {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: hsl(34, 88%, 74%);
  margin-bottom: 0.95rem;
}

.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-nav a {
  color: hsla(42, 42%, 96%, 0.9);
  text-decoration: none;
  font-size: 0.94rem;
}

.footer-nav a:hover {
  color: hsl(34, 88%, 74%);
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 2.75rem;
  padding-top: 1.65rem;
  border-top: 1px solid hsla(42, 42%, 96%, 0.16);
  font-size: 0.84rem;
  color: hsla(42, 42%, 96%, 0.76);
}