/* GB Home page - mirrors gbgenetics.com homepage */

body.page-template-page-home .entry-header,
body.page-template-page-home .ast-page-header-section { display: none !important; }
body.page-template-page-home .ast-container { max-width: 100% !important; padding: 0 !important; }
body.page-template-page-home .site-content,
body.page-template-page-home .site-main { padding: 0 !important; }

.gb-home-wrap { color: #e8eaee; }

/* ===== HERO (full-width 600px with bud bg + center text + scroll arrow) ===== */
.gb-home-hero {
    position: relative;
    min-height: 600px;
    background-color: #0a0a0a;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}
.gb-home-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10,10,10,0.55);
    z-index: 1;
}
.gb-home-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 30px 40px;
}
.gb-home-hero-title {
    font-family: 'Cardo', Georgia, serif !important;
    font-size: 64px !important;
    font-weight: 400 !important;
    color: #ffffff !important;
    margin: 0 0 22px !important;
    line-height: 1.1;
    letter-spacing: -0.01em;
    text-shadow: 0 4px 24px rgba(0,0,0,0.6);
}
.gb-home-hero-subtitle {
    color: #ffffff !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 16px !important;
    line-height: 1.7 !important;
    margin: 0 auto !important;
    max-width: 760px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
@media (max-width: 768px) {
    .gb-home-hero { min-height: 480px; }
    .gb-home-hero-title { font-size: 38px !important; }
    .gb-home-hero-subtitle { font-size: 14px !important; }
}

/* Scroll-down arrow */
.gb-home-hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 22px;
    z-index: 3;
    text-decoration: none !important;
    display: block;
}
.gb-home-hero-scroll span {
    display: block;
    width: 12px;
    height: 12px;
    border-bottom: 2px solid #ffffff;
    border-right: 2px solid #ffffff;
    transform: rotate(45deg);
    margin: -8px auto;
    animation: gbScrollDown 1.6s infinite;
    opacity: 0.8;
}
.gb-home-hero-scroll span:nth-child(2) { animation-delay: -0.3s; }
@keyframes gbScrollDown {
    0%   { opacity: 0; transform: rotate(45deg) translate(-6px,-6px); }
    50%  { opacity: 0.9; }
    100% { opacity: 0; transform: rotate(45deg) translate(6px,6px); }
}

/* ===== BOGO red banner ===== */
.gb-home-bogo {
    background: #f20000;
    color: #ffffff;
    padding: 60px 30px;
    text-align: center;
}
.gb-home-bogo-inner { max-width: 1200px; margin: 0 auto; }
.gb-home-bogo h2 {
    color: #ffffff !important;
    font-family: 'Cardo', Georgia, serif !important;
    font-size: 38px !important;
    font-weight: 400 !important;
    margin: 0 0 8px !important;
    line-height: 1.2;
}
.gb-home-bogo h2 a {
    color: #ffffff !important;
    text-decoration: underline;
    text-underline-offset: 4px;
}
.gb-home-bogo p {
    color: #ffe6e6 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    margin: 0 !important;
    letter-spacing: 0.05em;
    font-style: italic;
}

/* ===== SECTION (Northern Lights, All Genetics, Collections) - FULL-WIDTH ===== */
.gb-home-section {
    background: rgba(0,0,0,0.85);
    padding: 80px 60px;
    width: 100%;
    box-sizing: border-box;
}
.gb-home-section-inner { max-width: 1600px; margin: 0 auto; width: 100%; }
@media (max-width: 768px) {
    .gb-home-section { padding: 50px 20px; }
}
.gb-home-h2 {
    font-family: 'Cardo', Georgia, serif !important;
    font-size: 42px !important;
    font-weight: 400 !important;
    color: #ffffff !important;
    text-align: center;
    margin: 0 0 6px !important;
    letter-spacing: -0.01em;
}
.gb-home-section-subtitle {
    text-align: center;
    color: #c9ccd2 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    font-style: italic;
    margin: 0 0 36px !important;
    line-height: 1.6;
}

/* Product cards inside home sections */
.gb-home-section .woocommerce ul.products,
.gb-home-section .woocommerce ul.products li.product { background: transparent !important; }

