/* ============================================
   BRUMENCE — Un olor, un recuerdo
   Brand Colors: Black on Beige
   ============================================ */

:root {
    --color-bg: #F5F0E8;
    --color-bg-light: #FAF7F2;
    --color-bg-dark: #EDE6D9;
    --color-text: #1A1A1A;
    --color-text-light: #4A4A4A;
    --color-text-muted: #7A7A7A;
    --color-accent: #1A1A1A;
    --color-border: #D4CCBE;
    --color-border-light: #E5DFD4;
    --font-heading: 'Cormorant Garamond', 'Georgia', serif;
    --font-body: 'Montserrat', 'Helvetica Neue', sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ---- Accessibility ---- */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
}

/* ---- Navigation ---- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition-slow);
    background-color: transparent;
}

.navbar.scrolled {
    background-color: rgba(245, 240, 232, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.8rem 0;
    box-shadow: 0 1px 0 var(--color-border-light);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo-img {
    height: 200px;
    width: auto;
    margin: -60px 0;
    transition: var(--transition);
}

.navbar.scrolled .nav-logo-img {
    height: 140px;
    margin: -40px 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text);
    position: relative;
}

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

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 1px;
    background-color: var(--color-text);
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* ---- Hero Section ---- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    background-color: var(--color-bg);
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-logo-img {
    width: 420px;
    height: auto;
}

.hero-divider {
    width: 60px;
    height: 1px;
    background-color: var(--color-text);
    margin: 2.5rem 0;
    opacity: 0.4;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-light);
    margin-bottom: 2.5rem;
}

.hero-cta {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-text);
    border: 1px solid var(--color-text);
    padding: 1rem 2.5rem;
    transition: var(--transition);
}

.hero-cta:hover {
    background-color: var(--color-text);
    color: var(--color-bg);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

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

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.7); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ---- Sections Common ---- */
.section {
    padding: 7rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    display: block;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    color: var(--color-text);
}

/* ---- About Section ---- */
.about {
    background-color: var(--color-bg-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: var(--color-text-light);
}

.about-lead {
    font-family: var(--font-heading);
    font-size: 1.4rem !important;
    line-height: 1.6;
    color: var(--color-text) !important;
    font-weight: 400;
}

.about-text strong {
    font-weight: 500;
    color: var(--color-text);
}

.about-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.about-monogram {
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.15;
}

.about-monogram img {
    width: 100%;
}

.about-stats {
    display: flex;
    gap: 2.5rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 300;
    color: var(--color-text);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

/* ---- Products Section ---- */
.products-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.product-card {
    background-color: var(--color-bg-light);
    padding: 3.5rem;
    text-align: center;
    border: 1px solid var(--color-border-light);
    transition: var(--transition-slow);
}

.product-card:hover {
    border-color: var(--color-border);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
}

.product-icon {
    width: 80px;
    height: 100px;
    margin: 0 auto 2rem;
    color: var(--color-text);
}

.product-icon svg {
    width: 100%;
    height: 100%;
}

.product-title {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.product-desc {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.product-features {
    list-style: none;
    text-align: left;
    max-width: 280px;
    margin: 0 auto;
}

.product-features li {
    font-size: 0.85rem;
    color: var(--color-text-light);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border-light);
    position: relative;
    padding-left: 1.2rem;
}

.product-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--color-text-muted);
    transform: translateY(-50%);
}

.product-features li:last-child {
    border-bottom: none;
}

/* ---- Process Section ---- */
.process {
    background-color: var(--color-bg-light);
}

.process-timeline {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 32px;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: var(--color-border);
}

.process-step {
    display: flex;
    gap: 2.5rem;
    padding: 2rem 0;
    position: relative;
}

.step-number {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--color-text-muted);
    min-width: 65px;
    text-align: center;
    background-color: var(--color-bg-light);
    position: relative;
    z-index: 1;
    padding: 0.5rem 0;
}

.step-content h3 {
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.step-content p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.8;
}

