/* ============================================
   MARLEN ESTILISTAS UNISEX — STYLES
   Forest Green + Off-White · Minimalist
   ============================================ */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --green-deep: #1a3c34;
    --green-mid: #2d5a4a;
    --green-light: #3d7a63;
    --green-pale: #e8f0ec;
    --cream: #f5f2eb;
    --cream-light: #faf8f4;
    --cream-dark: #e8e4db;
    --text-primary: #1a1a18;
    --text-secondary: #4a4a44;
    --text-muted: #7a7a72;
    --white: #ffffff;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --transition: 0.4s var(--ease-out);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--text-primary);
    background-color: var(--cream);
    line-height: 1.7;
    overflow-x: hidden;
}

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

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ============================================
   SIDE NAVIGATION
   ============================================ */
.side-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    background: var(--green-deep);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 36px;
    z-index: 1000;
    transition: transform 0.5s var(--ease-out);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 64px;
}

.nav-logo-mark {
    width: 28px;
    height: 28px;
    border: 1.5px solid rgba(245, 242, 235, 0.5);
    border-radius: 50%;
    flex-shrink: 0;
}

.nav-logo-text {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--cream);
    letter-spacing: 0.02em;
}

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-link {
    display: block;
    padding: 10px 0;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(245, 242, 235, 0.5);
    border-bottom: 1px solid rgba(245, 242, 235, 0.06);
    transition: color var(--transition), padding-left var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--cream);
    padding-left: 8px;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    left: 28px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: var(--cream);
    border-radius: 50%;
}

.nav-footer {
    padding-top: 32px;
    border-top: 1px solid rgba(245, 242, 235, 0.1);
}

.nav-phone {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    color: rgba(245, 242, 235, 0.4);
    transition: color var(--transition);
}

.nav-phone:hover {
    color: var(--cream);
}

/* ============================================
   MOBILE MENU TOGGLE
   ============================================ */
.menu-toggle {
    display: none;
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 1100;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: var(--green-deep);
    border-radius: 50%;
    box-shadow: 0 2px 20px rgba(26, 60, 52, 0.3);
}

.menu-toggle-line {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--cream);
    transition: transform 0.3s var(--ease-out), opacity 0.3s;
    transform-origin: center;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-line:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

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

.menu-toggle[aria-expanded="true"] .menu-toggle-line:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s;
}

.nav-overlay.visible {
    opacity: 1;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    margin-left: 260px;
    min-height: 100vh;
}

.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 80px 80px;
    position: relative;
}

/* ============================================
   SECTION COMMON
   ============================================ */
.section-eyebrow {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--green-light);
    margin-bottom: 20px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 300;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 520px;
    line-height: 1.8;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    background: var(--cream);
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 80px 80px 72px;
    max-width: 600px;
}

.hero-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--green-light);
    margin-bottom: 28px;
    font-weight: 500;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 5.5vw, 5rem);
    font-weight: 300;
    line-height: 1.05;
    color: var(--text-primary);
    margin-bottom: 32px;
}

.hero-title em {
    font-style: italic;
    color: var(--green-mid);
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 48px;
    max-width: 440px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 0;
    transition: all var(--transition);
}

.btn-primary {
    background: var(--green-deep);
    color: var(--cream);
    border: 1.5px solid var(--green-deep);
}

.btn-primary:hover {
    background: var(--green-mid);
    border-color: var(--green-mid);
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--text-muted);
}

.btn-ghost:hover {
    border-color: var(--green-deep);
    color: var(--green-deep);
}

.btn-white {
    background: var(--white);
    color: var(--green-deep);
    border: 1.5px solid var(--white);
}

.btn-white:hover {
    background: var(--cream);
}

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

.hero-image {
    position: relative;
    height: 100%;
    overflow: hidden;
}

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

.hero-image-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, rgba(26, 60, 52, 0.2), transparent);
}

/* ============================================
   ABOUT
   ============================================ */
.about {
    background: var(--cream-light);
}

.about-inner {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image-wrap {
    position: relative;
}

.about-image-wrap::before {
    content: '';
    position: absolute;
    top: -16px;
    left: -16px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--green-pale);
    z-index: -1;
}

.about-image-wrap img {
    width: 100%;
    height: 480px;
    object-fit: cover;
}

.about-text {
    max-width: 480px;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.85;
}

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

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 300;
    color: var(--green-deep);
    line-height: 1;
}

.stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

.stat-divider {
    width: 1px;
    background: var(--cream-dark);
    align-self: stretch;
}

/* ============================================
   SERVICES
   ============================================ */
.services {
    background: var(--cream);
}

.services-inner {
    width: 100%;
}

.services-header {
    margin-bottom: 64px;
}

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

.service-card {
    padding: 40px 32px;
    background: var(--white);
    border: 1px solid var(--cream-dark);
    transition: all var(--transition);
}

.service-card:hover {
    border-color: var(--green-pale);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(26, 60, 52, 0.06);
}

.service-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--green-mid);
}

