/*
 * ythanhxai — Shared Stylesheet
 * WordPress: wp_enqueue_style('ythanhxai-style', get_template_directory_uri().'/assets/css/style.css')
 *
 * TABLE OF CONTENTS
 * 1.  Tokens & Reset
 * 2.  Base Typography
 * 3.  Layout Utilities
 * 4.  Buttons
 * 5.  Section Labels & Headings
 * 6.  Navigation           → header.php
 * 7.  Hero (Homepage)
 * 8.  Stats Strip
 * 9.  About Preview Split
 * 10. Topic / Service Cards
 * 11. Post Cards
 * 12. Process Steps
 * 13. Testimonials
 * 14. Newsletter CTA
 * 15. Page Hero (inner pages)
 * 16. Blog Listing + Filter
 * 17. Contact
 * 18. Footer               → footer.php
 * 19. Animations & Reveal
 * 20. Responsive
 */

/* ═══════════════════════════════════════════════════════════
   1. TOKENS & RESET
═══════════════════════════════════════════════════════════ */
:root {
  /* Backgrounds */
  --bg-base:    #F4F0E8;
  --bg-primary: #FCF9F2;
  --bg-surface: #F9F6F0;
  --bg-raised:  #EDE9E1;
  --bg-border:  #E8E4DB;

  /* Text */
  --txt-1: #1A1A1A;
  --txt-2: #3D3935;
  --txt-3: #6B6560;
  --txt-4: #9A958F;
  --txt-5: #C8C4BF;

  /* Gold palette */
  --gold:        #B5694B;
  --gold-bright: #C97D5F;
  --gold-dim:    #8F4E35;
  --gold-ghost:  rgba(181,105,75,.08);
  --gold-border: rgba(181,105,75,.2);

  /* Borders */
  --border:    rgba(26,26,26,.08);
  --border-md: rgba(26,26,26,.14);

  /* Radius */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;

  /* Fonts */
  --f-display: 'Literata', Georgia, 'Times New Roman', serif;
  --f-sans:    'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --f-mono:    'JetBrains Mono', 'Courier New', monospace;

  /* Spacing */
  --section-y: 96px;
  --gap:       24px;
  --max-w:     1160px;
  --pad-x:     28px;

  /* Transitions */
  --ease: cubic-bezier(.25,.46,.45,.94);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg-primary);
  color: var(--txt-1);
  font-family: var(--f-sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea, select { font: inherit; }

/* ═══════════════════════════════════════════════════════════
   2. BASE TYPOGRAPHY
═══════════════════════════════════════════════════════════ */
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 1.12;
  color: var(--txt-1);
}
h1 { font-size: clamp(40px, 6vw, 80px); }
h2 { font-size: clamp(28px, 3.6vw, 48px); }
h3 { font-size: clamp(20px, 2.2vw, 28px); }
h4 { font-size: 20px; }
p  { color: var(--txt-2); line-height: 1.75; }
em { font-style: italic; color: var(--gold); }
strong { font-weight: 600; color: var(--txt-1); }

/* ═══════════════════════════════════════════════════════════
   3. LAYOUT UTILITIES
═══════════════════════════════════════════════════════════ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.section { padding: var(--section-y) 0; }
.section--alt { background: var(--bg-base); }
.section--surface { background: var(--bg-surface); }

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

.flex-between {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════
   4. BUTTONS
═══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  border-radius: var(--r-sm);
  transition: background .22s var(--ease), color .22s var(--ease),
              box-shadow .22s var(--ease), border-color .22s var(--ease);
  white-space: nowrap;
}
.btn svg { flex-shrink: 0; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: var(--gold);
  color: var(--bg-base);
  font-weight: 600;
}
.btn-primary:hover {
  background: var(--gold-bright);
  box-shadow: 0 0 32px rgba(181,105,75,.3);
}

.btn-outline {
  border: 1px solid var(--gold-border);
  color: var(--gold);
}
.btn-outline:hover {
  background: var(--gold-ghost);
  border-color: var(--gold);
}

.btn-ghost {
  color: var(--txt-3);
  padding-left: 0;
  padding-right: 0;
  font-size: 14px;
}
.btn-ghost:hover { color: var(--txt-1); }

.btn-sm { padding: 9px 18px; font-size: 12px; }

/* ═══════════════════════════════════════════════════════════
   5. SECTION LABELS & HEADINGS
═══════════════════════════════════════════════════════════ */
/* WordPress: reuse as .entry-tag or add class to <p> */
.stag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.stag::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.sh { /* section header block */
  margin-bottom: 52px;
}
.sh__title { margin-bottom: 14px; }
.sh__sub {
  font-size: 16px;
  color: var(--txt-3);
  max-width: 520px;
  line-height: 1.75;
}