.gb-home-section .woocommerce ul.products li.product {
    padding: 0 !important;
    border: none !important;
    text-align: center;
    margin-bottom: 40px !important;
    transition: transform 0.25s ease;
}
.gb-home-section .woocommerce ul.products li.product:hover { transform: translateY(-4px); }
.gb-home-section .woocommerce ul.products li.product img {
    margin: 0 0 14px !important;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 2px;
}
.gb-home-section .woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: 'Cardo', Georgia, serif !important;
    font-size: 17px !important;
    color: #ffffff !important;
    padding: 0 !important;
    min-height: 0 !important;
    margin: 0 0 4px !important;
    font-weight: 400;
    line-height: 1.3;
}
.gb-home-section .woocommerce ul.products li.product .price {
    color: #4fcc25 !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 600;
    font-size: 14px !important;
}
.gb-home-section .woocommerce ul.products li.product .button { display: none !important; }

/* WC pagination */
.gb-home-section .woocommerce-pagination ul.page-numbers {
    border: none !important;
    display: flex !important;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
    list-style: none;
    padding: 0;
}
.gb-home-section .woocommerce-pagination ul.page-numbers li {
    border: none !important;
    background: transparent;
}
.gb-home-section .woocommerce-pagination ul.page-numbers a,
.gb-home-section .woocommerce-pagination ul.page-numbers span {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    color: #c9ccd2;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.2s ease, color 0.2s ease;
}
.gb-home-section .woocommerce-pagination ul.page-numbers a:hover { background: rgba(212,167,60,0.2); color: #d4a73c; }
.gb-home-section .woocommerce-pagination ul.page-numbers .current { background: #c93b3b !important; color: #ffffff !important; }
.gb-home-section .woocommerce-result-count,
.gb-home-section .woocommerce-ordering { display: none !important; }

/* Northern Lights AND All Genetics use the same full-width grid (4 columns) */
.gb-home-northern,
.gb-home-allgen {
    padding-left: 60px !important;
    padding-right: 60px !important;
}
.gb-home-northern .gb-home-section-inner,
.gb-home-allgen .gb-home-section-inner {
    max-width: 1600px !important;
    margin: 0 auto !important;
    width: 100% !important;
}
@media (max-width: 768px) {
    .gb-home-northern,
    .gb-home-allgen { padding-left: 20px !important; padding-right: 20px !important; }
}

.gb-home-northern .woocommerce ul.products,
.gb-home-northern .woocommerce ul.products.columns-5,
.gb-home-northern .woocommerce ul.products.columns-4,
.gb-home-allgen .woocommerce ul.products,
.gb-home-allgen .woocommerce ul.products.columns-4 {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 28px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
.gb-home-northern .woocommerce ul.products li.product,
.gb-home-allgen .woocommerce ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
    clear: none !important;
}
.gb-home-northern .woocommerce ul.products li.product img,
.gb-home-allgen .woocommerce ul.products li.product img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
}

@media (max-width: 1000px) {
    .gb-home-northern .woocommerce ul.products,
    .gb-home-allgen .woocommerce ul.products { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 600px) {
    .gb-home-northern .woocommerce ul.products,
    .gb-home-allgen .woocommerce ul.products { grid-template-columns: 1fr !important; }
}

/* ===== Collections category grid ===== */
.gb-home-cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
@media (max-width: 1000px) { .gb-home-cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .gb-home-cat-grid { grid-template-columns: repeat(2, 1fr); } }

.gb-home-cat-tile {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    background-color: #1a1a1a;
    background-size: cover;
    background-position: center center;
    overflow: hidden;
    text-decoration: none !important;
    transition: transform 0.3s ease;
}
.gb-home-cat-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.15) 50%, rgba(0,0,0,0) 100%);
    z-index: 1;
    transition: background 0.3s ease;
}
.gb-home-cat-tile:hover .gb-home-cat-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0.1) 100%);
}
.gb-home-cat-content {
    position: absolute;
    bottom: 22px;
    left: 22px;
    z-index: 2;
    color: #ffffff;
    transition: transform 0.3s ease;
}
.gb-home-cat-tile:hover .gb-home-cat-content { transform: translateY(-4px); }
.gb-home-cat-name {
    color: #ffffff !important;
    font-family: 'Cardo', Georgia, serif !important;
    font-weight: 700 !important;
    font-size: 28px !important;
    margin: 0 0 6px !important;
    line-height: 1.1;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 12px rgba(0,0,0,0.7);
}
.gb-home-cat-cta {
    display: inline-block;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.2s ease;
}
.gb-home-cat-tile:hover .gb-home-cat-cta { color: #d4a73c; }

/* ===== NEWSLETTER (centered card, form centered) ===== */
.gb-home-newsletter {
    position: relative;
    background-color: #0a0a0a;
    background-size: cover;
    background-position: center center;
    padding: 90px 20px;
}
.gb-home-newsletter-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1;
}
.gb-home-newsletter-inner {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 0 auto;
}
.gb-home-newsletter-card {
    background: #000000;
    padding: 50px 50px 40px;
    border-radius: 4px;
    text-align: center;
}
.gb-home-newsletter-title {
    color: #ffffff !important;
    font-family: 'Cardo', Georgia, serif !important;
    font-size: 32px !important;
    font-weight: 400 !important;
    margin: 0 0 14px !important;
    text-align: center !important;
    line-height: 1.2;
}
.gb-home-newsletter-subtitle {
    color: #c9ccd2 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    margin: 0 0 28px !important;
    line-height: 1.7;
    text-align: center;
}
.gb-home-newsletter-card .fluentform { text-align: left; }
.gb-home-newsletter-card .fluentform .ff-btn-submit-container,
.gb-home-newsletter-card .fluentform .ff_submit_btn_wrapper { text-align: center !important; }
@media (max-width: 768px) {
    .gb-home-newsletter-card { padding: 40px 24px; }
}

