/* 
 * SAINT MORITZ COUNTRY CLUB - DESIGN SYSTEM 2026
 * Concept: "Um refúgio contemporâneo em meio à natureza."
 */

:root {
    /* PALETA DE CORES REDESIGN 2026 */
    --forest-deep: #004D2C;
    --forest-mid: #008751;
    --sage: #78A58C;
    --sage-tint: #F0F5F2;
    --champagne: #C7A45C;
    --champagne-soft: #E7D6AC;
    --cream: #FAF7F0;
    --ink: #1C1B17;
    --ink-soft: #5B5B52;
    --line: #E2DDCF;
    --radius: 2px;
    --maxw: 1220px;
    
    /* ALIASES PARA COMPATIBILIDADE */
    --color-primary: var(--forest-deep);
    --color-primary-light: var(--forest-mid);
    --color-secondary: var(--champagne);
    --color-secondary-soft: var(--champagne-soft);
    --color-bg: var(--cream);
    --color-surface: #FFFFFF;
    --color-text: var(--ink);
    --color-text-muted: var(--ink-soft);
    --color-white: #FFFFFF;
    --color-border: var(--line);
    
    /* TIPOGRAFIA */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Fraunces', serif;
    
    /* ESPAÇAMENTO */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;
    
    /* BORDAS & SOMBRAS */
    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 8px;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 22px 40px -18px rgba(0, 77, 44, 0.28);
    --shadow-lg: 0 30px 60px -20px rgba(0, 77, 44, 0.35);
    
    /* TRANSIÇÕES */
    --transition-fast: 0.2s ease;
    --transition-base: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* LAYOUT */
    --max-width: 1220px;
    --header-height: 80px;
}

/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .font-display {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.2;
    color: var(--forest-deep);
    margin: 0;
}

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

ul {
    list-style: none;
}

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

/* UTILS */
.wrap, .container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 32px;
}

.section-padding {
    padding: 104px 0;
}

section {
    padding: 104px 0;
}

.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.text-muted { color: var(--color-text-muted); }

.bg-primary { background-color: var(--color-primary); color: var(--color-white); }
.bg-surface { background-color: var(--sage-tint); }

.eyebrow {
    font-family: var(--font-sans);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--champagne);
    font-weight: 600;
    display: block;
    margin-bottom: var(--space-sm);
}

:focus-visible {
    outline: 2px solid var(--champagne);
    outline-offset: 3px;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 22px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.03em;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all .2s ease;
    white-space: nowrap;
    border: 1px solid transparent;
}

.btn-solid, .btn-primary {
    background-color: var(--champagne);
    color: var(--forest-deep);
}

.btn-solid:hover, .btn-primary:hover {
    background-color: var(--forest-deep);
    color: var(--champagne-soft);
}

.btn-ghost, .btn-outline {
    border-color: var(--forest-deep);
    color: var(--forest-deep);
    background: transparent;
}

.btn-ghost:hover, .btn-outline:hover {
    background-color: var(--forest-deep);
    color: var(--cream);
}

.btn-outline-light {
    color: var(--cream);
    border-color: rgba(250,247,240,0.55);
}

.btn-outline-light:hover {
    background: var(--cream);
    color: var(--forest-deep);
}

.btn-secondary {
    background-color: var(--champagne);
    color: var(--forest-deep);
}

/* TOPOGRAPHIC SIGNATURE */
.contour {
    width: 100%;
    height: auto;
    display: block;
}

.contour path {
    fill: none;
    stroke: var(--sage);
    stroke-width: 1;
    opacity: .55;
}

.contour path:nth-child(2) { opacity: .35; }
.contour path:nth-child(3) { opacity: .2; }

