/* ============================================
   En el Jardín de Lorenzo — Styles
   Emerald Green & Cream | Editorial Design
   ============================================ */

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

:root {
    --emerald-950: #042f1a;
    --emerald-900: #064e2d;
    --emerald-800: #075935;
    --emerald-700: #086e3f;
    --emerald-600: #0a874e;
    --emerald-500: #10a35f;
    --emerald-400: #22c97e;
    --cream-50:  #faf8f4;
    --cream-100: #f5f0e8;
    --cream-200: #ede6d8;
    --cream-300: #e2d9c8;
    --brown-800: #3d2e1e;
    --brown-700: #5a4230;
    --brown-600: #6b5038;
    --white:     #ffffff;
    --black:     #0a0a0a;
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --max-width: 1200px;
    --radius: 8px;
    --transition: 0.3s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--brown-800);
    background: var(--cream-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.15;
    color: var(--emerald-950);
}

.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--emerald-600);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--brown-700);
    max-width: 560px;
    line-height: 1.7;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 14px 28px;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--emerald-700);
    color: var(--white);
    border-color: var(--emerald-700);
}
.btn-primary:hover {
    background: var(--emerald-800);
    border-color: var(--emerald-800);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(10, 135, 78, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
}

.btn-secondary-light {
    background: transparent;
    color: var(--emerald-800);
    border-color: var(--emerald-700);
}
.btn-secondary-light:hover {
    background: var(--emerald-700);
    color: var(--white);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-large {
    padding: 18px 36px;
    font-size: 1rem;
}

.btn-icon {
    display: inline-flex;
    width: 20px;
    height: 20px;
}
.btn-icon svg {
    width: 100%;
    height: 100%;
}

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 248, 244, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(10, 135, 78, 0.1);
    transition: box-shadow var(--transition);
}
.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-mark {
    width: 40px;
    height: 40px;
    background: var(--emerald-700);
    color: var(--cream-50);
    font-family: var(--font-serif);
    font-weight: 800;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}
.logo-line1 {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 700;
    color: var(--emerald-950);
}
.logo-line2 {
    font-family: var(--font-serif);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--emerald-700);
}

/* Nav */
.nav-list {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}
.nav-list a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--brown-700);
    transition: color var(--transition);
    position: relative;
}
.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--emerald-600);
    transition: width var(--transition);
}
.nav-list a:hover {
    color: var(--emerald-700);
}
.nav-list a:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--emerald-700);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 600 !important;
}
.nav-cta::after { display: none; }
.nav-cta:hover {
    background: var(--emerald-800);
    color: var(--white) !important;
}

/* Mobile toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: relative;
}
.hamburger {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 2px;
    background: var(--emerald-950);
    transition: all var(--transition);
}
.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 2px;
    background: var(--emerald-950);
    left: 0;
    transition: all var(--transition);
}
.hamburger::before { top: -7px; }
.hamburger::after  { top: 7px; }

.nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}
.nav-toggle[aria-expanded="true"] .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--emerald-950);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(4, 47, 26, 0.88) 0%,
        rgba(10, 78, 45, 0.75) 50%,
        rgba(4, 47, 26, 0.85) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 120px 24px 80px;
    max-width: 800px;
}

.hero-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--cream-200);
    margin-bottom: 24px;
    opacity: 0.9;
}

.hero-headline {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.08;
    margin-bottom: 24px;
}

.hero-headline .accent {
    color: var(--cream-200);
    font-style: italic;
    font-weight: 600;
}

.hero-sub {
    font-size: 1.15rem;
    color: rgba(245, 240, 232, 0.85);
    line-height: 1.75;
    max-width: 580px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.6;
    transition: opacity var(--transition);
}
.scroll-indicator:hover { opacity: 1; }

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--white), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
}

/* --- Services --- */
.services {
    padding: 100px 0;
    background: var(--cream-50);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}
.section-header .section-subtitle {
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-card {
    background: var(--white);
    border-radius: 12px;
    padding: 40px 32px;
    border: 1px solid var(--cream-200);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--emerald-600), var(--emerald-400));
    transform: scaleX(0);
    transition: transform var(--transition);
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(10, 78, 45, 0.1);
    border-color: transparent;
}
.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 56px;
    height: 56px;
    color: var(--emerald-700);
    margin-bottom: 24px;
}
.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.service-desc {
    font-size: 0.95rem;
    color: var(--brown-700);
    line-height: 1.7;
    margin-bottom: 24px;
}

.service-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.service-features li {
    font-size: 0.875rem;
    color: var(--brown-600);
    padding-left: 20px;
    position: relative;
}
.service-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: var(--emerald-500);
    border-radius: 50%;
}

/* --- About --- */
.about {
    padding: 100px 0;
    background: var(--cream-100);
}

.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 12px;
    width: 100%;
    height: 500px;
    object-fit: cover;
    box-shadow: 0 24px 48px rgba(0,0,0,0.1);
}

.about-accent {
    position: absolute;
    bottom: -24px;
    right: -24px;
    width: 160px;
    height: 160px;
    background: var(--emerald-700);
    border-radius: 12px;
    z-index: -1;
    opacity: 0.15;
}

.about-content .section-title {
    margin-bottom: 24px;
}

.about-text {
    font-size: 1rem;
    color: var(--brown-700);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-quote {
    margin: 32px 0;
    padding: 24px 28px;
    background: var(--white);
    border-left: 4px solid var(--emerald-600);
    border-radius: 0 var(--radius) var(--radius) 0;
}
.about-quote p {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--emerald-900);
    line-height: 1.6;
    margin-bottom: 8px;
}
.about-quote cite {
    font-size: 0.85rem;
    color: var(--brown-600);
    font-style: normal;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--cream-300);
}

