/*
 Theme Name:   GeneratePress Child
 Description:  Child theme for GeneratePress
 Author:       Gregorio Paz
 Template:     generatepress
 Version:      1.0.0
*/

/* --- GLOBAL STYLES --- */

:root {
    --primary: #af101a;
    --primary-container: #d32f2f;
    --surface: #fcf9f8;
    --on-surface: #1c1b1b;
    --on-surface-variant: #5b403d;
}

body {
    background-color: var(--surface);
    color: var(--on-surface);
    font-family: 'Manrope', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

/* --- TYPOGRAPHY --- */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Lexend', sans-serif;
    font-weight: 900;
    line-height: 1.1;
    color: var(--on-surface);
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 3rem; /* Fallback */
    font-size: clamp(3rem, 10vw, 6rem); /* Responsive like text-5xl to 8xl */
    letter-spacing: -0.05em;
    text-transform: none;
}

h2 {
    font-size: 2.25rem;
    font-size: clamp(2.25rem, 6vw, 4rem); /* Responsive like text-4xl to 6xl */
    letter-spacing: -0.02em;
}

h3 {
    font-size: 1.5rem;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

p {
    font-size: 1.125rem;
    color: var(--on-surface-variant);
    margin-bottom: 1.5rem;
}

a {
    transition: color 0.2s ease;
    text-decoration: none;
    color: var(--primary);
}

a:hover {
    color: var(--primary-container);
}

/* --- WORDPRESS SPECIFIC TWEAKS --- */

.entry-content h1, .entry-content h2, .entry-content h3 {
    margin-top: 2rem;
}

/* Home Page Full Width Fix */
.home .site-content,
.home .grid-container,
.home .inside-article,
.home #main {
    max-width: 100%;
    padding: 0;
    margin: 0;
}

/* Removed gb-container-hero-section as we use raw HTML now */

/* Fix Site Header to match Layout */
.site-header {
    position: fixed !important;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0px 12px 24px rgba(28, 27, 27, 0.04) !important;
    border-bottom: 1px solid rgba(0,0,0,0.05) !important;
}

.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

.home .site-header {
    margin-bottom: 0; /* Reset this, we'll handle content padding in functions.php */
}

/* Brand Highlights */
.text-primary-container {
    color: var(--primary-container);
}

.font-black {
    font-weight: 900;
}

/* Site Branding Backups (Tailwind equivalents) */
.main-title .text-stone-900 {
    color: #1c1b1b !important;
}

.main-title .text-primary-container {
    color: #d32f2f !important;
}

.main-title .font-lexend {
    font-family: 'Lexend', sans-serif !important;
}

/* Specific Styles from Reference */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.hero-gradient {
    background: linear-gradient(to top, rgba(252, 249, 248, 1) 0%, rgba(252, 249, 248, 0.4) 40%, rgba(252, 249, 248, 0) 100%);
}

.editorial-shadow {
    box-shadow: 0px 12px 24px rgba(28, 27, 27, 0.04);
}

.red-accent-gradient {
    background: linear-gradient(135deg, #af101a 0%, #d32f2f 100%);
}

/* Enforce Tailwind to work within WP content */
.entry-content {
    max-width: 100% !important;
}

/* Header & Nav refinement */
.site-header {
    background-color: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.inside-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    max-width: 1400px !important; /* Slightly wider for editorial feel */
    margin: 0 auto !important;
    padding: 1rem 2rem !important; /* py-4 px-8 from desktop.html */
}

.site-branding {
    margin: 0 !important;
    flex: 0 0 auto !important;
}

.main-navigation {
    flex: 0 0 auto !important;
    background: transparent !important;
    margin-left: auto !important;
}

#site-navigation {
    background: transparent !important;
}

.main-navigation .main-nav ul li a {
    background: transparent !important;
    color: #57534e !important; /* stone-600 */
    font-weight: 500 !important;
    font-family: 'Lexend', sans-serif !important;
    font-size: 0.875rem !important;
    transition: all 0.2s ease !important;
    padding: 0 20px !important; /* Match gap-8 feel */
    line-height: 48px !important;
    position: relative;
}

.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li.sfHover > a {
    background-color: transparent !important;
    color: #af101a !important; /* red-700 */
}

/* Active Menu Item with Border Bottom from design */
.main-navigation .main-nav ul li.current-menu-item a,
.main-navigation .main-nav ul li[class*="current-menu-"] > a {
    color: #af101a !important;
    font-weight: 700 !important;
    background-color: transparent !important;
}

.main-navigation .main-nav ul li.current-menu-item a::after,
.main-navigation .main-nav ul li[class*="current-menu-"] > a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 2px;
    background-color: #af101a;
}

/* Mobile Toggle Refinement */
.menu-toggle {
    background: transparent !important;
    color: #57534e !important;
}

@media (max-width: 768px) {
    .inside-header {
        flex-wrap: wrap !important;
        padding: 0.5rem 1rem !important;
    }
    
    .site-branding {
        order: -1 !important;
    }
    
    .mobile-menu-control-wrapper {
        margin-left: auto !important;
        order: 1 !important;
    }
    
    /* Ensure hamburger is on the right */
    .main-navigation.mobile-menu-control-wrapper {
        display: block !important;
    }
}


/* Specific Styles from Reference */


/* Enforce No Sidebar Layout padding-like behavior if needed */
#content {
    padding: 40px 0;
}
