/* ==========================================================================
   EMBALA CERTO — Design System & Stylesheet
   Blog didático sobre embalagem para e-commerce
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CUSTOM PROPERTIES
   -------------------------------------------------------------------------- */
:root {
  /* Colors — Teal (primary) */
  --teal-800: #063f3f;
  --teal-700: #076e6e;
  --teal-600: #0A8A8A;
  --teal-500: #14a0a0;
  --teal-100: #dcf0ef;
  --teal-50:  #f0f9f8;

  /* Colors — Amber (accent) */
  --amber-600: #c97627;
  --amber-500: #E8913A;
  --amber-400: #edac64;
  --amber-100: #fcebd7;
  --amber-50:  #fdf5ea;

  /* Neutrals */
  --cream:      #FBF7EF;
  --cream-dark: #F1EAD9;
  --white:      #FFFFFF;
  --ink-900:    #1E2B29;
  --ink-700:    #35443F;
  --ink-600:    #52625F;
  --ink-400:    #8A9895;
  --border:     #E6DFCF;
  --border-dark:#D8CEB6;

  /* Typography */
  --font-heading: 'Sora', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  /* Layout */
  --container-w: 1180px;
  --container-narrow-w: 760px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --header-h: 76px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(30, 43, 41, 0.08), 0 1px 2px rgba(30,43,41,.06);
  --shadow-md: 0 8px 24px rgba(30, 43, 41, 0.10);
  --shadow-lg: 0 16px 40px rgba(30, 43, 41, 0.14);

  /* Motion */
  --transition: 200ms ease;
}

/* --------------------------------------------------------------------------
   2. RESET / BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img, picture, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
table { border-collapse: collapse; width: 100%; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--ink-900);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 1.6rem + 2vw, 3.1rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 1.3rem + 1vw, 2.1rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.4rem); }
h4 { font-size: 1.05rem; }

p { color: var(--ink-700); }

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

.skip-link {
  position: absolute; left: 10px; top: -60px; background: var(--teal-700);
  color: #fff; padding: .7em 1.2em; border-radius: var(--radius-sm); z-index: 999;
  transition: top var(--transition);
}
.skip-link:focus { top: 10px; }

/* --------------------------------------------------------------------------
   3. LAYOUT UTILITIES
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 20px;
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow-w);
  margin-inline: auto;
  padding-inline: 20px;
}

@media (min-width: 640px) {
  .container, .container-narrow { padding-inline: 28px; }
}
@media (min-width: 1024px) {
  .container, .container-narrow { padding-inline: 40px; }
}

section { padding-block: clamp(2.5rem, 2rem + 2vw, 5rem); }
.section-tight { padding-block: clamp(1.5rem, 1rem + 2vw, 3rem); }

.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 1rem; margin-bottom: 2.25rem;
}
.section-head .eyebrow + h2 { margin-top: .35rem; }
.section-head p { max-width: 620px; margin-top:.6rem; color: var(--ink-600); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-heading); font-weight: 700; font-size: .8rem;
  text-transform: uppercase; letter-spacing: .09em; color: var(--teal-600);
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; background: var(--amber-500); display: inline-block;
}

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

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 860px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-5 { grid-template-columns: repeat(5, 1fr); }
}

.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.text-center { text-align: center; }
.mt-lg { margin-top: 2.5rem; }

/* --------------------------------------------------------------------------
   4. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-heading); font-weight: 600; font-size: .95rem;
  padding: .85em 1.7em; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--teal-600); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--teal-700); box-shadow: var(--shadow-md); }

.btn-accent { background: var(--amber-500); color: #fff; box-shadow: var(--shadow-sm); }
.btn-accent:hover { background: var(--amber-600); box-shadow: var(--shadow-md); }

.btn-outline { background: transparent; border-color: var(--teal-600); color: var(--teal-700); }
.btn-outline:hover { background: var(--teal-600); color: #fff; }

.btn-ghost { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.6); color: #fff; backdrop-filter: blur(2px); }
.btn-ghost:hover { background: #fff; color: var(--teal-700); }

.btn-sm { padding: .55em 1.2em; font-size: .85rem; }
.btn-block { width: 100%; }

/* --------------------------------------------------------------------------
   5. HEADER / NAVIGATION
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 500;
  background: rgba(251, 247, 239, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); border-color: var(--border); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo-img { height: 40px; width: auto; }
.logo-text {
  font-family: var(--font-heading); font-weight: 800; font-size: 1.3rem; color: var(--ink-900);
}
.logo-text .accent { color: var(--amber-500); }

.main-nav ul { display: flex; align-items: center; gap: 2rem; }
.main-nav a {
  font-family: var(--font-heading); font-weight: 600; font-size: .95rem;
  text-decoration: none; color: var(--ink-700); padding: .5em .1em;
  position: relative;
}
.main-nav > ul > li > a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--amber-500); transform: scaleX(0); transform-origin: left;
  transition: transform var(--transition);
}
.main-nav > ul > li > a:hover::after,
.main-nav > ul > li > a.active::after { transform: scaleX(1); }
.main-nav a.active { color: var(--teal-700); }

.has-dropdown { position: relative; }
.has-dropdown > a::before {
  content: "▾"; font-size: .7em; margin-left: .35em; display: inline-block;
}
.dropdown {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(4px);
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); min-width: 250px; padding: .5rem;
  opacity: 0; pointer-events: none; transition: opacity var(--transition), transform var(--transition);
  z-index: 50;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.dropdown li a {
  display: block; padding: .65em .9em; border-radius: var(--radius-sm); font-weight: 500;
  color: var(--ink-700);
}
.dropdown li a:hover { background: var(--teal-50); color: var(--teal-700); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; background: transparent; border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; background: var(--ink-900); margin-inline: auto;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 899px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--cream);
    padding: 1.5rem 1.5rem 3rem; overflow-y: auto;
    transform: translateX(100%); transition: transform 280ms ease;
    border-top: 1px solid var(--border);
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: .25rem; }
  .main-nav > ul > li > a { display: block; padding: .9em .2em; font-size: 1.05rem; border-bottom: 1px solid var(--border); }
  .has-dropdown > a::before { float: right; }
  .dropdown {
    position: static; transform: none; opacity: 1; pointer-events: auto; box-shadow: none;
    border: none; background: var(--teal-50); display: none; min-width: 0; margin-bottom: .25rem;
  }
  .has-dropdown.is-open .dropdown { display: block; }
}

/* --------------------------------------------------------------------------
   6. BREADCRUMBS
   -------------------------------------------------------------------------- */
