/* ============================================
   PORTO - Cidade Invicta
   FIXED MOBILE MENU
   ============================================ */

:root {
    --azul: #1e3a5f;
    --azul-claro: #4a7ba7;
    --dourado: #c9a227;
    --creme: #f5f0e8;
    --branco: #ffffff;
    --cinza: #6b6b6b;
    --cinza-escuro: #2c2c2c;
}

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--creme);
    color: var(--cinza-escuro);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    line-height: 1.3;
}

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* ============================================
   HEADER - FIXED FOR MOBILE
   ============================================ */
.site-header {
    background: transparent;
    padding: 1.2rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background: rgba(255,255,255,0.97);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    padding: 0.8rem 0;
}

.site-header.scrolled .logo,
.site-header.scrolled .main-nav a {
    color: var(--azul);
}

.site-header.scrolled .menu-toggle {
    color: var(--azul);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--branco);
    letter-spacing: 2px;
    z-index: 10;
    position: relative;
}

/* ============================================
   MAIN NAV - DESKTOP
   ============================================ */
.main-nav {
    display: block;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: var(--branco);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: color 0.3s;
    display: block;
    padding: 0.5rem 0;
}

.main-nav a:hover {
    color: var(--dourado);
}

/* ============================================
   MENU TOGGLE BUTTON
   ============================================ */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--branco);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 10;
    position: relative;
}

/* ============================================
   HERO
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 50%, #1a365d 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 5% 80px;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-label {
    font-size: 0.85rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--dourado);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-heading {
    font-size: clamp(2.5rem, 6vw, 5rem);
    color: var(--branco);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-heading span {
    font-style: italic;
    font-weight: 400;
    color: var(--dourado);
    display: block;
    margin-top: 0.3rem;
}

.hero-text {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.8;
    font-weight: 300;
}

.hero-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: 2px solid var(--branco);
    color: var(--branco);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
    transition: all 0.3s;
}

.hero-button:hover {
    background: var(--branco);
    color: var(--azul);
}

/* ============================================
   CONTENT SECTIONS
   ============================================ */
.content-section {
    padding: 6rem 0;
}

.bg-cream {
    background: var(--creme);
}

.bg-dark {
    background: var(--azul);
    color: var(--branco);
}

.bg-gradient {
    background: linear-gradient(to bottom, var(--creme), #e8e0d4);
}

.no-padding {
    padding: 6rem 0 0;
}

/* ============================================
   SECTION HEADINGS
   ============================================ */
.section-heading {
    text-align: center;
    margin-bottom: 3rem;
}

.section-heading .label {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--dourado);
    margin-bottom: 1rem;
    font-weight: 600;
}

.section-heading h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--azul);
    margin-bottom: 1rem;
}

.bg-dark .section-heading h2 {
    color: var(--branco);
}

.section-heading p {
    color: var(--cinza);
    max-width: 600px;
    margin: 0 auto;
}

.bg-dark .section-heading p {
    color: rgba(255,255,255,0.8);
}

/* ============================================
   TWO COLUMNS
   ============================================ */
.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.two-columns.reverse {
    direction: rtl;
}

.two-columns.reverse > * {
    direction: ltr;
}

.text-content h2 {
    font-size: 2.2rem;
    color: var(--azul);
    margin-bottom: 1.5rem;
}

.text-content.light h2 {
    color: var(--branco);
}

.text-content p {
    color: var(--cinza);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.8;
}

.text-content.light p {
    color: rgba(255,255,255,0.85);
}

.text-content .accent {
    color: var(--dourado);
}

.image-content img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.stat strong {
    display: block;
    font-size: 2rem;
    color: var(--dourado);
    font-family: 'Playfair Display', serif;
    margin-bottom: 0.3rem;
}

