/*
Theme Name: The Aerial Movement
Theme URI: https://theaerialmovement.com
Author: The Aerial Movement
Author URI: https://theaerialmovement.com
Description: Custom theme for The Aerial Movement - aerial acrobatics and calisthenics academy. Features WooCommerce and Polylang support.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aerial-movement
Tags: custom-theme, woocommerce, bilingual, aerial, fitness
WooCommerce: true
*/

/* =============================================
   CSS CUSTOM PROPERTIES
   ============================================= */
:root {
  --color-black:     #0a0a0a;
  --color-dark:      #111111;
  --color-mid:       #1a1a1a;
  --color-grey-dark: #2a2a2a;
  --color-grey:      #555555;
  --color-grey-light:#888888;
  --color-off-white: #f0ede8;
  --color-white:     #ffffff;
  --color-red:       #d42b2b;
  --color-red-dark:  #a81f1f;
  --color-red-light: #e84040;

  --font-display:  'Barlow Condensed', sans-serif;
  --font-body:     'DM Sans', sans-serif;
  --font-accent:   'Barlow', sans-serif;

  --transition-fast:   150ms ease;
  --transition-base:   300ms ease;
  --transition-slow:   600ms ease;

  --header-height: 80px;
  --max-width:     1280px;
  --section-pad:   clamp(60px, 8vw, 120px);
  --gutter:        clamp(20px, 4vw, 60px);

  --shadow-sm:  0 2px 8px rgba(0,0,0,0.3);
  --shadow-md:  0 8px 32px rgba(0,0,0,0.4);
  --shadow-lg:  0 20px 60px rgba(0,0,0,0.6);
  --shadow-red: 0 4px 24px rgba(212,43,43,0.3);
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-black);
  color: var(--color-off-white);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition-fast); }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

h1 { font-size: clamp(2.8rem, 7vw, 6rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: clamp(1.1rem, 1.8vw, 1.4rem); }

p { font-size: clamp(0.9rem, 1.1vw, 1rem); max-width: 65ch; }

.section-label {
  font-family: var(--font-accent);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-red);
}

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

.section { padding: var(--section-pad) 0; }
.section--dark { background: var(--color-dark); }
.section--darker { background: var(--color-black); }
.section--mid { background: var(--color-mid); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

.text-center { text-align: center; }
.text-red { color: var(--color-red); }
.text-white { color: var(--color-white); }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all var(--transition-base);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-red);
  color: var(--color-white);
  border-color: var(--color-red);
}
.btn-primary:hover {
  background: var(--color-red-dark);
  border-color: var(--color-red-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-red);
  color: var(--color-white);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}
.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-black);
}

.btn-outline-red {
  background: transparent;
  color: var(--color-red);
  border-color: var(--color-red);
}
.btn-outline-red:hover {
  background: var(--color-red);
  color: var(--color-white);
  box-shadow: var(--shadow-red);
}

/* =============================================
   HEADER & NAVIGATION
   ============================================= */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: all var(--transition-base);
}

#site-header.scrolled {
  background: rgba(10, 10, 10, 0.98);
  box-shadow: var(--shadow-md);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

/* Logo */
.site-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.site-logo img {
  height: 48px;
  width: auto;
}
.site-logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-white);
}
.site-logo-text span { color: var(--color-red); }

/* Primary Navigation */
#primary-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

#primary-nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
}

#primary-nav a {
  display: block;
  padding: 8px 14px;
  font-family: var(--font-accent);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-grey-light);
  transition: color var(--transition-fast);
  position: relative;
}

#primary-nav a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--color-red);
  transform: scaleX(0);
  transition: transform var(--transition-base);
  transform-origin: left;
}

#primary-nav a:hover,
#primary-nav .current-menu-item > a,
#primary-nav .current-page-ancestor > a {
  color: var(--color-white);
}

#primary-nav a:hover::after,
#primary-nav .current-menu-item > a::after {
  transform: scaleX(1);
}