/* ═══════════════════════════════════════════════════════════
   6. NAVIGATION
   WordPress → header.php
═══════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 20px 0;
  transition: background .35s var(--ease), padding .35s var(--ease),
              border-bottom .35s var(--ease);
}
.nav.scrolled {
  background: rgba(252,249,242,.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  flex-shrink: 0;
}
.nav__logo-name {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: .04em;
}
.nav__logo-sub {
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--txt-5);
  margin-top: 3px;
}
.nav__menu {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__menu a {
  font-size: 14px;
  color: var(--txt-3);
  transition: color .2s;
  position: relative;
}
.nav__menu a:hover,
.nav__menu a.active { color: var(--txt-1); }
.nav__menu a.active::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
}
.nav__cta {
  padding: 9px 20px;
  border: 1px solid var(--gold-border);
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gold);
  transition: background .22s, color .22s;
  flex-shrink: 0;
}
.nav__cta:hover { background: var(--gold); color: var(--bg-base); }

/* Hamburger (mobile) */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 26px;
  padding: 4px 0;
}
.nav__hamburger span {
  display: block;
  height: 1.5px;
  background: var(--txt-2);
  transition: transform .3s, opacity .3s;
  transform-origin: center;
}
.nav__hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px,4.5px); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px,-4.5px); }

/* Mobile nav drawer */
.nav__drawer {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg-base);
  z-index: 199;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.nav__drawer.open {
  opacity: 1;
  pointer-events: all;
}
.nav__drawer a {
  font-family: var(--f-display);
  font-size: 32px;
  color: var(--txt-2);
  transition: color .2s;
}
.nav__drawer a:hover { color: var(--gold); }
.nav__drawer .btn { font-family: var(--f-sans); font-size: 14px; }

/* ═══════════════════════════════════════════════════════════
   7. HERO (Homepage)
   WordPress → front-page.php or index.php
═══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 55% at 62% 36%, rgba(181,105,75,.07) 0%, transparent 55%),
    radial-gradient(ellipse 35% 65% at 5%  80%, rgba(181,105,75,.04) 0%, transparent 50%),
    var(--bg-base);
}
/* Subtle noise texture */
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* Right vertical accent */
.hero__vline {
  position: absolute;
  right: 9%;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 36%;
  background: linear-gradient(to bottom, transparent, var(--gold-border), transparent);
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 740px;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 30px;
}
.hero__eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--gold);
}
.hero__h1 {
  font-size: clamp(48px, 7.5vw, 88px);
  line-height: 1.06;
  margin-bottom: 24px;
}
.hero__sub {
  font-size: 17px;
  color: var(--txt-3);
  line-height: 1.78;
  max-width: 520px;
  margin-bottom: 44px;
}
.hero__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
/* Scroll cue */
.hero__scroll {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--txt-5);
  z-index: 2;
  user-select: none;
}
.hero__scroll-bar {
  width: 1px; height: 34px;
  background: linear-gradient(to bottom, var(--gold-dim), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100% { opacity:.25; } 50% { opacity: 1; } }

/* ═══════════════════════════════════════════════════════════
   8. STATS STRIP
═══════════════════════════════════════════════════════════ */
.stats {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 52px 0;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
}
.stats__cell {
  text-align: center;
  padding: 12px 20px;
  border-right: 1px solid var(--border);
}
.stats__cell:last-child { border-right: none; }
.stats__num {
  font-family: var(--f-mono);
  font-size: 44px;
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -.02em;
}
.stats__lbl {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--txt-3);
}

/* ═══════════════════════════════════════════════════════════
   9. ABOUT PREVIEW SPLIT
═══════════════════════════════════════════════════════════ */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.about-split__text p { font-size: 16px; color: var(--txt-2); line-height: 1.8; margin-bottom: 20px; }
.about-split__text p:last-of-type { margin-bottom: 32px; }
.about-split__text p strong { color: var(--gold); font-weight: 500; }
.about-split__img {
  aspect-ratio: 4/5;
  background:
    radial-gradient(circle, rgba(181,105,75,.14) 1.5px, transparent 1.5px),
    linear-gradient(145deg, var(--bg-raised), var(--bg-surface));
  background-size: 28px 28px, 100% 100%;
  border: 1px solid var(--gold-border);
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-split__img::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 35% 30%, rgba(181,105,75,.12) 0%, transparent 55%);
}
.about-split__img::after {
  content: '';
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(181,105,75,.15);
  border-radius: calc(var(--r-lg) - 8px);
  pointer-events: none;
}
.about-split__img-label {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--txt-4);
  text-align: center;
  position: relative;
  z-index: 1;
  line-height: 1.8;
}

/* ═══════════════════════════════════════════════════════════
   10. TOPIC / SERVICE CARDS
═══════════════════════════════════════════════════════════ */
.topic-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: border-color .28s, transform .28s;
}
.topic-card:hover {
  border-color: var(--gold-border);
  transform: translateY(-4px);
}
/* Gold bottom sweep on hover */
.topic-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--gold), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.topic-card:hover::after { transform: scaleX(1); }

