/*
Theme Name: Astra Child - House of Reformers
Theme URI: https://houseofreformers.nl
Description: Custom child theme for House of Reformers - Premium Pilates Studio
Author: House of Reformers
Author URI: https://houseofreformers.nl
Template: astra
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
*/

/* ========================================
   HOUSE OF REFORMERS - Premium Brand Styling
   ======================================== */

/* === CSS VARIABLES === */
:root {
  --color-black: #0e0e0e;
  --color-white: #ffffff;
  --color-cream: #f5f0eb;
  --color-gold: #d4af37;
}

/* === GLOBAL STYLES === */
body {
  margin: 0 !important;
  padding: 0 !important;
  background: #f9f6f1 !important;
  color: #937a5c !important;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

#content {
  margin: 0 !important;
  padding: 0 !important;
}

.entry-header,
.page .entry-title {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  font-weight: 900;
}

.hero-title {
  font-size: clamp(3.5rem, 10vw, 7rem) !important;
  line-height: 0.9 !important;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem) !important;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.text-body {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
}

/* === HEADER === */
.site-header {
  background: #f9f4f0 !important;
  border-bottom: 2px solid #937a5c !important;
  box-shadow: 0 2px 8px rgba(147, 122, 92, 0.1);
}

.site-title a, .site-title {
  color: #937a5c !important;
  font-weight: 900 !important;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

/* TWO-ROW HEADER LAYOUT: Logo on top (centered), Menu on bottom (centered) */

/* Main header container - force two-row layout with stronger selectors */
.ast-desktop .ast-main-header-wrap .ast-builder-grid-row,
#ast-desktop-header .ast-main-header-wrap .ast-builder-grid-row,
.site-header .ast-builder-grid-row {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  width: 100% !important;
  grid-template-columns: none !important;
  grid-template-rows: none !important;
}

/* Override Astra's grid layout completely */
.ast-desktop .ast-builder-grid-row-container,
#ast-desktop-header .ast-builder-grid-row-container {
  display: flex !important;
  flex-direction: column !important;
}

/* TOP ROW: Logo section - centered, no padding for bigger logo */
.ast-desktop .site-header-above-section-left,
#ast-desktop-header .site-header-above-section-left,
#ast-desktop-header .site-header-primary-section-left,
.site-header-above-section-left {
  grid-row: unset !important;
  grid-column: unset !important;
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 0 !important;
  background: #f9f4f0 !important;
  border-bottom: 1px solid rgba(147, 122, 92, 0.15) !important;
  order: 1 !important;
}

/* BOTTOM ROW: Menu section - ACTUALLY CENTERED THIS TIME */
.ast-desktop .site-header-above-section-right,
#ast-desktop-header .site-header-above-section-right,
#ast-desktop-header .site-header-primary-section-right,
.site-header-above-section-right {
  grid-row: unset !important;
  grid-column: unset !important;
  width: 100% !important;
  display: block !important;
  padding: 10px 0 15px 0 !important;
  background: #f9f4f0 !important;
  order: 2 !important;
  text-align: center !important;
}

/* Navigation - inline-block and centered with text-align */
#ast-desktop-header .ast-builder-menu-1,
.ast-desktop .ast-builder-menu-1,
.site-header .ast-builder-menu-1,
#ast-desktop-header .site-header-above-section-right .ast-builder-menu-1,
.ast-desktop .site-header-above-section-right .ast-builder-menu-1 {
  display: inline-block !important;
  margin: 0 auto !important;
  float: none !important;
  width: auto !important;
  justify-content: center !important;
}

/* Menu UL - inline-block */
#ast-desktop-header .main-header-menu,
.ast-desktop .main-header-menu,
.site-header .main-header-menu,
#ast-desktop-header .ast-builder-menu-1 .main-header-menu,
.ast-desktop .ast-builder-menu-1 .main-header-menu {
  display: inline-block !important;
  margin: 0 !important;
  float: none !important;
  text-align: center !important;
  width: auto !important;
}

/* Logo styling - centered in top row */
#ast-desktop-header .site-branding,
#ast-desktop-header .custom-logo-link {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 0 !important;
}

#ast-desktop-header .custom-logo {
  max-height: 120px !important;
  width: auto !important;
  height: auto !important;
  display: block !important;
}

/* Hide site title text - show only logo */
#ast-desktop-header .site-title,
#ast-desktop-header .ast-site-title-wrap,
#ast-desktop-header .site-description {
  display: none !important;
}

