/*
Theme Name:   Astra Poker Child
Theme URI:    https://pokerchaircovers.com
Description:  Child theme for Poker Chair Covers – dark casino aesthetic
Author:       Poker Chair Covers
Template:     astra
Version:      1.0.5
License:      GNU General Public License v2 or later
Text Domain:  astra-poker
*/

/* =============================================
   GLOBAL – Dark base, poker palette
   ============================================= */

:root {
  --poker-black:  #000000;
  --poker-dark:   #0d0d0d;
  --poker-red:    #ef0000;
  --poker-red-lt: #ff2a2a;
  --poker-gold:   #ffcb52;
  --poker-silver: #ebebeb;
  --poker-grey:   #3c3c3c;
  --body-font:    'Oswald', sans-serif;
  --body-font-alt:'Roboto', sans-serif;
}

body {
  background-color: var(--poker-black);
  color: var(--poker-silver);
  font-family: var(--body-font-alt);
}

/* =============================================
   TYPOGRAPHY
   ============================================= */

h1, h2, h3, h4, h5, h6,
.wp-block-heading {
  font-family: var(--body-font);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

h1 { color: #ffffff; font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { color: var(--poker-gold); font-size: clamp(1.4rem, 3vw, 2.2rem); }
h3 { color: var(--poker-silver); }

a { color: var(--poker-red); }
a:hover { color: var(--poker-red-lt); }

/* =============================================
   HEADER
   ============================================= */

.ast-site-header-wrap,
#masthead {
  background-color: var(--poker-black) !important;
  border-bottom: 2px solid var(--poker-red);
}

/* Logo sizing — covers both <img class="custom-logo"> and inline SVG via ast-logo-svg-icon */
.custom-logo { max-height: 60px; width: auto; }
.ast-logo-svg-icon { display: block; }
.ast-logo-svg-icon svg { width: 100%; height: auto; display: block; }
/* SVG has a black background rect — make transparent so logo is visible on dark/transparent header */
.ast-logo-svg-icon svg g#background rect { fill: none !important; }
/* Both SVG instances share gradient IDs; the mobile SVG resolves them to the desktop header's
   display:none defs which don't render. Override with solid colours for the mobile instance. */
#ast-mobile-header .ast-logo-svg-icon svg #word-poker { fill: #ebebeb !important; }
#ast-mobile-header .ast-logo-svg-icon svg #word-chair-covers { fill: #ef0000 !important; }
#ast-mobile-header .ast-logo-svg-icon svg #spade-logo { fill: #ef0000 !important; }
#ast-mobile-header .ast-logo-svg-icon svg #top-line,
#ast-mobile-header .ast-logo-svg-icon svg #bottom-line { fill: #ef0000 !important; }
#ast-mobile-header .ast-logo-svg-icon svg #left-gold-line,
#ast-mobile-header .ast-logo-svg-icon svg #right-gold-line { fill: #ffcb52 !important; }
/* Mobile only: constrain SVG logo so it fits the mobile header */
@media (max-width: 921px) {
  .ast-logo-svg-icon { max-width: 180px !important; }
  #ast-mobile-header .ast-logo-svg-icon svg {
    width: 180px !important;
    height: auto !important;
  }
}

/* Desktop nav links */
.main-header-menu .menu-item > a {
  color: var(--poker-silver) !important;
  font-family: var(--body-font);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.main-header-menu .menu-item > a:hover,
.main-header-menu .current-menu-item > a {
  color: var(--poker-red) !important;
}

/* Hamburger colour on mobile */
.ast-mobile-menu-trigger-icon span,
.ast-mobile-menu-trigger-icon span::before,
.ast-mobile-menu-trigger-icon span::after {
  background-color: var(--poker-silver);
}

/* Mobile dropdown nav — Astra dropdown type uses #ast-mobile-header .main-header-bar-navigation */
@media (max-width: 921px) {
  #ast-mobile-header .main-header-bar-navigation {
    background-color: var(--poker-dark) !important;
    border-top: 1px solid var(--poker-grey);
  }
  #ast-mobile-header #ast-hf-mobile-menu {
    background-color: var(--poker-dark) !important;
  }
  #ast-mobile-header #ast-hf-mobile-menu .menu-item > a {
    color: var(--poker-silver) !important;
    background-color: var(--poker-dark) !important;
    font-family: var(--body-font);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--poker-grey) !important;
    padding: 14px 20px !important;
  }
  #ast-mobile-header #ast-hf-mobile-menu .menu-item > a:hover,
  #ast-mobile-header #ast-hf-mobile-menu .current-menu-item > a {
    color: var(--poker-red) !important;
    background-color: #111 !important;
  }
  /* Request Quote button in mobile nav */
  #ast-mobile-header #ast-hf-mobile-menu .header-quote-btn > a {
    background-color: var(--poker-red) !important;
    color: #fff !important;
    text-align: center;
    margin: 12px 20px;
    border-radius: 3px;
    border-bottom: none !important;
    display: block;
  }
}

