/* ═══════════════════════════════════════════════════════════
   ARTERIAL THEME — main.css v1.0.0
   Tokens | Reset | Layout | Nav | Hero | Services | Blog
   Single | Comments | Sidebar | Footer | Responsive
   ═══════════════════════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
  --amber:        #D97706;
  --amber-mid:    #F59E0B;
  --amber-bright: #FBBF24;
  --amber-glow:   rgba(217,119,6,.09);
  --amber-border: rgba(217,119,6,.22);
  --bg:           #0C0B09;
  --surface:      #161410;
  --surface-2:    #1E1C15;
  --surface-3:    #252218;
  --border:       rgba(255,255,255,.07);
  --border-2:     rgba(255,255,255,.04);
  --text:         #F5F0E8;
  --text-2:       #9C9282;
  --text-3:       #5A5248;
  --radius:       16px;
  --max-w:        1200px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9999; opacity: .35;
}
a { color: var(--amber); text-decoration: none; transition: color .2s; }
a:hover { color: var(--amber-bright); }
img, svg { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; }

/* ── UTILITY ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }

.eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--amber); display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px;
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--amber); opacity: .6; }

.section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600; letter-spacing: -.03em; line-height: 1.15; margin-bottom: 16px;
}
.section-title .highlight, .accent { color: var(--amber); }
.section-desc {
  font-size: 16px; color: var(--text-2); font-weight: 300; max-width: 600px; line-height: 1.8;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--amber); color: #0C0B09;
  padding: 14px 32px; border-radius: 10px; font-weight: 600; font-size: 15px;
  border: none; transition: all .25s; font-family: 'DM Sans', sans-serif;
}
.btn-primary:hover { background: var(--amber-mid); color: #0C0B09; transform: translateY(-2px); box-shadow: 0 8px 30px rgba(217,119,6,.25); }
.btn-secondary {
  display: inline-flex; align-items: center;
  background: transparent; color: var(--text);
  padding: 14px 32px; border-radius: 10px; font-weight: 500; font-size: 15px;
  border: 1px solid var(--border); transition: all .25s; font-family: 'DM Sans', sans-serif;
}
.btn-secondary:hover { border-color: var(--amber-border); color: var(--amber); }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(12,11,9,.85); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between; height: 72px;
}
.nav-brand {
  display: flex; align-items: center; gap: 14px; text-decoration: none;
}
.wm {
  font-family: 'Montserrat', sans-serif;
  display: inline-flex; align-items: baseline;
  letter-spacing: -.01em; line-height: 1;
}
.wm .w { color: #FFFFFF; font-weight: 500; }
.wm .a { color: #D97706; font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 0; list-style: none; height: 100%; }
.nav-links li { display: flex; align-items: center; position: relative; height: 100%; }
.nav-links a {
  display: flex; align-items: center; padding: 8px 16px;
  font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 500;
  color: var(--text-2); transition: color .2s;
  height: 100%;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }

/* ── DROPDOWN DESKTOP ── */

/* Wrapper link pai + botão seta */
.nav-item-wrap {
  display: flex; align-items: center; height: 100%;
}
.nav-item-wrap .nav-link {
  padding-right: 4px;
}

/* Botão seta do dropdown */
.dropdown-toggle {
  background: none; border: none; padding: 0 10px 0 4px;
  color: var(--text-3); cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: color .2s, transform .25s;
  height: 100%;
}
.dropdown-toggle:hover { color: var(--amber); }
.has-dropdown:hover > .nav-item-wrap .dropdown-toggle,
.has-dropdown.open > .nav-item-wrap .dropdown-toggle {
  color: var(--amber);
  transform: rotate(180deg);
}

/* Submenu */
.dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 0;
  list-style: none;
  z-index: 500;
  box-shadow: 0 16px 48px rgba(0,0,0,.4);
  /* animação */
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}
/* Bridge gap for hover */
.dropdown-menu::after {
  content: '';
  position: absolute;
  top: -15px;
  left: 0;
  right: 0;
  height: 15px;
  background: transparent;
}
/* [hidden] nativo — usamos open no <li> para controlar via JS */
.dropdown-menu[hidden] { display: none; }

