/* ══════════════════════════════════════════════
   Maison D'or Brasilis – Complete Stylesheet
   ══════════════════════════════════════════════ */

/* ── CSS Variables ── */
:root {
    --bg: hsl(30, 5%, 8%);
    --bg-secondary: hsl(30, 8%, 18%);
    --fg: hsl(40, 20%, 90%);
    --fg-muted: hsl(30, 10%, 55%);
    --border: hsl(30, 8%, 20%);
    --primary: hsl(40, 45%, 55%);
    --primary-fg: hsl(30, 5%, 8%);
    --gold-light: hsl(40, 50%, 70%);
    --gold: hsl(40, 45%, 55%);
    --gold-dark: hsl(40, 40%, 40%);
    --font-display: 'Playfair Display', serif;
    --font-body: 'Cormorant Garamond', serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--fg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

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

/* ── Utility classes ── */
.text-gold-gradient {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gold-gradient {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
}

/* ── Animations ── */
.animate-on-load,
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.animate-on-load.visible,
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ══════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════ */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: hsla(30, 5%, 8%, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    background: var(--bg);
    border-radius: 2px;
    padding: 2px;
}
.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.desktop-nav { display: flex; align-items: center; gap: 1.5rem; }
.desktop-nav a {
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    white-space: nowrap;
    text-transform: uppercase;
    color: var(--fg-muted);
    transition: color 0.3s;
}
.desktop-nav a:hover { color: var(--primary); }

.social-links { display: flex; align-items: center; gap: 1rem; }
.social-links a {
    color: var(--fg-muted);
    transition: color 0.3s;
}
.social-links a:hover { color: var(--primary); }

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--fg);
    cursor: pointer;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}
.mobile-nav.active { display: flex; }
.mobile-nav a {
    font-family: var(--font-body);
    font-size: 0.875rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--fg-muted);
    transition: color 0.3s;
}
.mobile-nav a:hover { color: var(--primary); }

@media (max-width: 768px) {
    .header-right { display: none; }
    .mobile-menu-toggle { display: block; }
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: hsla(30, 5%, 8%, 0.7);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 1.5rem;
    max-width: 56rem;
    margin: 0 auto;
}

.hero-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}
.hero-label .line {
    height: 1px;
    width: 4rem;
}
.hero-label span {
    font-family: var(--font-body);
    font-size: 0.875rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--primary);
}

.hero-content h1 {
    font-size: 3.25rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-family: var(--font-body);
    font-size: 1.125rem;
    color: var(--fg-muted);
    max-width: 42rem;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.btn-primary {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.875rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--primary-fg);
    padding: 1rem 2.5rem;
    transition: opacity 0.3s;
}
.btn-primary:hover { opacity: 0.9; }

.btn-outline {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.875rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--primary);
    padding: 1rem 2.5rem;
    border: 1px solid var(--primary);
    transition: background 0.3s, color 0.3s;
}
.btn-outline:hover {
    background: var(--primary);
    color: var(--primary-fg);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}
.scroll-line {
    width: 1px;
    height: 3rem;
    opacity: 0.5;
    transition: transform 0.5s ease;
}

@media (min-width: 768px) {
    .hero-content h1 { font-size: 4.5rem; }
    .hero-content p { font-size: 1.25rem; }
}
@media (min-width: 1024px) {
    .hero-content h1 { font-size: 6rem; }
}

/* ══════════════════════════════════════════
   SECTIONS COMMON
   ══════════════════════════════════════════ */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}
.section-header .label,
.about-text .label,
.category-header .label {
    font-family: var(--font-body);
    font-size: 0.875rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--primary);
}
.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-top: 1rem;
    color: var(--fg);
}
.divider {
    height: 1px;
    width: 6rem;
    margin: 1.5rem auto 0;
}
.divider-small {
    height: 1px;
    width: 4rem;
}

@media (min-width: 768px) {
    .section-header h2 { font-size: 3rem; }
}

/* ══════════════════════════════════════════
   CATEGORIES
   ══════════════════════════════════════════ */
.categories-section {
    padding: 6rem 0 8rem;
}
.categories-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 768px) {
    .categories-grid { grid-template-columns: repeat(3, 1fr); }
}

.category-card {
    position: relative;
    overflow: hidden;
    display: block;
    cursor: pointer;
}
.category-card .image-wrapper {
    aspect-ratio: 3/4;
    overflow: hidden;
}
.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s;
}
.category-card:hover img { transform: scale(1.1); }