.breadcrumbs { padding-block: 1.1rem; border-bottom: 1px solid var(--border); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; font-size: .85rem; }
.breadcrumbs li { display: flex; align-items: center; gap: .45rem; color: var(--ink-400); }
.breadcrumbs li:not(:last-child)::after { content: "/"; color: var(--border-dark); }
.breadcrumbs a { text-decoration: none; color: var(--ink-600); font-weight: 500; }
.breadcrumbs a:hover { color: var(--teal-700); text-decoration: underline; }
.breadcrumbs li[aria-current="page"] { color: var(--ink-900); font-weight: 600; }

/* --------------------------------------------------------------------------
   7. HERO (Home)
   -------------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--teal-800) 0%, var(--teal-700) 55%, var(--teal-600) 100%);
  color: #fff;
  padding-block: clamp(2.5rem, 2rem + 4vw, 6rem);
}
.hero-grid {
  display: grid; gap: 2.5rem; align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 3rem; }
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .5em; background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25); padding: .4em 1em; border-radius: 999px;
  font-size: .8rem; font-weight: 600; letter-spacing: .04em; margin-bottom: 1.25rem;
}
.hero h1 { color: #fff; margin-bottom: 1.1rem; }
.hero h1 .accent { color: var(--amber-400); }
.hero-lead { font-size: 1.15rem; color: rgba(255,255,255,.86); max-width: 540px; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.25rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 1.75rem; }
.hero-stats div { min-width: 110px; }
.hero-stats strong { display: block; font-family: var(--font-heading); font-size: 1.6rem; color: var(--amber-400); }
.hero-stats span { font-size: .82rem; color: rgba(255,255,255,.75); }

.hero-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.hero-media::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.15);
}

/* Page header (non-home pages) */
.page-header {
  background: linear-gradient(135deg, var(--teal-700), var(--teal-600));
  color: #fff; padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem);
}
.page-header h1 { color: #fff; }
.page-header .hero-lead { color: rgba(255,255,255,.88); }
.page-header-inner { max-width: 700px; }

/* --------------------------------------------------------------------------
   8. CARDS
   -------------------------------------------------------------------------- */
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  overflow: hidden; transition: transform var(--transition), box-shadow var(--transition);
  display: flex; flex-direction: column; height: 100%;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.card-media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--cream-dark); }
