/**
 * ═══════════════════════════════════════════════════════
 * Degustações de Vinho na Barra — Main CSS
 * Pure CSS. No frameworks. WordPress-safe with hm- prefix.
 * ═══════════════════════════════════════════════════════
 */

/* ─── CSS Custom Properties ─── */
:root {
    --hm-bg: #0f0f0f;
    --hm-fg: #ece4d4;
    --hm-fg-muted: #8a7d6b;
    --hm-card-bg: rgba(23, 23, 23, 0.6);
    --hm-border: rgba(41, 41, 41, 0.5);
    --hm-gold-bright: #d4a843;
    --hm-gold-soft: #b08a3a;
    --hm-wine-deep: #1f0a10;
    --hm-wine-rich: #4a1524;
    --hm-primary: #d4a843;
    --hm-radius: 0.5rem;
    --hm-font-display: 'Cormorant Garamond', Georgia, serif;
    --hm-font-body: 'Inter', system-ui, sans-serif;
    --hm-gold-gradient: linear-gradient(135deg, #d4a843, #b08a3a);
    --hm-gold-shadow: 0 4px 24px rgba(212, 168, 67, 0.3), 0 0 60px rgba(212, 168, 67, 0.08);
    --hm-gold-shadow-hover: 0 6px 32px rgba(212, 168, 67, 0.45), 0 0 80px rgba(212, 168, 67, 0.12);
}

/* ═══════════════════════════════════════════
   HARD RESET — inside .hm-landing only
   ═══════════════════════════════════════════ */
.hm-landing *,
.hm-landing *::before,
.hm-landing *::after {
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    border: 0 !important;
    outline: none !important;
    text-decoration: none !important;
    list-style: none !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
    color: inherit !important;
    background: none !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

/* ─── Body base ─── */
body.hm-body {
    margin: 0 !important;
    padding: 0 !important;
    background-color: var(--hm-bg) !important;
    color: var(--hm-fg) !important;
    font-family: var(--hm-font-body) !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    overflow-x: hidden !important;
}

/* Admin bar offset */
body.hm-body.admin-bar .hm-hero {
    padding-top: calc(80px + 32px) !important;
}
@media screen and (max-width: 782px) {
    body.hm-body.admin-bar .hm-hero {
        padding-top: calc(80px + 46px) !important;
    }
}

/* ─── Landing wrapper ─── */
.hm-landing {
    width: 100% !important;
    min-height: 100vh !important;
    background-color: var(--hm-bg) !important;
    color: var(--hm-fg) !important;
    font-family: var(--hm-font-body) !important;
    position: relative !important;
}

/* ─── Container ─── */
.hm-container {
    max-width: 720px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
}

/* ═══════════════════════════════════════════
   DIVIDER
   ═══════════════════════════════════════════ */
.hm-landing .hm-divider {
    width: 60px !important;
    height: 1px !important;
    background: linear-gradient(90deg, transparent, var(--hm-gold-soft), transparent) !important;
    margin-bottom: 48px !important;
}
.hm-landing .hm-divider--center {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ═══════════════════════════════════════════
   BUTTON — CTA
   ═══════════════════════════════════════════ */
.hm-landing .hm-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: var(--hm-font-body) !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.hm-landing .hm-btn--cta {
    background: var(--hm-gold-gradient) !important;
    color: var(--hm-bg) !important;
    border-radius: var(--hm-radius) !important;
    box-shadow: var(--hm-gold-shadow) !important;
    padding: 20px 40px !important;
    font-size: 18px !important;
    letter-spacing: 0.05em !important;
    line-height: 1.4 !important;
    text-align: center !important;
}
.hm-landing .hm-btn--cta:hover {
    box-shadow: var(--hm-gold-shadow-hover) !important;
    transform: translateY(-2px) !important;
}
.hm-landing .hm-btn--cta:active {
    transform: translateY(0) !important;
}

.hm-landing .hm-btn--hero {
    padding: 24px 32px !important;
    font-size: 18px !important;
    max-width: 560px !important;
    line-height: 1.35 !important;
    margin-bottom: 24px !important;
}

.hm-landing .hm-btn--full {
    width: 100% !important;
    padding: 16px !important;
    font-size: 16px !important;
}

/* ═══════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════ */
.hm-landing .hm-hero {
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 80px 24px !important;
    text-align: center !important;
    position: relative !important;
    background-color: var(--hm-bg) !important;
}

.hm-landing .hm-hero__logo {
    width: 96px !important;
    height: auto !important;
    margin-bottom: 40px !important;
    opacity: 0.7 !important;
}

.hm-landing .hm-hero__micro {
    font-family: var(--hm-font-body) !important;
    font-size: 14px !important;
    color: var(--hm-fg-muted) !important;
    font-style: italic !important;
    margin-bottom: 64px !important;
    line-height: 1.5 !important;
}

.hm-landing .hm-hero__title {
    font-family: var(--hm-font-display) !important;
    font-size: 48px !important;
    font-weight: 300 !important;
    color: var(--hm-fg) !important;
    line-height: 1.2 !important;
    max-width: 768px !important;
    margin-bottom: 32px !important;
}

.hm-landing .hm-hero__subtitle {
    font-family: var(--hm-font-display) !important;
    font-size: 24px !important;
    font-weight: 400 !important;
    color: var(--hm-fg-muted) !important;
    font-style: italic !important;
    line-height: 1.6 !important;
    max-width: 672px !important;
    margin-bottom: 24px !important;
}

.hm-landing .hm-hero__reinforcement {
    font-family: var(--hm-font-body) !important;
    font-size: 14px !important;
    color: var(--hm-primary) !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    line-height: 1.5 !important;
}

/* ═══════════════════════════════════════════
   SECTIONS — shared
   ═══════════════════════════════════════════ */
.hm-landing .hm-section {
    padding: 80px 24px !important;
    background-color: var(--hm-bg) !important;
}

.hm-landing .hm-section__title {
    font-family: var(--hm-font-display) !important;
    font-size: 36px !important;
    font-weight: 300 !important;
    color: var(--hm-fg) !important;
    text-align: center !important;
    margin-bottom: 48px !important;
    line-height: 1.3 !important;
}

/* ═══════════════════════════════════════════
   EXCLUSIVITY — Features
   ═══════════════════════════════════════════ */
.hm-landing .hm-exclusivity {
    text-align: center !important;
}

.hm-landing .hm-features {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
    margin-bottom: 48px !important;
    max-width: 672px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.hm-landing .hm-card {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    background: var(--hm-card-bg) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid var(--hm-border) !important;
    border-radius: var(--hm-radius) !important;
    padding: 16px 24px !important;
}

.hm-landing .hm-card__icon {
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0 !important;
    color: var(--hm-primary) !important;
    stroke: var(--hm-primary) !important;
}

.hm-landing .hm-card__text {
    font-family: var(--hm-font-body) !important;
    font-size: 16px !important;
    color: var(--hm-fg) !important;
    text-align: left !important;
    line-height: 1.5 !important;
}

.hm-landing .hm-exclusivity__closing {
    font-family: var(--hm-font-display) !important;
    font-size: 24px !important;
    font-weight: 400 !important;
    color: var(--hm-fg-muted) !important;
    font-style: italic !important;
    line-height: 1.6 !important;
}

/* ═══════════════════════════════════════════
   CTA BLOCK (middle)
   ═══════════════════════════════════════════ */
.hm-landing .hm-cta-block {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 64px 24px !important;
}

/* ═══════════════════════════════════════════
   HOW IT WORKS — Steps
   ═══════════════════════════════════════════ */
.hm-landing .hm-how-it-works {
    background-color: var(--hm-wine-deep) !important;
}

.hm-landing .hm-steps {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 32px !important;
}

.hm-landing .hm-step {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
    text-align: center !important;
}

.hm-landing .hm-step__number {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    border: 1px solid var(--hm-primary) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--hm-primary) !important;
    font-family: var(--hm-font-body) !important;
    font-size: 14px !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
}

.hm-landing .hm-step__text {
    font-family: var(--hm-font-body) !important;
    font-size: 16px !important;
    color: var(--hm-fg) !important;
    max-width: 180px !important;
    line-height: 1.5 !important;
}

/* ═══════════════════════════════════════════
   FINAL BLOCK
   ═══════════════════════════════════════════ */
.hm-landing .hm-final {
    text-align: center !important;
    padding-bottom: 80px !important;
}

.hm-landing .hm-final__line {
    font-family: var(--hm-font-display) !important;
    font-size: 28px !important;
    font-weight: 400 !important;
    color: var(--hm-fg) !important;
    line-height: 1.6 !important;
    margin-bottom: 8px !important;
}
.hm-landing .hm-final__line:last-of-type {
    margin-bottom: 40px !important;
}

.hm-landing .hm-final__btn {
    margin-bottom: 0 !important;
}

.hm-landing .hm-footer__copy {
    font-family: var(--hm-font-body) !important;
    font-size: 14px !important;
    color: var(--hm-fg-muted) !important;
    margin-top: 32px !important;
    padding-bottom: 96px !important;
    line-height: 1.5 !important;
}

/* ═══════════════════════════════════════════
   STICKY CTA (Mobile)
   ═══════════════════════════════════════════ */
.hm-sticky-cta {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
    padding: 16px !important;
    background: linear-gradient(to top, var(--hm-bg), transparent) !important;
    transform: translateY(100%) !important;
    opacity: 0 !important;
    transition: all 0.3s ease !important;
    display: none !important;
}
.hm-sticky-cta--visible {
    transform: translateY(0) !important;
    opacity: 1 !important;
}

/* ═══════════════════════════════════════════
   ANIMATIONS — fade in on scroll
   ═══════════════════════════════════════════ */
.hm-landing .hm-animate {
    opacity: 0 !important;
    transform: translateY(20px) !important;
    transition: opacity 0.6s ease, transform 0.6s ease !important;
}
.hm-landing .hm-animate.hm-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}
/* Cards keep their bg when visible */
.hm-landing .hm-card.hm-visible {
    background: var(--hm-card-bg) !important;
}

/* ═══════════════════════════════════════════
   RESPONSIVE — Tablet
   ═══════════════════════════════════════════ */
@media screen and (max-width: 1024px) {
    .hm-landing .hm-hero__title {
        font-size: 40px !important;
    }
    .hm-landing .hm-hero__subtitle {
        font-size: 22px !important;
    }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — Mobile
   ═══════════════════════════════════════════ */
@media screen and (max-width: 768px) {
    .hm-landing .hm-hero {
        padding: 60px 24px !important;
        min-height: auto !important;
    }
    .hm-landing .hm-hero__logo {
        width: 80px !important;
    }
    .hm-landing .hm-hero__title {
        font-size: 30px !important;
    }
    .hm-landing .hm-hero__subtitle {
        font-size: 18px !important;
    }
    .hm-landing .hm-hero__reinforcement {
        font-size: 12px !important;
    }
    .hm-landing .hm-btn--hero {
        padding: 20px 24px !important;
        font-size: 16px !important;
    }
    .hm-landing .hm-btn--cta {
        font-size: 16px !important;
        padding: 16px 28px !important;
    }
    .hm-landing .hm-section {
        padding: 60px 20px !important;
    }
    .hm-landing .hm-section__title {
        font-size: 28px !important;
    }
    .hm-landing .hm-card__text {
        font-size: 15px !important;
    }
    .hm-landing .hm-exclusivity__closing {
        font-size: 20px !important;
    }
    .hm-landing .hm-steps {
        flex-direction: column !important;
        align-items: center !important;
        gap: 24px !important;
    }
    .hm-landing .hm-final__line {
        font-size: 22px !important;
    }
    .hm-landing .hm-footer__copy {
        padding-bottom: 96px !important;
    }

    /* Show sticky CTA only on mobile */
    .hm-sticky-cta {
        display: block !important;
    }
}

@media screen and (min-width: 769px) {
    .hm-sticky-cta {
        display: none !important;
    }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — Small phones
   ═══════════════════════════════════════════ */
@media screen and (max-width: 400px) {
    .hm-landing .hm-hero__title {
        font-size: 26px !important;
    }
    .hm-landing .hm-hero__subtitle {
        font-size: 16px !important;
    }
    .hm-landing .hm-btn--hero {
        padding: 18px 20px !important;
        font-size: 14px !important;
    }
    .hm-landing .hm-section__title {
        font-size: 24px !important;
    }
    .hm-landing .hm-final__line {
        font-size: 20px !important;
    }
}

/* ═══════════════════════════════════════════
   BLOG PAGES — Basic styling
   ═══════════════════════════════════════════ */
.hm-site-header {
    background-color: var(--hm-bg);
    border-bottom: 1px solid var(--hm-border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.hm-site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.hm-site-header__brand {
    font-family: var(--hm-font-display);
    font-size: 24px;
    color: var(--hm-fg);
    text-decoration: none;
}
.hm-nav__list {
    list-style: none;
    display: flex;
    gap: 24px;
    margin: 0;
    padding: 0;
}
.hm-nav__list li a {
    color: var(--hm-fg-muted);
    text-decoration: none;
    font-family: var(--hm-font-body);
    font-size: 14px;
    transition: color 0.2s;
}
.hm-nav__list li a:hover {
    color: var(--hm-primary);
}

/* Hamburger */
.hm-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-direction: column;
    gap: 5px;
}
.hm-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--hm-fg);
    transition: all 0.3s;
}
.hm-hamburger--active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hm-hamburger--active span:nth-child(2) { opacity: 0; }
.hm-hamburger--active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media screen and (max-width: 768px) {
    .hm-hamburger {
        display: flex;
    }
    .hm-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--hm-bg);
        border-bottom: 1px solid var(--hm-border);
        padding: 16px 24px;
    }
    .hm-nav--open {
        display: block;
    }
    .hm-nav__list {
        flex-direction: column;
        gap: 12px;
    }
}

/* Main content area */
.hm-main {
    min-height: 60vh;
    padding: 40px 0;
}

/* Blog cards */
.hm-blog, .hm-archive, .hm-search {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
}
.hm-post-card {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--hm-border);
}
.hm-post-card__title a {
    font-family: var(--hm-font-display);
    font-size: 28px;
    color: var(--hm-fg);
    text-decoration: none;
}
.hm-post-card__title a:hover {
    color: var(--hm-primary);
}
.hm-post-card__meta {
    font-size: 13px;
    color: var(--hm-fg-muted);
    margin: 8px 0 16px;
}
.hm-post-card__excerpt {
    font-size: 15px;
    color: var(--hm-fg);
    line-height: 1.7;
}
.hm-post-card__more {
    display: inline-block;
    margin-top: 12px;
    font-size: 14px;
    color: var(--hm-primary);
    text-decoration: none;
}
.hm-post-card__thumb img {
    width: 100%;
    height: auto;
    border-radius: var(--hm-radius);
    margin-bottom: 16px;
}

