/* ==========================================================================
   STITCH — Luxury Dark Magazine Theme for Dental Tourism
   A Hugo theme CSS for Hydra city sites
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. DESIGN TOKENS (Custom Properties)
   -------------------------------------------------------------------------- */
:root {
  /* Colors */
  --forest: #0a1f1c;
  --charcoal: #121212;
  --gold: #c5a059;
  --gold-muted: #8e7341;
  --cream: #f4f1ea;

  /* Derived */
  --gold-10: rgba(197, 160, 89, 0.1);
  --gold-20: rgba(197, 160, 89, 0.2);
  --gold-30: rgba(197, 160, 89, 0.3);
  --cream-50: rgba(244, 241, 234, 0.5);
  --cream-70: rgba(244, 241, 234, 0.7);
  --forest-80: rgba(10, 31, 28, 0.8);

  /* Typography */
  --font-serif: "Playfair Display", serif;
  --font-sans: "Montserrat", sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 5rem;

  /* Transitions */
  --transition-fast: 200ms ease;
  --transition-base: 350ms ease;
  --transition-slow: 500ms ease;

  /* Layout */
  --max-width: 1200px;
  --header-height: 64px;
}


/* --------------------------------------------------------------------------
   1. RESET & BASE
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.7;
  color: var(--cream);
  background-color: var(--forest);
}

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

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition-base), border-color var(--transition-base);
}

a:hover {
  color: var(--cream);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.25;
  color: var(--cream);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1em;
}

ul, ol {
  padding-left: 1.5em;
}

::selection {
  background: var(--gold-30);
  color: var(--cream);
}


/* --------------------------------------------------------------------------
   2. UTILITY CLASSES
   -------------------------------------------------------------------------- */
.gold-underline {
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.gold-underline::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 3rem;
  height: 2px;
  background: var(--gold);
}

.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;
}


/* --------------------------------------------------------------------------
   3. SITE HEADER
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--forest-80);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gold-10);
  height: var(--header-height);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.02em;
  transition: color var(--transition-base);
}

.site-logo:hover .logo-text {
  color: var(--cream);
}

/* Navigation */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 1.5rem;
  cursor: pointer;
  padding: var(--space-sm);
  line-height: 1;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-menu a {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cream);
  padding-bottom: 0.25rem;
  border-bottom: 2px solid transparent;
  transition: color var(--transition-base), border-color var(--transition-base);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  gap: var(--space-sm);
  margin-left: var(--space-lg);
}

.lang-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cream);
  background: transparent;
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition-base), color var(--transition-base);
}

.lang-pill:hover {
  background: var(--gold-20);
  color: var(--cream);
}

.lang-pill.active {
  background: var(--gold);
  color: var(--forest);
}


/* --------------------------------------------------------------------------
   4. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 31, 28, 0.7) 0%,
    rgba(10, 31, 28, 0.5) 40%,
    rgba(10, 31, 28, 0.85) 100%
  );
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  padding: var(--space-2xl) var(--space-lg);
  text-align: center;
}

.hero-inner h1 {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--cream);
  margin-bottom: var(--space-md);
  line-height: 1.15;
}

.hero-desc {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--cream-70);
  max-width: 600px;
  margin: 0 auto var(--space-xl);
  line-height: 1.8;
}

.hero-cta {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--forest);
  background: var(--gold);
  border: 2px solid var(--gold);
  padding: 0.9rem 2.5rem;
  border-radius: 2px;
  cursor: pointer;
  transition: background var(--transition-base), color var(--transition-base);
  text-decoration: none;
}

.hero-cta:hover {
  background: transparent;
  color: var(--gold);
}


/* --------------------------------------------------------------------------
   5. HOME CONTENT
   -------------------------------------------------------------------------- */
.home-content {
  background: var(--forest);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg);
}

.home-intro {
  max-width: 800px;
  margin-bottom: var(--space-2xl);
  font-size: 1.08rem;
  line-height: 1.9;
  color: var(--cream);
}

