/*
Theme Name: HC Victoria
Theme URI: https://hcvictoria.ro
Author: VKTech
Author URI: https://vktech.ro
Description: Custom theme for HC Victoria Bucuresti handball club, developed by VKTech (https://vktech.ro). Monochrome base with red accent, built from scratch for news, team roster, and club pages.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hcvictoria
Tags: news, sports, one-column, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, translation-ready
*/

/* ═══════════════════════════════════════════════════════════
   TOKENS
   ═══════════════════════════════════════════════════════════ */
:root {
  --red: #C8102E;
  --red-dark: #9E0C24;
  --black: #0a0a0a;
  --gray-900: #1f2937;
  --gray-700: #374151;
  --gray-600: #6b7280;
  --gray-400: #9ca3af;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --white: #ffffff;
  --off-white: #fafafa;

  --radius: 4px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.04), 0 1px 3px rgba(0,0,0,.06);
  --shadow: 0 4px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.14);

  --container: 1280px;
  --gutter: 24px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Oswald', 'Inter', sans-serif;
  --transition: 200ms cubic-bezier(.4,0,.2,1);
}

/* ═══════════════════════════════════════════════════════════
   RESET
   ═══════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  overflow-x: clip;
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-900);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, video, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .5em;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
  color: var(--black);
  text-transform: uppercase;
}

/* Body copy inside posts stays in Inter for readability */
.entry-content h2, .entry-content h3, .entry-content h4, .entry-content h5, .entry-content h6 {
  text-transform: none;
  letter-spacing: -.01em;
}

p { margin: 0 0 1em; }

a { color: var(--red); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--red-dark); }

button { font-family: inherit; cursor: pointer; border: 0; background: none; }

ul, ol { margin: 0 0 1em; padding-left: 1.25em; }

hr { border: 0; border-top: 1px solid var(--gray-200); margin: 2em 0; }

/* Accessibility */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  word-wrap: normal !important;
}
.skip-link {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus {
  left: 16px; top: 16px;
  width: auto; height: auto;
  background: var(--black); color: var(--white);
  padding: 12px 20px; z-index: 9999;
  border-radius: var(--radius);
}

/* ═══════════════════════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════════════════════ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
}

.site { min-height: 100vh; display: flex; flex-direction: column; }
.site-content { flex: 1; padding: 48px 0; }

/* Full-bleed templates: the first section (hero, page-header) sits flush against the header. */
.home .site-content,
body.archive .site-content,
body.search .site-content,
body.error404 .site-content,
.page-template-page-echipa .site-content {
  padding-top: 0;
}
.home .site-content { padding-bottom: 0; }

/* ═══════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  background: var(--black);
  color: var(--white);
  border-bottom: 3px solid var(--red);
}

/* Offset the sticky header when the WP admin bar is present */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}
/* ≤600px WP core makes the admin bar `position: absolute` (it scrolls away),
   so we must not reserve 46px for it — otherwise an empty strip stays at the
   top of the page once the admin bar scrolls out. */
@media screen and (max-width: 600px) {
  .admin-bar .site-header { top: 0; }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

.site-branding { display: flex; align-items: center; gap: 14px; min-width: 0; }

.site-branding .custom-logo-link,
.site-branding img.custom-logo {
  display: block;
  line-height: 0;
}
.site-branding img.custom-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  background: var(--white);
  padding: 5px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--red);
}

.site-title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  margin: 0;
  color: var(--white);
  letter-spacing: .02em;
  line-height: 1;
  text-transform: uppercase;
}

.site-title a { color: var(--white); }
.site-title a:hover { color: var(--white); }

.site-description {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--gray-400);
  margin-top: 2px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* Primary nav */
.primary-nav { display: flex; }
.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.primary-nav li { position: relative; }
.primary-nav a {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: .05em;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}
.primary-nav > ul > li > a:hover,
.primary-nav > ul > li.current-menu-item > a,
.primary-nav > ul > li.current_page_item > a,
.primary-nav > ul > li.current-menu-ancestor > a {
  background: var(--red);
  color: var(--white);
}

/* Dropdowns */
.primary-nav ul ul {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--black);
  padding: 6px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  flex-direction: column;
  display: none;
  border-top: 2px solid var(--red);
}
.primary-nav li:hover > ul,
.primary-nav li:focus-within > ul { display: flex; }

.primary-nav ul ul a {
  text-transform: none;
  letter-spacing: 0;
  padding: 10px 14px;
}

/* Chevron toggle is only for mobile — hover opens submenus on desktop */
.nav-sub-toggle { display: none; }

.menu-toggle {
  display: none;
  color: var(--white);
  padding: 8px;
  font-size: 22px;
  line-height: 1;
}

