/*
Theme Name: Alejandro Silvera V1.1
Theme URI: https://alejandrosilvera.com
Author: Stitch to WP
Author URI: https://google.com
Description: A custom, lightweight, and secure WordPress theme based on the Google Stitch design. Version 1.1 with improved CSS loading and aesthetics.
Version: 1.1
Text Domain: alejandro-silvera
*/

:root {
    /* Serene Trust Palette - Verified */
    --color-primary-dark: #2C3E50;
    /* Slate Blue/Dark Gray */
    --color-primary-light: #34495E;
    --color-accent: #8DAA91;
    /* Sage Green */
    --color-accent-hover: #7A957E;
    --color-bg-base: #F5F5DC;
    /* Beige/Cream */
    --color-bg-white: #FFFFFF;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* UI */
    --border-radius: 8px;
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* 1. RESET & BASE
   -------------------------------------------------- */
html {
    box-sizing: border-box;
    font-size: 16px;
    scroll-behavior: smooth;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.7;
    color: var(--color-primary-dark);
    background-color: var(--color-bg-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 2. TYPOGRAPHY
   -------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-top: 0;
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1.5rem;
}

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

a:hover {
    color: var(--color-accent);
}

/* 3. LAYOUT UTILITIES
   -------------------------------------------------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.section-padding {
    padding: var(--spacing-lg) 0;
}

/* 4. COMPONENTS
   -------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background-color: var(--color-accent);
    color: var(--color-bg-white);
    font-family: var(--font-body);
    font-weight: 600;
    border-radius: var(--border-radius);
    border: 2px solid var(--color-accent);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
    gap: 0.5rem;
}

.btn:hover {
    background-color: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    color: var(--color-bg-white);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--color-primary-dark);
    color: var(--color-primary-dark);
}

.btn-outline:hover {
    background-color: var(--color-primary-dark);
    color: var(--color-bg-white);
}

/* 5. HEADER
   -------------------------------------------------- */
.site-header {
    background-color: var(--color-bg-white);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 1.5rem;
    margin: 0;
}

.site-title a {
    color: var(--color-primary-dark);
    font-family: var(--font-heading);
}

/* Navigation - Desktop */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
}

.main-navigation a {
    font-weight: 500;
    font-size: 1rem;
}

/* 6. HERO SECTION
   -------------------------------------------------- */
.hero-section {
    min-height: 85vh;
    /* Force height */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary-dark);
    /* Fallback */
    background-size: cover;
    background-position: center;
    position: relative;
    color: var(--color-bg-white);
    text-align: center;
    padding: var(--spacing-xl) 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.5);
    /* Semi-transparent overlay */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.hero-content h1 {
    color: var(--color-bg-white);
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
}

/* 7. BIO SECTION
   -------------------------------------------------- */
.bio-section {
    background-color: var(--color-bg-white);
}

.bio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

@media (min-width: 768px) {
    .bio-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.bio-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
    width: 100%;
    object-fit: cover;
}

.bio-text h2 {
    margin-bottom: var(--spacing-md);
    position: relative;
    display: inline-block;
}

.bio-text h2::after {
    content: '';
    display: block;
    width: 50%;
    height: 3px;
    background-color: var(--color-accent);
    margin-top: 0.5rem;
    border-radius: 2px;
}

/* 8. FAQ SECTION
   -------------------------------------------------- */
.faq-section {
    background-color: var(--color-bg-base);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--color-bg-white);
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary-dark);
    cursor: pointer;
    transition: background-color 0.2s;
}

.faq-question:hover {
    background-color: rgba(0, 0, 0, 0.01);
}

.faq-question .icon {
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question .icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
}

.faq-item.active .faq-answer {
    padding-bottom: 1.5rem;
    max-height: 500px;
    /* Arbitrary limit */
    opacity: 1;
}

/* 9. WHATSAPP CTA
   -------------------------------------------------- */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #25D366;
    color: white;
    padding: 0.8rem 1.2rem;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    z-index: 2000;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.05);
    background-color: #20BA5C;
    color: white;
}

/* 10. FOOTER
   -------------------------------------------------- */
.site-footer {
    background-color: var(--color-primary-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 3rem 0;
    text-align: center;
    font-size: 0.9rem;
}

.site-footer a {
    color: white;
}

/* 11. MOBILE MENU
   -------------------------------------------------- */
@media (max-width: 768px) {
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 1rem;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        text-align: center;
    }

    .main-navigation.toggled {
        display: block;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 1rem;
    }

    .mobile-toggle {
        display: block !important;
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0.5rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }
}