/* Home intro inherits article-body markdown styles */
.home-intro h2 { font-family: var(--font-serif); font-size: 1.65rem; color: var(--gold); margin-top: 3rem; margin-bottom: 1rem; padding-bottom: var(--space-sm); border-bottom: 1px solid var(--gold-10); line-height: 1.3; }
.home-intro h3 { font-family: var(--font-serif); font-size: 1.3rem; color: var(--gold); margin-top: 2.5rem; margin-bottom: 0.75rem; }
.home-intro p { margin-bottom: 1.4em; }
.home-intro a { color: var(--gold); text-decoration: underline; text-decoration-color: var(--gold-20); text-underline-offset: 3px; }
.home-intro a:hover { text-decoration-color: var(--gold); color: var(--cream); }
.home-intro strong { color: #fff; font-weight: 700; }
.home-intro table { width: 100%; border-collapse: collapse; margin: var(--space-lg) 0; font-size: 0.92rem; }
.home-intro thead { background: var(--charcoal); }
.home-intro th { font-family: var(--font-sans); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); padding: 0.75rem 1rem; text-align: left; border-bottom: 2px solid var(--gold-20); }
.home-intro td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--gold-10); color: var(--cream-70); }
.home-intro tbody tr:hover { background: var(--gold-10); }
.home-intro ul { list-style: none; padding-left: 1.5em; margin-bottom: 1.4em; }
.home-intro ul li { position: relative; margin-bottom: 0.5em; }
.home-intro ul li::before { content: "\2022"; color: var(--gold); font-weight: 700; position: absolute; left: -1.2em; }
.home-intro ol { padding-left: 1.5em; margin-bottom: 1.4em; }
.home-intro ol li { margin-bottom: 0.5em; }
.home-intro ol li::marker { color: var(--gold); font-weight: 700; }

.section-header {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--gold);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-sm);
  position: relative;
}

.section-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 3rem;
  height: 2px;
  background: var(--gold);
}

.view-all {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-top: var(--space-lg);
  transition: gap var(--transition-base), color var(--transition-base);
}

.view-all::after {
  content: "\2192";
  transition: transform var(--transition-base);
}

.view-all:hover {
  color: var(--cream);
}

.view-all:hover::after {
  transform: translateX(4px);
}


/* --------------------------------------------------------------------------
   6. CARD GRID
   -------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.card {
  background: var(--charcoal);
  border: 1px solid var(--gold-10);
  border-radius: 4px;
  overflow: hidden;
  transition: transform var(--transition-slow), border-color var(--transition-slow), box-shadow var(--transition-slow);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-30);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter var(--transition-slow), transform var(--transition-slow);
}

.card:hover .card-image img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.card-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--forest) 0%, var(--charcoal) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-muted);
  font-size: 2rem;
}

.card-badge {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--forest);
  background: var(--gold);
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  z-index: 2;
}

.card-body {
  padding: var(--space-md) var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-body h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin-bottom: var(--space-sm);
  line-height: 1.35;
}

.card-body h3 a {
  color: var(--cream);
  text-decoration: none;
  transition: color var(--transition-base);
}

.card-body h3 a:hover {
  color: var(--gold);
}

.card-desc {
  font-size: 0.9rem;
  color: var(--cream-50);
  line-height: 1.7;
  flex: 1;
  margin-bottom: var(--space-sm);
}

.card-meta {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-muted);
  margin-top: auto;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--gold-10);
}


/* --------------------------------------------------------------------------
   7. POST LIST
   -------------------------------------------------------------------------- */
.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-list-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--gold-10);
  transition: background var(--transition-base);
}

.post-list-item:first-child {
  padding-top: 0;
}

.post-list-item:last-child {
  border-bottom: none;
}

.post-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  min-width: 2.5rem;
  flex-shrink: 0;
}

.post-list-body {
  flex: 1;
}

.post-list-body h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
  line-height: 1.35;
}

.post-list-body h3 a {
  color: var(--cream);
  transition: color var(--transition-base);
}

.post-list-body h3 a:hover {
  color: var(--gold);
}

.post-excerpt {
  font-size: 0.9rem;
  color: var(--cream-50);
  line-height: 1.7;
  margin-bottom: 0.3rem;
}

.post-list-date {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-muted);
}


/* --------------------------------------------------------------------------
   8. ARTICLE PAGE
   -------------------------------------------------------------------------- */