/* Dropdown */
#primary-nav .menu-item-has-children {
  position: relative;
}
#primary-nav .menu-item-has-children > a::before {
  content: '▾';
  margin-left: 4px;
  font-size: 0.6rem;
}
#primary-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--color-dark);
  border: 1px solid rgba(255,255,255,0.08);
  border-top: 2px solid var(--color-red);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-base);
  flex-direction: column;
  gap: 0;
  display: flex;
}
#primary-nav .menu-item-has-children:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#primary-nav .sub-menu a {
  padding: 10px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.7rem;
}
#primary-nav .sub-menu a::after { display: none; }

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
}
.lang-switcher a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 20px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-grey-light);
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
}
.lang-switcher a.active,
.lang-switcher a:hover {
  color: var(--color-white);
  border-bottom-color: var(--color-red);
}

/* Cart Icon */
.cart-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  color: var(--color-grey-light);
  transition: color var(--transition-fast);
  padding: 4px;
}
.cart-icon-wrap:hover { color: var(--color-white); }
.cart-icon-wrap svg { width: 22px; height: 22px; }
.cart-count {
  position: absolute;
  top: -4px;
  right: -6px;
  background: var(--color-red);
  color: var(--color-white);
  font-size: 0.55rem;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--color-white);
  transition: all var(--transition-base);
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-black);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img,
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.45) contrast(1.1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10,10,10,0.85) 0%,
    rgba(10,10,10,0.3) 50%,
    rgba(212,43,43,0.1) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 var(--gutter);
  animation: heroReveal 1.2s ease both;
}

@keyframes heroReveal {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: 32px;
}

.hero-tagline em {
  font-style: normal;
  color: var(--color-red);
}

.hero-sub {
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  color: rgba(240,237,232,0.75);
  letter-spacing: 0.05em;
  margin-bottom: 48px;
  font-family: var(--font-accent);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.4);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: var(--font-accent);
  animation: scrollBounce 2s ease-in-out infinite;
}

.hero-scroll::after {
  content: '';
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* =============================================
   FEATURES / PILLARS GRID
   ============================================= */
.pillars {
  padding: 80px 0;
  background: var(--color-dark);
  position: relative;
}

.pillars::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, transparent, var(--color-red), transparent);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
}

.pillar-item {
  background: var(--color-dark);
  padding: 40px 24px;
  text-align: center;
  transition: background var(--transition-base);
  cursor: pointer;
}

.pillar-item:hover {
  background: var(--color-mid);
}

.pillar-icon {
  width: 52px;
  height: 52px;
  background: var(--color-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.pillar-item:hover .pillar-icon {
  transform: scale(1.1);
  box-shadow: var(--shadow-red);
}

.pillar-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-white);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pillar-item h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-white);
  margin-bottom: 12px;
}

.pillar-item p {
  font-size: 0.8rem;
  color: var(--color-grey-light);
  line-height: 1.55;
  max-width: 100%;
}

/* =============================================
   ABOUT / PROJECT SECTION
   ============================================= */
.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
}

.about-media {
  position: relative;
  overflow: hidden;
}

.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.about-section:hover .about-media img {
  transform: scale(1.03);
}

.about-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 60%, var(--color-dark));
}

.about-content {
  background: var(--color-dark);
  padding: clamp(40px, 6vw, 100px) clamp(30px, 5vw, 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-content .section-label { margin-bottom: 16px; }
.about-content h2 { color: var(--color-white); margin-bottom: 24px; }
.about-content p { color: var(--color-grey-light); margin-bottom: 20px; }
.about-content .btn { margin-top: 16px; }

/* =============================================
   INTRO TEXT SECTION
   ============================================= */
.intro-text-section {
  padding: 0 0 var(--section-pad);
  background: var(--color-black);
}

.intro-text-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: center;
}

.intro-text-image img {
  width: 100%;
  height: auto;
  display: block;
}

.intro-text-section p {
  max-width: 100%;
  margin: 0 0 1.5rem;
  color: var(--color-grey);
  font-size: 1.05rem;
  line-height: 1.8;
  text-align: left;
}

.intro-text-section p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .intro-text-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .intro-text-image img {
    max-width: 220px;
    margin: 0 auto;
  }
}