.menu-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: transform var(--transition), opacity var(--transition);
}
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1023px) {
  /* Hamburger visible on mobile */
  .menu-toggle { display: inline-block; padding: 10px; }

  /* Header tweaks */
  .header-inner { padding: 14px 0; gap: 12px; }
  .site-header .container { padding-left: 24px; padding-right: 24px; }
  .site-branding { gap: 10px; min-width: 0; flex: 1 1 auto; }
  .site-branding img.custom-logo { width: 44px; height: 44px; padding: 5px; }
  .site-title { font-size: 22px !important; }
  .site-description { font-size: 11px; }

  /* Lock body scroll when menu is open */
  body.menu-open { overflow: hidden; }

  /* ═══════════════════════════════════════════════════════════
     MOBILE MENU — "match sheet" aesthetic
     Numbered lineup, red-stripe hover accent, + / × cross toggle,
     staggered slide-in. Pure CSS (counter + nth-child delays).
     ═══════════════════════════════════════════════════════════ */

  /* Menu hidden by default */
  .primary-nav { display: none; }

  /* Drawer */
  .primary-nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    inset: 0;
    background:
      radial-gradient(ellipse 80% 60% at 100% 0%, rgba(200,16,46,.10), transparent 65%),
      linear-gradient(180deg, #0a0a0a 0%, #050507 100%);
    z-index: 9999;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0;
    animation: hcv-nav-in 340ms cubic-bezier(.2, .8, .2, 1);
  }
  .admin-bar .primary-nav.is-open { top: 46px; }

  @keyframes hcv-nav-in {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* Eyebrow label — subtle brand anchor at top-left */
  .primary-nav.is-open::before {
    content: 'MENIU';
    position: absolute;
    top: 28px;
    left: 24px;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    color: var(--red);
    letter-spacing: .45em;
    line-height: 1;
    pointer-events: none;
    z-index: 2;
  }

  /* Close × — minimal, editorial */
  .nav-close {
    position: absolute;
    top: 14px;
    right: 18px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--white);
    border: 0;
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color var(--transition), transform 320ms cubic-bezier(.68,-.4,.27,1.4);
    z-index: 2;
  }
  .nav-close:hover, .nav-close:focus {
    color: var(--red);
    transform: rotate(180deg);
    outline: 0;
  }

  /* Lists */
  .primary-nav.is-open ul,
  .primary-nav.is-open ul ul {
    display: block;
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: left;
  }
  .primary-nav.is-open > ul {
    width: 100%;
    padding: 78px 0 60px;
    position: relative;
    z-index: 1;
  }
  .primary-nav li { margin: 0; display: block; }

  /* Top-level row */
  .primary-nav.is-open > ul > li {
    border-bottom: 1px solid rgba(255,255,255,.04);
    opacity: 0;
    transform: translateX(-16px);
    animation: hcv-item-in 420ms cubic-bezier(.2, .8, .2, 1) both;
  }
  @keyframes hcv-item-in {
    to { opacity: 1; transform: translateX(0); }
  }
  /* Staggered entrance — 50ms step, starts 180ms after drawer opens */
  .primary-nav.is-open > ul > li:nth-child(1)  { animation-delay: 180ms; }
  .primary-nav.is-open > ul > li:nth-child(2)  { animation-delay: 230ms; }
  .primary-nav.is-open > ul > li:nth-child(3)  { animation-delay: 280ms; }
  .primary-nav.is-open > ul > li:nth-child(4)  { animation-delay: 330ms; }
  .primary-nav.is-open > ul > li:nth-child(5)  { animation-delay: 380ms; }
  .primary-nav.is-open > ul > li:nth-child(6)  { animation-delay: 430ms; }
  .primary-nav.is-open > ul > li:nth-child(7)  { animation-delay: 480ms; }
  .primary-nav.is-open > ul > li:nth-child(8)  { animation-delay: 530ms; }
  .primary-nav.is-open > ul > li:nth-child(9)  { animation-delay: 580ms; }
  .primary-nav.is-open > ul > li:nth-child(10) { animation-delay: 630ms; }
  .primary-nav.is-open > ul > li:nth-child(n+11) { animation-delay: 680ms; }

  @media (prefers-reduced-motion: reduce) {
    .primary-nav.is-open,
    .primary-nav.is-open > ul > li {
      animation: none !important;
      opacity: 1 !important;
      transform: none !important;
    }
  }

  /* Parent row: anchor + toggle button on one line */
  .primary-nav.is-open > ul > li.menu-item-has-children {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
  }

  /* Top-level anchor */
  .primary-nav.is-open > ul > li > a {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    padding: 22px 24px;
    background: transparent !important;
    color: var(--white);
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 0;
    transition: color var(--transition), padding-left 260ms cubic-bezier(.2,.8,.2,1);
  }
  /* Red accent stripe — grows vertically on hover/active */
  .primary-nav.is-open > ul > li > a::after {
    content: '';
    position: absolute;
    left: 0;
    top: 14%;
    bottom: 14%;
    width: 3px;
    background: var(--red);
    transform: scaleY(0);
    transform-origin: center;
    transition: transform 280ms cubic-bezier(.2, .8, .2, 1);
  }
  .primary-nav.is-open > ul > li > a:hover,
  .primary-nav.is-open > ul > li > a:focus {
    color: var(--white) !important;
    background: transparent !important;
    padding-left: 34px;
    outline: 0;
  }
  .primary-nav.is-open > ul > li > a:hover::after,
  .primary-nav.is-open > ul > li > a:focus::after { transform: scaleY(1); }

  .primary-nav.is-open > ul > li.current-menu-item > a,
  .primary-nav.is-open > ul > li.current_page_item > a {
    color: var(--red) !important;
    padding-left: 34px;
  }
  .primary-nav.is-open > ul > li.current-menu-item > a::after,
  .primary-nav.is-open > ul > li.current_page_item > a::after { transform: scaleY(1); }

  /* Ancestors kept neutral, just a faint stripe */
  .primary-nav.is-open > ul > li.current-menu-ancestor > a {
    color: var(--white) !important;
  }
  .primary-nav.is-open > ul > li.current-menu-ancestor > a::after {
    transform: scaleY(.5);
    background: rgba(200,16,46,.4);
  }

  /* Submenu toggle — + that rotates into × */
  .nav-sub-toggle {
    position: relative;
    flex: 0 0 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    color: inherit;
    padding: 0;
    cursor: pointer;
  }
  .nav-sub-toggle:focus { outline: 0; }
  .nav-sub-toggle::before,
  .nav-sub-toggle::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 2px;
    background: rgba(255,255,255,.7);
    transition: transform 340ms cubic-bezier(.68,-.4,.27,1.4), background 220ms;
  }
  .nav-sub-toggle::after { transform: rotate(90deg); }
  .nav-sub-toggle:hover::before,
  .nav-sub-toggle:hover::after,
  .nav-sub-toggle:focus::before,
  .nav-sub-toggle:focus::after { background: var(--red); }
  .menu-item-has-children.is-open > .nav-sub-toggle::before {
    transform: rotate(45deg);
    background: var(--red);
  }
  .menu-item-has-children.is-open > .nav-sub-toggle::after {
    transform: rotate(-45deg);
    background: var(--red);
  }

  /* Submenu list — indented with red vertical rule */
  .primary-nav.is-open ul ul {
    display: none !important;
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    min-width: 0 !important;
    padding: 6px 0 18px !important;
    margin: 0 24px 0 52px !important;
    border-left: 1px solid rgba(200,16,46,.3) !important;
    flex-basis: 100%;
  }
  .primary-nav.is-open li.is-open > ul { display: block !important; }

  .primary-nav.is-open ul ul a {
    display: block;
    position: relative;
    padding: 10px 16px;
    background: transparent !important;
    color: rgba(255,255,255,.65);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    text-decoration: none;
    transition: color var(--transition), padding-left var(--transition);
  }
  .primary-nav.is-open ul ul a:hover,
  .primary-nav.is-open ul ul a:focus {
    color: var(--white) !important;
    padding-left: 22px;
    outline: 0;
  }
  .primary-nav.is-open ul ul li.current-menu-item > a {
    color: var(--red) !important;
  }
}

