:root {
  --x3-black: #11100e;
  --x3-ink: #171512;
  --x3-muted: #706a61;
  --x3-soft: #f7f4ed;
  --x3-beige: #f2eadc;
  --x3-cream: #fffaf1;
  --x3-white: #ffffff;
  --x3-gold: #bd9148;
  --x3-gold-dark: #8c672f;
  --x3-line: rgba(17, 16, 14, 0.12);
  --x3-shadow: 0 24px 70px rgba(17, 16, 14, 0.12);
}

html { scroll-behavior: smooth; }
body.x3-blog-body {
  margin: 0;
  color: var(--x3-black);
  background: var(--x3-soft);
  font-family: "Montserrat", Arial, sans-serif;
}
body.x3-blog-body * { box-sizing: border-box; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.x3-nav-cta svg, .x3-button svg, .x3-floating svg, .x3-footer-links svg { flex: 0 0 auto; }
.x3-nav-cta svg, .x3-button svg, .x3-floating svg, .x3-footer-links [href*="wa.me"] svg { fill: currentColor; stroke: none; }
.x3-wrap { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.x3-skip { position: absolute; left: 16px; top: 12px; transform: translateY(-160%); background: var(--x3-black); color: var(--x3-white); padding: 10px 14px; z-index: 999; }
.x3-skip:focus { transform: translateY(0); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }

.x3-site-header {
  position: sticky; top: 0; z-index: 80;
  background: rgba(17, 16, 14, 0.96);
  border-bottom: 1px solid rgba(189, 145, 72, 0.22);
  backdrop-filter: blur(16px);
}
.x3-header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.x3-brand img, .custom-logo { display: block; width: 146px; max-height: 62px; object-fit: contain; }
.x3-logo-text { display: inline-grid; color: var(--x3-gold); text-decoration: none; line-height: 1; text-transform: uppercase; }
.x3-logo-text span { font-size: 1.55rem; font-weight: 600; }
.x3-logo-text small { font-size: .7rem; letter-spacing: 0; }
.x3-nav { display: flex; align-items: center; gap: clamp(12px, 1.6vw, 24px); margin-left: auto; }
.x3-menu { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); margin: 0; padding: 0; list-style: none; }
.x3-nav a { color: var(--x3-white); text-decoration: none; font-size: .78rem; font-weight: 500; text-transform: uppercase; }
.x3-nav a:hover { color: var(--x3-gold); }
.x3-nav-link { display: inline-flex; align-items: center; gap: 8px; }
.x3-nav-link svg { color: var(--x3-gold); font-size: 1rem; }
.x3-nav-icon-only { min-width: 32px; justify-content: center; }
.x3-category-menu { display: flex; align-items: center; gap: clamp(12px, 1.4vw, 20px); }
.x3-category-menu a { color: rgba(255, 255, 255, .82); }
.x3-nav-cta, .x3-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 12px 18px; border-radius: 4px;
  background: var(--x3-gold); color: var(--x3-black) !important; text-decoration: none; font-weight: 600; text-transform: none;
  border: 1px solid var(--x3-gold);
}
.x3-menu-toggle { display: none; border: 1px solid rgba(255,250,241,.2); background: rgba(255,255,255,.06); color: var(--x3-white); border-radius: 4px; padding: 10px 12px; font-family: inherit; }

.x3-hero {
  position: relative;
  background:
    linear-gradient(90deg, rgba(17,16,14,.96) 0%, rgba(17,16,14,.82) 42%, rgba(17,16,14,.24) 100%),
    radial-gradient(circle at 86% 20%, rgba(189,145,72,.18), transparent 36%),
    var(--x3-hero-image, none) center right / cover no-repeat,
    var(--x3-black);
  color: var(--x3-white);
  min-height: clamp(560px, 72vh, 760px);
  display: flex;
  align-items: center;
  padding: clamp(76px, 8vw, 118px) 0;
}
.x3-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: rgba(189,145,72,.34); }
.x3-hero-content { position: relative; z-index: 1; }
.x3-hero-copy { max-width: 720px; }
.x3-hero-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(320px, .72fr); gap: clamp(34px, 6vw, 78px); align-items: center; }
.x3-eyebrow { margin: 0 0 16px; color: var(--x3-gold); font-size: .74rem; text-transform: uppercase; font-weight: 600; }
.x3-hero h1, .x3-page-hero h1, .x3-section h2, .x3-single h1 { margin: 0; letter-spacing: 0; line-height: 1.14; font-weight: 540; }
.x3-hero h1 { max-width: 740px; font-size: clamp(2rem, 3.4vw, 3.7rem); }
.x3-hero p, .x3-page-hero p { max-width: 680px; color: rgba(255,255,255,.76); line-height: 1.76; font-size: clamp(1rem, 1.08vw, 1.08rem); }
.x3-search { display: flex; gap: 10px; margin-top: 32px; max-width: 680px; }
.x3-search input { flex: 1; min-height: 52px; border: 1px solid rgba(255,255,255,.22); border-radius: 4px; padding: 12px 14px; background: rgba(255,255,255,.08); color: var(--x3-white); font: inherit; }
.x3-search input::placeholder { color: rgba(255,255,255,.62); }
.x3-search button { min-height: 52px; border: 1px solid var(--x3-gold); border-radius: 4px; padding: 0 18px; background: var(--x3-gold); color: var(--x3-black); font: inherit; font-weight: 600; cursor: pointer; }

