/* ══ HAYDER VOICE v2.0 — MAIN CSS ══ */

/* ── TOKENS ── */
:root {
  --c-void: #09090A;
  --c-surface: #0F0F0D;
  --c-surface-2: #141412;
  --c-border: #1E1E1A;
  --c-border-mid: #2A2A25;
  --c-muted: #7A7870;
  --c-body: #B8B4AB;
  --c-heading: #E8E4DC;
  --c-white: #F5F0E8;
  --c-amber: #C4956A;
  --c-amber-dim: rgba(196,149,106,0.12);
  --c-amber-glow: rgba(196,149,106,0.06);
  --c-ember: #C4604A;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', -apple-system, sans-serif;
  --text-xs: clamp(0.75rem,1vw,0.875rem);
  --text-sm: clamp(0.875rem,1.2vw,1rem);
  --text-base: clamp(1rem,1.4vw,1.125rem);
  --text-lg: clamp(1.25rem,1.8vw,1.625rem);
  --text-xl: clamp(1.5rem,2.2vw,2rem);
  --text-2xl: clamp(2rem,3vw,2.75rem);
  --text-3xl: clamp(2.5rem,5vw,4rem);
  --text-hero: clamp(3.5rem,7vw,8rem);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --ease-out-expo: cubic-bezier(0.16,1,0.3,1);
  --ease-spring: cubic-bezier(0.34,1.56,0.64,1);
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }

/* ── HEADER ── */
.site-header.scrolled {
  background: rgba(9,9,10,0.85);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(30,30,26,0.6);
}
.site-header.hidden { transform: translateY(-100%); }

.nav-primary { display: flex; }
.nav-primary ul { display: flex; align-items: center; gap: 2.5rem; list-style: none; margin: 0; padding: 0; }
.nav-primary a, .nav-link {
  font-family: var(--font-sans); font-size: 0.72rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(245,240,232,0.55); text-decoration: none;
  transition: color 0.3s; padding: 0.4rem 0;
  display: inline-flex; align-items: center; gap: 0.35rem;
  position: relative;
}
.nav-primary a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1px; background: var(--c-amber);
  transition: width 0.4s var(--ease-out-expo);
}
.nav-primary a:hover { color: var(--c-amber); }
.nav-primary a:hover::after { width: 100%; }
.nav-item--active > a { color: var(--c-white); }
.dropdown-arrow { transition: transform 0.2s; }
.nav-item--has-children:hover .dropdown-arrow { transform: rotate(180deg); }

/* Dropdown — glass effect */
.nav-item { position: relative; }
.sub-menu {
  position: absolute; top: calc(100% + 16px); left: 50%;
  transform: translateX(-50%) translateY(-8px);
  opacity: 0; visibility: hidden; pointer-events: none;
  background: rgba(15,15,13,0.95);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(196,149,106,0.08);
  border-radius: var(--radius-md);
  min-width: 230px; padding: 0.5rem;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 40px rgba(196,149,106,0.03);
  transition: all 250ms var(--ease-out-expo); z-index: 50;
}
.nav-item:hover > .sub-menu,
.nav-item:focus-within > .sub-menu {
  opacity: 1; visibility: visible;
  pointer-events: all; transform: translateX(-50%) translateY(0);
}
.nav-item--has-children::after {
  content: ''; position: absolute; top: 100%; left: 0; right: 0; height: 20px;
}
.sub-menu li { margin: 0; padding: 0; }
.sub-menu a, .sub-menu__link {
  display: block; padding: 10px 14px;
  font-size: 0.7rem; letter-spacing: 0.14em;
  color: var(--c-muted); border-radius: var(--radius-sm);
  transition: all 0.2s; text-transform: uppercase;
}
.sub-menu a:hover { color: var(--c-white); background: rgba(196,149,106,0.06); }
.sub-menu a::after { display: none; }

/* Header buttons */
.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.btn-search {
  background: transparent; border: none;
  color: rgba(245,240,232,0.5); cursor: pointer;
  padding: 8px; transition: color 0.3s;
  display: flex; align-items: center;
}
.btn-search:hover { color: var(--c-amber); }