/* =============================================
   VIDEO SECTION
   ============================================= */
.video-section {
  padding: var(--section-pad) 0;
  background: var(--color-black);
}

.video-wrapper {
  position: relative;
  aspect-ratio: 16/9;
  max-width: 960px;
  margin: 0 auto;
  overflow: hidden;
  background: var(--color-mid);
}

.video-wrapper video,
.video-wrapper iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  cursor: pointer;
  transition: background var(--transition-base);
}
.video-play-btn:hover { background: rgba(0,0,0,0.1); }

.play-circle {
  width: 80px;
  height: 80px;
  background: var(--color-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.video-play-btn:hover .play-circle {
  transform: scale(1.1);
  box-shadow: var(--shadow-red);
}
.play-circle svg { width: 32px; height: 32px; fill: white; margin-left: 4px; }

/* =============================================
   BOOK / PRODUCT HIGHLIGHT
   ============================================= */
.book-section {
  background: var(--color-black);
  padding: var(--section-pad) 0;
}

.book-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.book-content .section-label { margin-bottom: 12px; }
.book-content h2 { color: var(--color-white); margin-bottom: 20px; font-size: clamp(1.8rem, 3vw, 2.8rem); }
.book-content p { color: var(--color-grey-light); margin-bottom: 30px; }

.book-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 32px;
}

.book-meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--color-grey-light);
}
.book-meta-item svg { width: 16px; height: 16px; stroke: var(--color-red); fill: none; stroke-width: 2; }

.book-visual {
  position: relative;
}
.book-visual img {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  transform: perspective(1000px) rotateY(-8deg) rotateX(3deg);
  transition: transform var(--transition-slow);
  box-shadow: var(--shadow-lg);
}
.book-visual:hover img {
  transform: perspective(1000px) rotateY(-2deg) rotateX(1deg);
}

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonials-section {
  padding: var(--section-pad) 0;
  background: var(--color-dark);
  position: relative;
  overflow: hidden;
}

.testimonials-section::before {
  content: '"';
  position: absolute;
  top: -40px;
  left: -20px;
  font-size: 400px;
  font-family: var(--font-display);
  color: rgba(212,43,43,0.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: rgba(255,255,255,0.04);
  margin-top: 48px;
}

.testimonial-item {
  background: var(--color-dark);
  padding: 40px 36px;
  position: relative;
  transition: background var(--transition-base);
}
.testimonial-item:hover { background: var(--color-mid); }

.testimonial-item::before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 30px;
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--color-red);
  opacity: 0.5;
  line-height: 1;
}

.testimonial-text {
  font-style: italic;
  color: var(--color-off-white);
  line-height: 1.7;
  margin-bottom: 20px;
  font-size: 0.95rem;
  padding-top: 20px;
}

.testimonial-author strong {
  display: block;
  font-family: var(--font-accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-red);
}

.testimonial-author span {
  font-size: 0.7rem;
  color: var(--color-grey-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* =============================================
   COLLABORATORS
   ============================================= */
.collaborators-section {
  padding: 80px 0;
  background: var(--color-black);
  text-align: center;
}

.collaborators-title {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--color-white);
  margin-bottom: 60px;
}

.collaborators-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.collaborator-logo {
  opacity: 0.45;
  filter: brightness(0) invert(1);
  transition: opacity var(--transition-base), transform var(--transition-base);
  max-height: 60px;
}
.collaborator-logo:hover {
  opacity: 0.85;
  transform: scale(1.05);
}

/* =============================================
   WOOCOMMERCE STYLES
   ============================================= */
.woocommerce-page .entry-content,
.woocommerce-page .woocommerce {
  color: var(--color-off-white);
}

/* Products Grid */
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  float: none !important;
  width: 100% !important;
}