/* Single article */
.hm-single { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.hm-article__title {
    font-family: var(--hm-font-display);
    font-size: 36px;
    color: var(--hm-fg);
    margin-bottom: 8px;
}
.hm-article__meta {
    font-size: 13px;
    color: var(--hm-fg-muted);
    margin-bottom: 24px;
}
.hm-article__content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--hm-fg);
}
.hm-article__content p { margin-bottom: 16px; }
.hm-article__content h2, .hm-article__content h3 {
    font-family: var(--hm-font-display);
    color: var(--hm-fg);
    margin-top: 32px;
    margin-bottom: 12px;
}
.hm-article__thumb img {
    width: 100%;
    height: auto;
    border-radius: var(--hm-radius);
    margin-bottom: 24px;
}

/* Footer */
.hm-site-footer {
    border-top: 1px solid var(--hm-border);
    padding: 24px 0;
    text-align: center;
}
.hm-site-footer__copy {
    font-size: 13px;
    color: var(--hm-fg-muted);
}

/* 404 */
.hm-404 {
    text-align: center;
    padding: 80px 24px;
}
.hm-404__title {
    font-family: var(--hm-font-display);
    font-size: 96px;
    color: var(--hm-primary);
    margin-bottom: 16px;
}
.hm-404__text {
    font-size: 18px;
    color: var(--hm-fg-muted);
    margin-bottom: 32px;
}