.has-dropdown:hover > .dropdown-menu,
.has-dropdown.open > .dropdown-menu {
  display: block;           /* sobrescreve hidden quando aberto via JS */
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Itens do submenu */
.dropdown-menu li { position: relative; height: auto; }
.dropdown-menu a {
  display: block; padding: 10px 20px;
  font-size: 13px; font-weight: 400; color: var(--text-2);
  white-space: nowrap; transition: color .15s, background .15s;
  height: auto;
}
.dropdown-menu a:hover {
  color: var(--amber);
  background: var(--amber-glow);
}
.dropdown-menu li.active > a { color: var(--amber); }

/* Seta decorativa apontando para cima */
.dropdown-menu::before {
  content: '';
  position: absolute; top: -5px; left: 20px;
  width: 10px; height: 10px;
  background: var(--surface);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
  transform: rotate(45deg);
}

/* Submenu de segundo nível (nested) */
.dropdown-menu .dropdown-menu {
  top: -8px; left: calc(100% + 6px);
}
.dropdown-menu .dropdown-menu::before {
  top: 14px; left: -5px;
  transform: rotate(-45deg);
}
.dropdown-menu .has-dropdown:hover > .dropdown-menu,
.dropdown-menu .has-dropdown.open > .dropdown-menu {
  display: block; opacity: 1; transform: translateY(0); pointer-events: auto;
}

.nav-cta {
  background: var(--amber); color: #0C0B09;
  padding: 10px 24px; border-radius: 8px;
  font-weight: 600; font-size: 14px; border: none;
  font-family: 'DM Sans', sans-serif; transition: all .2s;
}
.nav-cta:hover { background: var(--amber-mid); color: #0C0B09; transform: translateY(-1px); }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 8px;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); transition: all .3s; }
/* Hamburger animado quando ativo */
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; top: 72px; left: 0; right: 0;
  background: rgba(12,11,9,.97); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 8px 0 24px; z-index: 999;
  max-height: calc(100vh - 72px); overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }

/* Itens de nível 1 no mobile */
.mobile-menu ul > li {
  list-style: none; border-bottom: 1px solid var(--border-2);
  display: block; height: auto;
}
.mobile-menu ul > li:last-child { border: none; }

/* Link + toggle wrapper no mobile */
.mobile-menu .nav-item-wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: auto;
}
.mobile-menu .nav-item-wrap .nav-link,
.mobile-menu ul > li > a {
  display: block; padding: 16px 32px; color: var(--text-2);
  font-size: 16px; font-weight: 500; flex: 1; height: auto;
}
.mobile-menu .nav-item-wrap .nav-link:hover,
.mobile-menu ul > li > a:hover { color: var(--text); }

/* Botão toggle mobile */
.mobile-menu .dropdown-toggle {
  padding: 16px 24px 16px 8px; color: var(--text-3);
}
.mobile-menu .has-dropdown.open > .nav-item-wrap .dropdown-toggle {
  transform: rotate(180deg);
}

/* Submenu accordion no mobile */
.mobile-menu .dropdown-menu {
  position: static; opacity: 1; transform: none;
  box-shadow: none; border: none; border-radius: 0;
  background: var(--surface-2); padding: 0;
  pointer-events: auto;
  display: none;
}
.mobile-menu .has-dropdown.open > .dropdown-menu {
  display: block;
}
.mobile-menu .dropdown-menu::before { display: none; }
.mobile-menu .dropdown-menu a {
  padding: 12px 32px 12px 48px; font-size: 14px;
  border-bottom: 1px solid var(--border-2);
}
.mobile-menu .dropdown-menu li:last-child a { border: none; }

/* ── PAGE HERO ── */
.page-hero {
  padding: 120px 0 56px; position: relative;
  background: linear-gradient(180deg, rgba(217,119,6,.03) 0%, transparent 100%);
}
.page-hero::before {
  content: ''; position: absolute; top: 0; right: -10%;
  width: 500px; height: 400px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(217,119,6,.06) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 700; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 12px;
  position: relative; z-index: 1;
}
.page-hero-desc {
  font-size: 16px; color: var(--text-2); font-weight: 300; line-height: 1.8;
  max-width: 560px; position: relative; z-index: 1;
}
.breadcrumbs {
  font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: .08em;
  color: var(--text-3); margin-bottom: 24px; position: relative; z-index: 1;
  display: flex; align-items: center; gap: 8px;
}
.breadcrumbs a { color: var(--text-3); }
.breadcrumbs a:hover { color: var(--amber); }
.breadcrumbs .sep { color: var(--amber); opacity: .4; }