.topic-card__num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--gold-dim);
  margin-bottom: 20px;
}
.topic-card__icon {
  width: 36px; height: 36px;
  margin-bottom: 16px;
  color: var(--gold);
}
.topic-card__title {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 400;
  color: var(--txt-1);
  margin-bottom: 10px;
}
.topic-card__desc {
  font-size: 14px;
  color: var(--txt-3);
  line-height: 1.7;
  margin-bottom: 22px;
}
.topic-card__link {
  font-size: 13px;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap .2s;
}
.topic-card:hover .topic-card__link { gap: 10px; }

/* ═══════════════════════════════════════════════════════════
   11. POST CARDS
   WordPress → template-parts/content.php
═══════════════════════════════════════════════════════════ */
.post-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color .28s var(--ease), transform .28s var(--ease);
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  border-color: var(--gold-border);
  transform: translateY(-5px);
}
.post-card__thumb {
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
}
/* Placeholder gradients per card variant */
.post-card:nth-child(3n+1) .post-card__thumb { background: linear-gradient(135deg,#1f160a,#2e2009); }
.post-card:nth-child(3n+2) .post-card__thumb { background: linear-gradient(135deg,#0a1520,#0d2030); }
.post-card:nth-child(3n+3) .post-card__thumb { background: linear-gradient(135deg,#16120a,#22190e); }
.post-card__thumb::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(181,105,75,.055) 0px,
    rgba(181,105,75,.055) 1px,
    transparent 1px,
    transparent 32px
  );
}
.post-card__thumb::after {
  content: '';
  position: absolute; inset: 0; z-index: 2;
  background: radial-gradient(ellipse at 40% 40%, rgba(181,105,75,.12) 0%, transparent 60%);
}
/* Actual image */
.post-card__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.post-card:hover .post-card__thumb img { transform: scale(1.04); }

.post-card__cat {
  position: absolute;
  top: 13px; left: 13px;
  background: rgba(181,105,75,.12);
  border: 1px solid var(--gold-border);
  color: var(--gold);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-sm);
  z-index: 3;
  backdrop-filter: blur(4px);
}
.post-card__body {
  padding: 22px 22px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.post-card__title {
  font-family: var(--f-display);
  font-size: 19px;
  font-weight: 400;
  color: var(--txt-1);
  line-height: 1.3;
  margin-bottom: 10px;
  transition: color .2s;
}
.post-card:hover .post-card__title { color: var(--gold-bright); }
.post-card__excerpt {
  font-size: 13.5px;
  color: var(--txt-3);
  line-height: 1.65;
  margin-bottom: 18px;
  flex: 1;
}
.post-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--txt-5);
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.post-card__meta-left { display: flex; align-items: center; gap: 12px; }
.post-card__arrow {
  color: var(--gold);
  font-size: 16px;
  transition: transform .2s;
}
.post-card:hover .post-card__arrow { transform: translateX(4px); }

/* ═══════════════════════════════════════════════════════════
   12. PROCESS STEPS
═══════════════════════════════════════════════════════════ */
.process { counter-reset: step; }
.process__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  border-bottom: 1px solid var(--border);
  transition: background .25s;
}
.step:last-child { border-bottom: none; }
.step:hover { background: var(--bg-raised); }
.step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-size: 13px;
  color: var(--gold-dim);
  letter-spacing: .08em;
  border-right: 1px solid var(--border);
  padding: 28px 0;
}
.step__body { padding: 28px 32px; }
.step__title {
  font-family: var(--f-display);
  font-size: 19px;
  font-weight: 400;
  color: var(--txt-1);
  margin-bottom: 6px;
}
.step__desc { font-size: 14px; color: var(--txt-3); line-height: 1.68; }

/* ═══════════════════════════════════════════════════════════
   13. TESTIMONIALS
═══════════════════════════════════════════════════════════ */
.testi-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: border-color .25s;
}
.testi-card:hover { border-color: var(--gold-border); }
.testi-card__stars { color: var(--gold); font-size: 13px; letter-spacing: 3px; margin-bottom: 14px; }
.testi-card__text {
  font-family: var(--f-display);
  font-size: 15.5px;
  font-style: italic;
  color: var(--txt-2);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 22px;
}
.testi-card__hr { height: 1px; background: var(--border); margin-bottom: 18px; }
.testi-card__foot { display: flex; align-items: center; gap: 12px; }
.testi-card__av {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-base);
  border: 1px solid var(--gold-border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display);
  font-size: 16px;
  color: var(--gold);
  flex-shrink: 0;
}
.testi-card__name { font-size: 13px; font-weight: 600; color: var(--txt-1); margin-bottom: 2px; }
.testi-card__role { font-size: 11px; color: var(--txt-5); letter-spacing: .04em; }