.article-page {
  background: var(--forest);
  padding-top: calc(var(--header-height) + var(--space-xl));
  padding-bottom: var(--space-2xl);
  max-width: 860px;
  margin: 0 auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

/* Breadcrumb */
.breadcrumb {
  margin: 0 0 var(--space-lg);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cream-50);
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.breadcrumb a {
  color: var(--gold);
}

.breadcrumb a:hover {
  color: var(--cream);
}

.breadcrumb li::after {
  content: "/";
  margin-left: 0.4rem;
  color: var(--gold-muted);
}

.breadcrumb li:last-child::after {
  content: none;
}

/* Article Header */
.article-header {
  margin: 0 0 var(--space-xl);
}

.article-header h1 {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--cream);
  margin-bottom: var(--space-md);
  line-height: 1.25;
  max-width: 720px;
}

.category-badge {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--forest);
  background: var(--gold);
  padding: 0.25rem 0.75rem;
  border-radius: 2px;
  margin-bottom: var(--space-md);
  text-decoration: none;
  transition: background var(--transition-base);
}

.category-badge:hover {
  background: var(--cream);
  color: var(--forest);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.8rem;
  color: var(--cream-50);
  margin-top: var(--space-sm);
}

.article-meta time {
  color: var(--gold-muted);
  font-weight: 500;
}

/* Tags */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  padding: 0;
  list-style: none;
}

.tag {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  border: 1px solid var(--gold-20);
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  text-decoration: none;
  transition: background var(--transition-base), border-color var(--transition-base);
}

.tag:hover {
  background: var(--gold-10);
  border-color: var(--gold);
  color: var(--gold);
}

/* Featured Image */
.featured-image {
  margin: 0 0 var(--space-xl);
}

.featured-image img {
  width: 100%;
  border-radius: 4px;
  border: 1px solid var(--gold-10);
}

/* Reviewed By */
.reviewed-by {
  margin: 0 0 var(--space-xl);
  padding: var(--space-md) var(--space-lg);
  background: var(--charcoal);
  border: 1px solid var(--gold-10);
  border-left: 3px solid var(--gold);
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--cream-70);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.reviewed-by .material-symbols-outlined {
  color: var(--gold);
  font-size: 1.2rem;
}

.reviewed-by a {
  color: var(--gold);
}

.reviewed-by strong {
  color: var(--cream);
}

/* Table of Contents */
.toc {
  margin: 0 0 var(--space-xl);
  padding: var(--space-lg);
  background: var(--charcoal);
  border: 1px solid var(--gold-10);
  border-left: 3px solid var(--gold);
  border-radius: 4px;
}

.toc-title {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: var(--space-md);
}

.toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc li {
  margin-bottom: 0.4rem;
}

.toc a {
  font-size: 0.9rem;
  color: var(--cream-70);
  transition: color var(--transition-base), padding-left var(--transition-base);
}

.toc a:hover {
  color: var(--gold);
  padding-left: 0.3rem;
}

.toc ul ul {
  padding-left: 1.2rem;
  margin-top: 0.4rem;
}

.toc ul ul a {
  font-size: 0.85rem;
  color: var(--cream-50);
}

/* Treatment Summary */
.treatment-summary {
  margin: var(--space-xl) 0;
}

.treatment-summary h3 {
  color: var(--gold);
  margin-bottom: var(--space-md);
}

.treatment-summary table {
  width: 100%;
}


/* --------------------------------------------------------------------------
   9. ARTICLE BODY & LIST DESC — Markdown Content Styling
   -------------------------------------------------------------------------- */
.article-body,
.list-desc {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.9;
  color: var(--cream);
}

/* Headings */
.article-body h2,
.list-desc h2 {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  color: var(--gold);
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--gold-10);
  line-height: 1.3;
}

.article-body h3,
.list-desc h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--gold);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.article-body h4,
.list-desc h4 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--gold);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

/* Paragraphs */
.article-body p,
.list-desc p {
  margin-bottom: 1.4em;
}

/* Links */
.article-body a,
.list-desc a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: var(--gold-20);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--transition-base), color var(--transition-base);
}

.article-body a:hover,
.list-desc a:hover {
  text-decoration-color: var(--gold);
  color: var(--cream);
}

/* Strong / Bold */
.article-body strong,
.list-desc strong {
  color: #fff;
  font-weight: 700;
}

/* Emphasis */
.article-body em,
.list-desc em {
  font-style: italic;
}