/* ── HERO (front-page) ── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding-top: 72px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: 15%; right: -10%;
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(217,119,6,.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
  padding: 80px 0;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--amber-glow); border: 1px solid var(--amber-border);
  border-radius: 100px; padding: 6px 16px 6px 10px; margin-bottom: 28px;
  font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: .06em;
  color: var(--amber); text-transform: uppercase;
}
.hero-badge .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--amber);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(36px, 5.5vw, 62px);
  font-weight: 700; letter-spacing: -.04em; line-height: 1.08; margin-bottom: 24px;
}
.hero-desc {
  font-size: 17px; color: var(--text-2); font-weight: 300;
  line-height: 1.8; margin-bottom: 40px; max-width: 520px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-visual { display: flex; align-items: center; justify-content: center; }
.grid-visual { width: 100%; max-width: 480px; aspect-ratio: 1; }
.grid-visual svg { width: 100%; height: 100%; }
@keyframes flow-dash { to { stroke-dashoffset: 0; } }
.hero-stats {
  display: flex; gap: 40px; margin-top: 48px; padding-top: 32px;
  border-top: 1px solid var(--border);
}
.stat-item .stat-num {
  font-family: 'Montserrat', sans-serif; font-size: 32px; font-weight: 700;
  color: var(--amber); letter-spacing: -.02em;
}
.stat-item .stat-label {
  font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-3); margin-top: 4px;
}

/* ── FEATURED (IA) ── */
.featured {
  padding: 120px 0; position: relative;
  background: linear-gradient(180deg, transparent 0%, rgba(217,119,6,.03) 50%, transparent 100%);
}
.featured-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.featured-content .section-desc { margin-bottom: 36px; }
.featured-list { display: flex; flex-direction: column; gap: 0; }
.featured-list li {
  padding: 14px 0; border-bottom: 1px solid var(--border-2);
  display: flex; align-items: flex-start; gap: 14px;
  font-size: 14px; color: var(--text-2);
}
.featured-list li:last-child { border: none; }
.li-icon {
  width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
  background: var(--amber-glow); border: 1px solid var(--amber-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--amber); margin-top: 1px;
}
.featured-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.f-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
  transition: all .3s; position: relative; overflow: hidden;
}
.f-card:hover { border-color: var(--amber-border); transform: translateY(-3px); }
.f-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--amber), var(--amber-bright));
  opacity: 0; transition: opacity .3s;
}
.f-card:hover::after { opacity: 1; }
.f-card-icon { font-size: 24px; margin-bottom: 14px; }
.f-card h4 {
  font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 600;
  margin-bottom: 8px; letter-spacing: -.01em;
}
.f-card p { font-size: 12px; color: var(--text-3); line-height: 1.6; font-weight: 300; }
.f-card.span-2 { grid-column: span 2; }

/* ── SERVICES ── */
.services { padding: 100px 0; }
.services-header { text-align: center; margin-bottom: 64px; }
.services-header .section-desc { margin: 0 auto; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px 28px;
  transition: all .35s; position: relative; overflow: hidden;
}
.svc-card:hover { border-color: var(--amber-border); transform: translateY(-4px); }
.svc-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at top right, rgba(217,119,6,.05) 0%, transparent 60%);
  opacity: 0; transition: opacity .35s;
}
.svc-card:hover::before { opacity: 1; }
.svc-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--amber-glow); border: 1px solid var(--amber-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 20px; position: relative; z-index: 1;
}
.svc-card h3 {
  font-family: 'Montserrat', sans-serif; font-size: 17px; font-weight: 600;
  letter-spacing: -.02em; margin-bottom: 10px; position: relative; z-index: 1;
}
.svc-card h3 a { color: var(--text); }
.svc-card h3 a:hover { color: var(--amber); }
.svc-card p { font-size: 14px; color: var(--text-2); font-weight: 300; line-height: 1.7; position: relative; z-index: 1; }
.svc-techs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; position: relative; z-index: 1; }
.svc-tech {
  font-family: 'DM Mono', monospace; font-size: 10px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 6px; padding: 4px 10px; color: var(--text-3); letter-spacing: .04em;
}