/* ═══════════════════════════════════════════════════════════
   14. NEWSLETTER / CTA BAND
═══════════════════════════════════════════════════════════ */
.newsletter {
  background: var(--bg-base);
  padding: 88px 0;
  position: relative;
  overflow: hidden;
}
.newsletter::before {
  content: '';
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(181,105,75,.05) 0%, transparent 65%);
  pointer-events: none;
}
.newsletter__inner {
  position: relative;
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}
.newsletter__title {
  font-size: clamp(26px, 3.5vw, 44px);
  margin-bottom: 14px;
}
.newsletter__sub {
  font-size: 15px;
  color: var(--txt-4);
  margin-bottom: 36px;
  line-height: 1.75;
}
.newsletter__form {
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto;
}
.newsletter__input {
  flex: 1;
  padding: 13px 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-md);
  border-radius: var(--r-sm);
  color: var(--txt-1);
  font-size: 14px;
  outline: none;
  transition: border-color .2s;
}
.newsletter__input::placeholder { color: var(--txt-5); }
.newsletter__input:focus { border-color: var(--gold-border); }
.newsletter__note {
  margin-top: 14px;
  font-size: 12px;
  color: var(--txt-5);
}

/* ═══════════════════════════════════════════════════════════
   15. PAGE HERO (inner pages)
═══════════════════════════════════════════════════════════ */
.page-hero {
  background: var(--bg-base);
  padding: 130px 0 72px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(181,105,75,.05) 0%, transparent 55%);
  pointer-events: none;
}
.page-hero__inner { position: relative; z-index: 1; }
.page-hero__h1 {
  font-size: clamp(36px, 5vw, 64px);
  margin-bottom: 16px;
}
.page-hero__sub {
  font-size: 17px;
  color: var(--txt-3);
  max-width: 540px;
  line-height: 1.75;
}
/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--txt-5);
  margin-bottom: 28px;
}
.breadcrumb a { color: var(--txt-4); transition: color .2s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb__sep { color: var(--txt-5); }

/* ═══════════════════════════════════════════════════════════
   16. BLOG LISTING + FILTER
═══════════════════════════════════════════════════════════ */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.filter-btn {
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: var(--txt-4);
  letter-spacing: .03em;
  transition: background .2s, color .2s;
}
.filter-btn:hover { background: var(--bg-surface); color: var(--txt-2); }
.filter-btn.active {
  background: var(--gold-ghost);
  color: var(--gold);
  border: 1px solid var(--gold-border);
}

/* ─── Featured post (blog page) ─────────────────────────── */
.post-featured {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 40px;
  transition: border-color .28s;
}
.post-featured:hover { border-color: var(--gold-border); }
.post-featured__thumb {
  background: linear-gradient(135deg,#1f160a,#2e2009);
  position: relative;
  min-height: 280px;
  overflow: hidden;
}
.post-featured__thumb::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(181,105,75,.055) 0px, rgba(181,105,75,.055) 1px,
    transparent 1px, transparent 32px
  );
}
.post-featured__thumb::after {
  content: '';
  position: absolute; inset: 0; z-index: 2;
  background: radial-gradient(ellipse at 40% 40%, rgba(181,105,75,.12) 0%, transparent 65%);
}
.post-featured__cat {
  position: absolute; top: 16px; left: 16px; z-index: 3;
  background: rgba(181,105,75,.12);
  border: 1px solid var(--gold-border);
  color: var(--gold);
  font-size: 10px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 4px 11px; border-radius: var(--r-sm);
  backdrop-filter: blur(4px);
}
.post-featured__body {
  padding: 36px;
  display: flex; flex-direction: column; justify-content: center;
}
.post-featured__title {
  font-family: var(--f-display); font-size: 24px; font-weight: 400;
  color: var(--txt-1); line-height: 1.3; margin-bottom: 14px;
  transition: color .2s;
}
.post-featured:hover .post-featured__title { color: var(--gold-bright); }
.post-featured__excerpt { font-size: 14px; color: var(--txt-3); line-height: 1.7; margin-bottom: 24px; flex: 1; }
.post-featured__meta {
  font-size: 12px; color: var(--txt-4);
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--border); padding-top: 14px;
}
.post-featured__arrow { color: var(--gold); transition: transform .2s; }
.post-featured:hover .post-featured__arrow { transform: translateX(4px); }
.posts-count { font-size: 13px; color: var(--txt-4); margin-bottom: 8px; }