.card-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform 400ms ease; }
.card:hover .card-media img { transform: scale(1.06); }

.card-body { padding: 1.4rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.card-body h3 { font-size: 1.08rem; line-height: 1.35; }
.card-body h3 a { text-decoration: none; color: var(--ink-900); }
.card-body h3 a:hover { color: var(--teal-700); }
.card-excerpt { color: var(--ink-600); font-size: .92rem; line-height: 1.55; flex: 1; }

.card-meta {
  display: flex; align-items: center; gap: .6rem; font-size: .78rem; color: var(--ink-400);
  margin-top: auto; padding-top: .5rem;
}
.card-meta .dot::before { content: "•"; margin-inline: .1rem; }

.card-featured { display: grid; grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .card-featured { grid-template-columns: 1.1fr 1fr; }
  .card-featured .card-media { aspect-ratio: auto; height: 100%; }
}
.card-featured .card-body { padding: 2rem; justify-content: center; }
.card-featured .card-body h3 { font-size: 1.5rem; }

/* Category card */
.cat-card {
  position: relative; border-radius: var(--radius-md); overflow: hidden; display: block;
  text-decoration: none; aspect-ratio: 4/3; box-shadow: var(--shadow-sm);
}
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.cat-card::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(0deg, rgba(6,63,63,.88) 0%, rgba(6,63,63,.35) 55%, rgba(6,63,63,0) 100%);
}
.cat-card:hover img { transform: scale(1.08); }
.cat-card-label {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 1.25rem;
  color: #fff;
}
.cat-card-label span { font-size: .78rem; color: var(--amber-400); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.cat-card-label h3 { color: #fff; margin-top: .25rem; font-size: 1.15rem; }

/* --------------------------------------------------------------------------
   9. BADGES / TAGS
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: .4em; font-size: .74rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; padding: .4em .9em; border-radius: 999px;
  text-decoration: none;
}
.badge-category { background: var(--teal-100); color: var(--teal-700); }
.badge-category:hover { background: var(--teal-600); color: #fff; }
.badge-accent { background: var(--amber-100); color: var(--amber-600); }

/* --------------------------------------------------------------------------
   10. ARTICLE PAGE
   -------------------------------------------------------------------------- */
.reading-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%; background: var(--amber-500);
  z-index: 999; transition: width 80ms linear;
}

.article-header { padding-block: 2.5rem 1.5rem; }
.article-header .badge-category { margin-bottom: 1rem; }
.article-header h1 { margin-bottom: 1rem; }
.article-excerpt { font-size: 1.15rem; color: var(--ink-600); margin-bottom: 1.5rem; }

.article-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem;
  font-size: .87rem; color: var(--ink-600); padding-top: 1.25rem; border-top: 1px solid var(--border);
}
.article-meta strong { color: var(--ink-900); }
.article-meta span { display: inline-flex; align-items: center; gap: .4em; }