/* ── PROCESS ── */
.process {
  padding: 100px 0;
  background: linear-gradient(180deg, transparent, var(--surface) 15%, var(--surface) 85%, transparent);
}
.process-header { text-align: center; margin-bottom: 64px; }
.process-steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; position: relative; }
.process-steps::before {
  content: ''; position: absolute; top: 44px; left: 15%; right: 15%;
  height: 1px; background: linear-gradient(90deg, transparent, var(--amber-border), var(--amber-border), transparent);
}
.step { text-align: center; position: relative; z-index: 1; }
.step-num {
  width: 48px; height: 48px; border-radius: 50%; margin: 0 auto 20px;
  background: var(--bg); border: 2px solid var(--amber-border);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Montserrat', sans-serif; font-size: 16px; font-weight: 700;
  color: var(--amber); transition: all .3s;
}
.step:hover .step-num { background: var(--amber); color: var(--bg); border-color: var(--amber); }
.step h4 { font-family: 'Montserrat', sans-serif; font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.step p { font-size: 13px; color: var(--text-3); font-weight: 300; line-height: 1.6; }

/* ── CTA SECTION ── */
.cta-section { padding: 100px 0; }
.cta-box {
  background: var(--surface); border: 1px solid var(--amber-border);
  border-radius: 24px; padding: 72px 64px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-box::before {
  content: ''; position: absolute; top: -50%; left: 50%; transform: translateX(-50%);
  width: 600px; height: 400px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(217,119,6,.08) 0%, transparent 70%);
}
.cta-box .section-title, .cta-box .section-desc, .cta-box .btn-primary { position: relative; z-index: 1; }
.cta-box .section-desc { margin: 0 auto 36px; }

/* ── BLOG LIST LAYOUT ── */
.blog-layout { display: grid; grid-template-columns: 1fr 340px; gap: 48px; padding: 0 0 100px; }
.posts-grid { display: flex; flex-direction: column; gap: 0; }

/* Featured card */
.post-featured {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; margin-bottom: 32px;
  transition: all .4s; position: relative;
}
.post-featured:hover { border-color: var(--amber-border); transform: translateY(-3px); }
.post-featured::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--amber), var(--amber-bright), var(--amber));
  opacity: 0; transition: opacity .4s;
}
.post-featured:hover::after { opacity: 1; }
.post-featured-img {
  display: block; width: 100%; height: 280px;
  overflow: hidden; position: relative;
}
.post-featured-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-featured:hover .post-featured-img img { transform: scale(1.03); }
.post-featured-img .placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--surface-2), var(--surface-3));
  position: relative; overflow: hidden;
}
.post-featured-img .placeholder::before {
  content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(217,119,6,.08) 0%, transparent 70%);
}
.post-featured-img .placeholder svg { opacity: .3; position: relative; z-index: 1; }
.post-featured-body { padding: 32px 28px; }
.post-featured h2 {
  font-family: 'Montserrat', sans-serif; font-size: 22px; font-weight: 600;
  letter-spacing: -.02em; line-height: 1.3; margin-bottom: 12px;
}
.post-featured h2 a { color: var(--text); transition: color .2s; }
.post-featured:hover h2 a { color: var(--amber); }
.post-featured .post-excerpt { font-size: 15px; color: var(--text-2); font-weight: 300; line-height: 1.8; margin-bottom: 20px; }