/* ═══════════════════════════════════════════════════════════
   17. CONTACT PAGE
═══════════════════════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}
.contact-channels { display: flex; flex-direction: column; gap: 16px; }
.contact-channel {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color .25s, transform .25s;
}
.contact-channel:hover { border-color: var(--gold-border); transform: translateX(4px); }
.contact-channel__icon {
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  background: var(--gold-ghost);
  border: 1px solid var(--gold-border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
  font-size: 18px;
}
.contact-channel__label { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--txt-5); margin-bottom: 3px; }
.contact-channel__value { font-size: 15px; color: var(--txt-1); font-weight: 500; }

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 12px; font-weight: 500; color: var(--txt-4); letter-spacing: .05em; }
.form-input,
.form-textarea {
  padding: 13px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-md);
  border-radius: var(--r-sm);
  color: var(--txt-1);
  font-size: 14px;
  outline: none;
  transition: border-color .2s;
  width: 100%;
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--txt-5); }
.form-input:focus,
.form-textarea:focus { border-color: var(--gold-border); }
.form-textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ═══════════════════════════════════════════════════════════
   18. FOOTER
   WordPress → footer.php
═══════════════════════════════════════════════════════════ */
.footer {
  background: var(--bg-base);
  border-top: 1px solid var(--border);
  padding: 72px 0 36px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 60px;
}
.footer__brand-name {
  font-family: var(--f-display);
  font-size: 20px;
  color: var(--gold);
  margin-bottom: 4px;
  letter-spacing: .03em;
}
.footer__brand-tag {
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--txt-5);
  margin-bottom: 16px;
}
.footer__brand-desc {
  font-size: 14px;
  color: var(--txt-4);
  line-height: 1.72;
  max-width: 280px;
  margin-bottom: 22px;
}
.footer__socials { display: flex; gap: 10px; }
.footer__soc {
  width: 34px; height: 34px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  color: var(--txt-4);
  transition: border-color .2s, color .2s;
}
.footer__soc:hover { border-color: var(--gold-border); color: var(--gold); }
.footer__col-title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--txt-5);
  margin-bottom: 18px;
}
.footer__links { display: flex; flex-direction: column; gap: 11px; }
.footer__links a {
  font-size: 14px;
  color: var(--txt-4);
  transition: color .2s;
}
.footer__links a:hover { color: var(--txt-1); }
.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer__copy { font-size: 12px; color: var(--txt-5); }
.footer__copy a { color: var(--gold-dim); transition: color .2s; }
.footer__copy a:hover { color: var(--gold); }

/* ═══════════════════════════════════════════════════════════
   19. ANIMATIONS & REVEAL
═══════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
/* Stagger is handled by JS (main.js) — no CSS nth-child delays to avoid double-stagger */

/* Drawer active page highlight */
.nav__drawer a.active { color: var(--gold); }

/* Gold underline hover link */
.link-gold {
  color: var(--gold);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.link-gold:hover { border-color: var(--gold); }

/* Tag pill */
.pill {
  display: inline-block;
  padding: 3px 10px;
  background: var(--gold-ghost);
  border: 1px solid var(--gold-border);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Success message */
.form-success {
  display: none;
  padding: 14px 18px;
  background: rgba(181,105,75,.08);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-sm);
  color: var(--gold);
  font-size: 14px;
  text-align: center;
}
.form-success.show { display: block; }

/* ═══════════════════════════════════════════════════════════
   20. RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  :root { --section-y: 72px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 768px) {
  :root { --section-y: 60px; --pad-x: 18px; }
  .nav__menu, .nav__cta { display: none; }
  .nav__hamburger { display: flex; }
  .nav__drawer { display: flex; }

  .hero__h1 { font-size: clamp(38px, 10vw, 56px); }
  .hero__vline { display: none; }

  .stats__grid { grid-template-columns: repeat(2,1fr); }
  .stats__cell:nth-child(2) { border-right: none; }
  .stats__cell:nth-child(3) { border-right: 1px solid var(--border); border-top: 1px solid var(--border); }
  .stats__cell:nth-child(4) { border-right: none; border-top: 1px solid var(--border); }

  .about-split { grid-template-columns: 1fr; gap: 40px; }
  .about-split__img { aspect-ratio: 16/9; max-height: 300px; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }

  .newsletter__form { flex-direction: column; }

  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__brand-desc { max-width: 100%; }

  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; }
  .flex-between { flex-direction: column; align-items: flex-start; }

  .step { grid-template-columns: 48px 1fr; }
  .step__body { padding: 20px 20px; }

  .post-featured { grid-template-columns: 1fr; }
  .post-featured__thumb { min-height: 180px; }
  .post-featured__body { padding: 24px; }
}

@media (max-width: 480px) {
  .stats__num { font-size: 34px; }
  .page-hero { padding: 110px 0 52px; }
  .filter-bar { gap: 4px; }
  .filter-btn { padding: 6px 12px; font-size: 11px; }
}

/* ═══════════════════════════════════════════════════════════
   21. SERVICES PAGE — Topic rows + post mini list
═══════════════════════════════════════════════════════════ */
.topic-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
}
.topic-row:last-child { border-bottom: none; }
.topic-row--rev .topic-row__info { order: 2; }
.topic-row--rev .topic-row__posts { order: 1; }

.topic-row__num {
  font-family: var(--f-display);
  font-size: 80px;
  font-weight: 400;
  color: var(--bg-border);
  line-height: 1;
  margin-bottom: -10px;
  user-select: none;
}
.topic-row__title { margin-bottom: 14px; }
.topic-row__desc { font-size: 16px; color: var(--txt-3); line-height: 1.78; margin-bottom: 28px; }
.topic-row__cta-note { font-size: 12px; color: var(--txt-5); margin-top: 8px; }