@media (max-width: 480px) {
  .header-inner { padding: 12px 0; }
  .site-branding img.custom-logo { width: 40px; height: 40px; }
  .site-title { font-size: 19px !important; }
  .site-description { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   HERO (homepage)
   ═══════════════════════════════════════════════════════════ */
.hero {
  background:
    linear-gradient(135deg, rgba(10,10,10,.92), rgba(10,10,10,.72)),
    linear-gradient(135deg, var(--black), var(--gray-900));
  color: var(--white);
  padding: 56px 0 60px;
  position: relative;
  overflow: hidden;
}
@media (min-width: 900px) {
  .hero { padding: 88px 0 96px; }
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; right: -10%;
  width: 50%; height: 100%;
  background: var(--red);
  transform: skewX(-18deg);
  opacity: .08;
}
.hero-inner { position: relative; z-index: 1; max-width: 1280px; }
.hero-text { min-width: 0; flex: 1 1 auto; }

/* Text-right, logo-left-of-right layout at all sizes when logo exists */
.hero.hero-has-logo .hero-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}

/* Mobile: stack vertically and reorder → kicker, title, tagline, logo, button.
   `display: contents` on .hero-text lets its children participate directly in
   the .hero-inner flex layout so we can `order:` them around the logo. No
   flex gap — let each element's natural margin do the spacing. */
@media (max-width: 768px) {
  .hero.hero-has-logo .hero-inner {
    flex-direction: column;
    align-items: center;
    gap: 0;
    text-align: center;
  }
  .hero.hero-has-logo .hero-text { display: contents; }

  .hero.hero-has-logo .hero-kicker    { order: 1; }
  .hero.hero-has-logo h1              { order: 2; width: 100%; }
  .hero.hero-has-logo .hero-tagline   { order: 3; width: 100%; margin-bottom: 0; }
  .hero.hero-has-logo .hero-logo-wrap { order: 4; margin-top: 32px; }
  .hero.hero-has-logo .hero-ctas      { order: 5; width: 100%; margin-top: 24px; }

  .hero-logo { width: 140px; max-height: 160px; }
}
.hero-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.hero-logo {
  display: block;
  width: 110px;
  height: auto;
  max-height: 140px;
  object-fit: contain;
}

@media (min-width: 900px) {
  .hero.hero-has-logo .hero-inner {
    max-width: 1280px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
  }
  .hero.hero-has-logo .hero-text {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 560px;  /* constrain so title wraps to ~2 lines */
  }
  .hero-logo-wrap {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
  }
  .hero-logo {
    display: block;
    width: 260px;
    height: auto;
    max-height: 320px;
    object-fit: contain;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
  }
}

@media (min-width: 1200px) {
  .hero-logo { width: 300px; max-height: 360px; }
}
.hero-kicker {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  border-radius: 2px;
  margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(24px, 4.5vw, 56px);
  color: var(--white);
  margin: 0 0 12px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: .01em;
  text-transform: uppercase;
}
.hero-tagline {
  font-size: clamp(16px, 1.8vw, 20px);
  color: rgba(255,255,255,.82);
  margin: 0 0 32px;
  font-weight: 400;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 36px;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
  line-height: 1;
}
.btn:hover { background: var(--red-dark); color: var(--white); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
  padding: 16px 34px;
}
.btn-outline:hover { background: var(--white); color: var(--black); }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}
@media (max-width: 600px) {
  .hero-ctas { flex-direction: column; align-items: center; }
  .hero-ctas .btn {
    width: auto;
    padding: 16px 28px;
    font-size: 14px;
    letter-spacing: .04em;
  }
}
@media (max-width: 400px) {
  .hero-ctas .btn {
    padding: 14px 22px;
    font-size: 13px;
    letter-spacing: .03em;
  }
}

/* ═══════════════════════════════════════════════════════════
   SECTION HEADERS
   ═══════════════════════════════════════════════════════════ */
.section { padding: 56px 0; }
.section-sm { padding: 32px 0; }

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-200);
}
.section-title {
  font-size: clamp(22px, 2.5vw, 28px);
  margin: 0;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.01em;
  position: relative;
  padding-left: 14px;
}
.section-title::before {
  content: '';
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 4px;
  background: var(--red);
  border-radius: 2px;
}
.section-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.section-link:hover { color: var(--red); }