/* Regular post card */
.post-card {
  display: grid; grid-template-columns: 200px 1fr;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: all .35s; position: relative;
}
.post-card + .post-card { margin-top: 16px; }
.post-card:hover { border-color: var(--amber-border); transform: translateX(4px); }
.post-card-img {
  display: block; width: 100%; min-height: 180px;
  background: linear-gradient(135deg, var(--surface-2), var(--surface-3));
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card:hover .post-card-img img { transform: scale(1.05); }
.post-card-img svg { opacity: .2; }
.post-card-body { padding: 24px; display: flex; flex-direction: column; justify-content: center; }
.post-card h3 {
  font-family: 'Montserrat', sans-serif; font-size: 16px; font-weight: 600;
  letter-spacing: -.01em; line-height: 1.35; margin-bottom: 8px;
}
.post-card h3 a { color: var(--text); transition: color .2s; }
.post-card:hover h3 a { color: var(--amber); }
.post-card .post-excerpt {
  font-size: 13px; color: var(--text-3); font-weight: 300; line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Post meta */
.post-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.post-tag {
  font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: .06em;
  text-transform: uppercase; background: var(--amber-glow);
  border: 1px solid var(--amber-border); border-radius: 6px;
  padding: 3px 10px; color: var(--amber);
}
.post-date, .post-author {
  font-family: 'DM Mono', monospace; font-size: 11px; color: var(--text-3);
  display: flex; align-items: center; gap: 5px;
}
.post-date svg, .post-author svg { opacity: .5; }

/* Read more link */
.read-more {
  font-family: 'DM Mono', monospace; font-size: 12px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--amber);
  display: inline-flex; align-items: center; gap: 6px; transition: gap .2s;
}
.post-featured:hover .read-more { gap: 10px; }

/* No results */
.no-results {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 48px 40px; text-align: center;
}
.no-results h2 { font-family: 'Montserrat', sans-serif; margin-bottom: 12px; }
.no-results p { color: var(--text-2); margin-bottom: 24px; }

/* ── PAGINATION ── */
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 48px; }
.page-num, .page-arrow {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: 'DM Mono', monospace; font-size: 13px; color: var(--text-2);
  cursor: pointer; transition: all .2s; text-decoration: none;
}
.page-num:hover, .page-arrow:hover { border-color: var(--amber-border); color: var(--text); }
.page-num.active { background: var(--amber); border-color: var(--amber); color: var(--bg); font-weight: 500; }
.page-arrow { color: var(--text-3); }
.page-arrow.disabled { opacity: .3; pointer-events: none; }
.page-dots { font-family: 'DM Mono', monospace; font-size: 13px; color: var(--text-3); width: 42px; text-align: center; }

/* ── SINGLE POST ── */
.single-thumbnail { border-radius: var(--radius); overflow: hidden; margin-bottom: 40px; }
.single-thumbnail img { width: 100%; height: auto; max-height: 480px; object-fit: cover; }
.single-content { position: relative; z-index: 1; }

/* Entry content (Gutenberg-safe) */
.entry-content {
  font-size: 16px; line-height: 1.85; color: var(--text-2);
}
.entry-content h1, .entry-content h2, .entry-content h3,
.entry-content h4, .entry-content h5, .entry-content h6 {
  font-family: 'Montserrat', sans-serif; color: var(--text);
  font-weight: 600; letter-spacing: -.02em; line-height: 1.2;
  margin: 40px 0 16px;
}
.entry-content h2 { font-size: clamp(20px, 3vw, 28px); }
.entry-content h3 { font-size: clamp(18px, 2.5vw, 22px); }
.entry-content p { margin-bottom: 20px; }
.entry-content ul, .entry-content ol { list-style: disc; padding-left: 24px; margin-bottom: 20px; }
.entry-content ul li, .entry-content ol li { margin-bottom: 8px; color: var(--text-2); }
.entry-content a { color: var(--amber); border-bottom: 1px solid transparent; transition: border-color .2s; }
.entry-content a:hover { border-color: var(--amber); }
.entry-content blockquote {
  border-left: 3px solid var(--amber); padding: 16px 24px;
  background: var(--surface); border-radius: 0 12px 12px 0;
  margin: 32px 0; font-style: italic; color: var(--text-2);
}
.entry-content pre, .entry-content code {
  font-family: 'DM Mono', monospace; font-size: 14px;
  background: var(--surface-2); border-radius: 8px;
}
.entry-content pre { padding: 24px; overflow-x: auto; margin-bottom: 24px; border: 1px solid var(--border); }
.entry-content code { padding: 2px 8px; }
.entry-content img { border-radius: 12px; margin: 24px 0; }
.entry-content hr { border: none; border-top: 1px solid var(--border); margin: 40px 0; }
.entry-content table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.entry-content th { background: var(--surface-2); color: var(--amber); font-family: 'DM Mono', monospace; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding: 12px 16px; text-align: left; border: 1px solid var(--border); }
.entry-content td { padding: 12px 16px; border: 1px solid var(--border); color: var(--text-2); }
.entry-content tr:nth-child(even) td { background: var(--surface); }

/* Post tags row */
.post-tags-row { margin: 40px 0; padding: 28px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* Post navigation */
.post-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin: 48px 0; padding: 32px 0; border-top: 1px solid var(--border);
}
.post-nav-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 24px;
  display: flex; flex-direction: column; gap: 8px;
  transition: all .3s; color: var(--text);
}
.post-nav-item:hover { border-color: var(--amber-border); color: var(--text); }
.post-nav-dir { font-family: 'DM Mono', monospace; font-size: 11px; color: var(--amber); }
.post-nav-title { font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 600; line-height: 1.3; }
.post-nav-next { text-align: right; }