.post-mini-list { display: flex; flex-direction: column; }
.post-mini {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left .2s;
}
.post-mini:last-child { border-bottom: none; }
.post-mini:hover { padding-left: 6px; }
.post-mini__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.post-mini__title { font-size: 14px; color: var(--txt-2); line-height: 1.5; flex: 1; transition: color .2s; }
.post-mini:hover .post-mini__title { color: var(--gold-bright); }
.post-mini__arrow { font-size: 13px; color: var(--gold-dim); flex-shrink: 0; transition: transform .2s; }
.post-mini:hover .post-mini__arrow { transform: translateX(3px); }

/* ═══════════════════════════════════════════════════════════
   22. CONTACT PAGE — Channels, layout, form, FAQ
═══════════════════════════════════════════════════════════ */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 80px;
}
.channel-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px 28px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  text-decoration: none;
  transition: border-color .25s, background .25s, transform .25s;
}
.channel-card:hover {
  border-color: var(--gold-border);
  background: var(--bg-raised);
  transform: translateY(-3px);
}
.channel-card__icon {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  background: var(--gold-ghost);
  border: 1px solid var(--gold-border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
}
.channel-card__label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--gold-dim);
  font-weight: 500;
}
.channel-card__name {
  font-family: var(--f-display);
  font-size: 22px;
  color: var(--txt-1);
  margin: 4px 0 6px;
}
.channel-card__handle { font-size: 13px; color: var(--txt-3); }
.channel-card__arrow {
  margin-top: auto;
  font-size: 13px;
  color: var(--gold-dim);
  transition: color .2s, transform .2s;
}
.channel-card:hover .channel-card__arrow {
  color: var(--gold);
  transform: translateX(4px);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 72px;
  align-items: start;
}
.contact-sidebar { position: sticky; top: 100px; }
.contact-sidebar__title { font-size: clamp(26px, 3.5vw, 40px); margin-bottom: 16px; }
.contact-sidebar__desc { font-size: 15px; color: var(--txt-3); line-height: 1.78; margin-bottom: 36px; }

.contact-info-list { display: flex; flex-direction: column; }
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-item__icon {
  width: 38px; height: 38px;
  border-radius: var(--r-sm);
  background: var(--gold-ghost);
  border: 1px solid var(--gold-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}
.contact-info-item__type { font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: var(--txt-4); margin-bottom: 2px; }
.contact-info-item__val { font-size: 14px; color: var(--txt-2); }

.contact-form-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 40px;
}
.contact-form-box h3 {
  font-family: var(--f-display);
  font-size: 22px;
  color: var(--txt-1);
  margin-bottom: 28px;
}
.form-select {
  width: 100%;
  padding: 13px 16px;
  padding-right: 38px;
  background: var(--bg-raised);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2378716C' stroke-width='1.5' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  border: 1px solid var(--bg-border);
  border-radius: var(--r-sm);
  color: var(--txt-1);
  font-family: var(--f-sans);
  font-size: 14px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.form-select:focus { border-color: var(--gold-dim); box-shadow: 0 0 0 3px var(--gold-ghost); }
.form-select option { background: var(--bg-surface); }
.form-submit { margin-top: 24px; }
.form-submit .btn { width: 100%; justify-content: center; }

.contact-success { display: none; text-align: center; padding: 48px 24px; }
.contact-success.show { display: block; }
.contact-success__icon { font-size: 40px; margin-bottom: 16px; }
.contact-success__title { font-family: var(--f-display); font-size: 24px; color: var(--txt-1); margin-bottom: 10px; }
.contact-success__sub { font-size: 15px; color: var(--txt-3); }

/* FAQ accordion */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); overflow: hidden; }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}
.faq-btn__q { font-size: 15px; color: var(--txt-1); font-weight: 500; line-height: 1.5; }
.faq-btn__icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1px solid var(--border-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--txt-4);
  font-size: 14px;
  transition: border-color .2s, background .2s, color .2s, transform .3s;
}
.faq-item.open .faq-btn__icon {
  border-color: var(--gold-dim);
  background: var(--gold-ghost);
  color: var(--gold);
  transform: rotate(45deg);
}
.faq-body { max-height: 0; overflow: hidden; transition: max-height .35s cubic-bezier(.4,0,.2,1); }
.faq-body__inner { padding: 0 0 22px; font-size: 14px; color: var(--txt-3); line-height: 1.78; }