/* Lists */
.article-body ul,
.list-desc ul {
  list-style: none;
  padding-left: 1.5em;
  margin-bottom: 1.4em;
}

.article-body ul li,
.list-desc ul li {
  position: relative;
  margin-bottom: 0.5em;
}

.article-body ul li::before,
.list-desc ul li::before {
  content: "\2022";
  color: var(--gold);
  font-weight: 700;
  position: absolute;
  left: -1.2em;
}

.article-body ol,
.list-desc ol {
  padding-left: 1.5em;
  margin-bottom: 1.4em;
}

.article-body ol li,
.list-desc ol li {
  margin-bottom: 0.5em;
  padding-left: 0.3em;
}

.article-body ol li::marker,
.list-desc ol li::marker {
  color: var(--gold);
  font-weight: 700;
}

/* Blockquotes */
.article-body blockquote,
.list-desc blockquote {
  border-left: 3px solid var(--gold);
  margin: var(--space-lg) 0;
  padding: var(--space-md) var(--space-lg);
  background: var(--gold-10);
  border-radius: 0 4px 4px 0;
  font-style: italic;
  color: var(--cream-70);
}

.article-body blockquote p:last-child,
.list-desc blockquote p:last-child {
  margin-bottom: 0;
}

/* Tables */
.article-body table,
.list-desc table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-lg) 0;
  font-size: 0.92rem;
}

.article-body thead,
.list-desc thead {
  background: var(--charcoal);
}

.article-body th,
.list-desc th {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 2px solid var(--gold-20);
}

.article-body td,
.list-desc td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--gold-10);
  color: var(--cream-70);
}

.article-body tbody tr:hover,
.list-desc tbody tr:hover {
  background: var(--gold-10);
}

/* Code */
.article-body code,
.list-desc code {
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-size: 0.88em;
  background: var(--charcoal);
  color: var(--gold);
  padding: 0.15em 0.4em;
  border-radius: 3px;
  border: 1px solid var(--gold-10);
}

.article-body pre,
.list-desc pre {
  background: var(--charcoal);
  border: 1px solid var(--gold-10);
  border-radius: 4px;
  padding: var(--space-lg);
  overflow-x: auto;
  margin: var(--space-lg) 0;
}

.article-body pre code,
.list-desc pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.85rem;
  color: var(--cream-70);
}

/* Horizontal Rule */
.article-body hr,
.list-desc hr {
  border: none;
  border-top: 1px solid var(--gold-10);
  margin: var(--space-xl) 0;
}

/* Images — NOT grayscale in articles */
.article-body img,
.list-desc img {
  border-radius: 4px;
  margin: var(--space-lg) 0;
  border: 1px solid var(--gold-10);
}

/* Figures */
.article-body figure,
.list-desc figure {
  margin: var(--space-xl) 0;
}

.article-body figcaption,
.list-desc figcaption {
  font-size: 0.82rem;
  color: var(--cream-50);
  text-align: center;
  margin-top: var(--space-sm);
  font-style: italic;
}


/* --------------------------------------------------------------------------
   9b. HTML SITEMAP PAGE
   -------------------------------------------------------------------------- */
.sitemap-page {
  background: var(--forest);
  max-width: 860px;
  margin: 0 auto;
  padding: calc(var(--header-height) + var(--space-xl)) var(--space-lg) var(--space-2xl);
}

.sitemap-header {
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--gold-10);
}

.sitemap-header h1 {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--cream);
  margin-bottom: var(--space-sm);
}

.sitemap-desc {
  font-size: 1.05rem;
  color: var(--cream-50);
  line-height: 1.7;
}

.sitemap-section {
  margin-bottom: var(--space-2xl);
}

.sitemap-section h2 {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--gold-10);
}

.sitemap-icon {
  font-size: 1.3rem;
  color: var(--gold-muted);
}

.sitemap-count {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--forest);
  background: var(--gold);
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
  margin-left: var(--space-xs);
}

.sitemap-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sitemap-list li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--gold-10);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-md);
}

.sitemap-list li:last-child {
  border-bottom: none;
}

.sitemap-list a {
  color: var(--cream);
  font-size: 0.95rem;
  text-decoration: none;
  transition: color var(--transition-base);
}

.sitemap-list a:hover {
  color: var(--gold);
}