/* ═══════════════════════════════════════════════════════════
   FEATURED + GRID LAYOUT (front page)
   ═══════════════════════════════════════════════════════════ */
.featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 900px) {
  .featured-grid {
    grid-template-columns: 1.4fr 1fr;
  }
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 600px) {
  .news-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px) {
  .news-grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* ═══════════════════════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════════════════════ */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--gray-100);
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms cubic-bezier(.4,0,.2,1);
}
.card:hover .card-image img { transform: scale(1.04); }

.card-cat {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--red);
  color: var(--white);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  border-radius: 2px;
  z-index: 2;
}
.card-cat:hover { background: var(--red-dark); color: var(--white); }

.card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: 18px;
  line-height: 1.3;
  margin: 0 0 10px;
  font-weight: 700;
}
.card-title a { color: var(--black); }
.card-title a:hover { color: var(--red); }

.card-excerpt {
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 14px;
  flex: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--gray-400);
  font-weight: 500;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--gray-100);
}
.card-meta time { color: var(--gray-400); }

/* Featured card variant */
.card-featured .card-image { aspect-ratio: 4 / 3; }
.card-featured .card-title { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.15; }
.card-featured .card-body { padding: 28px 30px 30px; }
.card-featured .card-excerpt { font-size: 15px; }

/* ═══════════════════════════════════════════════════════════
   CATEGORY STRIPS
   ═══════════════════════════════════════════════════════════ */
.cat-strip + .cat-strip { margin-top: 48px; }

/* ═══════════════════════════════════════════════════════════
   SINGLE POST
   ═══════════════════════════════════════════════════════════ */
.single-main { display: grid; gap: 48px; }
@media (min-width: 960px) {
  .single-main { grid-template-columns: 1fr 320px; align-items: start; }
}

.post-hero {
  margin-bottom: 32px;
}
.post-hero .card-cat {
  position: static;
  display: inline-block;
  margin-bottom: 14px;
}
.post-title {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  margin: 0 0 16px;
  font-weight: 800;
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--gray-600);
  margin-bottom: 24px;
}
.post-meta .sep { color: var(--gray-200); }

.post-featured-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
  aspect-ratio: 16 / 9;
}
.post-featured-image img { width: 100%; height: 100%; object-fit: cover; }

.entry-content {
  font-size: 17px;
  line-height: 1.75;
  color: var(--gray-900);
}
.entry-content p { margin: 0 0 1.25em; }
.entry-content h2, .entry-content h3, .entry-content h4 { margin-top: 1.5em; }
.entry-content h2 { font-size: 28px; }
.entry-content h3 { font-size: 22px; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: var(--radius-lg);
  margin: 1.5em 0;
}
/* Classic-editor wraps images in <a href="...jpg"> (inline by default, which
   hugs the image's natural 695px). Force wrappers to shrink on mobile. */
.entry-content figure,
.entry-content .wp-caption {
  max-width: 100% !important;
  box-sizing: border-box;
}
/* Anchor wrappers around images need inline-block so max-width takes effect.
   Inline elements ignore max-width; this turns them into atomic boxes that
   respect their container's width. */
.entry-content a {
  max-width: 100%;
}
.entry-content a[href*=".jpg"],
.entry-content a[href*=".jpeg"],
.entry-content a[href*=".png"],
.entry-content a[href*=".gif"],
.entry-content a[href*=".webp"],
.entry-content a[href*=".avif"] {
  display: inline-block;
  max-width: 100% !important;
  vertical-align: top;
}
.entry-content table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
/* Hard cap — nothing in post content is allowed to exceed its container */
.entry-content {
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.entry-content > *,
.entry-content p,
.entry-content div,
.entry-content iframe,
.entry-content embed,
.entry-content object,
.entry-content video {
  max-width: 100% !important;
}
.entry-content blockquote {
  margin: 1.5em 0;
  padding: 16px 24px;
  border-left: 4px solid var(--red);
  background: var(--gray-100);
  font-style: italic;
  font-size: 18px;
  color: var(--gray-700);
}
.entry-content ul, .entry-content ol { margin: 1em 0 1em 1em; }
.entry-content li { margin-bottom: .5em; }
.entry-content iframe { max-width: 100%; border-radius: var(--radius-lg); }

/* Share */
.post-share {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 40px 0;
  padding: 20px 24px;
  background: var(--gray-100);
  border-radius: var(--radius-lg);
}
.post-share-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gray-700);
  margin-right: 4px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--white);
  color: var(--gray-700);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.share-btn:hover { background: var(--red); color: var(--white); transform: translateY(-2px); }

/* Related */
.related-posts {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--gray-200);
}

/* Prev/next article pager */
.post-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 48px 0 8px;
}
@media (max-width: 700px) {
  .post-pager { grid-template-columns: 1fr; }
}

.post-pager-link {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--gray-900);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  min-height: 96px;
}
.post-pager-link:hover {
  border-color: var(--red);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: var(--gray-900);
}

.post-pager-next {
  grid-template-columns: 1fr auto;
  text-align: right;
}

.post-pager-thumb {
  display: block;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--gray-100);
}
.post-pager-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-pager-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.post-pager-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--red);
}

.post-pager-title {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--black);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-transform: none;
  letter-spacing: 0;
}

.post-pager-link:hover .post-pager-title { color: var(--red); }

/* ═══════════════════════════════════════════════════════════
   SIDEBAR / WIDGETS
   ═══════════════════════════════════════════════════════════ */
.sidebar { display: flex; flex-direction: column; gap: 24px; }

.widget {
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.widget-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--red);
  font-weight: 700;
  color: var(--black);
}
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li {
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 14px;
  display: block;
}
.widget li:last-child { border-bottom: 0; }
.widget a { color: var(--gray-900); }
.widget a:hover { color: var(--red); }