.category-card .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg) 0%, hsla(30,5%,8%,0.4) 40%, transparent 100%);
}
.card-content {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 2rem;
}
.card-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--fg);
    margin-bottom: 0.75rem;
}
.card-content p {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--fg-muted);
    line-height: 1.6;
}
.hover-line {
    height: 1px;
    width: 0;
    margin-top: 1rem;
    transition: width 0.5s;
}
.category-card:hover .hover-line { width: 100%; }

@media (min-width: 768px) {
    .card-content h3 { font-size: 1.75rem; }
}

/* ══════════════════════════════════════════
   ABOUT
   ══════════════════════════════════════════ */
.about-section {
    position: relative;
    padding: 6rem 0 8rem;
    overflow: hidden;
}
.about-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}
.about-overlay {
    position: absolute;
    inset: 0;
    background: hsla(30, 5%, 8%, 0.85);
}
.about-container { position: relative; z-index: 10; }

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}
@media (min-width: 1024px) {
    .about-grid { grid-template-columns: 1fr 1fr; }
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    color: var(--fg);
}
.about-text .divider { margin: 0 0 2rem; }
.about-text p {
    font-family: var(--font-body);
    font-size: 1.125rem;
    color: var(--fg-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .about-text h2 { font-size: 3rem; }
}

.highlights { display: flex; flex-direction: column; gap: 2rem; }

.highlight-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}
.highlight-icon {
    flex-shrink: 0;
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid hsla(40, 45%, 55%, 0.3);
    color: var(--primary);
}
.highlight-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--fg);
    margin-bottom: 0.5rem;
}
.highlight-item p {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--fg-muted);
    line-height: 1.6;
}

/* ══════════════════════════════════════════
   CONTACT
   ══════════════════════════════════════════ */
.contact-section { padding: 6rem 0 8rem; }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}
@media (min-width: 1024px) {
    .contact-grid { grid-template-columns: 1fr 1fr; }
}

.contact-info p {
    font-family: var(--font-body);
    font-size: 1.125rem;
    color: var(--fg-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
}
.contact-detail {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: var(--fg-muted);
}
.contact-detail svg { color: var(--primary); flex-shrink: 0; }
.contact-detail span { font-family: var(--font-body); font-size: 1rem; }

.contact-social { margin-top: 2rem; }
.contact-social > p {
    font-size: 0.875rem;
    color: var(--fg-muted);
    margin-bottom: 0.75rem;
}

.contact-form { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-form input,
.contact-form textarea {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 1rem 1.25rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--fg);
    outline: none;
    transition: border-color 0.3s;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--fg-muted); }
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--primary); }
.contact-form textarea { resize: none; }
.contact-form button {
    width: 100%;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.875rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--primary-fg);
    padding: 1rem 2.5rem;
    transition: opacity 0.3s;
}
.contact-form button:hover { opacity: 0.9; }

/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */
.site-footer {
    padding: 3rem 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
}
.footer-container { text-align: center; }
.footer-container .logo-text { font-size: 1.25rem; display: block; }
.copyright {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--fg-muted);
    margin-top: 1rem;
}
.disclaimer {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--fg-muted);
    margin-top: 0.5rem;
}

/* ══════════════════════════════════════════
   WHATSAPP BUTTON
   ══════════════════════════════════════════ */
.whatsapp-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}
.whatsapp-close {
    background: hsla(30, 8%, 18%, 0.8);
    backdrop-filter: blur(8px);
    color: var(--fg-muted);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}
.whatsapp-close:hover { color: var(--fg); }

.whatsapp-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}
.whatsapp-link:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

/* ══════════════════════════════════════════
   CATEGORY PAGES
   ══════════════════════════════════════════ */
.category-page {
    padding-top: 6rem;
    padding-bottom: 4rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--fg-muted);
    margin-bottom: 3rem;
    transition: color 0.3s;
}
.back-link:hover { color: var(--primary); }

.category-header {
    text-align: center;
    margin-bottom: 5rem;
}
.category-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-top: 1rem;
}
.category-header .divider { margin: 1.5rem auto 0; }

@media (min-width: 768px) {
    .category-header h1 { font-size: 3.75rem; }
}

.products-list {
    display: flex;
    flex-direction: column;
    gap: 5rem;
}
@media (min-width: 768px) {
    .products-list { gap: 7rem; }
}

.product-card {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}
@media (min-width: 768px) {
    .product-card {
        flex-direction: row;
        gap: 3rem;
    }
    .product-card.reverse { flex-direction: row-reverse; }
}