.woocommerce ul.products li.product {
  background: var(--color-dark);
  border: 1px solid rgba(255,255,255,0.06);
  transition: all var(--transition-base);
  margin: 0 !important;
  float: none !important;
  width: 100% !important;
}
.woocommerce ul.products li.product:hover {
  border-color: var(--color-red);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.woocommerce ul.products li.product a img {
  margin: 0;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-white);
  padding: 20px 20px 4px;
}

.woocommerce ul.products li.product .price {
  color: var(--color-red);
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 1rem;
  padding: 0 20px 16px;
}

.woocommerce ul.products li.product .button {
  margin: 0 20px 20px;
  background: var(--color-red) !important;
  color: var(--color-white) !important;
  border: 2px solid var(--color-red) !important;
  font-family: var(--font-accent) !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  padding: 12px 24px !important;
  transition: all var(--transition-base) !important;
  border-radius: 0 !important;
}
.woocommerce ul.products li.product .button:hover {
  background: transparent !important;
  color: var(--color-red) !important;
}

/* Single Product */
.woocommerce div.product div.images img {
  border: 1px solid rgba(255,255,255,0.06);
}

.woocommerce div.product .product_title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-white);
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--color-red) !important;
  font-size: 1.6rem;
  font-weight: 700;
}

.woocommerce .single_add_to_cart_button.button {
  background: var(--color-red) !important;
  color: white !important;
  font-family: var(--font-accent) !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  padding: 16px 40px !important;
  border-radius: 0 !important;
  transition: all var(--transition-base) !important;
  border: 2px solid var(--color-red) !important;
}
.woocommerce .single_add_to_cart_button.button:hover {
  background: transparent !important;
  color: var(--color-red) !important;
}

/* Cart */
.woocommerce-cart table.cart,
.woocommerce-checkout table.cart {
  border-collapse: collapse;
  width: 100%;
}
.woocommerce-cart .cart_totals,
.woocommerce-checkout #order_review {
  background: var(--color-dark);
  padding: 30px;
  border: 1px solid rgba(255,255,255,0.06);
}

/* Checkout Form */
.woocommerce-checkout .woocommerce-input-wrapper input,
.woocommerce-checkout .woocommerce-input-wrapper select,
.woocommerce-checkout .woocommerce-input-wrapper textarea {
  background: var(--color-mid) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  color: var(--color-off-white) !important;
  padding: 12px 16px !important;
  border-radius: 0 !important;
  transition: border-color var(--transition-fast) !important;
  font-family: var(--font-body) !important;
}
.woocommerce-checkout .woocommerce-input-wrapper input:focus {
  border-color: var(--color-red) !important;
  outline: none !important;
}

/* WooCommerce Notices */
.woocommerce-message,
.woocommerce-info {
  background: var(--color-dark) !important;
  border-top-color: var(--color-red) !important;
  color: var(--color-off-white) !important;
}

/* =============================================
   FOOTER
   ============================================= */
#site-footer {
  background: var(--color-black);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-top {
  padding: 60px 0 50px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.footer-brand .site-logo-text {
  font-size: 1.3rem;
  display: block;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 38px;
  height: 38px;
  background: var(--color-mid);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-grey-light);
  transition: all var(--transition-base);
}
.social-link:hover {
  background: var(--color-red);
  border-color: var(--color-red);
  color: var(--color-white);
}
.social-link svg { width: 16px; height: 16px; fill: currentColor; }

/* Social icons with red filled circle */
.social-link--circle {
  background: var(--color-red);
  border-color: var(--color-red);
  border-radius: 50%;
  color: var(--color-white);
}
.social-link--circle:hover {
  background: var(--color-white);
  border-color: var(--color-white);
  color: var(--color-red);
}