.sitemap-meta {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--gold-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Two-column grid for short lists (clinics, treatments) */
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 var(--space-xl);
}

/* Language blocks grid */
.sitemap-lang-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.sitemap-lang-block h3 {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--cream);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--gold-20);
}

.sitemap-lang-block .sitemap-list a {
  font-size: 0.88rem;
}

.sitemap-lang-block .sitemap-list li {
  padding: 0.4rem 0;
}

@media (max-width: 768px) {
  .sitemap-grid {
    grid-template-columns: 1fr;
  }

  .sitemap-lang-grid {
    grid-template-columns: 1fr;
  }

  .sitemap-list li {
    flex-direction: column;
    gap: 0.15rem;
  }
}


/* --------------------------------------------------------------------------
   10. FAQ SECTION
   -------------------------------------------------------------------------- */
.faq-section {
  background: var(--charcoal);
  padding: var(--space-2xl) var(--space-lg);
  margin-top: var(--space-2xl);
  border-radius: 4px;
  border: 1px solid var(--gold-10);
}

.faq-section h2 {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold);
  margin-bottom: var(--space-xl);
}

.faq-item {
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--gold-10);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-q {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: var(--space-sm);
  line-height: 1.4;
}

.faq-a {
  font-size: 0.95rem;
  color: var(--cream-70);
  line-height: 1.8;
}

.faq-a p:last-child {
  margin-bottom: 0;
}


/* --------------------------------------------------------------------------
   11. CTA BOXES
   -------------------------------------------------------------------------- */
.cta-box,
.smilejet-cta {
  background: var(--charcoal);
  border: 1px solid var(--gold-10);
  border-radius: 4px;
  padding: var(--space-xl) var(--space-lg);
  margin: var(--space-xl) 0;
}

.cta-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--cream);
  margin-bottom: var(--space-md);
}

.cta-box p,
.smilejet-cta p {
  color: var(--cream-70);
  margin-bottom: var(--space-lg);
}

.cta-box a.btn,
.cta-box .cta-btn,
.smilejet-cta a.btn,
.smilejet-cta .cta-btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--forest);
  background: var(--gold);
  border: 2px solid var(--gold);
  padding: 0.75rem 2rem;
  border-radius: 2px;
  text-decoration: none;
  transition: background var(--transition-base), color var(--transition-base);
}

.cta-box a.btn:hover,
.cta-box .cta-btn:hover,
.smilejet-cta a.btn:hover,
.smilejet-cta .cta-btn:hover {
  background: transparent;
  color: var(--gold);
}


/* --------------------------------------------------------------------------
   12. LIST PAGE
   -------------------------------------------------------------------------- */
.list-page {
  background: var(--forest);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: calc(var(--header-height) + var(--space-2xl)) var(--space-lg) var(--space-2xl);
  min-height: 100vh;
}

.list-page-header {
  margin: 0 0 var(--space-xl);
}

.list-page-header h1 {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--cream);
  margin-bottom: var(--space-md);
}

.list-desc {
  font-size: 1.08rem;
  color: var(--cream);
  line-height: 1.9;
}

.list-page .card-grid {
  /* inherits from .list-page container */
}


/* --------------------------------------------------------------------------
   13. PAGINATION
   -------------------------------------------------------------------------- */
.pagination {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-2xl) 0 var(--space-lg);
  list-style: none;
}

.pagination li {
  list-style: none;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cream);
  border: 1px solid var(--gold-20);
  border-radius: 2px;
  text-decoration: none;
  transition: background var(--transition-base), border-color var(--transition-base), color var(--transition-base);
}

.pagination a:hover {
  background: var(--gold-10);
  border-color: var(--gold);
  color: var(--gold);
}

.pagination .active a,
.pagination .active span,
.pagination li.active a {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--forest);
}

.pagination .disabled a,
.pagination .disabled span {
  opacity: 0.3;
  pointer-events: none;
}

/* Hugo default pagination classes */
.page-item .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cream);
  border: 1px solid var(--gold-20);
  border-radius: 2px;
  text-decoration: none;
  transition: background var(--transition-base), border-color var(--transition-base);
}

.page-item .page-link:hover {
  background: var(--gold-10);
  border-color: var(--gold);
}

.page-item.active .page-link {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--forest);
}