.x3-featured-card a, .x3-post-card a { display: block; height: 100%; color: inherit; text-decoration: none; }
.x3-featured-card { overflow: hidden; border: 1px solid rgba(189,145,72,.28); border-radius: 8px; background: var(--x3-cream); box-shadow: 0 24px 70px rgba(0,0,0,.24); }
.x3-featured-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.x3-featured-card span { display: inline-block; margin: 24px 24px 10px; color: var(--x3-gold-dark); font-size: .74rem; font-weight: 600; text-transform: uppercase; }
.x3-featured-card h2 { margin: 0 24px 12px; color: var(--x3-black); font-size: 1.34rem; line-height: 1.24; font-weight: 540; }
.x3-featured-card p { margin: 0 24px 26px; color: var(--x3-muted); line-height: 1.6; }

.x3-category-strip { padding: 18px 0; background: var(--x3-black); border-top: 1px solid rgba(189,145,72,.24); border-bottom: 1px solid rgba(189,145,72,.24); }
.x3-category-strip .x3-wrap { display: flex; align-items: center; gap: 20px; overflow-x: auto; }
.x3-category-strip span { flex: 0 0 auto; color: var(--x3-gold); font-size: .74rem; font-weight: 600; text-transform: uppercase; }
.x3-category-strip .x3-category-menu { gap: 10px; }
.x3-category-strip .x3-category-menu a {
  flex: 0 0 auto; color: var(--x3-white); border: 1px solid rgba(189,145,72,.34); border-radius: 999px;
  padding: 9px 13px; background: rgba(255,255,255,.05); font-size: .78rem; text-decoration: none; text-transform: uppercase;
}

.x3-featured-section { padding: clamp(54px, 7vw, 90px) 0; background: var(--x3-soft); }
.x3-featured-wide { overflow: hidden; border: 1px solid var(--x3-line); border-radius: 8px; background: var(--x3-white); box-shadow: var(--x3-shadow); }
.x3-featured-wide a { display: grid; grid-template-columns: minmax(0, .84fr) minmax(320px, 1fr); color: inherit; text-decoration: none; }
.x3-featured-media { min-height: 340px; background: var(--x3-beige); }
.x3-featured-media img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; display: block; }
.x3-featured-copy { padding: clamp(30px, 5vw, 58px); align-self: center; }
.x3-featured-copy span { display: inline-block; margin-bottom: 14px; color: var(--x3-gold-dark); font-size: .74rem; font-weight: 600; text-transform: uppercase; }
.x3-featured-copy h2 { margin: 0 0 18px; color: var(--x3-black); font-size: clamp(1.55rem, 2.2vw, 2.35rem); line-height: 1.16; font-weight: 540; }
.x3-featured-copy p { margin: 0; color: var(--x3-muted); line-height: 1.72; }

.x3-section { padding: clamp(64px, 8vw, 108px) 0; background: var(--x3-white); }
.x3-section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.x3-section h2 { font-size: clamp(1.55rem, 2vw, 2.2rem); }
.x3-text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--x3-gold-dark); text-decoration: none; font-weight: 600; }
.x3-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.x3-post-card { overflow: hidden; border: 1px solid var(--x3-line); border-radius: 8px; background: var(--x3-white); transition: transform .18s ease, box-shadow .18s ease; }
.x3-post-card:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(17,16,14,.11); }
.x3-thumb { display: grid; place-items: center; aspect-ratio: 16 / 10; background: var(--x3-beige); color: var(--x3-gold-dark); font-weight: 600; }
.x3-thumb img { width: 100%; height: 100%; object-fit: cover; }
.x3-card-body { padding: 22px; }
.x3-card-meta, .x3-meta { margin: 0 0 10px; color: var(--x3-gold-dark); font-size: .78rem; font-weight: 600; }
.x3-card-body h2 { margin: 0 0 12px; font-size: 1.08rem; line-height: 1.35; font-weight: 540; }
.x3-card-body p { margin: 0; color: var(--x3-muted); line-height: 1.62; }