/* Nested categories (subcategories) */
.widget ul.children,
.widget li ul {
  display: block;
  margin: 10px 0 4px 0;
  padding: 6px 0 6px 14px;
  border-left: 2px solid var(--gray-200);
}
.widget ul.children li,
.widget li ul li {
  padding: 5px 0;
  font-size: 13px;
  border-bottom: 0;
  position: relative;
}
.widget ul.children li::before,
.widget li ul li::before {
  content: '›';
  margin-right: 6px;
  color: var(--gray-400);
  font-weight: 700;
}
.widget ul.children a,
.widget li ul a {
  color: var(--gray-600);
}
.widget ul.children a:hover,
.widget li ul a:hover {
  color: var(--red);
}

/* Footer widget nested categories (darker background) */
.footer-col .widget ul.children,
.footer-col .widget li ul {
  border-left-color: rgba(255,255,255,.12);
}
.footer-col .widget ul.children a,
.footer-col .widget li ul a {
  color: rgba(255,255,255,.55);
}
.footer-col .widget ul.children li::before,
.footer-col .widget li ul li::before {
  color: rgba(255,255,255,.3);
}

/* ═══════════════════════════════════════════════════════════
   ARCHIVE / PAGES
   ═══════════════════════════════════════════════════════════ */
.page-header {
  background: var(--black);
  color: var(--white);
  padding: 64px 0 56px;
  margin-bottom: 0;
  border-bottom: 3px solid var(--red);
}
.page-header h1 {
  color: var(--white);
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
}
.page-header .breadcrumb {
  font-size: 13px;
  color: var(--gray-400);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.page-header .breadcrumb a { color: var(--gray-400); }
.page-header .breadcrumb a:hover { color: var(--red); }

.archive-layout { display: grid; gap: 40px; }
@media (min-width: 960px) {
  .archive-layout { grid-template-columns: 1fr 320px; }
}

/* Pagination */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 48px;
  flex-wrap: wrap;
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px; height: 40px;
  padding: 0 12px;
  background: var(--white);
  color: var(--gray-900);
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.pagination a:hover { background: var(--red); color: var(--white); }
.pagination .current { background: var(--black); color: var(--white); }

/* Static page */
.page-content {
  background: var(--white);
  padding: 48px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  max-width: 880px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .page-content { padding: 28px 22px; }
}
.page-content h1 { font-size: clamp(26px, 3.5vw, 38px); }

/* ═══════════════════════════════════════════════════════════
   TEAM / PLAYER ROSTER
   ═══════════════════════════════════════════════════════════ */
.roster-intro {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
  color: var(--gray-600);
  font-size: 17px;
}

.roster-position-block + .roster-position-block { margin-top: 56px; }
.roster-position-title {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin: 0 0 20px;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  gap: 12px;
}
.roster-position-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}

.roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.player-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.player-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.player-image {
  aspect-ratio: 4 / 5;
  background: var(--gray-100);
  position: relative;
  overflow: hidden;
}
.player-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter var(--transition);
}
.player-card:hover .player-image img { filter: grayscale(0); }

.player-number {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--red);
  color: var(--white);
  font-weight: 800;
  font-size: 20px;
  padding: 4px 12px;
  border-radius: var(--radius);
  line-height: 1;
  min-width: 38px;
  text-align: center;
  box-shadow: var(--shadow);
}
.player-no-image {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  font-weight: 800;
  color: var(--gray-200);
  background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
}

.player-body { padding: 16px 18px 18px; }
.player-name {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  color: var(--black);
}
.player-position {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gray-600);
  margin-top: 2px;
  font-weight: 500;
}
.player-year {
  font-size: 12px;
  color: var(--gray-600);
  margin-top: 6px;
  font-weight: 400;
}

/* ═══════════════════════════════════════════════════════════
   SEARCH
   ═══════════════════════════════════════════════════════════ */
.search-form {
  display: flex;
  gap: 8px;
}
.search-field {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font: inherit;
  font-size: 15px;
  background: var(--white);
}
.search-field:focus {
  outline: 2px solid var(--red);
  outline-offset: -1px;
  border-color: var(--red);
}
.search-submit {
  padding: 12px 20px;
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .04em;
  transition: background var(--transition);
}
.search-submit:hover { background: var(--red); }

/* ═══════════════════════════════════════════════════════════
   404
   ═══════════════════════════════════════════════════════════ */
.error-404 {
  text-align: center;
  padding: 80px 0;
}
.error-404 .code {
  font-size: clamp(80px, 18vw, 180px);
  font-weight: 800;
  line-height: 1;
  color: var(--red);
  margin: 0 0 16px;
  letter-spacing: -.05em;
}
.error-404 h1 {
  font-size: clamp(22px, 3vw, 32px);
  margin: 0 0 12px;
}
.error-404 p { color: var(--gray-600); margin-bottom: 32px; }

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--black);
  color: rgba(255,255,255,.7);
  padding: 64px 0 0;
  margin-top: 80px;
  border-top: 4px solid var(--red);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: 48px;
}
@media (min-width: 600px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .footer-top { grid-template-columns: repeat(4, 1fr); }
}

.footer-col .widget {
  background: transparent;
  padding: 0;
  box-shadow: none;
}
.footer-col .widget-title {
  color: var(--white);
  border-bottom-color: var(--red);
}
.footer-col a { color: rgba(255,255,255,.7); }
.footer-col a:hover { color: var(--red); }
.footer-col li { border-bottom-color: rgba(255,255,255,.08); }
.footer-col,
.footer-col p { color: rgba(255,255,255,.65); font-size: 14px; }

/* Hide the footer nav menu entirely — duplicates the header menu */
.footer-nav { display: none !important; }