/* Responsive: services + contact */
@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; gap: 48px; }
  .contact-sidebar { position: static; }
  .channel-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .topic-row { grid-template-columns: 1fr; gap: 32px; }
  .topic-row--rev .topic-row__info,
  .topic-row--rev .topic-row__posts { order: unset; }
  .topic-row__num { font-size: 52px; }
  .contact-form-box { padding: 24px 20px; }
}
@media (max-width: 600px) {
  .channel-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   23. MOBILE-FIRST OPTIMIZATIONS
   Not "shrink desktop" — rethink layout for touch.
   Rules: touch targets ≥ 48px · inputs font-size ≥ 16px
   (prevents iOS auto-zoom) · swipe-friendly tabs · thumb
   reachable CTAs · slide-in drawer · safe viewport height.
═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {

  /* ── 1. Hero: safe-viewport-height + top-aligned content ── */
  .hero {
    min-height: 100vh;          /* fallback */
    min-height: 100svh;         /* iOS-safe: excludes browser chrome */
    align-items: flex-start;
    padding-top: 96px;
    padding-bottom: 72px;
  }
  .hero__eyebrow {
    font-size: 10px;
    letter-spacing: .18em;
    margin-bottom: 22px;
  }
  .hero__h1 {
    font-size: clamp(36px, 11vw, 52px);
    line-height: 1.08;
    margin-bottom: 18px;
  }
  .hero__sub {
    font-size: 15px;
    max-width: 100%;
    line-height: 1.72;
    margin-bottom: 32px;
  }
  .hero__scroll { bottom: 20px; }

  /* ── 2. Nav drawer: slide from right (not just fade) ── */
  .nav__drawer {
    transform: translateX(100%);
    transition: opacity .25s cubic-bezier(.4,0,.2,1),
                transform .32s cubic-bezier(.4,0,.2,1);
    padding: 88px 40px 56px;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
  }
  .nav__drawer.open { transform: translateX(0); }
  .nav__drawer a {
    font-size: 32px;
    padding: 12px 0;
    width: 100%;
    display: block;
    border-bottom: 1px solid var(--border);
  }
  .nav__drawer a:last-of-type { border-bottom: none; }
  .nav__drawer .btn {
    margin-top: 32px;
    font-family: var(--f-sans);
    font-size: 14px;
    width: 100%;
    justify-content: center;
    min-height: 52px;
  }
  .nav__hamburger { z-index: 201; } /* above drawer so X stays tappable */

  /* ── 3. Touch targets: all interactive ≥ 48px ── */
  .btn {
    min-height: 48px;
    padding: 13px 24px;
  }
  .btn-sm {
    min-height: 42px;
    padding: 10px 18px;
  }
  .filter-btn {
    min-height: 38px;
    padding: 8px 16px;
  }
  .post-mini { padding: 20px 0; }
  .faq-btn { padding: 20px 0; min-height: 56px; }
  .contact-info-item { padding: 20px 0; }

  /* ── 4. Forms: font-size ≥ 16px prevents iOS keyboard zoom ── */
  .form-input,
  .form-textarea,
  .form-select,
  .newsletter__input {
    font-size: 16px;
    min-height: 52px;
    padding: 14px 16px;
  }
  .form-textarea { min-height: 130px; }
  .form-select { padding-right: 40px; }
  .form-group { gap: 8px; margin-bottom: 20px; }
  .form-label { font-size: 13px; margin-bottom: 4px; }

  /* ── 5. Topic cards: 2-col (not 1-col) at 768px ── */
  /* Overrides the generic .grid-4 → 1fr rule above */
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .topic-card { padding: 22px 18px; }
  .topic-card__num { margin-bottom: 14px; }
  .topic-card__title { font-size: 17px; }
  .topic-card__desc { font-size: 13px; }
  .topic-card__icon { width: 30px; height: 30px; }

  /* ── 6. Post cards ── */
  .post-card__thumb { aspect-ratio: 16/9; }
  .post-card__body { padding: 16px 16px 14px; }
  .post-card__title { font-size: 17px; }
  .post-card__excerpt { font-size: 13px; }

  /* ── 7. Filter bar: horizontal scroll (swipe to browse) ── */
  .filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-bottom: none;
    /* Break out of container so it can scroll edge-to-edge */
    margin-left: calc(-1 * var(--pad-x));
    margin-right: calc(-1 * var(--pad-x));
    padding-left: var(--pad-x);
    padding-right: var(--pad-x);
    padding-bottom: 18px;
    gap: 6px;
    /* Fade edge to hint there's more */
    mask-image: linear-gradient(to right, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 80%, transparent 100%);
  }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-btn { flex-shrink: 0; }

  /* ── 8. Stats: tighter cells ── */
  .stats { padding: 40px 0; }
  .stats__cell { padding: 14px 10px; }
  .stats__lbl { font-size: 10px; letter-spacing: .06em; }

  /* ── 9. Newsletter: full-width stack ── */
  .newsletter { padding: 60px 0; }
  .newsletter__form .btn {
    width: 100%;
    justify-content: center;
    min-height: 52px;
  }
  .newsletter__input { width: 100%; }

  /* ── 10. Page hero (inner pages) ── */
  .page-hero { padding: 100px 0 48px; }
  .page-hero__h1 { font-size: clamp(30px, 9vw, 48px); }
  .page-hero__sub { font-size: 15px; }

  /* ── 11. Footer: 2-col link grid (brand spans full width) ── */
  .footer { padding: 52px 0 32px; }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .footer__grid > div:first-child {
    grid-column: 1 / -1;
  }
  .footer__brand-desc { max-width: 100%; }

  /* ── 12. Section heading spacing ── */
  .sh { margin-bottom: 40px; }
  .sh__sub { font-size: 15px; }

  /* ── 13. About split: portrait image becomes landscape ── */
  .about-split { gap: 36px; }

  /* ── 14. Topic rows (services page) ── */
  .topic-row { gap: 28px; }
  .topic-row__desc { font-size: 15px; }

  /* ── 15. Channel cards (contact page) ── */
  .channel-card { padding: 24px 20px; }
  .channel-card__name { font-size: 20px; }

  /* ── 16. Blog featured post ── */
  .post-featured__excerpt { font-size: 13.5px; }
}