/* =============================================
   CTA BUTTON – Request a Quote
   ============================================= */

.wp-block-button__link,
.ast-btn,
.button,
button[type="submit"] {
  background-color: var(--poker-red) !important;
  color: #ffffff !important;
  font-family: var(--body-font);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  border-radius: 3px;
  padding: 14px 28px;
  transition: background-color 0.2s ease;
}
.wp-block-button__link:hover,
.ast-btn:hover,
.button:hover {
  background-color: #c70000 !important;
}

/* Secondary / outline button */
.wp-block-button.is-style-outline .wp-block-button__link {
  background-color: transparent !important;
  color: var(--poker-silver) !important;
  border: 2px solid var(--poker-silver) !important;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  border-color: var(--poker-red) !important;
  color: var(--poker-red) !important;
}

/* Header "Request Quote" button */
.header-quote-btn .wp-block-button__link {
  background-color: var(--poker-red) !important;
}

/* =============================================
   HERO SECTION
   ============================================= */

.hero-section {
  background-color: var(--poker-black);
  padding: 180px 20px 60px;
  text-align: center;
}

/* Push hero below transparent sticky header for logged-in users (admin bar adds 32px) */
.admin-bar .hero-section {
  padding-top: 212px;
}

/* Inner pages: push content below transparent absolute-positioned header
   Header bottom = top:32 + height:245 = 277px (admin bar) or 213px (logged out) */
.ast-theme-transparent-header:not(.home) #content {
  padding-top: 213px;
}
.admin-bar.ast-theme-transparent-header:not(.home) #content {
  padding-top: 245px;
}

.hero-section h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  margin-bottom: 0.2em;
}

.hero-section .hero-sub {
  color: var(--poker-gold);
  font-family: var(--body-font);
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  text-transform: uppercase;
  margin-bottom: 1em;
}

.hero-section .hero-desc {
  color: var(--poker-silver);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  max-width: 600px;
  margin: 0 auto 2em;
  opacity: 0.85;
}

/* Red decorative lines (CSS, matching SVG logo lines) */
.section-divider-top,
.section-divider-bottom {
  display: block;
  width: 90%;
  max-width: 1425px;
  height: 8px;
  margin: 0 auto;
  background: linear-gradient(
    to right,
    rgba(255,0,0,0) 0%,
    rgba(255,0,0,0.85) 5%,
    #ff2a2a 25%,
    rgba(60,60,60,0.9) 50%,
    #ff2a2a 75%,
    rgba(255,0,0,0.85) 95%,
    rgba(255,0,0,0) 100%
  );
}

/* =============================================
   3-COLUMN GALLERY / EXAMPLES
   ============================================= */

.gallery-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.gallery-3col .gallery-item {
  position: relative;
  overflow: hidden;
}

.gallery-3col .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-3col .gallery-caption {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #ffffff;
  font-family: var(--body-font);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
}

/* Diagonal red dividers between columns */
.gallery-3col .gallery-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 0; right: -1px;
  width: 3px; height: 100%;
  background: linear-gradient(to bottom, transparent, var(--poker-red), transparent);
  transform: skewX(-3deg);
}

@media (max-width: 768px) {
  .gallery-3col {
    grid-template-columns: 1fr;
  }
  .gallery-3col .gallery-item:not(:last-child)::after {
    display: none;
  }
  /* Show only first image on mobile to keep it clean */
  .gallery-3col .gallery-item:not(:first-child) {
    display: none;
  }
}

