/* 
  Alquimia Interior x Simón Rave
  Design System & Main Styles
*/

:root {
    /* Color Palette */
    --color-forest-green: #2E3D32;
    --color-clay-earth: #8B5E3C;
    --color-ivory: #FAF9F6;
    --color-charcoal: #1A1A1A;

    /* Usage */
    --bg-primary: var(--color-forest-green);
    --bg-secondary: var(--color-ivory);
    --text-primary: var(--color-ivory);
    /* On dark background */
    --text-secondary: var(--color-charcoal);
    /* On light background */
    --accent: var(--color-clay-earth);

    /* Typography */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Lato', sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;

    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-smooth: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Typography Utilities */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--space-md);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
    color: var(--accent);
}

p {
    margin-bottom: var(--space-sm);
    font-size: 1.125rem;
    max-width: 65ch;
    margin-left: auto;
    margin-right: auto;
}

/* Layout Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

section {
    padding: var(--space-lg) 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--color-ivory);
    border-radius: 4px;
}

.btn-primary:hover {
    background-color: #6d4a2f;
    /* Darker clay */
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background-color: var(--accent);
    color: var(--color-ivory);
}

/* Sections specific styles */

/* Hero */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--bg-primary);
    background-image: linear-gradient(rgba(46, 61, 50, 0.7), rgba(46, 61, 50, 0.7)), url('../img/header.png');
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-content {
    z-index: 2;
    animation: fadeIn var(--transition-smooth);
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: var(--space-md);
    margin-top: var(--space-sm);
    margin-left: auto;
    margin-right: auto;
}

.hero-separator {
    display: block;
    font-size: 1.35em;
    /* 10% smaller than 1.5em */
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--color-ivory);
    /* White/Ivory as requested */
    margin: var(--space-xs) 0;
    line-height: 1;
}

.hero-author {
    display: block;
    font-size: 0.6em;
    /* Relative to H1 */
    font-style: italic;
    font-weight: 300;
}

/* Sections with Ivory Background */
.bg-ivory {
    background-color: var(--color-ivory);
    color: var(--text-secondary);
}

.bg-ivory h2 {
    color: var(--color-forest-green);
}

/* Split Section Layout */
.split-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
}

.split-section.reverse {
    flex-direction: row-reverse;
}

.split-content {
    flex: 1;
    text-align: left;
}

.split-content p {
    text-align: justify;
}

.split-image {
    flex: 1;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.split-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-smooth);
}

.split-image:hover img {
    transform: scale(1.03);
}

/* Specific adjustment for 'Que es' image size */
#que-es .split-image {
    flex: 0 0 42.5%;
    max-width: 42.5%;
}

/* Specific adjustment for 'Sobre Simon' image size */
/* Specific adjustment for 'Sobre Simon' image size */
#sobre-simon .split-image {
    flex: 0 0 35%;
    max-width: 35%;
}

@media (max-width: 768px) {

    .split-section,
    .split-section.reverse {
        flex-direction: column;
    }

    .split-content {
        text-align: center;
    }
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.service-card {
    padding-bottom: var(--space-md);
    border: 1px solid rgba(46, 61, 50, 0.1);
    /* Subtle border matching forest green */
    transition: var(--transition-fast);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-3px);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    margin-bottom: var(--space-sm);
}

.service-card h3,
.service-card p,
.service-card ul {
    padding: 0 1.5rem;
    /* Optimized lateral padding */
}

.service-card p,
.service-card ul {
    flex-grow: 1;
    margin-bottom: var(--space-md);
}

.service-card ul {
    padding-left: 2.75rem;
    /* Balanced bullet indentation */
    list-style-type: disc;
    font-size: 1rem;
    color: var(--text-secondary);
}

.service-card .service-subtitle {
    display: block;
    font-size: 0.85em;
    font-weight: 400;
    color: var(--color-forest-green);
    opacity: 0.9;
    margin-top: 0.25rem;
}

.service-card .service-duration {
    display: block;
    font-size: 0.8em;
    font-weight: 400;
    color: var(--text-secondary);
    opacity: 0.7;
    margin-top: 0.25rem;
}

.service-card li {
    margin-bottom: 0.5rem;
}

.service-card .btn {
    align-self: center;
    width: 85%;
    text-align: center;
    margin-top: auto;
    margin-bottom: var(--space-sm);
    display: block;
    /* Ensure text-align works */
}

.service-card h3 {
    margin-top: var(--space-sm);
    color: var(--color-earth-clay);
}


/* Process Section */
.process-steps {
    display: flex;
    justify-content: space-between;
    gap: 5rem;
    /* Increased gap */
    margin-top: var(--space-xl);
    position: relative;
    max-width: 1000px;
    /* Widened to accommodate larger gap */
    margin-left: auto;
    margin-right: auto;
}

/* Process Step */
.process-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
    background-color: var(--color-forest-green);
    color: var(--color-ivory);
    padding: var(--space-lg) var(--space-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

/* Independent Connecting Lines (Chain Effect) */
.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 6.5rem;
    /* Align with center of numbers */
    right: -5rem;
    /* Exactly the size of the gap */
    width: 5rem;
    height: 2px;
    background-color: rgba(139, 94, 60, 0.2);
    z-index: -1;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Testimonials */
.testimonials-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-lg);
    margin-top: var(--space-lg);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.testimonial-card {
    flex: 1 1 300px;
    background-color: rgba(255, 255, 255, 0.05);
    /* Glassmorphism on dark bg */
    padding: var(--space-lg);
    border-radius: 8px;
    text-align: center;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform var(--transition-medium);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.08);
}

.testimonial-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: var(--space-md);
    border: 2px solid var(--color-earth-clay);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.testimonial-quote {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: var(--space-sm);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.testimonial-name {
    font-family: var(--font-serif);
    color: var(--color-earth-clay);
    font-weight: 700;
    font-size: 1.1rem;
}

.step-number {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    color: #E6B325;
    /* Golden Yellow */
    font-weight: 700;
    line-height: 1;
    display: block;
    margin-bottom: var(--space-sm);
}

.step-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
    color: var(--color-ivory);
}

.step-description {
    font-size: 0.95rem;
    max-width: 250px;
    margin: 0 auto;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .process-steps {
        flex-direction: column;
        gap: var(--space-xl);
    }

    .process-steps::before {
        width: 1px;
        height: 80%;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
    }

    .process-step {
        padding: var(--space-md) 0;
    }
}

/* Footer */
footer {
    background-color: var(--color-charcoal);
    color: var(--color-ivory);
    padding: var(--space-md) 0;
    text-align: center;
    font-size: 0.9rem;
}

.footer-links a {
    color: var(--color-ivory);
    margin: 0 var(--space-sm);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.footer-links a:hover {
    opacity: 1;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    :root {
        --space-lg: 3rem;
    }
}

/* Highlight Button (Premium CTA) */
.btn-highlight {
    display: inline-block;
    background-color: #E6B325;
    /* Warm Golden Yellow */
    color: var(--color-charcoal);
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 15px rgba(230, 179, 37, 0.3);
    border: none;
    cursor: pointer;
}

.btn-highlight:hover {
    background-color: #f0c040;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 179, 37, 0.4);
    color: var(--color-charcoal);
}