/* Author box */
.author-box {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; margin: 40px 0;
}
.author-avatar { width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0; }
.author-name { font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 16px; margin-bottom: 6px; }
.author-bio { font-size: 14px; color: var(--text-2); font-weight: 300; line-height: 1.7; }

/* Related posts */
.related-posts { margin-top: 48px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }

/* ── SIDEBAR ── */
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.sidebar-block {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px; transition: border-color .3s;
}
.sidebar-block:hover { border-color: var(--amber-border); }
.sidebar-title {
  font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--amber); margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.sidebar-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* Search form (WP) */
.search-form { display: flex; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); transition: border-color .2s; }
.search-form:focus-within { border-color: var(--amber-border); }
.search-field, .search-form input[type="search"] {
  flex: 1; background: var(--surface-2); border: none; padding: 12px 16px;
  color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 14px; outline: none;
}
.search-field::placeholder { color: var(--text-3); }
.search-submit, .search-form button {
  background: var(--amber); border: none; padding: 0 16px;
  color: #0C0B09; font-weight: 600; font-family: 'DM Sans', sans-serif;
  cursor: pointer; transition: background .2s; font-size: 14px;
}
.search-submit:hover { background: var(--amber-mid); }

/* Custom search (sidebar.php) */
.search-box { display: flex; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); }
.search-box:focus-within { border-color: var(--amber-border); }
.search-input { flex: 1; background: var(--surface-2); border: none; padding: 12px 16px; color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 14px; outline: none; }
.search-input::placeholder { color: var(--text-3); }
.search-btn { background: var(--amber); border: none; padding: 0 16px; cursor: pointer; transition: background .2s; display: flex; align-items: center; }
.search-btn:hover { background: var(--amber-mid); }

/* Categories */
.cat-list { list-style: none; }
.cat-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid var(--border-2);
  font-size: 14px; color: var(--text-2); transition: color .2s;
}
.cat-item:last-child { border: none; }
.cat-name { transition: color .2s; }
.cat-item:hover .cat-name { color: var(--amber); }
.cat-count {
  font-family: 'DM Mono', monospace; font-size: 11px;
  background: var(--surface-2); border-radius: 6px; padding: 2px 8px;
  color: var(--text-3); min-width: 28px; text-align: center;
}

/* Tags cloud */
.tags-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-pill {
  font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: .04em;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 8px; padding: 6px 14px; color: var(--text-3);
  transition: all .2s; text-decoration: none;
}
.tag-pill:hover { border-color: var(--amber-border); color: var(--amber); background: var(--amber-glow); }

/* Newsletter */
.newsletter-desc { font-size: 13px; color: var(--text-3); font-weight: 300; line-height: 1.7; margin-bottom: 16px; }
.newsletter-form { display: flex; flex-direction: column; gap: 10px; }
.newsletter-input {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 16px; color: var(--text); font-family: 'DM Sans', sans-serif;
  font-size: 14px; outline: none; transition: border-color .2s;
}
.newsletter-input:focus { border-color: var(--amber-border); }
.newsletter-input::placeholder { color: var(--text-3); }
.newsletter-btn {
  background: var(--amber); color: #0C0B09; border: none; border-radius: 10px;
  padding: 12px; font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all .2s;
}
.newsletter-btn:hover { background: var(--amber-mid); transform: translateY(-1px); }
.newsletter-msg { font-size: 13px; margin-top: 8px; }
.newsletter-msg.success { color: #4ade80; }
.newsletter-msg.error { color: #f87171; }

/* Recent posts */
.recent-list { display: flex; flex-direction: column; gap: 14px; }
.recent-item {
  display: flex; gap: 14px; align-items: center;
  padding: 8px 0; border-bottom: 1px solid var(--border-2);
  transition: all .2s; text-decoration: none; color: var(--text);
}
.recent-item:last-child { border: none; }
.recent-item:hover .recent-title { color: var(--amber); }
.recent-thumb {
  width: 56px; height: 56px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--surface-2), var(--surface-3));
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.recent-thumb img { width: 100%; height: 100%; object-fit: cover; }
.recent-thumb svg { opacity: .25; }
.recent-title { font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 500; line-height: 1.4; transition: color .2s; }
.recent-date { font-family: 'DM Mono', monospace; font-size: 10px; color: var(--text-3); margin-top: 3px; }

/* ── PAGE CONTENT ── */
.page-content-wrapper { padding: 48px 0 100px; }
.page-thumbnail { border-radius: var(--radius); overflow: hidden; margin-bottom: 40px; }
.page-thumbnail img { width: 100%; max-height: 480px; object-fit: cover; }
.subpages { margin-top: 60px; }

/* ── COMMENTS ── */
.comments-wrapper { margin-top: 60px; padding-top: 40px; border-top: 1px solid var(--border); }
#comments h2.comments-title, .comment-reply-title {
  font-family: 'Montserrat', sans-serif; font-size: 22px; font-weight: 600;
  margin-bottom: 32px; letter-spacing: -.02em;
}
.comment-list { list-style: none; }
.comment { padding: 24px 0; border-bottom: 1px solid var(--border-2); }
.comment-author .fn { font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 15px; color: var(--text); }
.comment-metadata { font-family: 'DM Mono', monospace; font-size: 11px; color: var(--text-3); margin: 4px 0 12px; }
.comment-content p { font-size: 15px; color: var(--text-2); line-height: 1.7; }
.comment-form label { display: block; font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.comment-form input, .comment-form textarea {
  width: 100%; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 16px; color: var(--text);
  font-family: 'DM Sans', sans-serif; font-size: 14px; outline: none;
  transition: border-color .2s; margin-bottom: 20px;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--amber-border); }