/* Hamburger */
.btn-menu {
  display: none; flex-direction: column;
  justify-content: center; align-items: center;
  gap: 5px; width: 40px; height: 40px;
  background: rgba(26,26,24,0.8); border: 1px solid var(--c-border-mid);
  border-radius: var(--radius-md); cursor: pointer; padding: 8px;
}
.btn-menu span {
  display: block; width: 18px; height: 1.5px;
  background: var(--c-heading); transition: all 0.3s;
}
body.menu-open .btn-menu span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.menu-open .btn-menu span:nth-child(2) { opacity: 0; }
body.menu-open .btn-menu span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Search dialog */
.search-dialog {
  position: fixed; inset: 0; width: 100%; max-width: 100%;
  height: 100%; max-height: 100%; margin: 0; padding: 0;
  background: rgba(9,9,10,0.96); backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: none; display: none; z-index: 60;
}
.search-dialog[open] {
  display: flex; align-items: flex-start; justify-content: center; padding-top: 20vh;
}
.search-dialog::backdrop { background: transparent; }
.search-inner { width: min(700px, 90vw); position: relative; }
.search-close {
  position: absolute; top: -3rem; right: 0;
  background: none; border: none; color: var(--c-muted);
  font-size: 1.5rem; cursor: pointer; padding: 0.5rem; transition: color 0.3s;
}
.search-close:hover { color: var(--c-white); }
.search-inner input[type="search"],
.search-inner .search-field {
  font-family: var(--font-serif); font-size: clamp(1.5rem,4vw,3rem);
  font-weight: 300; color: var(--c-white); background: transparent;
  border: none; border-bottom: 1px solid var(--c-border-mid);
  width: 100%; padding: 1rem 0; caret-color: var(--c-amber); outline: none;
}
.search-inner .search-submit { display: none; }

/* ── MOBILE MENU ── */
.mobile-menu {
  position: fixed; top: 0; left: 0;
  width: 100vw; height: 100vh; z-index: 99999;
  background: #09090A; flex-direction: column;
  padding: 1.5rem 1.5rem 3rem; overflow-y: auto; display: none;
}
.mobile-menu__close {
  align-self: flex-end; width: 40px; height: 40px;
  background: #1A1A18; border: 1px solid #2A2A25;
  border-radius: 8px; color: #E8E4DC; font-size: 1.3rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  margin-bottom: 2rem;
}
.mobile-nav a, .mobile-nav__parent > span {
  display: block; font-family: var(--font-serif);
  font-size: 2.2rem; font-weight: 300;
  color: #E8E4DC; padding: 0.7rem 0;
  border-bottom: 1px solid #1E1E1A;
  text-decoration: none; writing-mode: horizontal-tb;
  transition: color 0.2s;
}
.mobile-nav a:hover { color: var(--c-amber); }
.mobile-nav__parent > span { color: #7A7870; }
.mobile-nav__sub { padding: 0.25rem 0 0.5rem 1.25rem; }
.mobile-nav__sub a {
  font-family: var(--font-sans); font-size: 0.75rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: #7A7870; padding: 0.4rem 0; font-weight: 400;
  border-bottom: 1px solid rgba(30,30,26,0.5);
}
.mobile-nav__sub a:hover { color: var(--c-amber); }
.mobile-menu__social { display: flex; gap: 1.5rem; margin-top: auto; padding-top: 2rem; }
.mobile-menu__social a {
  font-family: var(--font-sans); font-size: 0.75rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #4A4A44; text-decoration: none;
}
.mobile-menu__social a:hover { color: var(--c-amber); }

/* ── FOOTER ── */
.site-footer {
  position: relative; background: var(--c-void);
  border-top: 1px solid var(--c-border); overflow: hidden;
}
.footer-ghost {
  font-family: var(--font-serif); font-size: clamp(5rem,15vw,14rem);
  font-weight: 300; color: rgba(30,30,26,0.2);
  text-align: center; line-height: 1; padding-top: 3rem;
  user-select: none; pointer-events: none; letter-spacing: -0.03em;
}
.footer-main {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem; padding: 3rem 5%; max-width: 1200px; margin: 0 auto;
}
.footer-brand { max-width: 320px; }
.footer-brand img { height: 32px; width: auto; margin-bottom: 1rem; }
.footer-tagline {
  font-family: var(--font-sans); font-size: 0.6rem;
  letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--c-amber); margin-bottom: 1.25rem;
}
.footer-bio { font-size: 0.88rem; color: var(--c-muted); line-height: 1.75; margin-bottom: 1.5rem; }
.footer-social { display: flex; gap: 1.25rem; }
.footer-social a {
  font-family: var(--font-sans); font-size: 0.7rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--c-muted); text-decoration: none; transition: color 0.3s;
}
.footer-social a:hover { color: var(--c-amber); }
.footer-main nav h3 {
  font-family: var(--font-sans); font-size: 0.65rem;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--c-amber); font-weight: 500; margin-bottom: 1.5rem;
}
.footer-main nav ul { list-style: none; margin: 0; padding: 0; }
.footer-main nav li { margin-bottom: 0.75rem; }
.footer-main nav a {
  font-size: 0.85rem; color: var(--c-muted);
  text-decoration: none; transition: color 0.3s;
}
.footer-main nav a:hover { color: var(--c-white); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.5rem 5% 2rem; max-width: 1200px; margin: 0 auto;
  border-top: 1px solid var(--c-border);
  font-family: var(--font-sans); font-size: 0.75rem;
  color: rgba(122,120,112,0.5);
}