/* Menu styling - centered in bottom row */
#ast-desktop-header .ast-builder-menu-1,
#ast-desktop-header .ast-builder-menu-1 .main-header-menu,
.ast-desktop .main-navigation,
.ast-desktop .main-header-menu,
#ast-desktop-header .main-navigation ul,
#ast-desktop-header nav {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 0 auto !important;
  width: 100% !important;
  text-align: center !important;
}

/* Menu items styling */
#ast-desktop-header .main-header-menu .menu-item,
.ast-desktop .main-header-menu > li {
  margin: 0 15px !important;
  display: inline-flex !important;
}

/* Navigation links styling */
#ast-desktop-header .main-header-menu a,
.ast-desktop .main-navigation a {
  text-align: center !important;
}

/* Mobile Menu Hamburger Fix */
.main-header-menu-toggle .ast-mobile-svg,
.ast-mobile-menu-trigger-minimal .ast-mobile-svg,
.menu-toggle .ast-mobile-svg {
  fill: var(--color-black) !important;
  color: var(--color-black) !important;
}

.main-header-menu-toggle,
.ast-mobile-menu-trigger-minimal {
  color: var(--color-black) !important;
}

/* === DESKTOP HEADER BACKGROUND === */
.site-header,
.main-header-bar,
header.site-header,
#ast-desktop-header {
  background-color: #f9f4f0 !important;
  background: #f9f4f0 !important;
}