.comment-form textarea { min-height: 140px; resize: vertical; }
.comment-form .submit { background: var(--amber); color: #0C0B09; border: none; border-radius: 10px; padding: 12px 28px; font-family: 'DM Sans', sans-serif; font-weight: 600; cursor: pointer; transition: all .2s; }
.comment-form .submit:hover { background: var(--amber-mid); transform: translateY(-1px); }

/* ── FOOTER ── */
.footer { border-top: 1px solid var(--border); padding: 48px 0 32px; }
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand .wm { margin-bottom: 12px; }
.footer-brand p { font-size: 13px; color: var(--text-3); max-width: 300px; font-weight: 300; line-height: 1.7; margin-top: 8px; }
.footer-col h5 { font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: var(--text-2); margin-bottom: 10px; font-weight: 400; }
.footer-col a:hover { color: var(--text); }
.footer-col li { list-style: none; }
.footer-col li a { display: block; font-size: 14px; color: var(--text-2); margin-bottom: 10px; font-weight: 400; }
.footer-col li a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 40px; padding-top: 24px; display: flex; align-items: center; justify-content: space-between; }
.footer-bottom p { font-size: 12px; color: var(--text-3); font-family: 'DM Mono', monospace; }
.footer-bottom a { color: var(--text-3); }
.footer-bottom a:hover { color: var(--amber); }

/* ── ANIMATIONS ── */
@keyframes fade-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.animate { opacity: 0; animation: fade-up .6s ease forwards; }
.d1 { animation-delay: .05s; }
.d2 { animation-delay: .1s; }
.d3 { animation-delay: .15s; }
.d4 { animation-delay: .2s; }
.d5 { animation-delay: .25s; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 400px; margin: 0 auto; }
  .featured-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .process-steps::before { display: none; }
  .blog-layout { grid-template-columns: 1fr; gap: 48px; }
  .sidebar { order: 2; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero h1 { font-size: clamp(32px, 8vw, 48px); }
  .hero-stats { flex-direction: column; gap: 20px; }
  .services-grid { grid-template-columns: 1fr; }
  .featured-cards { grid-template-columns: 1fr; }
  .f-card.span-2 { grid-column: span 1; }
  .post-card { grid-template-columns: 1fr; }
  .post-card-img { min-height: 160px; }
  .post-nav { grid-template-columns: 1fr; }
  .cta-box { padding: 48px 28px; }
  .footer-inner { flex-direction: column; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .author-box { flex-direction: column; }
  .related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
}

/* ── WP ADMIN BAR OFFSET ── */
.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .nav { top: 46px; } }

/* ── SCREEN READER ── */
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute; width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus {
  background: var(--surface); clip: auto; clip-path: none;
  color: var(--amber); font-size: 14px; font-weight: bold;
  height: auto; left: 5px; line-height: normal;
  padding: 15px 23px 14px; text-decoration: none;
  top: 5px; width: auto; z-index: 100000;
}