/* Pagination */
.hm-pagination {
    text-align: center;
    padding: 24px 0;
}
.hm-pagination .nav-links a,
.hm-pagination .nav-links span {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 4px;
    font-size: 14px;
    color: var(--hm-fg-muted);
    border: 1px solid var(--hm-border);
    border-radius: 4px;
    text-decoration: none;
}
.hm-pagination .nav-links .current,
.hm-pagination .nav-links a:hover {
    background: var(--hm-primary);
    color: var(--hm-bg);
    border-color: var(--hm-primary);
}

/* No posts */
.hm-no-posts {
    text-align: center;
    padding: 40px;
    color: var(--hm-fg-muted);
    font-size: 16px;
}

/* Search title */
.hm-search__title {
    font-family: var(--hm-font-display);
    font-size: 28px;
    color: var(--hm-fg);
    margin-bottom: 32px;
}
.hm-search__title span {
    color: var(--hm-primary);
}

/* Archive */
.hm-archive__title {
    font-family: var(--hm-font-display);
    font-size: 28px;
    color: var(--hm-fg);
    margin-bottom: 12px;
}
.hm-archive__desc {
    font-size: 15px;
    color: var(--hm-fg-muted);
    margin-bottom: 32px;
}

/* Comments */
.hm-comments { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--hm-border); }
.hm-comments__title { font-family: var(--hm-font-display); font-size: 22px; color: var(--hm-fg); margin-bottom: 24px; }