/* =============================================
   FEATURE STRIP (4 icons)
   ============================================= */

.feature-strip {
  background-color: var(--poker-dark);
  border-top: 1px solid var(--poker-grey);
  border-bottom: 1px solid var(--poker-grey);
  padding: 40px 20px;
}

.feature-strip .features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.feature-strip .feature-item h3 {
  color: var(--poker-gold);
  font-size: 1rem;
  margin-bottom: 0.4em;
}

.feature-strip .feature-item p {
  color: var(--poker-silver);
  font-size: 0.85rem;
  opacity: 0.8;
  margin: 0;
}

.feature-strip .suit-icon {
  font-size: 2.2rem;
  color: var(--poker-red);
  margin-bottom: 10px;
  display: block;
}

@media (max-width: 600px) {
  .feature-strip .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =============================================
   FOOTER BAR
   ============================================= */

.footer-cta-bar {
  background-color: var(--poker-dark);
  border-top: 1px solid var(--poker-red);
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-cta-bar .contact-items {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  font-size: 0.9rem;
}

.footer-gold-tagline {
  text-align: center;
  color: var(--poker-gold);
  font-family: var(--body-font);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 16px;
  font-size: 1rem;
  border-top: 1px solid var(--poker-grey);
}

/* =============================================
   WOOCOMMERCE – product cards
   ============================================= */

.woocommerce .products .product {
  background: var(--poker-dark);
  border: 1px solid var(--poker-grey);
  border-radius: 4px;
  padding: 16px;
  text-align: center;
  transition: border-color 0.2s;
}
.woocommerce .products .product:hover {
  border-color: var(--poker-red);
}
.woocommerce .products .woocommerce-loop-product__title {
  color: var(--poker-silver) !important;
  font-family: var(--body-font);
}
/* YITH RFQ button on product cards */
.yith-ywraq-add-button .add_to_quote {
  background: var(--poker-red) !important;
  color: #fff !important;
  font-family: var(--body-font);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 3px;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
}
.yith-ywraq-add-button .add_to_quote:hover {
  background: #c70000 !important;
}

/* =============================================
   FOOTER
   ============================================= */

.site-footer,
#colophon {
  background-color: var(--poker-black) !important;
  border-top: 2px solid var(--poker-red);
  color: var(--poker-silver);
}

.ast-footer-copyright {
  color: rgba(255,255,255,0.4);
  font-size: 0.8rem;
}

/* =============================================
   YITH REQUEST A QUOTE – table & form
   ============================================= */

/* Quote cart table */
table.shop_table {
  width: 100%;
  border-collapse: collapse;
  color: var(--poker-silver);
}

table.shop_table th {
  background-color: var(--poker-grey) !important;
  color: var(--poker-silver) !important;
  font-family: var(--body-font);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  padding: 10px 12px;
  border-bottom: 2px solid var(--poker-red);
  text-align: left;
}

table.shop_table td {
  background-color: var(--poker-dark);
  color: var(--poker-silver);
  border-bottom: 1px solid var(--poker-grey);
  padding: 12px;
  vertical-align: middle;
}

table.shop_table tr:last-child td {
  border-bottom: none;
}

table.shop_table .product-name a {
  color: var(--poker-silver);
}

/* Remove button */
table.shop_table .product-remove a {
  color: var(--poker-red) !important;
  font-size: 1.2rem;
}

/* Update list button */
.ywraq-update-list .button,
.ywraq_update_list_button {
  background-color: var(--poker-grey) !important;
  color: var(--poker-silver) !important;
  border: 1px solid var(--poker-grey) !important;
}

/* Request form */
.ywraq-request-form input[type="text"],
.ywraq-request-form input[type="email"],
.ywraq-request-form textarea {
  background-color: var(--poker-dark) !important;
  color: var(--poker-silver) !important;
  border: 1px solid var(--poker-grey) !important;
  border-radius: 3px;
}

.ywraq-request-form label {
  color: var(--poker-silver);
  font-family: var(--body-font);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}