/* HEADER */
header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-base);
    background: rgba(250, 247, 240, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    max-width: var(--max-width);
    margin: 0 auto;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.nav-links, .nav-menu {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a, .nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    padding: 6px 0;
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease, color .2s ease;
    text-transform: none;
    letter-spacing: normal;
}

.nav-links a:hover, .nav-link:hover, .nav-link.active {
    border-color: var(--champagne);
    color: var(--forest-deep);
}

.nav-actions {
    display: flex;
    gap: 14px;
    align-items: center;
}

.mobile-toggle, .menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--forest-deep);
    cursor: pointer;
}

.nav-links li {
    position: relative;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-white);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.nav-links li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown a {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
    color: var(--ink-soft);
}

.dropdown a:last-child {
    border-bottom: none;
}

.dropdown a:hover {
    color: var(--forest-mid);
    border-color: var(--forest-mid);
}

/* HERO */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: flex-end;
    background: linear-gradient(180deg, rgba(0,77,44,.3) 0%, rgba(0,77,44,.5) 55%, rgba(0,77,44,.85) 100%),
      url('../img/hero.png') center/cover no-repeat;
    color: var(--color-white);
    overflow: hidden;
}

.hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 32px 88px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero .eyebrow {
    color: var(--champagne-soft);
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    font-weight: 600;
}

.hero h1 {
    color: var(--cream);
    font-size: clamp(40px, 6vw, 74px);
    line-height: 1.04;
    margin-top: 18px;
    max-width: 820px;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    color: rgba(250, 247, 240, 0.95);
    font-size: 18px;
    max-width: 520px;
    margin-top: 22px;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.hero-cta, .hero-ctas {
    display: flex;
    gap: 16px;
    margin-top: 36px;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 28px;
    right: 32px;
    z-index: 2;
    color: rgba(250, 247, 240, 0.7);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-scroll::after {
    content: '';
    width: 1px;
    height: 34px;
    background: rgba(250, 247, 240, 0.5);
    display: block;
}

/* NUMBERS BAND */
.numbers, .stats-band {
    background: var(--forest-deep);
    color: var(--cream);
    padding: 56px 0;
}

.numbers .wrap, .stats-band .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.num-item, .stat-item {
    border-left: 1px solid rgba(250, 247, 240, 0.18);
    padding-left: 22px;
    text-align: left;
}

.num-item strong, .stat-item strong {
    font-family: var(--font-display);
    font-size: clamp(30px, 3.4vw, 44px);
    font-weight: 400;
    display: block;
    color: var(--champagne-soft);
}

.num-item span, .stat-item span {
    font-size: 13px;
    color: rgba(250, 247, 240, 0.75);
    letter-spacing: 0.02em;
}

/* SECTION SHELL */
.section-head {
    max-width: 640px;
    margin-bottom: 52px;
}

.section-head h2 {
    font-size: clamp(30px, 3.6vw, 44px);
    margin-top: 14px;
}

.section-head p {
    color: var(--ink-soft);
    margin-top: 16px;
    font-size: 16px;
}

/* SOBRE (EDITORIAL GRID) */
.sobre, .editorial-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 64px;
    align-items: center;
}

.sobre-img, .editorial-img {
    position: relative;
}

.sobre-img img, .editorial-img img {
    border-radius: var(--radius);
    aspect-ratio: 4/5;
    object-fit: cover;
    width: 100%;
}

.sobre-img::before, .editorial-img::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 120px;
    height: 120px;
    border: 1px solid var(--champagne);
    z-index: -1;
}

.sobre-text h2, .editorial-content h2 {
    font-size: clamp(30px, 3.6vw, 44px);
    margin-top: 14px;
}

.sobre-text p, .editorial-content p {
    color: var(--ink-soft);
    margin-top: 18px;
    font-size: 16px;
}