/* Fluent Form inside newsletter */
.gb-home-newsletter-card .fluentform input[type="text"],
.gb-home-newsletter-card .fluentform input[type="email"],
.gb-home-newsletter-card .fluentform input[type="tel"],
.gb-home-newsletter-card .fluentform select,
.gb-home-newsletter-card .fluentform textarea {
    background: rgba(255,255,255,0.06) !important;
    border: 1px solid rgba(255,255,255,0.18) !important;
    color: #ffffff !important;
    border-radius: 2px !important;
    padding: 12px 14px !important;
}
.gb-home-newsletter-card .fluentform input::placeholder { color: #8b94a3 !important; }
.gb-home-newsletter-card .fluentform .ff-el-input--label label,
.gb-home-newsletter-card .fluentform label { color: #c9ccd2 !important; font-size: 12px !important; text-transform: uppercase; letter-spacing: 0.06em; }
.gb-home-newsletter-card .fluentform .ff-btn-submit {
    background: #c93b3b !important;
    border: none !important;
    padding: 14px 32px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 2px;
    width: auto;
}

/* ===== Why Choose accordions ===== */
.gb-home-faq {
    background: rgba(0,0,0,0.92);
    padding: 80px 20px;
}
.gb-home-faq-inner {
    max-width: 920px;
    margin: 0 auto;
}
.gb-home-toggle {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 22px 0;
}
.gb-home-toggle:last-child { border-bottom: none; }
.gb-home-toggle summary {
    cursor: pointer;
    list-style: none;
    color: #ffffff !important;
    font-family: 'Cardo', Georgia, serif !important;
    font-size: 24px !important;
    font-weight: 400 !important;
    padding-left: 38px;
    position: relative;
    outline: none;
}
.gb-home-toggle summary::-webkit-details-marker { display: none; }
.gb-home-toggle summary::before {
    content: '+';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 50%;
    color: #ffffff;
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}
.gb-home-toggle[open] summary::before {
    content: '−';
    background: #c93b3b;
    border-color: #c93b3b;
}
.gb-home-toggle-body {
    padding: 14px 0 4px 38px;
    color: #c9ccd2;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.85;
}
.gb-home-toggle-body p { margin: 0; color: #c9ccd2; }