/* Center-align the whole footer content */
.footer-top {
  text-align: center;
  justify-items: center;
}
.footer-col {
  text-align: center;
  max-width: 320px;
  margin: 0 auto;
}
.footer-col .footer-social,
.footer-col .footer-about { justify-content: center; }
.footer-col .widget-title,
.footer-col .widget li { text-align: center; }
.footer-col .widget li { border-bottom: 0; }
.footer-col .widget ul { padding-left: 0; }
.footer-col .widget ul ul { border-left: 0; padding-left: 0; }
.footer-col .widget li::before { display: none !important; }
.footer-social { justify-content: center; }

.footer-bottom {
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  text-align: center;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,.5);
}
.footer-copyright { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; justify-content: center; }
.footer-credit {
  font-size: 12px;
  color: rgba(255,255,255,.35);
  padding-left: 16px;
  border-left: 1px solid rgba(255,255,255,.1);
}
.footer-credit a { color: rgba(255,255,255,.6); }
.footer-credit a:hover { color: var(--red); }
@media (max-width: 600px) {
  .footer-credit { border-left: 0; padding-left: 0; }
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-nav a {
  color: rgba(255,255,255,.5);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 500;
}

.footer-about {
  color: rgba(255,255,255,.7);
  font-size: 14px;
  line-height: 1.6;
}
.footer-about a { color: rgba(255,255,255,.95); text-decoration: underline; }
.footer-about a:hover { color: var(--red); }

.footer-social {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}
.footer-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  background: rgba(255,255,255,.08);
  color: var(--white);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.footer-social-btn:hover {
  background: rgba(255,255,255,.14);
  color: var(--red);
  transform: translateY(-2px) scale(1.08);
}

.header-social {
  display: flex;
  gap: 6px;
  margin: 0;
  align-items: center;
}
.header-social .footer-social-btn {
  width: 34px;
  height: 34px;
  font-size: 12px;
  background: rgba(255,255,255,.08);
}
@media (max-width: 1023px) {
  .header-social { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════════════════════════ */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }

/* Gutenberg alignment */
.alignleft,
.entry-content img.alignleft { float: left; margin: .5em 1.5em 1em 0; }
.alignright,
.entry-content img.alignright { float: right; margin: .5em 0 1em 1.5em; }
.aligncenter,
.entry-content img.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
  clear: both;
}

/* Video/iframe embeds — fill content width at 16:9 aspect. Classic-editor's
   inline width/height attributes are bypassed via width:100% + aspect-ratio. */
.entry-content iframe,
.entry-content object,
.entry-content embed,
.entry-content video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 1.5em auto;
  aspect-ratio: 16 / 9;
}

/* Auto-embed YouTube / Vimeo wrapper — keep responsive 16:9 and centered */
.entry-content .wp-block-embed,
.entry-content .wp-embedded-content,
.entry-content .embed-youtube,
.entry-content .fluid-width-video-wrapper {
  max-width: 100%;
  margin: 1.5em auto;
}
.entry-content .wp-block-embed__wrapper iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
}
.alignwide { margin-left: calc(50% - 50vw + 24px); margin-right: calc(50% - 50vw + 24px); max-width: 100vw; }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }

.sticky, .bypostauthor, .gallery-caption, .wp-caption-text { /* WP required classes */ }

.wp-caption {
  max-width: 100%;
  margin-bottom: 1em;
}
.wp-caption-text {
  font-size: 13px;
  color: var(--gray-600);
  text-align: center;
  margin-top: 8px;
}

/* ═══════════════════════════════════════════════════════════
   NATIVE [gallery] SHORTCODE
   ═══════════════════════════════════════════════════════════ */
.entry-content .gallery {
  display: grid;
  grid-template-columns: repeat(var(--gallery-cols, 3), 1fr);
  gap: 8px;
  margin: 2em 0;
  padding: 0;
}
.entry-content .gallery-columns-1 { --gallery-cols: 1; }
.entry-content .gallery-columns-2 { --gallery-cols: 2; }
.entry-content .gallery-columns-3 { --gallery-cols: 3; }
.entry-content .gallery-columns-4 { --gallery-cols: 4; }
.entry-content .gallery-columns-5 { --gallery-cols: 5; }
.entry-content .gallery-columns-6 { --gallery-cols: 6; }
.entry-content .gallery-columns-7 { --gallery-cols: 7; }
.entry-content .gallery-columns-8 { --gallery-cols: 8; }
.entry-content .gallery-columns-9 { --gallery-cols: 9; }

@media (max-width: 768px) {
  .entry-content .gallery-columns-4,
  .entry-content .gallery-columns-5,
  .entry-content .gallery-columns-6,
  .entry-content .gallery-columns-7,
  .entry-content .gallery-columns-8,
  .entry-content .gallery-columns-9 {
    --gallery-cols: 3;
  }
}
@media (max-width: 480px) {
  .entry-content .gallery { --gallery-cols: 2 !important; }
}

.entry-content .gallery-item {
  margin: 0 !important;
  padding: 0;
  width: auto !important;
  max-width: none !important;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--gray-100);
  position: relative;
}

.entry-content .gallery-item .gallery-icon {
  margin: 0;
  padding: 0;
  line-height: 0;
}

.entry-content .gallery-item a,
.entry-content .gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
}

.entry-content .gallery-item img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin: 0 !important;
  border-radius: 0 !important;
  border: 0 !important;
  box-shadow: none;
  transition: transform 350ms cubic-bezier(.4,0,.2,1), filter 250ms;
}
.entry-content .gallery-item:hover img {
  transform: scale(1.04);
  filter: brightness(1.05);
}