/* === HERO SECTION === */
.hero-section .wp-block-cover__background {
  background: linear-gradient(135deg, #937a5c 0%, #6b5842 100%) !important;
}

.hero-section h1 {
  color: #f9f6f1 !important;
  text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.hero-section p,
.hero-section .has-white-color,
.entry-content .hero-section p,
.wp-block-cover p.has-white-color {
  color: #ffffff !important;
  opacity: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-section .wp-block-button__link {
  background: #f9f6f1 !important;
  color: #937a5c !important;
  border: 3px solid #f9f6f1 !important;
  font-weight: 900 !important;
  transition: all 0.3s ease !important;
}

.hero-section .wp-block-button__link:hover {
  background: transparent !important;
  color: #f9f6f1 !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 24px rgba(0,0,0,0.3) !important;
}

/* === BUTTONS === */
.wp-block-button__link {
  border: 1px solid var(--color-white) !important;
  background: transparent !important;
  color: var(--color-white) !important;
  border-radius: 0px !important;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600 !important;
  padding: 16px 48px !important;
  transition: all 0.3s ease !important;
}

.wp-block-button__link:hover {
  background: var(--color-white) !important;
  color: var(--color-black) !important;
  transform: translateY(-2px);
}

.is-style-dark-btn .wp-block-button__link {
  border-color: var(--color-black) !important;
  color: var(--color-black) !important;
}

.is-style-dark-btn .wp-block-button__link:hover {
  background: var(--color-black) !important;
  color: var(--color-white) !important;
}

/* === CONTENT SECTIONS === */
.wp-block-group.has-background {
  background: #f9f6f1 !important;
  border-top: 3px solid #937a5c;
  border-bottom: 3px solid #937a5c;
}

.wp-block-group h2,
.wp-block-group h3 {
  color: #937a5c !important;
}

.wp-block-group p {
  color: #937a5c !important;
  line-height: 1.8;
}

/* === CTA SECTIONS === */
.wp-block-cover:not(.hero-section) .wp-block-cover__background {
  background: linear-gradient(135deg, #c4a882 0%, #937a5c 100%) !important;
}

.wp-block-cover:not(.hero-section) h2,
.wp-block-cover:not(.hero-section) p {
  color: #f9f6f1 !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.wp-block-cover:not(.hero-section) .wp-block-button__link {
  background: #2d2419 !important;
  color: #f9f6f1 !important;
  border: 3px solid #2d2419 !important;
  font-weight: 900 !important;
  transition: all 0.3s ease !important;
}

.wp-block-cover:not(.hero-section) .wp-block-button__link:hover {
  background: transparent !important;
  border-color: #f9f6f1 !important;
  transform: translateY(-3px) scale(1.05) !important;
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-up {
  animation: fadeInUp 1s ease-out forwards;
}

/* === MARQUEE (Home Page) === */
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  padding: 25px 0;
  background: var(--color-white);
  border-bottom: 1px solid #eee;
}

.marquee-text {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px #e0e0e0;
  display: inline-block;
  animation: scroll 20s linear infinite;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* === LESSEN PAGE STYLES === */
.class-card {
  padding: 40px;
  background: white;
  border: 1px solid #eee;
  height: 100%;
  transition: all 0.3s ease;
}

.class-card:hover {
  border-color: var(--color-black);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.info-box {
  background: var(--color-cream);
  padding: 40px;
  border-left: 4px solid var(--color-black);
}

/* === DE REFORMER PAGE STYLES === */
.feature-card {
  padding: 2rem;
  background: white;
  border: 1px solid #eee;
  height: 100%;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-black);
}

.has-white-color .wp-block-button__link {
  border-color: white !important;
  color: white !important;
}

.has-white-color .wp-block-button__link:hover {
  background: white !important;
  color: black !important;
}

/* === CONTACT PAGE STYLES === */
.contact-info p {
  font-size: 18px;
  margin-bottom: 15px;
  line-height: 1.6;
}

.faq-item {
  margin-bottom: 30px;
  border-bottom: 1px solid #eee;
  padding-bottom: 20px;
}

.faq-question {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 10px;
  cursor: pointer;
}

.faq-answer {
  color: #666;
  line-height: 1.6;
}

/* === CUSTOM FOOTER === */
.site-footer {
  display: none !important;
}

.custom-footer {
  background-color: var(--color-black);
  color: var(--color-white);
  padding: 80px 20px 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand h4 {
  font-size: 24px;
  margin-bottom: 20px;
}

.footer-description {
  color: var(--color-white) !important;
  line-height: 1.6;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #999;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--color-white);
}

.footer-socials {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.social-icon {
  width: 24px;
  height: 24px;
  fill: var(--color-white);
  cursor: pointer;
  transition: transform 0.3s;
}

.social-icon:hover {
  transform: scale(1.2);
}

.footer-bottom {
  text-align: center;
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid #333;
  color: #666;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero-section h1,
  .hero-title {
    font-size: clamp(36px, 10vw, 72px) !important;
  }

  .wp-block-columns {
    flex-direction: column !important;
  }

  .wp-block-column {
    margin-bottom: 40px !important;
  }

  /* === MOBILE HEADER FIX === */
  /* Override desktop centered layout for mobile */
  #ast-desktop-header .ast-main-header-wrap .ast-builder-grid-row,
  .ast-mobile-header .ast-main-header-wrap .ast-builder-grid-row {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 10px 15px !important;
  }

  #ast-desktop-header .site-header-primary-section-left,
  #ast-desktop-header .site-header-primary-section-right,
  .ast-mobile-header .site-header-primary-section-left,
  .ast-mobile-header .site-header-primary-section-right {
    width: auto !important;
    justify-content: flex-start !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  #ast-desktop-header .site-header-primary-section-right,
  .ast-mobile-header .site-header-primary-section-right {
    justify-content: flex-end !important;
    margin-left: auto !important;
  }

  /* MOBILE HEADER STYLING - PROPER CENTERING */
@media (max-width: 921px) {
  .site-header,
  .main-header-bar,
  header.site-header,
  .ast-mobile-header-wrap,
  .ast-mobile-header,
  #masthead {
    background-color: #f9f4f0 !important;
    background: #f9f4f0 !important;
  }

  /* Mobile header layout - logo centered, minimal padding */
  .ast-mobile-header-wrap .ast-builder-grid-row,
  .main-header-bar-wrap,
  .main-header-bar {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    position: relative !important;
    width: 100% !important;
    background: #f9f4f0 !important;
    padding: 5px 0 !important;
    min-height: 60px !important;
  }

  /* Logo centered on mobile */
  .site-branding,
  .ast-site-identity,
  .site-logo-img,
  .ast-mobile-header .site-branding,
  .ast-mobile-header-wrap .site-branding {
    margin: 0 auto !important;
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex: 0 0 auto !important;
  }

  /* Hamburger menu - absolute positioned on right */
  .main-header-menu-toggle,
  .ast-mobile-menu-trigger-minimal,
  .ast-button-wrap,
  .ast-mobile-header-wrap .ast-button-wrap {
    position: absolute !important;
    right: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
  }
}

/* Logo sizing for mobile - BIGGER LOGO */
  img[class*="custom-logo"],
  img[class*="logo"],
  .site-branding img,
  .custom-logo,
  .site-logo-img img,
  .ast-site-identity img,
  .site-logo-img .custom-logo,
  a img[alt*="House"],
  .site-header img {
    max-height: 50px !important;
    max-width: 150px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
  }

  /* Override inline styles */
  .custom-logo[style] {
    width: auto !important;
    height: 50px !important;
    max-width: 150px !important;
  }

  .site-branding,
  .site-logo-img,
  .ast-site-identity {
    max-width: 110px !important;
    max-height: 40px !important;
    margin: 0 !important;
    line-height: 40px !important;
  }

  /* Link containing logo */
  .site-branding a,
  .site-logo-img a {
    max-width: 110px !important;
    max-height: 40px !important;
    display: inline-block !important;
  }

  /* Hide text title on mobile - show only logo */
  .ast-site-title-wrap,
  .site-title {
    display: none !important;
  }

  /* Header compact */
  .site-header {
    padding: 0 !important;
  }

  .ast-main-header-wrap {
    padding: 0 !important;
  }

  /* Hamburger menu positioning */
  .main-header-menu-toggle,
  .ast-mobile-menu-trigger-minimal {
    padding: 8px !important;
    margin: 0 !important;
  }

  /* === MOBILE MENU CUSTOMIZATION === */
  /* Hide footer items from mobile menu */
  nav[aria-label="Site navigatie"] a[href*="algemene-voorwaarden"],
  nav[aria-label="Site navigatie"] a[href*="privacyverklaring"] {
    display: none !important;
  }

  /* Force flexbox on mobile menu list - stronger specificity to override desktop rules */
  .site-header nav[aria-label="Site navigatie"] ul.main-header-menu,
  nav[aria-label="Site navigatie"] ul {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
  }

  /* Reorder mobile menu items using CSS order */
  /* Home - order 1 */
  nav[aria-label="Site navigatie"] a[href="/"],
  nav[aria-label="Site navigatie"] a[href*="3000.local/"] {
    order: 1 !important;
  }

  /* Rooster - order 2 */
  nav[aria-label="Site navigatie"] a[href*="rooster"] {
    order: 2 !important;
  }

  /* Studiohuur - order 3 */
  nav[aria-label="Site navigatie"] a[href*="studiohuur"] {
    order: 3 !important;
  }

  /* Tarieven - order 4 */
  nav[aria-label="Site navigatie"] a[href*="tarieven"] {
    order: 4 !important;
  }

  /* Studioregels - order 5 */
  nav[aria-label="Site navigatie"] a[href*="studioregels"] {
    order: 5 !important;
  }

  /* Over ons - order 6 */
  nav[aria-label="Site navigatie"] a[href*="over-ons"] {
    order: 6 !important;
  }

  /* Contact - order 7 */
  nav[aria-label="Site navigatie"] a[href*="contact"] {
    order: 7 !important;
  }

  /* Apply order to list items as well */
  nav[aria-label="Site navigatie"] li:has(a[href="/"]),
  nav[aria-label="Site navigatie"] li:has(a[href*="3000.local/"]) {
    order: 1 !important;
  }

  nav[aria-label="Site navigatie"] li:has(a[href*="rooster"]) {
    order: 2 !important;
  }

  nav[aria-label="Site navigatie"] li:has(a[href*="studiohuur"]) {
    order: 3 !important;
  }

  nav[aria-label="Site navigatie"] li:has(a[href*="tarieven"]) {
    order: 4 !important;
  }

  nav[aria-label="Site navigatie"] li:has(a[href*="studioregels"]) {
    order: 5 !important;
  }

  nav[aria-label="Site navigatie"] li:has(a[href*="over-ons"]) {
    order: 6 !important;
  }

  nav[aria-label="Site navigatie"] li:has(a[href*="contact"]) {
    order: 7 !important;
  }

  /* Hide footer item list items completely */
  nav[aria-label="Site navigatie"] li:has(a[href*="algemene-voorwaarden"]),
  nav[aria-label="Site navigatie"] li:has(a[href*="privacyverklaring"]) {
    display: none !important;
  }

  /* MOBILE MENU STYLING */
  nav[aria-label="Site navigatie"] {
    background: #ffffff !important;
    padding: 20px 0 !important;
  }

  nav[aria-label="Site navigatie"] ul {
    padding: 0 20px !important;
  }

  nav[aria-label="Site navigatie"] a {
    color: var(--color-black) !important;
    font-weight: 500 !important;
    padding: 15px 20px !important;
    display: block !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    border-bottom: 1px solid rgba(14, 14, 14, 0.1) !important;
  }

  nav[aria-label="Site navigatie"] a:hover,
  nav[aria-label="Site navigatie"] a:focus {
    color: var(--color-gold) !important;
    background: rgba(212, 175, 55, 0.1) !important;
  }

  nav[aria-label="Site navigatie"] li {
    margin: 0 !important;
    padding: 0 !important;
  }

  nav[aria-label="Site navigatie"] li:first-child a {
    border-top: 1px solid rgba(14, 14, 14, 0.1) !important;
  }

  /* Active menu item */
  nav[aria-label="Site navigatie"] .current-menu-item a,
  nav[aria-label="Site navigatie"] .current_page_item a {
    background: var(--color-gold) !important;
    color: var(--color-white) !important;
    font-weight: 600 !important;
  }
}