.product-image {
    width: 100%;
    overflow: hidden;
    cursor: pointer;
    position: relative;	
}
@media (min-width: 768px) {
    .product-image { width: 50%; }
}
.product-image img {
    aspect-ratio: 3/4;
    width: 100%;
    object-fit: cover;
    transition: transform 0.7s, opacity 0.7s;
}
.product-image:hover img { transform: scale(1.1); }
.product-image img.product-slide {
    position: absolute;
    top: 0; left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 0.7s, opacity 0.7s;
}
.product-image img.product-slide.active {
    opacity: 1;
    position: relative;
}
.product-info { width: 100%; }
@media (min-width: 768px) {
    .product-info { width: 50%; }
}
.product-info h3 {
    font-size: 1.875rem;
    font-weight: 600;
    color: var(--fg);
    margin-bottom: 1rem;
}
.product-info .divider-small { margin-bottom: 1rem; }
.product-info p {
    font-family: var(--font-body);
    font-size: 1.125rem;
    color: var(--fg-muted);
    line-height: 1.7;
}
.product-info .ficha-link-inline {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.875rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--primary);
    margin-top: 1rem;
    transition: color 0.3s;
}
.product-info .ficha-link-inline:hover {
    color: var(--gold-light);
}

@media (min-width: 768px) {
    .product-info h3 { font-size: 2.25rem; }
}

/* ── Ficha Técnica Page ── */
.ficha-tecnica-page {
    position: relative;
    padding: 6rem 0 4rem;
    min-height: 100vh;
}
.ficha-bg {
    position: fixed;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}
.ficha-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: hsla(30, 5%, 8%, 0.65);
}
.ficha-tecnica-page .container {
    position: relative;
    z-index: 1;
}
.ficha-content {
    max-width: 48rem;
    margin: 0 auto;
}
.ficha-section {
    margin-bottom: 2.5rem;
}
.ficha-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--fg);
    margin-bottom: 0.5rem;
}
.ficha-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}
.ficha-section h4 {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--fg);
    margin-bottom: 0.25rem;
}
.ficha-section p {
    font-family: var(--font-body);
    font-size: 1.125rem;
    color: var(--fg-muted);
    line-height: 1.7;
}
.ficha-subsections {
    padding-left: 1rem;
    border-left: 1px solid hsla(40, 45%, 55%, 0.3);
}
.ficha-subsection {
    margin-bottom: 1rem;
}
.ficha-link {
    font-family: var(--font-body);
    font-size: 1.125rem;
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.3s;
}
.ficha-link:hover {
    color: var(--gold-light);
}
@media (min-width: 768px) {
    .ficha-section h2 { font-size: 1.875rem; }
}

/* ── Enoturismo Section ── */
.enoturismo-section {
    padding: 6rem 0 8rem;
    background: hsla(30, 8%, 14%, 0.3);
}
.enoturismo-partner {
    font-family: var(--font-body);
    font-size: 0.875rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--fg-muted);
    margin-top: 1rem;
}
.enoturismo-description {
    max-width: 48rem;
    margin: 0 auto 4rem;
    text-align: center;
}
.enoturismo-description p {
    font-family: var(--font-body);
    font-size: 1.125rem;
    color: var(--fg-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}
.enoturismo-description strong {
    color: var(--primary);
}
.enoturismo-carousel {
    max-width: 64rem;
    margin: 0 auto 4rem;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.carousel-viewport {
    overflow: hidden;
    flex: 1;
}
.carousel-track {
    display: flex;
    gap: 1rem;
    transition: transform 0.5s ease;
}
.carousel-slide {
    flex: 0 0 calc(33.333% - 0.667rem);
    overflow: hidden;
    border: 1px solid var(--border);
}
.carousel-slide img {
    width: 100%;
    height: 16rem;
    object-fit: cover;
    transition: transform 0.7s;
}
.carousel-slide img:hover {
    transform: scale(1.05);
}
.carousel-btn {
    background: var(--primary);
    color: var(--primary-fg);
    border: none;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: opacity 0.3s;
    z-index: 2;
}
.carousel-btn:hover {
    opacity: 0.8;
}
.enoturismo-cta {
    text-align: center;
}
.enoturismo-cta a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 1rem 2.5rem;
    color: var(--primary-fg);
    text-decoration: none;
    transition: opacity 0.3s;
}
.enoturismo-cta a:hover {
    opacity: 0.9;
}
@media (max-width: 767px) {
    .carousel-slide {
        flex: 0 0 calc(50% - 0.5rem);
    }
    .carousel-btn {
        width: 2rem;
        height: 2rem;
        font-size: 1rem;
    }
}