/* ── SHARED SECTION STYLES ── */
.section-eyebrow {
  font-family: var(--font-sans); font-size: 0.62rem;
  letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--c-amber); margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-serif); font-size: var(--text-3xl);
  font-weight: 300; color: var(--c-heading); line-height: 1.1;
  margin-bottom: 2.5rem;
}

/* ── POST CARD (shared) ── */
.post-card { display: flex; flex-direction: column; text-decoration: none; }
.post-card__image {
  position: relative; border-radius: var(--radius-md);
  overflow: hidden; aspect-ratio: 3/2; margin-bottom: 1.25rem; display: block;
}
.post-card__image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo), filter 0.6s;
}
.post-card:hover .post-card__image img {
  transform: scale(1.04); filter: brightness(1.05);
}
/* Ambient glow on card hover */
.post-card__image::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(9,9,10,0.4) 0%, transparent 60%);
  transition: opacity 0.3s; opacity: 1;
}
.post-card:hover .post-card__image::after { opacity: 0.6; }

.post-card__category {
  font-family: var(--font-sans); font-size: 0.58rem;
  letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--c-amber); margin-bottom: 0.6rem; display: block;
}
.post-card__title {
  font-family: var(--font-serif); font-size: var(--text-lg);
  font-weight: 300; color: var(--c-heading); line-height: 1.25;
  margin-bottom: 0.75rem; transition: color 0.3s;
}
.post-card__title a { color: inherit; text-decoration: none; }
.post-card:hover .post-card__title,
.post-card:hover .post-card__title a { color: var(--c-amber); }
.post-card__excerpt {
  font-size: var(--text-sm); color: var(--c-muted);
  line-height: 1.7; margin-bottom: 0.75rem; flex: 1;
}
.post-card__meta {
  font-family: var(--font-sans); font-size: 0.7rem;
  color: rgba(122,120,112,0.6); display: flex; align-items: center; gap: 0.5rem;
}
.post-card__meta .sep { opacity: 0.4; }

/* ── BREADCRUMBS ── */
.breadcrumbs { max-width: 1200px; margin: 0 auto; padding: calc(68px + 2rem) 5% 0; }
.breadcrumbs ol {
  display: flex; align-items: center; gap: 0.5rem; list-style: none;
  font-family: var(--font-sans); font-size: 0.7rem; color: var(--c-muted);
}
.breadcrumbs li:not(:last-child)::after { content: '\2192'; margin-left: 0.5rem; opacity: 0.4; }
.breadcrumbs a { color: var(--c-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--c-amber); }

/* ── PAGINATION ── */
.pagination { max-width: 1200px; margin: 0 auto; padding: 0 5% 5rem; text-align: center; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; gap: 0.5rem; list-style: none;
}
.pagination a, .pagination span {
  font-family: var(--font-sans); font-size: 0.78rem;
  color: var(--c-muted); text-decoration: none;
  padding: 0.6rem 1rem; border: 1px solid var(--c-border-mid);
  border-radius: var(--radius-md); transition: all 0.3s;
}
.pagination a:hover { border-color: var(--c-amber); color: var(--c-white); }
.pagination .current { background: var(--c-amber); color: var(--c-void); border-color: var(--c-amber); }

/* ── NO RESULTS ── */
.no-results {
  text-align: center; padding: calc(68px + 6rem) 5% 6rem;
  max-width: 600px; margin: 0 auto;
}
.no-results__title {
  font-family: var(--font-serif); font-size: var(--text-2xl);
  font-weight: 300; color: var(--c-heading); margin-bottom: 1rem;
}
.no-results__text { color: var(--c-muted); line-height: 1.8; margin-bottom: 2rem; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .nav-primary { display: none; }
  .btn-search { display: none; }
  .btn-menu { display: flex; }
}
@media (max-width: 767px) {
  .header-inner { padding: 0 1.25rem; }
  .site-logo img { height: 26px; }
  .footer-ghost { font-size: clamp(3rem,12vw,5rem); }
  .footer-main { grid-template-columns: 1fr; gap: 2.5rem; padding: 2rem 1.25rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; padding: 1.5rem 1.25rem 2rem; }
  .breadcrumbs { padding: calc(68px + 1rem) 1.25rem 0; }
  .container { padding: 0 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* WP overrides */
.wp-block-image { margin: 0; }
.wp-block-separator { border-color: var(--c-border); }
.wp-block-quote { border-left-color: var(--c-amber); }