.article-cover { margin-block: 1.75rem 2.25rem; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.article-cover img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.article-cover figcaption { font-size: .8rem; color: var(--ink-400); padding-top: .6rem; text-align: center; }

.article-content { font-size: 1.08rem; line-height: 1.85; color: var(--ink-700); padding-bottom: 1rem; }
.article-content h2 {
  margin-top: 2.6em; margin-bottom: .7em; scroll-margin-top: 100px;
  padding-top: .2em;
}
.article-content h3 { margin-top: 1.9em; margin-bottom: .6em; color: var(--teal-700); scroll-margin-top: 100px; }
.article-content p { margin-bottom: 1.3em; }
.article-content ul, .article-content ol { margin-bottom: 1.3em; padding-left: 1.35em; }
.article-content li { margin-bottom: .55em; }
.article-content ul li::marker { color: var(--amber-500); }
.article-content ol li::marker { color: var(--teal-600); font-weight: 700; }
.article-content strong { color: var(--ink-900); font-weight: 700; }
.article-content a { color: var(--teal-700); text-decoration underline; text-decoration-color: rgba(10,138,138,.4); text-underline-offset: 3px; font-weight: 500; }
.article-content a:hover { color: var(--amber-600); text-decoration-color: currentColor; }
.article-content blockquote {
  border-left: 4px solid var(--amber-500); background: var(--cream-dark);
  padding: 1.1em 1.4em; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic; color: var(--ink-700); margin: 1.8em 0;
}
.article-content figure { margin: 1.8em 0; }
.article-content figure img { border-radius: var(--radius-md); width: 100%; height: auto; }
.article-content figcaption { font-size: .82rem; color: var(--ink-400); margin-top: .6em; text-align: center; }

/* Gallery grid for Fortkol product photos (portrait images) */
.article-content .grid-2 { gap: 1.2em; }
.article-content .grid-2 figure { margin: 0; }
.article-content .grid-2 figure img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  object-position: center 20%;
}