/* ═══════════════════════════════════════════════════════════
   24. BLOG PAGE — Featured post + post count
   (Styles moved from blog.html inline block)
═══════════════════════════════════════════════════════════ */
.post-featured {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 40px;
  transition: border-color .28s var(--ease);
}
.post-featured:hover { border-color: var(--gold-border); }

.post-featured__thumb {
  position: relative;
  min-height: 280px;
}
.post-featured__thumb::after {
  content: '';
  position: absolute; inset: 0; z-index: 2;
  background: radial-gradient(ellipse at 40% 40%, rgba(181,105,75,.12) 0%, transparent 60%);
}
.post-featured__cat {
  position: absolute; top: 16px; left: 16px; z-index: 3;
  background: rgba(181,105,75,.12);
  border: 1px solid var(--gold-border);
  color: var(--gold);
  font-size: 10px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 4px 11px; border-radius: var(--r-sm);
  backdrop-filter: blur(4px);
}
.post-featured__body {
  padding: 36px;
  display: flex; flex-direction: column; justify-content: center;
}
.post-featured__title {
  font-family: var(--f-display);
  font-size: 24px; font-weight: 400;
  color: var(--txt-1); line-height: 1.3;
  margin-bottom: 14px;
  transition: color .2s;
}
.post-featured__title a { color: inherit; }
.post-featured:hover .post-featured__title { color: var(--gold-bright); }

.post-featured__excerpt {
  font-size: 14px; color: var(--txt-3);
  line-height: 1.72; margin-bottom: 24px;
  flex: 1;
}
.post-featured__meta {
  font-size: 12px; color: var(--txt-4);
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--border); padding-top: 14px;
}
.post-featured__arrow { color: var(--gold); transition: transform .2s; }
.post-featured:hover .post-featured__arrow { transform: translateX(4px); }

.posts-count {
  font-size: 13px;
  color: var(--txt-4);
  margin-bottom: 8px;
}

/* Featured post thumbnail pattern + responsive (base rules) */
.post-featured__thumb {
  background:
    repeating-linear-gradient(
      45deg,
      rgba(181,105,75,.06) 0px,
      rgba(181,105,75,.06) 1px,
      transparent 1px,
      transparent 32px
    ),
    linear-gradient(135deg, #1f160a, #2e2009);
}

/* ── Small mobile (< 480px): tighten further ── */
@media (max-width: 480px) {
  :root { --pad-x: 16px; }

  /* Hero: tighter */
  .hero { padding-top: 84px; padding-bottom: 56px; }
  .hero__h1 { font-size: clamp(34px, 12vw, 46px); }

  /* Topic cards: 1-col on very small phones */
  .grid-4 { grid-template-columns: 1fr; }
  .topic-card { padding: 20px 16px; }

  /* Sections */
  .section { padding: 48px 0; }
  .sh { margin-bottom: 32px; }

  /* Page hero (inner) */
  .page-hero { padding: 86px 0 40px; }
  .page-hero__h1 { font-size: clamp(26px, 10vw, 38px); }
  .page-hero__sub { font-size: 14px; }

  /* Stats */
  .stats__num { font-size: 30px; }

  /* Newsletter */
  .newsletter { padding: 48px 0; }
  .newsletter__title { font-size: clamp(22px, 8vw, 32px); }

  /* Footer: 1-col stack on tiny screens */
  .footer__grid { grid-template-columns: 1fr; gap: 24px; }
  .footer__grid > div:first-child { grid-column: auto; }

  /* Contact */
  .contact-form-box { padding: 20px 16px; }
  .contact-form-box h3 { font-size: 19px; margin-bottom: 20px; }
  .channel-grid { margin-bottom: 48px; }

  /* Services */
  .topic-row { padding: 44px 0; }
  .topic-row__num { font-size: 44px; }

  /* FAQ */
  .faq-btn__q { font-size: 14px; }
}
