/* ============================================
   Creaciones Ebenezer — Styles
   Emerald Green + Cream | Clean Minimalist
   ============================================ */

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

:root {
    --color-emerald-900: #042f23;
    --color-emerald-800: #064e3b;
    --color-emerald-700: #065f46;
    --color-emerald-600: #047857;
    --color-emerald-500: #059669;
    --color-cream-50: #fafaf5;
    --color-cream-100: #f5f5ee;
    --color-cream-200: #e8e8dc;
    --color-cream-300: #d4d4c8;
    --color-text-dark: #1a1a1a;
    --color-text-muted: #555555;
    --color-text-light: #f5f5ee;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', system-ui, sans-serif;
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    --space-2xl: 8rem;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --transition: 0.3s ease;
}

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

body {
    font-family: var(--font-sans);
    font-weight: 300;
    line-height: 1.7;
    color: var(--color-text-dark);
    background-color: var(--color-cream-50);
    -webkit-font-smoothing: antialiased;
}

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

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* --- Typography --- */
.label {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-emerald-700);
    margin-bottom: var(--space-sm);
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-emerald-900);
    margin-bottom: var(--space-md);
}

.body {
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

.body-lg {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    border: 1.5px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn--dark {
    background: var(--color-emerald-800);
    color: var(--color-cream-50);
    border-color: var(--color-emerald-800);
}

.btn--dark:hover {
    background: var(--color-emerald-900);
    border-color: var(--color-emerald-900);
}

.btn--light {
    background: var(--color-cream-50);
    color: var(--color-emerald-900);
    border-color: var(--color-cream-50);
}

.btn--light:hover {
    background: white;
    border-color: white;
}

.btn--ghost {
    background: transparent;
    color: var(--color-cream-50);
    border-color: rgba(250, 250, 245, 0.5);
}

.btn--ghost:hover {
    border-color: var(--color-cream-50);
    background: rgba(250, 250, 245, 0.1);
}

.btn--sm {
    padding: 0.625rem 1.5rem;
    font-size: 0.8125rem;
}

.btn--full {
    width: 100%;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 250, 245, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-cream-200);
    transition: background var(--transition);
}

.nav__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav__logo {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--color-emerald-800);
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.nav__logo-icon {
    color: var(--color-emerald-700);
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.nav__link {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--color-text-muted);
    letter-spacing: 0.02em;
    transition: color var(--transition);
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-emerald-700);
    transition: width var(--transition);
}

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

.nav__link:hover::after {
    width: 100%;
}

.nav__link--cta {
    padding: 0.5rem 1.25rem;
    border: 1.5px solid var(--color-emerald-700);
    border-radius: var(--radius-sm);
    color: var(--color-emerald-700);
    transition: all var(--transition);
}

.nav__link--cta::after {
    display: none;
}

.nav__link--cta:hover {
    background: var(--color-emerald-700);
    color: var(--color-cream-50);
}

/* Mobile menu toggle */
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav__toggle-line {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--color-emerald-800);
    transition: all var(--transition);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 5px);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(2) {
    opacity: 0;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -5px);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(4, 47, 35, 0.55) 0%,
        rgba(4, 47, 35, 0.70) 50%,
        rgba(4, 47, 35, 0.85) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 720px;
    padding: var(--space-md);
    color: var(--color-cream-50);
}

.hero__greeting {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(250, 250, 245, 0.7);
    margin-bottom: var(--space-sm);
}

.hero__headline {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--color-cream-50);
    margin-bottom: var(--space-md);
}

.hero__sub {
    font-size: 1.125rem;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(250, 250, 245, 0.8);
    max-width: 520px;
    margin: 0 auto var(--space-md);
}

.hero__actions {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.hero__scroll {
    position: absolute;
    bottom: var(--space-md);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(250, 250, 245, 0.5);
    font-size: 0.6875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* --- About --- */
.about {
    padding: var(--space-2xl) 0;
}

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

.about__text .section-title {
    margin-bottom: var(--space-md);
}

.about__text .body-lg {
    margin-bottom: var(--space-sm);
}

.about__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
}

/* --- Features --- */
.features {
    padding: var(--space-2xl) 0;
    background: var(--color-cream-100);
}

.features__header {
    text-align: center;
    max-width: 560px;
    margin: 0 auto var(--space-lg);
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.feature-card {
    background: var(--color-cream-50);
    border: 1px solid var(--color-cream-200);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    transition: all var(--transition);
}

.feature-card:hover {
    border-color: var(--color-emerald-300);
    box-shadow: 0 4px 24px rgba(6, 78, 59, 0.08);
}

.feature-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--color-emerald-50);
    color: var(--color-emerald-700);
    margin-bottom: var(--space-sm);
}

.feature-card__title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--color-emerald-900);
    margin-bottom: var(--space-xs);
}

.feature-card__text {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* --- Menu --- */
.menu {
    padding: var(--space-2xl) 0;
}

.menu__inner {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-lg);
    align-items: start;
}