.footer-col h4,
.footer-col-heading {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-white);
  margin-bottom: 20px;
  font-family: var(--font-accent);
  text-transform: none;
}
.footer-col-heading::first-letter {
  color: var(--color-red);
}

.footer-col ul li + li { margin-top: 10px; }
.footer-col ul a {
  font-size: 0.85rem;
  color: var(--color-grey-light);
  transition: color var(--transition-fast);
}
.footer-col ul a:hover { color: var(--color-red); }

.footer-bottom {
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--color-grey);
  font-family: var(--font-accent);
}

.footer-legal {
  display: flex;
  gap: 24px;
}
.footer-legal a {
  font-size: 0.75rem;
  color: var(--color-grey);
  font-family: var(--font-accent);
  transition: color var(--transition-fast);
}
.footer-legal a:hover { color: var(--color-red); }

/* =============================================
   PAGE CONTENT AREA
   ============================================= */
.site-main {
  min-height: 70vh;
  padding-top: var(--header-height);
}

.entry-header {
  padding: 80px 0 60px;
  background: var(--color-dark);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-align: center;
}

.entry-header h1 {
  color: var(--color-white);
  font-size: clamp(2rem, 5vw, 4rem);
}

.entry-content {
  padding: var(--section-pad) 0;
  color: var(--color-off-white);
}

.entry-content h2,
.entry-content h3 { color: var(--color-white); margin: 2em 0 0.75em; }
.entry-content p { margin-bottom: 1.2em; color: var(--color-grey-light); }
.entry-content a { color: var(--color-red); }
.entry-content a:hover { text-decoration: underline; }
.entry-content ul, .entry-content ol { padding-left: 1.5em; margin-bottom: 1.2em; color: var(--color-grey-light); }
.entry-content ul li { list-style: disc; }
.entry-content ol li { list-style: decimal; }
.entry-content img { margin: 1.5em 0; }

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-section { padding: var(--section-pad) 0; }

.contact-form-wrap {
  max-width: 640px;
  margin: 0 auto;
}

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-grey-light);
  margin-bottom: 8px;
  font-family: var(--font-accent);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--color-mid);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--color-off-white);
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-red);
}
.form-group textarea { min-height: 140px; resize: vertical; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1100px) {
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
  .woocommerce ul.products { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 900px) {
  :root { --header-height: 68px; }

  #primary-nav { display: none; }
  #primary-nav.open {
    display: flex;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-black);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 999;
    overflow-y: auto;
  }
  #primary-nav.open ul { flex-direction: column; align-items: center; gap: 4px; }
  #primary-nav.open a { font-size: 1.2rem; padding: 14px 20px; }
  #primary-nav.open .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    border: none;
    border-top: none;
    background: transparent;
    min-width: auto;
    text-align: center;
  }
  #primary-nav.open .menu-item-has-children.open .sub-menu { display: flex; }

  .menu-toggle { display: flex; }

  .about-section { grid-template-columns: 1fr; }
  .about-media { height: 300px; }

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

  .book-inner { grid-template-columns: 1fr; gap: 40px; }
  .book-visual { order: -1; }

  .testimonials-grid { grid-template-columns: 1fr; }

  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 640px) {
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .collaborators-logos { gap: 30px; }
  .hero-tagline { font-size: clamp(2.2rem, 10vw, 3.5rem); }
  .woocommerce ul.products { grid-template-columns: 1fr !important; }
}

/* =============================================
   ANIMATIONS
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* =============================================
   ACCESSIBILITY
   ============================================= */
:focus-visible {
  outline: 2px solid var(--color-red);
  outline-offset: 3px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--color-red);
  color: white;
  padding: 8px 16px;
  z-index: 9999;
  font-size: 0.85rem;
  transition: top var(--transition-fast);
}
.skip-link:focus { top: 0; }