.entry-content .gallery-caption {
  display: block;
  padding: 8px 10px;
  font-size: 12px;
  color: var(--gray-600);
  background: var(--white);
  text-align: center;
  margin: 0;
}

/* Also cover block gallery just in case */
.entry-content .wp-block-gallery {
  margin: 2em 0;
}
.entry-content .wp-block-gallery .wp-block-image img {
  border-radius: var(--radius);
}

/* ═══════════════════════════════════════════════════════════
   CONTACT FORM 7
   ═══════════════════════════════════════════════════════════ */
.wpcf7 {
  margin: 1em 0;
}

.wpcf7-form p {
  margin: 0 0 20px;
}

.wpcf7-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--gray-700);
  margin-bottom: 8px;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="number"],
.wpcf7-form input[type="date"],
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--gray-900);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="url"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form input[type="number"]:focus,
.wpcf7-form input[type="date"]:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
  outline: 0;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(200,16,46,.12);
}

.wpcf7-form textarea {
  min-height: 160px;
  resize: vertical;
}

.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder {
  color: var(--gray-400);
}

.wpcf7-form input[type="checkbox"],
.wpcf7-form input[type="radio"] {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  accent-color: var(--red);
  vertical-align: middle;
}

.wpcf7-form .wpcf7-list-item {
  display: inline-flex;
  align-items: center;
  margin: 0 20px 8px 0;
}
.wpcf7-form .wpcf7-list-item-label {
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  font-size: 15px;
  color: var(--gray-900);
}

/* Submit button */
.wpcf7-form input[type="submit"],
.wpcf7-form button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font);
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .06em;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  line-height: 1;
}
.wpcf7-form input[type="submit"]:hover,
.wpcf7-form button[type="submit"]:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}
.wpcf7-form input[type="submit"]:disabled,
.wpcf7-form button[type="submit"]:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}

/* Required asterisks */
.wpcf7-form .wpcf7-form-control-wrap {
  display: block;
}

/* Response / validation messages */
.wpcf7 .wpcf7-response-output {
  margin: 24px 0 0;
  padding: 14px 18px;
  border: 0;
  border-left: 4px solid var(--gray-400);
  background: var(--gray-100);
  font-size: 14px;
  color: var(--gray-900);
  border-radius: var(--radius);
}
.wpcf7 form.sent .wpcf7-response-output {
  border-left-color: #16a34a;
  background: #ecfdf5;
  color: #065f46;
}
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output {
  border-left-color: var(--red);
  background: #fef2f2;
  color: #991b1b;
}

.wpcf7-not-valid-tip {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--red);
  font-weight: 500;
}

.wpcf7-not-valid {
  border-color: var(--red) !important;
  box-shadow: 0 0 0 3px rgba(200,16,46,.12) !important;
}

/* Spinner */
.wpcf7-spinner {
  display: inline-block;
  vertical-align: middle;
  margin-left: 10px;
}

/* Two-column layout helper — useful when the form is wrapped in a grid shortcode */
.wpcf7-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) {
  .wpcf7-form .row { grid-template-columns: 1fr; gap: 0; }
}

/* ═══════════════════════════════════════════════════════════
   GALLERY LIGHTBOX
   ═══════════════════════════════════════════════════════════ */
body.hcv-lightbox-open { overflow: hidden; }

.hcv-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(6, 6, 8, .94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 24px;
  opacity: 0;
  transition: opacity 220ms cubic-bezier(.4, 0, .2, 1);
}
.hcv-lightbox.is-open { display: flex; opacity: 1; }

.hcv-lightbox-figure {
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  animation: hcv-lightbox-in 260ms cubic-bezier(.2, .8, .2, 1);
}
@keyframes hcv-lightbox-in {
  from { opacity: 0; transform: scale(.96); }
  to   { opacity: 1; transform: scale(1); }
}

.hcv-lightbox-img {
  display: block;
  max-width: min(92vw, 1400px);
  max-height: calc(100vh - 120px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}

.hcv-lightbox-caption {
  max-width: min(92vw, 800px);
  text-align: center;
  color: rgba(255, 255, 255, .82);
  font-size: 13px;
  line-height: 1.5;
  font-family: var(--font);
}

.hcv-lightbox-close,
.hcv-lightbox-prev,
.hcv-lightbox-next {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: rgba(255, 255, 255, .85);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  z-index: 2;
}

.hcv-lightbox-close {
  top: 20px;
  right: 20px;
  width: 46px;
  height: 46px;
  font-size: 18px;
}
.hcv-lightbox-close:hover,
.hcv-lightbox-close:focus {
  color: var(--white);
  background: var(--red);
  border-color: var(--red);
  transform: rotate(90deg);
  outline: 0;
}

.hcv-lightbox-prev,
.hcv-lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 30px;
  font-family: var(--font-display);
  font-weight: 300;
}
.hcv-lightbox-prev { left: 20px; }
.hcv-lightbox-next { right: 20px; }
.hcv-lightbox-prev:hover,
.hcv-lightbox-prev:focus,
.hcv-lightbox-next:hover,
.hcv-lightbox-next:focus {
  color: var(--white);
  background: var(--red);
  border-color: var(--red);
  outline: 0;
}
.hcv-lightbox-prev:hover,
.hcv-lightbox-prev:focus { transform: translateY(-50%) translateX(-4px); }
.hcv-lightbox-next:hover,
.hcv-lightbox-next:focus { transform: translateY(-50%) translateX(4px); }

.hcv-lightbox-counter {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .55);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .25em;
  pointer-events: none;
}

/* Gallery block tweaks so captions + cursor read as interactive */
.entry-content .wp-block-gallery img,
.entry-content .gallery img,
.entry-content .wp-block-image img {
  transition: opacity var(--transition);
}
.entry-content .wp-block-gallery img:hover,
.entry-content .gallery img:hover,
.entry-content .wp-block-image img:hover {
  opacity: .88;
}