.page-item.disabled .page-link {
  opacity: 0.3;
  pointer-events: none;
}


/* --------------------------------------------------------------------------
   14. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--forest);
  border-top: 1px solid var(--gold-10);
  padding: var(--space-2xl) var(--space-lg) 0;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: var(--space-md);
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col li {
  margin-bottom: var(--space-sm);
}

.footer-col a {
  font-size: 0.9rem;
  color: var(--cream-50);
  transition: color var(--transition-base);
}

.footer-col a:hover {
  color: #fff;
}

.footer-col p {
  font-size: 0.9rem;
  color: var(--cream-50);
  line-height: 1.7;
}

.footer-bottom {
  border-top: 1px solid var(--gold-10);
  padding: var(--space-lg) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-bottom p,
.footer-bottom small,
.footer-bottom span {
  font-size: 0.8rem;
  color: var(--gold-muted);
}

.footer-bottom a {
  color: var(--gold-muted);
}

.footer-bottom a:hover {
  color: var(--gold);
}


/* --------------------------------------------------------------------------
   15. RESPONSIVE — Mobile First Overrides
   -------------------------------------------------------------------------- */

/* Tablet: 768px and below */
@media (max-width: 768px) {
  :root {
    --header-height: 56px;
  }

  /* Header */
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: var(--space-2xl);
    gap: var(--space-xl);
    background: var(--forest);
    transform: translateX(100%);
    transition: transform var(--transition-base);
    overflow-y: auto;
    z-index: 999;
  }

  .nav-menu.open {
    transform: translateX(0);
  }

  .nav-menu a {
    font-size: 1rem;
  }

  .lang-switcher {
    margin-left: 0;
    margin-top: var(--space-lg);
  }

  /* Card Grid */
  .card-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  /* Footer Grid */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }

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

  /* Hero */
  .hero-inner {
    padding: var(--space-xl) var(--space-md);
  }

  /* Sections */
  .home-content {
    padding: var(--space-xl) var(--space-md);
  }

  .faq-section {
    padding: var(--space-xl) var(--space-md);
  }

  /* Article */
  .article-page {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }

  .article-body {
    font-size: 1rem;
  }

  /* Tables — horizontal scroll on mobile */
  .article-body table,
  .list-desc table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }

  /* Post list */
  .post-list-item {
    gap: var(--space-md);
  }

  .post-num {
    font-size: 1.5rem;
    min-width: 2rem;
  }
}

/* Small phone: 480px and below */
@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner h1 {
    font-size: 2rem;
  }

  .hero-cta {
    display: block;
    text-align: center;
  }

  .article-header h1 {
    font-size: 1.75rem;
  }

  .cta-box,
  .smilejet-cta {
    padding: var(--space-lg) var(--space-md);
  }

  .toc {
    padding: var(--space-md);
  }
}

/* Large desktop: 1024px+ two-column grid */
@media (min-width: 769px) and (max-width: 1023px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* --------------------------------------------------------------------------
   16. PRINT STYLES
   -------------------------------------------------------------------------- */
@media print {
  body {
    background: #fff;
    color: #111;
  }

  .site-header,
  .site-footer,
  .nav-toggle,
  .hero,
  .cta-box,
  .smilejet-cta,
  .toc {
    display: none;
  }

  .article-body {
    max-width: 100%;
  }

  .article-body a,
.list-desc a {
    color: #111;
    text-decoration: underline;
  }

  .article-body h2,
  .article-body h3,
  .article-body h4,
.list-desc h4 {
    color: #111;
  }
}


/* --------------------------------------------------------------------------
   17. ANIMATION & MISC
   -------------------------------------------------------------------------- */

/* Smooth scroll offset for fixed header */
:target {
  scroll-margin-top: calc(var(--header-height) + var(--space-lg));
}

/* Focus visible for accessibility */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .card:hover {
    transform: none;
  }

  .card-image img {
    transition: none;
  }
}

/* Page body offset for fixed header on non-article pages */
body {
  padding-top: var(--header-height);
}

.hero {
  margin-top: calc(-1 * var(--header-height));
}

/* Ensure article-page doesn't double-offset */
.article-page {
  margin-top: calc(-1 * var(--header-height));
}

.list-page {
  margin-top: calc(-1 * var(--header-height));
}
