/*
Theme Name: Manolo Reformas Theme
Theme URI: https://example.com/manolo-reformas
Author: Manolo Reformas
Author URI: https://example.com
Description: Un tema honesto y de calidad para reformas locales.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: manolo-reformas
*/

/* Reset & Variables */
:root {
    /* Color Palette */
    --color-bg: #FDFBF7;
    --color-text: #2C2C2C;
    --color-primary: #A95C42;
    /* Terracotta */
    --color-primary-dark: #8E4A34;
    --color-secondary: #F0E5D8;
    /* Light Beige for cards */
    --color-white: #FFFFFF;

    /* Spacing */
    --container-width: 1200px;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;

    /* Typography */
    --font-main: 'Outfit', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

a {
    text-decoration: none;
    color: inherit;
}

/* Typography Helpers */
h1,
h2,
h3,
h4 {
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.25rem;
}

p.lead {
    font-size: 1.125rem;
    color: #555;
    margin-bottom: 2rem;
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
}

.btn-outline-light {
    border-color: var(--color-white);
    color: var(--color-white);
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Header */
.site-header {
    padding: 1.5rem 0;
    margin-bottom: 2rem;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.phone-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

/* Hero */
.hero {
    padding: 2rem 0 4rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.rating {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #666;
}

.rating .stars {
    color: var(--color-primary);
    margin-right: 0.5rem;
}

.image-wrapper {
    background-color: #E0E0E0;
    border-radius: 12px;
    overflow: hidden;
    height: 500px;
    position: relative;
}

.manolo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Services */
.services {
    background-color: #FFF;
    /* Slight separation */
    padding: 4rem 0;
    margin: 2rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.service-card {
    background-color: var(--color-bg);
    border: 1px solid #EEE;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform 0.2s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.service-card .icon {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

/* Process */
.process {
    padding: 4rem 0;
    background-color: var(--color-bg);
}

.process-steps {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 3rem;
    text-align: center;
}

.step {
    flex: 1;
    max-width: 250px;
}

.step-icon {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.arrow {
    font-size: 2rem;
    color: #CCC;
    margin-top: 0.5rem;
}

/* Proof / Testimonials */
.proof {
    padding: 4rem 0;
}

.proof-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.before-after-card {
    background-color: #000;
    border-radius: 12px;
    overflow: hidden;
    height: 300px;
    position: relative;
    color: #FFF;
}

.before-after-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ba-label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.6);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
}

.ba-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

.testimonials {
    padding: 2rem;
    background-color: var(--color-secondary);
    border-radius: 12px;
}

.quote {
    font-size: 1.25rem;
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-card cite {
    font-weight: 600;
    font-style: normal;
}

/* Footer CTA */
.footer-cta {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 5rem 0;
    margin-top: 4rem;
}

.footer-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
}

.footer-note,
.footer-note a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.site-footer {
    padding: 2rem 0;
    font-size: 0.85rem;
    color: #888;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .header-actions {
        display: none;
    }

    /* Simplify for mobile for now */

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .process-steps {
        flex-direction: column;
        align-items: center;
    }

    .arrow {
        transform: rotate(90deg);
        margin: 0;
    }

    .proof-grid {
        grid-template-columns: 1fr;
    }

    .footer-actions {
        flex-direction: column;
        max-width: 300px;
        margin: 2rem auto;
    }
}