/* ---- Events Section ---- */
.events-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.event-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border: 1px solid transparent;
    transition: var(--transition-slow);
}

.event-card:hover {
    border-color: var(--color-border-light);
    background-color: var(--color-bg-light);
}

.event-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1.5rem;
    color: var(--color-text);
}

.event-card h3 {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
}

.event-card p {
    font-size: 0.85rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* ---- CTA Section ---- */
.cta-section {
    background-color: var(--color-text);
    color: var(--color-bg);
    text-align: center;
    padding: 6rem 0;
}

.cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-monogram {
    width: 80px;
    margin-bottom: 2rem;
    opacity: 0.3;
    filter: invert(1);
}

.cta-section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1rem;
    font-weight: 300;
    opacity: 0.7;
    margin-bottom: 2.5rem;
}

.btn-primary {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    padding: 1rem 2.5rem;
    border: 1px solid currentColor;
    background: transparent;
    color: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.cta-section .btn-primary:hover {
    background-color: var(--color-bg);
    color: var(--color-text);
    border-color: var(--color-bg);
}

/* ---- Contact Section ---- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
}

.contact-centered {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.contact-centered .contact-details {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-centered .contact-social {
    justify-content: center;
}

.contact-lead {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 2.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.contact-item svg {
    flex-shrink: 0;
    color: var(--color-text-muted);
}

.contact-item a:hover {
    color: var(--color-text);
}

.contact-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    color: var(--color-text-light);
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--color-text);
    color: var(--color-bg);
    border-color: var(--color-text);
}

/* ---- Contact Form ---- */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem 0;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--color-text);
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--color-border);
    outline: none;
    transition: var(--transition);
    appearance: none;
    -webkit-appearance: none;
    border-radius: 0;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-bottom-color: var(--color-text);
}

.form-group label {
    position: absolute;
    left: 0;
    top: 1rem;
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--color-text-muted);
    pointer-events: none;
    transition: var(--transition);
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -0.6rem;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-light);
}

.form-group select {
    color: var(--color-text-muted);
    cursor: pointer;
}

.form-group select:valid {
    color: var(--color-text);
}

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

.btn-submit {
    align-self: flex-start;
    margin-top: 0.5rem;
}

.btn-submit:hover {
    background-color: var(--color-text);
    color: var(--color-bg);
}

/* ---- Footer ---- */
.footer {
    background-color: var(--color-bg-dark);
    padding: 3.5rem 0;
    border-top: 1px solid var(--color-border-light);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-logo-img {
    height: 120px;
    width: auto;
    margin: -30px 0;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

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

.footer-bottom p {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* ---- Animations ---- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s ease forwards;
}

.fade-delay-1 { animation-delay: 0.3s; }
.fade-delay-2 { animation-delay: 0.6s; }
.fade-delay-3 { animation-delay: 0.9s; }

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .about-grid {
        gap: 3rem;
    }

    .events-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--color-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: var(--transition-slow);
        box-shadow: -10px 0 30px rgba(0,0,0,0.05);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .hero-logo-img {
        width: 220px;
    }

    .hero-subtitle {
        font-size: 0.75rem;
    }

    .section {
        padding: 5rem 0;
    }

    .about-grid,
    .products-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-visual {
        order: -1;
    }

    .about-monogram {
        width: 120px;
        height: 120px;
    }

    .events-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .event-card {
        padding: 2rem 1.5rem;
    }

    .process-timeline::before {
        left: 22px;
    }

    .process-step {
        gap: 1.5rem;
    }

    .step-number {
        min-width: 45px;
        font-size: 1.2rem;
    }

    .product-card {
        padding: 2.5rem 2rem;
    }

    .contact-grid {
        gap: 3rem;
    }

    .cta-section {
        padding: 4rem 0;
    }

    .footer-links {
        gap: 1rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero-logo-img {
        width: 180px;
    }

    .about-stats {
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .product-card {
        padding: 2rem 1.5rem;
    }
}
