/*
Theme Name: Astra Smayra Child
Template: astra
Version: 1.0.0
Description: Child theme for Smayra Investments SARL — premium kitchen products.
Author: Smayra Investments SARL
*/

/* ============================================================
   GOOGLE FONTS IMPORT
   Playfair Display (serif, headings) + Lato (sans, body)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Lato:wght@300;400;700&display=swap');

/* ============================================================
   CSS CUSTOM PROPERTIES — SMAYRA PALETTE
   ============================================================ */
:root {
    --ast-global-color-0: #2C2416;
    --ast-global-color-1: #1A1611;
    --ast-global-color-2: #1C1C1C;
    --ast-global-color-3: #3D3D3D;
    --ast-global-color-4: #F5F2EE;
    --ast-global-color-5: #FFFFFF;
    --ast-global-color-6: #E8E2D9;
    --ast-global-color-7: #0D0D0D;
    --ast-global-color-8: #111111;

    --smayra-hero-overlay: rgba(10, 8, 5, 0.58);
    --smayra-gold-accent: #B8972E;
    --smayra-nav-height: 80px;
    --smayra-card-radius: 0px;
    --smayra-transition: 0.3s ease;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
body,
.ast-single-post p,
.entry-content p,
.woocommerce-page p {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    font-size: 15px;
    color: var(--ast-global-color-3);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6,
.uagb-heading-text,
.uagb-ifb-title,
.woocommerce-loop-product__title,
.woocommerce h1,
.woocommerce h2 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--ast-global-color-2);
    letter-spacing: -0.01em;
}

/* ============================================================
   HEADER
   ============================================================ */
.ast-theme-transparent-header .site-header {
    background: transparent !important;
    box-shadow: none !important;
}

#masthead,
.ast-header-break-point .ast-mobile-header-wrap,
.site-header {
    background: #FFFFFF !important;
    box-shadow: 0 1px 0 rgba(0,0,0,0.08) !important;
}

.main-header-bar,
#masthead {
    min-height: var(--smayra-nav-height);
}

.custom-logo,
.ast-logo-img {
    max-height: 48px !important;
    width: auto !important;
}

/* Site title text (when no logo image) */
.ast-site-identity .site-title a,
.site-title a {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ast-global-color-2) !important;
    text-decoration: none;
}

/* Navigation menu — desktop */
.main-header-menu .menu-item > a,
.main-header-menu .menu-item a {
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ast-global-color-2) !important;
    padding: 0 18px !important;
    transition: color var(--smayra-transition);
}

.main-header-menu .menu-item > a:hover,
.main-header-menu .current-menu-item > a {
    color: var(--smayra-gold-accent) !important;
}

/* Nav on transparent header */
.ast-theme-transparent-header .main-header-menu .menu-item > a {
    color: rgba(255,255,255,0.92) !important;
}
.ast-theme-transparent-header .main-header-menu .menu-item > a:hover,
.ast-theme-transparent-header .main-header-menu .current-menu-item > a {
    color: #FFFFFF !important;
}

/* Site title on transparent header */
.ast-theme-transparent-header .ast-site-identity .site-title a,
.ast-theme-transparent-header .site-title a {
    color: #FFFFFF !important;
}

/* Cart / account icons on transparent header */
.ast-theme-transparent-header .ast-header-woo-cart .ast-cart-menu-wrap .count,
.ast-theme-transparent-header header .ast-header-account-link {
    color: #FFFFFF !important;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.smayra-hero {
    min-height: 100vh !important;
    position: relative;
}

.smayra-hero .wp-block-cover__inner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 80px 40px 60px;
    text-align: center;
}

.smayra-hero .smayra-hero-eyebrow {
    display: block;
    font-family: 'Lato', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
    margin-bottom: 24px;
}

.smayra-hero h1.smayra-hero-headline,
.smayra-hero .smayra-hero-headline h1,
.smayra-hero h1 {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: clamp(40px, 6vw, 88px) !important;
    font-weight: 600 !important;
    line-height: 1.08 !important;
    color: #FFFFFF !important;
    margin: 0 0 28px !important;
    max-width: 900px;
    letter-spacing: -0.02em;
}

.smayra-hero .smayra-hero-sub,
.smayra-hero .smayra-hero-sub p {
    font-family: 'Lato', sans-serif !important;
    font-size: clamp(14px, 1.5vw, 18px) !important;
    font-weight: 300 !important;
    color: rgba(255,255,255,0.80) !important;
    max-width: 520px;
    line-height: 1.65;
    margin: 0 0 48px;
}