.stat span {
    font-size: 0.8rem;
    color: var(--cinza);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   CARDS
   ============================================ */
.cards-grid {
    display: grid;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.three-cols {
    grid-template-columns: repeat(3, 1fr);
}

.four-cols {
    grid-template-columns: repeat(4, 1fr);
}

.card {
    background: var(--branco);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--creme);
    color: var(--azul-claro);
    font-size: 0.7rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-body h3 {
    font-size: 1.2rem;
    color: var(--azul);
    margin-bottom: 0.5rem;
}

.card-body p {
    color: var(--cinza);
    font-size: 0.9rem;
    line-height: 1.6;
}

.info-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border: 1px solid #eee;
    border-radius: 8px;
    background: var(--branco);
    transition: all 0.3s;
}

.info-card:hover {
    border-color: var(--dourado);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transform: translateY(-5px);
}

.icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: var(--creme);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.info-card h4 {
    font-size: 1.1rem;
    color: var(--azul);
    margin-bottom: 0.5rem;
}

.info-card p {
    font-size: 0.85rem;
    color: var(--cinza);
    line-height: 1.6;
}

.wine-card {
    background: var(--branco);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    text-align: center;
    transition: all 0.3s;
}

.wine-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.wine-circle {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.wine-card h4 {
    font-size: 1.2rem;
    color: var(--azul);
    margin-bottom: 0.5rem;
}

.wine-card p {
    font-size: 0.85rem;
    color: var(--cinza);
}

/* ============================================
   GALLERY
   ============================================ */
.gallery-wrap {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 280px);
    gap: 0.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2%;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
}

.gallery-item.wide {
    grid-column: span 2;
}

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

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

.gallery-item span {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1rem 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: var(--branco);
    font-size: 1rem;
    font-family: 'Playfair Display', serif;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover span {
    opacity: 1;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--azul);
    color: var(--branco);
    padding: 4rem 0 2rem;
}

.footer-columns {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    font-size: 1.6rem;
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
}

.footer-brand p {
    opacity: 0.7;
    line-height: 1.7;
    font-size: 0.9rem;
}

.footer-col h4 {
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: var(--dourado);
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.75rem;
}

.footer-col a {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--dourado);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
    opacity: 0.5;
    font-size: 0.8rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .main-nav ul {
        gap: 1.2rem;
    }
    .main-nav a {
        font-size: 0.72rem;
    }
    .three-cols {
        grid-template-columns: repeat(2, 1fr);
    }
    .four-cols {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-wrap {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 250px);
    }
    .gallery-item.wide {
        grid-column: span 1;
    }
    .footer-columns {
        grid-template-columns: 1fr 1fr;
    }
    .two-columns {
        gap: 3rem;
    }
}

/* ============================================
   MOBILE MENU - FIXED
   ============================================ */
@media (max-width: 768px) {
    .site-header {
        padding: 1rem 0;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255,255,255,0.98);
        padding: 0;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        z-index: 9999;
    }

    .main-nav.active {
        display: block !important;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0;
    }

    .main-nav li {
        border-bottom: 1px solid #eee;
        width: 100%;
    }

    .main-nav li:last-child {
        border-bottom: none;
    }

    .main-nav a {
        color: var(--azul) !important;
        padding: 1rem 5%;
        display: block;
        width: 100%;
        font-size: 0.9rem;
    }

    .menu-toggle {
        display: block;
    }

    .hero-section {
        min-height: auto;
        padding: 100px 5% 60px;
    }

    .hero-heading {
        font-size: 2.5rem;
    }

    .hero-heading span {
        font-size: 0.9em;
    }

    .two-columns {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .two-columns.reverse {
        direction: ltr;
    }

    .image-content img {
        height: 300px;
    }

    .stats-row {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }

    .three-cols,
    .four-cols {
        grid-template-columns: 1fr;
    }

    .gallery-wrap {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, 250px);
    }

    .footer-columns {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

@media (max-width: 480px) {
    .hero-heading {
        font-size: 2rem;
    }

    .hero-text {
        font-size: 0.9rem;
    }

    .section-heading h2 {
        font-size: 1.6rem;
    }

    .text-content h2 {
        font-size: 1.6rem;
    }

    .main-nav a {
        font-size: 0.85rem;
        padding: 0.9rem 5%;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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