.sobre-text .stat-row, .editorial-highlight {
    display: flex;
    gap: 40px;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.sobre-text .stat-row div strong, .editorial-highlight div strong {
    font-family: var(--font-display);
    font-size: 28px;
    color: var(--forest-deep);
    display: block;
}

.sobre-text .stat-row div span, .editorial-highlight div span {
    font-size: 13px;
    color: var(--ink-soft);
}

/* CARDS GRID (ESPAÇOS) */
.espacos {
    background: var(--sage-tint);
}

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

.card {
    background: var(--cream);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .35s ease, box-shadow .35s ease;
    border: 1px solid var(--line);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.card-img {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.card:hover .card-img img {
    transform: scale(1.06);
}

.card-body {
    padding: 22px 24px 26px;
}

.card-body .eyebrow {
    font-size: 11px;
    margin-bottom: 8px;
}

.card-body h3 {
    font-size: 20px;
    margin-top: 0;
    font-weight: 500;
}

.card-body p {
    font-size: 14px;
    color: var(--ink-soft);
    margin-top: 8px;
}

/* CAROUSEL (VIDA NO CLUBE) */
.vida-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 16px;
}

.carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
}

.carousel::-webkit-scrollbar {
    height: 4px;
}

.carousel::-webkit-scrollbar-thumb {
    background: var(--sage);
}

.carousel-item {
    flex: 0 0 auto;
    width: 300px;
    scroll-snap-align: start;
}

.carousel-item img {
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: var(--radius);
}

.carousel-item p {
    margin-top: 12px;
    font-size: 14px;
    color: var(--ink-soft);
}

/* CTA BAND (SEJA SÓCIO) */
.cta-band {
    background: linear-gradient(120deg, var(--forest-deep) 0%, var(--forest-mid) 100%);
    color: var(--cream);
    position: relative;
    overflow: hidden;
    padding: 104px 0;
}

.cta-band .wrap, .cta-band .container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.cta-band h2 {
    color: var(--cream);
    font-size: clamp(30px, 3.6vw, 42px);
}

.cta-band p {
    color: rgba(250, 247, 240, 0.8);
    margin-top: 16px;
    max-width: 440px;
}

.cta-benefits {
    display: grid;
    gap: 18px;
}

.cta-benefit {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    border-left: 1px solid rgba(199, 164, 92, 0.5);
    padding-left: 16px;
}

.cta-benefit strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--champagne-soft);
}

.cta-benefit span {
    font-size: 13px;
    color: rgba(250, 247, 240, 0.72);
}

/* EVENT CARDS MINI */
.event-card-mini {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.event-card-mini:last-child {
    border-bottom: none;
}

.event-card-mini strong {
    min-width: 100px;
    font-size: 13px;
    color: var(--forest-mid);
    font-family: var(--font-sans);
}

.event-card-mini span {
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.4;
}

@media (max-width: 768px) {
    .event-card-mini {
        flex-direction: column;
        gap: 4px;
    }
    .event-card-mini strong {
        min-width: auto;
    }
}

/* NOTICIAS GRID */
.noticias-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.noticia-card {
    border-top: 1px solid var(--line);
    padding-top: 20px;
}

.noticia-card .eyebrow {
    color: var(--forest-mid);
    margin-bottom: 10px;
}

.noticia-card h3 {
    font-size: 19px;
    margin-top: 0;
    font-weight: 500;
}

.noticia-card p {
    font-size: 14px;
    color: var(--ink-soft);
    margin-top: 8px;
}

.noticia-card a {
    font-size: 13px;
    color: var(--forest-deep);
    font-weight: 600;
    margin-top: 14px;
    display: inline-block;
    border-bottom: 1px solid var(--champagne);
}

/* FOOTER */
footer {
    background: var(--forest-deep);
    color: rgba(250, 247, 240, 0.75);
    padding: 80px 0 32px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(250, 247, 240, 0.14);
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--cream);
    margin-bottom: 16px;
}

.footer-top p {
    font-size: 14px;
    margin-top: 16px;
    max-width: 280px;
    color: rgba(250, 247, 240, 0.6);
}