.service-name {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.service-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery {
    background: var(--cream-light);
    padding: 80px 0;
}

.gallery-inner {
    width: 100%;
    padding: 0 80px;
    margin-bottom: 48px;
}

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

.gallery-item {
    overflow: hidden;
    position: relative;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(26, 60, 52, 0);
    transition: background 0.4s;
}

.gallery-item:hover::after {
    background: rgba(26, 60, 52, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.gallery-item:hover img {
    transform: scale(1.04);
}

.gallery-item:nth-child(1) { grid-row: span 2; }
.gallery-item:nth-child(1) img { height: 100%; min-height: 520px; }
.gallery-item:nth-child(3) { grid-row: span 2; }
.gallery-item:nth-child(3) img { height: 100%; min-height: 520px; }

/* ============================================
   SCHEDULE
   ============================================ */
.schedule {
    background: var(--cream);
}

.schedule-inner {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.schedule-content {
    max-width: 480px;
}

.schedule-table {
    margin-top: 40px;
    border-top: 1px solid var(--cream-dark);
}

.schedule-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--cream-dark);
}

.schedule-day {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 400;
}

.schedule-hours {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.schedule-closed .schedule-hours {
    color: var(--text-muted);
    font-style: italic;
}

.schedule-note {
    margin-top: 24px;
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.schedule-note a {
    color: var(--green-mid);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.schedule-map {
    height: 480px;
    border: 1px solid var(--cream-dark);
    overflow: hidden;
}

.schedule-map iframe {
    filter: grayscale(0.6) contrast(1.05);
    transition: filter var(--transition);
}

.schedule-map:hover iframe {
    filter: grayscale(0) contrast(1);
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
    background: var(--cream-light);
}

.contact-inner {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info {
    max-width: 440px;
}

.contact-intro {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 48px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

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

.contact-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--cream-dark);
    border-radius: 50%;
    color: var(--green-mid);
    flex-shrink: 0;
}

.contact-label {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.contact-value {
    display: block;
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.6;
}

.contact-value a {
    color: var(--text-primary);
    transition: color var(--transition);
}

.contact-value a:hover {
    color: var(--green-mid);
}

/* Form */
.contact-form-wrap {
    max-width: 480px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.form-input {
    width: 100%;
    padding: 14px 0;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--text-primary);
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--cream-dark);
    outline: none;
    transition: border-color var(--transition);
    resize: none;
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input:focus {
    border-color: var(--green-mid);
}

.form-textarea {
    line-height: 1.7;
}

.form-privacy {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: 4px;
}

.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    padding: 48px 24px;
}

.form-success.visible {
    display: flex;
}

.success-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--green-mid);
    border-radius: 50%;
    color: var(--green-mid);
}

.success-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--text-primary);
}

.success-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   CTA
   ============================================ */
.cta {
    background: var(--green-deep);
    padding: 100px 80px;
    text-align: center;
}

.cta-inner {
    max-width: 600px;
    margin: 0 auto;
}

.cta .section-eyebrow {
    color: rgba(245, 242, 235, 0.5);
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 300;
    color: var(--cream);
    line-height: 1.1;
    margin-bottom: 20px;
}

.cta-subtitle {
    font-size: 1.05rem;
    color: rgba(245, 242, 235, 0.6);
    margin-bottom: 40px;
    line-height: 1.8;
}

.cta-subtitle a {
    color: var(--cream);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--green-deep);
    padding: 48px 80px;
    border-top: 1px solid rgba(245, 242, 235, 0.08);
}

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

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--cream);
}

.footer-tagline {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(245, 242, 235, 0.4);
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    color: rgba(245, 242, 235, 0.4);
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--cream);
}

.footer-copy {
    font-size: 0.75rem;
    color: rgba(245, 242, 235, 0.25);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .section {
        padding: 60px 48px;
    }
    .hero-content {
        padding: 60px 48px;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .side-nav {
        transform: translateX(-100%);
    }
    .side-nav.open {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
    }
    .menu-toggle {
        display: flex;
    }
    .nav-overlay {
        display: block;
    }
    .hero {
        grid-template-columns: 1fr;
    }
    .hero-content {
        padding: 100px 48px 60px;
        min-height: auto;
    }
    .hero-image {
        height: 50vh;
    }
    .about-inner,
    .schedule-inner,
    .contact-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .about-image-wrap img {
        height: 360px;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-item:nth-child(1),
    .gallery-item:nth-child(3) {
        grid-row: span 1;
    }
    .gallery-item img {
        min-height: 280px;
    }
    .schedule-map {
        height: 320px;
    }
    .footer {
        padding: 40px 48px;
    }
    .footer-inner {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 24px;
    }
    .hero-content {
        padding: 90px 24px 48px;
    }
    .hero-title {
        font-size: clamp(2.4rem, 10vw, 3.2rem);
    }
    .hero-actions {
        flex-direction: column;
    }
    .hero-actions .btn {
        justify-content: center;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .gallery-inner {
        padding: 0 24px;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .gallery-item img {
        min-height: 260px;
    }
    .about-stats {
        flex-direction: column;
        gap: 24px;
    }
    .stat-divider {
        width: 40px;
        height: 1px;
        align-self: flex-start;
    }
    .cta {
        padding: 80px 24px;
    }
    .footer {
        padding: 36px 24px;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 48px 20px;
    }
    .hero-content {
        padding: 80px 20px 40px;
    }
    .contact-form-wrap {
        max-width: 100%;
    }
}