.menu__left .section-title {
    margin-bottom: var(--space-sm);
}

.menu__left .body-lg {
    margin-bottom: var(--space-md);
}

.menu__right {
    background: var(--color-cream-100);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
}

.menu__columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.menu__column-title {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--color-emerald-800);
    padding-bottom: var(--space-xs);
    border-bottom: 1px solid var(--color-cream-200);
    margin-bottom: var(--space-sm);
}

.menu__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.menu__list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--space-sm);
    padding: 0.375rem 0;
}

.menu__item-name {
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--color-text-dark);
}

.menu__item-desc {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    font-weight: 300;
}

.menu__note {
    margin-top: var(--space-md);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--color-cream-200);
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    font-style: italic;
    text-align: center;
}

/* --- Visit --- */
.visit {
    padding: var(--space-2xl) 0;
    background: var(--color-cream-100);
}

.visit__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: start;
}

.visit__details {
    margin-top: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.visit__detail {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.visit__detail-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-emerald-700);
}

.visit__detail dd {
    font-size: 1rem;
    color: var(--color-text-dark);
    line-height: 1.7;
}

.visit__detail dd a {
    color: var(--color-emerald-700);
    border-bottom: 1px solid var(--color-emerald-200);
    transition: border-color var(--transition);
}

.visit__detail dd a:hover {
    border-color: var(--color-emerald-700);
}

.visit__map {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.visit__map img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

/* --- Contact --- */
.contact {
    padding: var(--space-2xl) 0;
}

.contact__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: start;
}

.contact__text .section-title {
    margin-bottom: var(--space-sm);
}

.contact__text .body-lg {
    margin-bottom: var(--space-md);
}

/* Form */
.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
}

.form__group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    margin-bottom: var(--space-sm);
}

.form__label {
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--color-text-dark);
    letter-spacing: 0.02em;
}

.form__input,
.form__textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 300;
    color: var(--color-text-dark);
    background: var(--color-cream-50);
    border: 1.5px solid var(--color-cream-200);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color var(--transition);
}

.form__input:focus,
.form__textarea:focus {
    border-color: var(--color-emerald-600);
}

.form__input::placeholder,
.form__textarea::placeholder {
    color: var(--color-cream-300);
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
}

.form__success {
    margin-top: var(--space-sm);
    padding: var(--space-sm);
    background: var(--color-emerald-50);
    border: 1px solid var(--color-emerald-200);
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    color: var(--color-emerald-800);
    text-align: center;
}

/* --- Footer --- */
.footer {
    background: var(--color-emerald-900);
    color: var(--color-cream-50);
    padding: var(--space-lg) 0 var(--space-md);
}

.footer__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--space-md);
    align-items: start;
    padding-bottom: var(--space-md);
    border-bottom: 1px solid rgba(250, 250, 245, 0.15);
}

.footer__logo {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--color-cream-50);
    display: block;
    margin-bottom: 0.5rem;
}

.footer__tagline {
    font-size: 0.875rem;
    color: rgba(250, 250, 245, 0.6);
    font-weight: 300;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.footer__links a {
    font-size: 0.875rem;
    color: rgba(250, 250, 245, 0.7);
    transition: color var(--transition);
}

.footer__links a:hover {
    color: var(--color-cream-50);
}

.footer__contact {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.footer__contact a {
    font-size: 0.9375rem;
    color: rgba(250, 250, 245, 0.8);
    transition: color var(--transition);
}

.footer__contact a:hover {
    color: var(--color-cream-50);
}

.footer__contact p {
    font-size: 0.875rem;
    color: rgba(250, 250, 245, 0.6);
    font-weight: 300;
}

.footer__bottom {
    padding-top: var(--space-sm);
    text-align: center;
}

.footer__bottom p {
    font-size: 0.8125rem;
    color: rgba(250, 250, 245, 0.4);
    font-weight: 300;
}

/* --- 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: 900px) {
    .about__grid,
    .menu__inner,
    .visit__inner,
    .contact__inner {
        grid-template-columns: 1fr;
    }

    .features__grid {
        grid-template-columns: 1fr 1fr;
    }

    .menu__columns {
        grid-template-columns: 1fr;
    }

    .footer__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer__links {
        flex-direction: row;
        gap: var(--space-sm);
    }

    .footer__contact {
        text-align: center;
    }
}

@media (max-width: 640px) {
    :root {
        --space-lg: 3rem;
        --space-xl: 4rem;
        --space-2xl: 5rem;
    }

    .nav__menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(250, 250, 245, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        padding: var(--space-md);
        gap: var(--space-sm);
        border-bottom: 1px solid var(--color-cream-200);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition);
    }

    .nav__menu.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav__toggle {
        display: flex;
    }

    .features__grid {
        grid-template-columns: 1fr;
    }

    .form__row {
        grid-template-columns: 1fr;
    }

    .hero__actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }
}