.footer-col h4 {
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--champagne-soft);
    margin-bottom: 18px;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.footer-col a {
    font-size: 14px;
    color: rgba(250, 247, 240, 0.75);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 28px;
    font-size: 12px;
    color: rgba(250, 247, 240, 0.5);
    flex-wrap: wrap;
    gap: 12px;
}

.footer-social {
    display: flex;
    gap: 16px;
}

/* SUBPAGE HERO */
.subpage-hero {
    position: relative;
    padding: 140px 0 80px;
    background: var(--forest-deep);
    color: var(--cream);
    overflow: hidden;
}

.subpage-hero .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.subpage-hero .hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
}

.subpage-hero .container {
    position: relative;
    z-index: 2;
}

.subpage-hero h1 {
    color: var(--cream);
    font-size: clamp(32px, 5vw, 56px);
    margin-top: 12px;
}

.breadcrumb {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--champagne-soft);
    margin-bottom: 8px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.breadcrumb a {
    color: rgba(250, 247, 240, 0.6);
}

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

/* GRID & RESPONSIVE */
.grid {
    display: grid;
    gap: 28px;
}

@media (max-width: 960px) {
    .nav-links, .nav-menu { 
        display: none; 
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--cream);
        flex-direction: column;
        padding: 100px 40px 40px;
        z-index: 999;
        overflow-y: auto;
    }
    
    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid var(--line);
    }

    .nav-links li a {
        display: block;
        padding: 16px 0;
        font-size: 20px;
        color: var(--forest-deep);
    }

    .nav-links li .dropdown {
        position: static;
        display: block;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        padding: 0 0 16px 20px;
        background: transparent;
        transform: none;
    }

    .nav-links li .dropdown a {
        padding: 10px 0;
        font-size: 16px;
        color: var(--ink-soft);
    }

    .mobile-toggle, .menu-toggle { 
        display: block; 
        background: none;
        border: none;
        font-size: 28px;
        color: var(--forest-deep);
        cursor: pointer;
        position: relative;
        z-index: 1001;
    }
    
    body.menu-open {
        overflow: hidden;
    }

    .sobre, .editorial-grid { grid-template-columns: 1fr; }
    .grid-cards { grid-template-columns: repeat(2, 1fr); }
    .numbers .wrap, .stats-band .container { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
    .cta-band .wrap, .cta-band .container { grid-template-columns: 1fr; }
    .noticias-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .wrap, .container { padding: 0 20px; }
    section, .section-padding { padding: 72px 0; }
    .grid-cards { grid-template-columns: 1fr; }
    .numbers .wrap, .stats-band .container { grid-template-columns: 1fr 1fr; }
    .footer-top { grid-template-columns: 1fr; }
    .hero-scroll { display: none; }
    .nav-actions .btn-ghost { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
    html { scroll-behavior: auto; }
}

/* ANIMATIONS */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-slow);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* WHATSAPP FLOATING BUTTON */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
    color: #FFF;
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-float svg {
        width: 24px;
        height: 24px;
    }
}

/* SPONSORS SECTION */
.sponsors {
    padding: 80px 0;
    background: var(--color-white);
    border-top: 1px solid var(--line);
    overflow: hidden;
}

.sponsors-track {
    display: flex;
    width: calc(250px * 20); /* Adjust based on number of logos * 2 */
    animation: scroll 40s linear infinite;
    gap: 60px;
    align-items: center;
}

.sponsors-track:hover {
    animation-play-state: paused;
}

.sponsor-item {
    flex: 0 0 auto;
    width: 150px;
    display: flex;
    justify-content: center;
}

.sponsor-item img {
    max-width: 120px;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all 0.4s ease;
}

.sponsor-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-150px * 10 - 60px * 10)); } /* Width of 10 items + gap */
}

@media (max-width: 768px) {
    .sponsors {
        padding: 60px 0;
    }
    .sponsors-track {
        animation-duration: 25s;
    }
    .sponsor-item {
        width: 120px;
    }
    .sponsor-item img {
        max-width: 100px;
    }
}