.stat-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 800;
    color: var(--emerald-700);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--brown-600);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* --- Approach --- */
.approach {
    padding: 100px 0;
    background: var(--cream-50);
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top: 64px;
}

.approach-step {
    text-align: center;
    padding: 32px 20px;
    position: relative;
}

.step-number {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--cream-200);
    line-height: 1;
    margin-bottom: 16px;
}

.step-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.step-desc {
    font-size: 0.9rem;
    color: var(--brown-700);
    line-height: 1.7;
}

/* --- Testimonials --- */
.testimonials {
    padding: 100px 0;
    background: var(--emerald-950);
}

.testimonials .section-eyebrow {
    color: var(--emerald-400);
}

.testimonials .section-title {
    color: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 64px;
}

.testimonial-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 36px 28px;
    position: relative;
    transition: all var(--transition);
}
.testimonial-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-4px);
}

.testimonial-quote-mark {
    font-family: var(--font-serif);
    font-size: 4rem;
    color: var(--emerald-500);
    line-height: 1;
    position: absolute;
    top: 16px;
    left: 24px;
    opacity: 0.5;
}

.testimonial-text {
    font-size: 0.95rem;
    color: rgba(245, 240, 232, 0.85);
    line-height: 1.75;
    margin-top: 24px;
    margin-bottom: 20px;
}

.testimonial-author {
    font-size: 0.85rem;
    color: var(--emerald-400);
    font-weight: 500;
}

/* --- CTA --- */
.cta {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
}
.cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(4, 47, 26, 0.92), rgba(10, 78, 45, 0.88));
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-eyebrow {
    color: var(--emerald-400);
}

.cta-title {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    color: var(--white);
    margin-bottom: 20px;
}

.cta-sub {
    font-size: 1.1rem;
    color: rgba(245, 240, 232, 0.8);
    margin-bottom: 40px;
    line-height: 1.7;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

/* --- Contact --- */
.contact {
    padding: 100px 0;
    background: var(--cream-100);
}

.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

.contact-desc {
    font-size: 1rem;
    color: var(--brown-700);
    line-height: 1.7;
    margin-bottom: 36px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 36px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-icon {
    width: 44px;
    height: 44px;
    background: var(--emerald-700);
    color: var(--white);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-icon svg {
    width: 20px;
    height: 20px;
}

.contact-item div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--brown-600);
}

.contact-value,
.contact-item a {
    font-size: 0.95rem;
    color: var(--emerald-950);
    font-weight: 500;
    transition: color var(--transition);
}
.contact-item a:hover {
    color: var(--emerald-600);
    text-decoration: underline;
}

.contact-map {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* Form */
.contact-form-wrap {
    background: var(--white);
    border-radius: 12px;
    padding: 40px;
    border: 1px solid var(--cream-200);
}

.form-title {
    font-size: 1.5rem;
    margin-bottom: 28px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brown-700);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--cream-300);
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--brown-800);
    background: var(--cream-50);
    transition: all var(--transition);
    outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--emerald-600);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(10, 135, 78, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-success {
    text-align: center;
    padding: 40px 20px;
}
.form-success.hidden { display: none; }

.success-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    color: var(--emerald-600);
}
.success-icon svg {
    width: 100%;
    height: 100%;
}

.form-success p {
    font-size: 1rem;
    color: var(--brown-700);
    line-height: 1.6;
}

/* --- Footer --- */
.footer {
    background: var(--emerald-950);
    color: var(--cream-200);
    padding: 64px 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo-mark {
    margin-bottom: 12px;
}

.footer-name {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    display: block;
    margin-bottom: 8px;
}

.footer-tagline {
    font-size: 0.85rem;
    color: rgba(245, 240, 232, 0.6);
    line-height: 1.6;
}

.footer-links nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-links a {
    font-size: 0.9rem;
    color: rgba(245, 240, 232, 0.7);
    transition: color var(--transition);
}
.footer-links a:hover {
    color: var(--emerald-400);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-contact a {
    font-size: 0.9rem;
    color: rgba(245, 240, 232, 0.7);
    transition: color var(--transition);
}
.footer-contact a:hover {
    color: var(--emerald-400);
}
.footer-contact p {
    font-size: 0.85rem;
    color: rgba(245, 240, 232, 0.5);
}

.footer-bottom {
    padding: 24px 0;
}
.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(245, 240, 232, 0.4);
}

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .approach-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .testimonials-grid .testimonial-card:last-child {
        grid-column: 1 / -1;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav-list {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(250, 248, 244, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 32px 24px;
        gap: 20px;
        border-bottom: 1px solid var(--cream-200);
        transform: translateY(-120%);
        opacity: 0;
        transition: all var(--transition);
        pointer-events: none;
    }
    .nav-list.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    .nav-toggle {
        display: block;
    }

    .hero-content {
        padding: 100px 24px 60px;
    }

    .hero-headline {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .testimonials-grid .testimonial-card:last-child {
        max-width: none;
    }

    .about-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-image img {
        height: 350px;
    }
    .about-accent {
        width: 100px;
        height: 100px;
        bottom: -16px;
        right: -16px;
    }
    .about-stats {
        gap: 24px;
    }

    .approach-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .approach-step {
        text-align: left;
        padding: 20px 24px;
        border-bottom: 1px solid var(--cream-200);
    }
    .step-number {
        display: inline-block;
        font-size: 2rem;
        margin-right: 12px;
    }

    .contact-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .contact-form-wrap {
        padding: 28px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .footer-bottom-inner {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    .hero-actions {
        flex-direction: column;
    }
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    .cta-actions .btn {
        width: 100%;
        justify-content: center;
    }
}