.article-content table { margin: 1.6em 0; font-size: .95rem; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); }
.article-content th, .article-content td { padding: .75em .9em; border-bottom: 1px solid var(--border); text-align: left; }
.article-content thead th { background: var(--teal-600); color: #fff; font-family: var(--font-heading); }
.article-content tbody tr:nth-child(even) { background: var(--teal-50); }

.tip-box, .warning-box, .stat-box {
  padding: 1.15rem 1.4rem; border-radius: var(--radius-md); margin: 1.8em 0;
}
.tip-box { background: var(--teal-50); border-left: 4px solid var(--teal-600); }
.tip-box strong { color: var(--teal-700); }
.warning-box { background: var(--amber-50); border-left: 4px solid var(--amber-500); }
.warning-box strong { color: var(--amber-600); }
.stat-box { background: var(--ink-900); color: #fff; border-left: 4px solid var(--amber-400); }
.stat-box strong { color: var(--amber-400); font-size: 1.15em; }

.toc { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.5rem 1.6rem; margin: 2rem 0; }
.toc p { font-family: var(--font-heading); font-weight: 700; margin-bottom: .7rem; color: var(--ink-900); }
.toc ol { padding-left: 1.2em; margin: 0; }
.toc a { color: var(--ink-600); text-decoration: none; font-size: .95rem; }
.toc a:hover { color: var(--teal-700); text-decoration: underline; }

/* Share buttons */
.share-buttons {
  display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin-block: 2.5rem;
  padding-block: 1.5rem; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.share-buttons > span { font-family: var(--font-heading); font-weight: 700; font-size: .88rem; margin-right: .3rem; }
.share-btn {
  display: inline-flex; align-items: center; gap: .5em; text-decoration: none; font-size: .85rem;
  font-weight: 600; padding: .55em 1.1em; border-radius: 999px; border: 1px solid var(--border-dark);
  color: var(--ink-700); transition: background var(--transition), color var(--transition);
}
.share-btn:hover { background: var(--teal-600); border-color: var(--teal-600); color: #fff; }

/* Author box */
.author-box {
  display: flex; gap: 1.2rem; align-items: flex-start; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.5rem; margin-block: 2.5rem;
}
.author-avatar {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  background: var(--teal-100);
}
.author-box h3 { font-size: 1.02rem; margin-bottom: .35rem; }
.author-box p { font-size: .92rem; color: var(--ink-600); }
.author-box a { color: var(--teal-700); font-weight: 600; text-decoration: none; }
.author-box a:hover { text-decoration: underline; }

/* Related articles */
.related-articles { margin-block: 3rem; }
.related-articles h2 { margin-bottom: 1.5rem; }

/* Newsletter CTA (inline, article/home) */
.newsletter-cta {
  background: linear-gradient(135deg, var(--teal-700), var(--teal-600));
  color: #fff; border-radius: var(--radius-lg); padding: clamp(1.75rem, 1.4rem + 2vw, 3rem);
  margin-block: 3rem; display: grid; gap: 1.75rem; align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .newsletter-cta { grid-template-columns: 1.2fr 1fr; } }
.newsletter-cta h2 { color: #fff; font-size: 1.6rem; margin-bottom: .5rem; }
.newsletter-cta p { color: rgba(255,255,255,.85); }
.newsletter-cta .newsletter-form { margin-top: 1.25rem; }

/* --------------------------------------------------------------------------
   11. FORMS
   -------------------------------------------------------------------------- */
.form-field { margin-bottom: 1.3rem; display: flex; flex-direction: column; gap: .45rem; }
.form-field label { font-weight: 600; font-size: .92rem; font-family: var(--font-heading); }
.form-field input, .form-field textarea, .form-field select {
  padding: .85em 1em; border: 1.5px solid var(--border-dark); border-radius: var(--radius-sm);
  background: #fff; font-size: .96rem; transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none; border-color: var(--teal-600); box-shadow: 0 0 0 3px var(--teal-100);
}
.form-hint { font-size: .8rem; color: var(--ink-400); }
.form-row { display: grid; gap: 1.3rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-row.cols-2 { grid-template-columns: 1fr 1fr; } }

.newsletter-form { display: flex; gap: .7rem; flex-wrap: wrap; }
.newsletter-form input {
  flex: 1; min-width: 180px; padding: .85em 1.1em; border-radius: 999px; border: none;
  font-size: .95rem;
}
.newsletter-form input:focus { outline: 3px solid var(--amber-400); }
.footer-newsletter .newsletter-form input { background: #fff; color: var(--ink-900); }

.form-feedback {
  margin-top: .9rem; padding: .8em 1.1em; border-radius: var(--radius-sm);
  background: var(--teal-50); color: var(--teal-700); font-size: .9rem; font-weight: 600;
}
.newsletter-cta .form-feedback, .footer-newsletter .form-feedback {
  background: rgba(255,255,255,.15); color: #fff;
}

.contact-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 1.75rem; box-shadow: var(--shadow-sm);
}

/* --------------------------------------------------------------------------
   12. FOOTER
   -------------------------------------------------------------------------- */
.site-footer { background: var(--ink-900); color: rgba(255,255,255,.78); margin-top: 4rem; }
.footer-grid {
  display: grid; gap: 2.5rem; padding-block: 3.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.3fr .8fr 1fr 1.1fr; } }

.footer-brand .logo-img { height: 34px; filter: brightness(0) invert(1); margin-bottom: 1rem; }
.footer-brand .logo-text { color: #fff; }
.footer-brand p { color: rgba(255,255,255,.62); font-size: .92rem; max-width: 320px; margin-bottom: 1.25rem; }

.social-links { display: flex; gap: .7rem; }
.social-links a {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center; text-decoration: none;
  color: #fff; font-size: .85rem; transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.social-links a:hover { background: var(--teal-600); border-color: var(--teal-600); }

/* Modifier for use on light/white backgrounds (e.g. contact card) */
.social-links.on-light a { border-color: var(--border-dark); color: var(--ink-700); }
.social-links.on-light a:hover { background: var(--teal-600); border-color: var(--teal-600); color: #fff; }

.footer-col h3 { color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1.1rem; }
.footer-col ul li { margin-bottom: .7rem; }
.footer-col a { color: rgba(255,255,255,.65); text-decoration: none; font-size: .93rem; }
.footer-col a:hover { color: var(--amber-400); }
.footer-newsletter p { color: rgba(255,255,255,.62); font-size: .9rem; margin-bottom: 1.1rem; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 1.5rem; }
.footer-bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; font-size: .82rem; color: rgba(255,255,255,.5); }

/* --------------------------------------------------------------------------
   13. BACK TO TOP
   -------------------------------------------------------------------------- */
.back-to-top {
  position: fixed; right: 1.4rem; bottom: 1.4rem; width: 48px; height: 48px; border-radius: 50%;
  background: var(--teal-600); color: #fff; border: none; box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity var(--transition), transform var(--transition), background var(--transition);
  z-index: 400;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--amber-500); }

/* --------------------------------------------------------------------------
   14. VALUE PROPS / ICON GRID (about, home)
   -------------------------------------------------------------------------- */
.value-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.75rem; }
.value-icon {
  width: 52px; height: 52px; border-radius: var(--radius-sm); background: var(--teal-100);
  color: var(--teal-700); display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 1.1rem;
}
.value-card h3 { margin-bottom: .5rem; font-size: 1.05rem; }
.value-card p { font-size: .92rem; color: var(--ink-600); }

.stats-strip {
  background: var(--cream-dark); border-radius: var(--radius-lg); padding: 2rem;
  display: grid; gap: 1.5rem; grid-template-columns: repeat(2,1fr); text-align: center;
}
@media (min-width: 720px) { .stats-strip { grid-template-columns: repeat(4,1fr); } }
.stats-strip strong { display: block; font-family: var(--font-heading); font-size: 2rem; color: var(--teal-700); }
.stats-strip span { font-size: .84rem; color: var(--ink-600); }

/* --------------------------------------------------------------------------
   15. BLOG / CATEGORY LISTING
   -------------------------------------------------------------------------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.25rem; }
.filter-chip {
  display: inline-flex; align-items: center; padding: .55em 1.2em; border-radius: 999px;
  border: 1.5px solid var(--border-dark); text-decoration: none; font-size: .88rem; font-weight: 600;
  color: var(--ink-700); background: #fff; transition: background var(--transition), color var(--transition);
}
.filter-chip:hover, .filter-chip.active { background: var(--teal-600); border-color: var(--teal-600); color: #fff; }

.category-intro { display: grid; gap: 2rem; align-items: center; grid-template-columns: 1fr; margin-bottom: 1rem; }
@media (min-width: 800px) { .category-intro { grid-template-columns: 1fr 1fr; } }
.category-intro img { border-radius: var(--radius-lg); aspect-ratio: 4/3; object-fit: cover; box-shadow: var(--shadow-sm); }

/* --------------------------------------------------------------------------
   16. ABOUT PAGE
   -------------------------------------------------------------------------- */
.about-hero-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.about-hero-media img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.timeline-item { display: flex; gap: 1.2rem; padding-block: 1.3rem; border-bottom: 1px solid var(--border); }
.timeline-item:last-child { border-bottom: none; }
.timeline-num {
  font-family: var(--font-heading); font-weight: 800; font-size: 1.3rem; color: var(--amber-500);
  min-width: 2.4rem;
}

/* --------------------------------------------------------------------------
   17. MISC
   -------------------------------------------------------------------------- */
hr.divider { border: none; border-top: 1px solid var(--border); margin-block: 2.5rem; }

::selection { background: var(--amber-400); color: #fff; }

.bg-cream-dark { background: var(--cream-dark); }
.bg-white { background: var(--white); }

@media (max-width: 639px) {
  .hero-actions .btn { width: 100%; }
  .article-content { font-size: 1.02rem; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   18. CATEGORY IMAGE PLACEHOLDERS (used while category photography is pending)
   -------------------------------------------------------------------------- */
.cat-placeholder {
  width: 100%; height: 100%; position: relative;
  background: linear-gradient(135deg, var(--teal-700) 0%, var(--teal-500) 55%, var(--amber-500) 135%);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  transition: transform 400ms ease;
}
.cat-card:hover .cat-placeholder { transform: scale(1.08); }
.cat-placeholder::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.18) 2px, transparent 2px);
  background-size: 22px 22px; opacity: .55;
}
.cat-placeholder-icon {
  position: relative; z-index: 1;
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,.16); border: 1.5px solid rgba(255,255,255,.45);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 800; font-size: 1.4rem; color: #fff;
}

.category-hero-placeholder {
  border-radius: var(--radius-lg); aspect-ratio: 4/3; box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--teal-700) 0%, var(--teal-600) 45%, var(--amber-500) 145%);
}
.category-hero-placeholder::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.2) 2.5px, transparent 2.5px);
  background-size: 28px 28px; opacity: .5;
}
.category-hero-placeholder .cat-placeholder-icon {
  width: 92px; height: 92px; font-size: 2.4rem;
}

/* --------------------------------------------------------------------------
   19. IMAGE FALLBACK PLACEHOLDER (for images not yet generated)
   -------------------------------------------------------------------------- */
.img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, var(--teal-50) 0%, var(--cream) 60%, var(--amber-50) 100%);
  border: 2px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-400);
}

/* Print */
@media print {
  .site-header, .back-to-top, .reading-progress, .share-buttons, .newsletter-cta, .site-footer { display: none; }
}
