/*
Theme Name: Alejandro Silvera Theme
Theme URI: https://example.com/alejandro-silvera-theme
Author: Your Name
Author URI: https://example.com
Description: A custom WordPress theme for Alejandro Silvera based on Stitch design.
Version: 1.0.0
Text Domain: alejandro-silvera
*/

:root {
    --color-primary: #2C3E50;
    --color-secondary: #8DAA91;
    --color-text-body: #333333;
    --color-text-light: #ffffff;
    --color-background-light: #f9f9f9;
    --font-family-base: 'Inter', system-ui, -apple-system, sans-serif;
    --spacing-unit: 1rem;
    --container-width: 1200px;
    --border-radius: 8px;
    --transition-speed: 0.3s;
    --header-height: 80px;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-base);
    color: var(--color-text-body);
    line-height: 1.6;
    background-color: var(--color-background-light);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

ul {
    list-style: none;
}

/* Container */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

/* Header */
.header {
    background-color: #fff;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: padding var(--transition-speed), box-shadow var(--transition-speed);
}

.header.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.header__logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

/* Navigation - Desktop Defaults */
.nav__list {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav__link {
    color: var(--color-primary);
    font-weight: 500;
    position: relative;
}

.nav__link:hover {
    color: var(--color-secondary);
}

.nav__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 2000;
}

.nav__toggle span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--color-primary);
    transition: transform 0.3s, opacity 0.3s;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav__toggle {
        display: block;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        /* Drawer width */
        max-width: 300px;
        height: 100vh;
        background-color: #fff;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right var(--transition-speed) ease-in-out;
        z-index: 1500;
        padding-top: 80px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .nav.active {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 1.5rem;
    }

    .nav__link {
        font-size: 1.2rem;
    }

    /* Hamburger Animation */
    .nav__toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .nav__toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav__toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    /* Body overlay when menu open */
    body::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1400;
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--transition-speed);
    }

    body.menu-open::after {
        opacity: 1;
        pointer-events: auto;
    }
}

/* Hero Section */
.hero {
    padding: 6rem 0 4rem;
    background-color: #fff;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.hero__content h1 {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero__content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #666;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.hero__stats {
    border-left: 4px solid var(--color-secondary);
    padding-left: 1rem;
    color: #555;
    font-size: 0.9rem;
}

.hero__image img {
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    .hero {
        grid-template-columns: 1fr 1fr;
        padding: 8rem 0 6rem;
    }

    .hero__content h1 {
        font-size: 3.5rem;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    background-color: var(--color-primary);
    color: #fff;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
}

.btn:hover {
    transform: translateY(-2px);
    background-color: color-mix(in srgb, var(--color-primary), black 10%);
}

.btn--whatsapp {
    background-color: #25D366;
}

.btn--whatsapp:hover {
    background-color: #128C7E;
}

.btn--secondary {
    background-color: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn--secondary:hover {
    background-color: var(--color-primary);
    color: #fff;
}

.btn--header {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
}

/* Features / Services */
.features {
    padding: 4rem 0;
    background-color: #ffff;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--color-secondary);
}

.feature-card h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* About Section */
.about {
    padding: 6rem 0;
    background-color: #f4f6f8;
}

.about__grid {
    display: grid;
    gap: 4rem;
}

.about__content h2 {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.about__content .subtitle {
    color: var(--color-secondary);
    font-weight: 700;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (min-width: 768px) {
    .about__grid {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }

    .about__image {
        order: -1;
    }
}

/* Testimonials */
.testimonials {
    padding: 6rem 0;
    text-align: center;
    background-color: var(--color-background-light);
}

.testimonials h2 {
    font-size: 2.2rem;
    color: var(--color-primary);
    margin-bottom: 3rem;
}

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    font-style: italic;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.testimonial-card::before {
    content: '"';
    font-size: 4rem;
    color: var(--color-secondary);
    opacity: 0.3;
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-family: serif;
}

/* FAQ Section */
.faq {
    padding: 6rem 0;
}

.faq h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--color-primary);
}

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

.faq__item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    padding: 1.5rem;
}

.faq__item h3 {
    font-size: 1.2rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.faq__answer {
    color: #555;
    font-size: 0.95rem;
}

/* Footer */
.footer {
    background-color: var(--color-primary);
    color: #fff;
    padding: 4rem 0 0;
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    padding-bottom: 3rem;
}

.footer__column h4 {
    margin-bottom: 1.5rem;
    color: var(--color-secondary);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer__links li {
    margin-bottom: 0.8rem;
    opacity: 0.8;
    transition: opacity var(--transition-speed);
}

.footer__links li:hover {
    opacity: 1;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.6;
}

.footer__bottom a {
    text-decoration: underline;
}

/* Sticky WhatsApp Button */
.whatsapp-sticky {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-sticky:hover {
    transform: scale(1.1);
}

/* Helper Classes */
.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

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

@media (max-width: 480px) {
    .hero__content h1 {
        font-size: 2rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .hero__actions {
        flex-direction: column;
    }
}