@media (max-width: 600px) {
  .hcv-lightbox { padding: 12px; }
  .hcv-lightbox-prev,
  .hcv-lightbox-next { width: 44px; height: 44px; font-size: 24px; }
  .hcv-lightbox-prev { left: 10px; }
  .hcv-lightbox-next { right: 10px; }
  .hcv-lightbox-close { top: 12px; right: 12px; width: 40px; height: 40px; }
  .hcv-lightbox-img { max-height: calc(100vh - 100px); }
}

@media (prefers-reduced-motion: reduce) {
  .hcv-lightbox,
  .hcv-lightbox-figure,
  .hcv-lightbox-close,
  .hcv-lightbox-prev,
  .hcv-lightbox-next { transition: none; animation: none; }
}

/* ═══════════════════════════════════════════════════════════
   GALLERY SLIDER  ([gallery type="slider"])
   ═══════════════════════════════════════════════════════════ */
.hcv-slider {
  margin: 28px 0;
  position: relative;
  max-width: 100%;
  overflow: hidden;
}

.hcv-slider-viewport {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #0a0a0a;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .1);
}
/* Aspect-ratio via padding-top trick — universally supported, no flex quirks */
.hcv-slider-viewport::before {
  content: '';
  display: block;
  padding-top: 62.5%; /* 16 : 10 */
}

.hcv-slider-track {
  position: absolute;
  inset: 0;
  display: flex;
  transition: transform 480ms cubic-bezier(.2, .8, .2, 1);
  will-change: transform;
  touch-action: pan-y;
}

.hcv-slider-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  margin: 0;
  position: relative;
  overflow: hidden;
}
.entry-content .hcv-slider-slide img.hcv-slider-img,
.hcv-slider-slide img.hcv-slider-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
  border-radius: 0;
  user-select: none;
  cursor: zoom-in;
  -webkit-user-drag: none;
}

.hcv-slider-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 28px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .78));
  color: var(--white);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0;
  z-index: 1;
}

/* Prev/next arrows — overlay-style, tuck to edges */
.hcv-slider-prev,
.hcv-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 10, .55);
  color: var(--white);
  border: 0;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background var(--transition), transform var(--transition), color var(--transition);
  z-index: 2;
}
.hcv-slider-prev { left: 14px; }
.hcv-slider-next { right: 14px; }
.hcv-slider-prev:hover,
.hcv-slider-prev:focus,
.hcv-slider-next:hover,
.hcv-slider-next:focus {
  background: var(--red);
  outline: 0;
}
.hcv-slider-prev:hover  { transform: translateY(-50%) translateX(-3px); }
.hcv-slider-next:hover  { transform: translateY(-50%) translateX(3px); }
.hcv-slider-prev[disabled],
.hcv-slider-next[disabled] { opacity: .35; cursor: default; transform: translateY(-50%); }
.hcv-slider-prev[disabled]:hover,
.hcv-slider-next[disabled]:hover { background: rgba(10, 10, 10, .55); }

/* Counter pill (e.g., "3 / 12") */
.hcv-slider-counter {
  position: absolute;
  top: 14px;
  right: 16px;
  padding: 5px 10px;
  background: rgba(10, 10, 10, .55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2em;
  border-radius: 100px;
  z-index: 2;
}

/* Dots */
.hcv-slider-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
  margin-bottom: 18px;
  max-width: 100%;
}
.hcv-slider-dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 50%;
  background: rgba(10, 10, 10, .2);
  padding: 0;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.hcv-slider-dot:hover { background: rgba(10, 10, 10, .45); }
.hcv-slider-dot.is-active {
  background: var(--red);
  transform: scale(1.35);
}
.hcv-slider-dot:focus { outline: 2px solid var(--red); outline-offset: 2px; }

@media (max-width: 600px) {
  .hcv-slider-prev,
  .hcv-slider-next { width: 38px; height: 38px; font-size: 22px; }
  .hcv-slider-prev { left: 10px; }
  .hcv-slider-next { right: 10px; }
  .hcv-slider-caption { padding: 14px 18px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .hcv-slider-track { transition: none; }
}

/* reCAPTCHA v3 badge — move from the default bottom-right to bottom-left.
   Google renders the G-logo on the widget's LEFT, so when we pin it at
   `left: 0` we must clip the right side (text) to mimic the collapsed look.
   Expand on hover/focus to reveal the full widget. */
.grecaptcha-badge {
  left: 0 !important;
  right: auto !important;
  clip-path: inset(0 190px 0 0) !important;
  transition: clip-path 300ms cubic-bezier(.4, 0, .2, 1) !important;
  box-shadow: 0 0 5px rgba(0, 0, 0, .15) !important;
}
.grecaptcha-badge:hover,
.grecaptcha-badge:focus-within {
  clip-path: inset(0 0 0 0) !important;
}

/* ═══════════════════════════════════════════════════════════
   BACK-TO-TOP BUTTON (mobile only)
   ═══════════════════════════════════════════════════════════ */
.hcv-to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 44px;
  height: 44px;
  display: none; /* hidden on desktop — enabled via media query below */
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: var(--white);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 8px 24px rgba(200, 16, 46, .35), 0 2px 6px rgba(0, 0, 0, .25);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 220ms var(--transition), transform 220ms var(--transition), background var(--transition);
  z-index: 9998;
}
.hcv-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.hcv-to-top:hover,
.hcv-to-top:focus {
  background: var(--red-dark);
  outline: 0;
}
.hcv-to-top-icon {
  display: block;
  width: 10px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: 3px; /* optical centering — arrow visually sits higher than its box */
}

@media (max-width: 1023px) {
  .hcv-to-top { display: flex; }
}