/* CTA button on hero */
.smayra-hero .wp-block-button__link {
    font-family: 'Lato', sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase !important;
    color: #FFFFFF !important;
    background: transparent !important;
    border: 1px solid rgba(255,255,255,0.7) !important;
    border-radius: 0 !important;
    padding: 16px 44px !important;
    transition: background var(--smayra-transition), border-color var(--smayra-transition) !important;
}

.smayra-hero .wp-block-button__link:hover {
    background: rgba(255,255,255,0.10) !important;
    border-color: #FFFFFF !important;
}

/* SCROLL indicator */
.smayra-scroll-indicator {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.smayra-scroll-indicator span {
    font-family: 'Lato', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.30em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
}

.smayra-scroll-indicator::after {
    content: '';
    display: block;
    width: 1px;
    height: 48px;
    background: rgba(255,255,255,0.40);
    animation: smayra-scroll-line 1.8s ease-in-out infinite;
}

@keyframes smayra-scroll-line {
    0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
    50%  { opacity: 1; transform: scaleY(1); transform-origin: top; }
    100% { opacity: 0; transform: scaleY(1); transform-origin: bottom; }
}

/* ============================================================
   CATEGORY CARDS SECTION
   ============================================================ */
.smayra-categories-section {
    background: var(--ast-global-color-5);
    padding: 90px 0;
}

.smayra-section-eyebrow {
    text-align: center;
    margin-bottom: 48px;
    padding: 0 40px;
}

.smayra-section-eyebrow p {
    font-family: 'Lato', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--smayra-gold-accent);
    margin: 0 0 12px;
}

.smayra-section-eyebrow h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 600;
    color: var(--ast-global-color-2);
    margin: 0;
    line-height: 1.15;
}

.smayra-categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

.smayra-category-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    cursor: pointer;
    display: block;
    text-decoration: none;
}

.smayra-category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.smayra-category-card:hover img {
    transform: scale(1.04);
}

.smayra-category-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.0) 55%);
    transition: background var(--smayra-transition);
}

.smayra-category-card:hover .smayra-category-card-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.10) 55%);
}

.smayra-category-card-label {
    position: absolute;
    bottom: 28px;
    left: 24px;
    right: 24px;
}

.smayra-category-card-label h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 22px;
    font-weight: 600;
    color: #FFFFFF;
    margin: 0 0 6px;
    line-height: 1.2;
}

.smayra-category-card-label span {
    font-family: 'Lato', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.20em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
}

/* ============================================================
   WOOCOMMERCE BUTTONS
   ============================================================ */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce .cart .button,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce #respond input#submit {
    font-family: 'Lato', sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
    background: var(--ast-global-color-2) !important;
    color: #FFFFFF !important;
    border-radius: 0 !important;
    padding: 12px 28px !important;
    border: 1px solid var(--ast-global-color-2) !important;
    transition: background var(--smayra-transition), color var(--smayra-transition) !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover {
    background: #FFFFFF !important;
    color: var(--ast-global-color-2) !important;
}

/* ============================================================
   GENERAL BUTTONS
   ============================================================ */
.wp-block-button__link,
.ast-button,
button[type="submit"],
input[type="submit"],
.wpcf7-submit {
    font-family: 'Lato', sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    background: var(--ast-global-color-2) !important;
    color: #FFFFFF !important;
    border-radius: 0 !important;
    border: 1px solid var(--ast-global-color-2) !important;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer,
.ast-small-footer,
footer.site-footer {
    background: var(--ast-global-color-7) !important;
    color: rgba(255,255,255,0.55) !important;
    font-family: 'Lato', sans-serif;
    font-size: 13px;
}

.site-footer a,
.ast-small-footer a {
    color: rgba(255,255,255,0.70) !important;
    text-decoration: none;
    transition: color var(--smayra-transition);
}

.site-footer a:hover,
.ast-small-footer a:hover {
    color: #FFFFFF !important;
}

/* ============================================================
   RESPONSIVE — TABLETS
   ============================================================ */
@media (max-width: 1024px) {
    .smayra-categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 0 24px;
    }
}

@media (max-width: 767px) {
    .smayra-hero h1.smayra-hero-headline,
    .smayra-hero h1 {
        font-size: 36px !important;
    }

    .smayra-categories-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        padding: 0 16px;
    }

    .smayra-categories-section {
        padding: 60px 0;
    }

    .smayra-category-card-label h3 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .smayra-categories-grid {
        grid-template-columns: 1fr;
    }
}