.x3-page-hero, .x3-single-hero { padding: clamp(58px, 7vw, 92px) 0; background: var(--x3-black); color: var(--x3-white); }
.x3-page-hero h1, .x3-single h1 { font-size: clamp(1.9rem, 3vw, 3.24rem); }
.x3-single-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(320px, .72fr); gap: clamp(34px, 6vw, 78px); align-items: center; }
.x3-single figure { margin: 0; }
.x3-single figure img { width: 100%; border-radius: 8px; aspect-ratio: 4 / 3; object-fit: cover; }
.x3-content-grid { display: grid; grid-template-columns: minmax(0, 720px) 300px; gap: clamp(34px, 6vw, 78px); padding: clamp(56px, 7vw, 90px) 0; align-items: start; }
.x3-post-content { font-size: 1.02rem; line-height: 1.86; color: var(--x3-ink); }
.x3-post-content h2, .x3-post-content h3 { margin-top: 2em; line-height: 1.22; font-weight: 540; }
.x3-post-content a { color: var(--x3-gold-dark); font-weight: 600; }
.x3-sidebar { position: sticky; top: 100px; }
.x3-sidebar-box { padding: 24px; border: 1px solid var(--x3-line); border-radius: 8px; background: var(--x3-cream); box-shadow: var(--x3-shadow); }
.x3-sidebar-box h2 { margin: 0 0 10px; font-size: 1.12rem; font-weight: 540; }
.x3-sidebar-box p { color: var(--x3-muted); line-height: 1.62; }

.x3-cta-band { padding: clamp(52px, 7vw, 88px) 0; background: var(--x3-beige); }
.x3-cta-band .x3-wrap { max-width: 860px; }
.x3-cta-band h2 { margin: 0; font-size: clamp(1.55rem, 2.2vw, 2.35rem); line-height: 1.16; font-weight: 540; }
.x3-cta-band p { color: var(--x3-muted); line-height: 1.7; }
.x3-pagination { margin-top: 36px; }

.x3-footer { padding: 50px 0 88px; background: var(--x3-black); color: var(--x3-white); border-top: 1px solid rgba(189,145,72,.22); }
.x3-footer-grid { display: flex; justify-content: space-between; gap: 28px; align-items: center; }
.x3-footer p { max-width: 520px; color: rgba(255,255,255,.72); line-height: 1.6; }
.x3-footer-links { display: flex; flex-wrap: wrap; gap: 14px; }
.x3-footer a { color: var(--x3-white); text-decoration: none; }
.x3-footer a:hover { color: var(--x3-gold); }
.x3-footer-links a { display: inline-flex; align-items: center; gap: 9px; padding: 9px 11px; border: 1px solid rgba(189,145,72,.22); border-radius: 4px; background: rgba(255,255,255,.035); }
.x3-footer-links svg { color: var(--x3-gold); font-size: 1.05rem; }
.x3-floating { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: inline-flex; align-items: center; gap: 9px; min-height: 48px; padding: 12px 18px; border-radius: 4px; background: var(--x3-gold); color: var(--x3-black); text-decoration: none; font-weight: 600; box-shadow: 0 16px 34px rgba(17,16,14,.24); }

@media (max-width: 960px) {
  .x3-menu-toggle { display: inline-flex; }
  .x3-nav { position: absolute; left: 20px; right: 20px; top: calc(100% + 10px); display: none; flex-direction: column; align-items: stretch; padding: 14px; background: var(--x3-black); border: 1px solid rgba(189,145,72,.28); border-radius: 8px; }
  .x3-nav.is-open { display: flex; }
  .x3-menu, .x3-category-menu { flex-direction: column; align-items: stretch; }
  .x3-hero-grid, .x3-single-grid, .x3-content-grid { grid-template-columns: 1fr; }
  .x3-featured-wide a { grid-template-columns: 1fr; }
  .x3-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .x3-sidebar { position: static; }
}

@media (max-width: 640px) {
  .x3-wrap { width: min(100% - 28px, 1160px); }
  .x3-header-inner { min-height: 68px; }
  .x3-brand img, .custom-logo { width: 120px; }
  .x3-hero { min-height: 560px; padding: 58px 0; background-position: 62% center; }
  .x3-hero h1 { font-size: clamp(1.88rem, 9vw, 2.7rem); }
  .x3-search { flex-direction: column; }
  .x3-category-strip .x3-wrap { align-items: flex-start; flex-direction: column; }
  .x3-category-strip .x3-category-menu { flex-direction: row; }
  .x3-card-grid { grid-template-columns: 1fr; }
  .x3-section-head, .x3-footer-grid { align-items: flex-start; flex-direction: column; }
  .x3-floating { left: 14px; right: 14px; justify-content: center; }
}
