/* 
 * Varanda Beach Club - Landing Page CSS Stylesheet
 * Design System: Premium Glassmorphism, Sunset & Ocean Colors, Fluid Typography, Micro-animations.
 */

:root {
    /* Color Palette */
    --color-primary: #ff6b35;          /* Sunset Orange */
    --color-primary-rgb: 255, 107, 53;
    --color-secondary: #00b4d8;        /* Ocean Teal */
    --color-secondary-rgb: 0, 180, 216;
    --color-bg-dark: #0a192f;          /* Deep Ocean Blue */
    --color-bg-card: rgba(26, 54, 93, 0.45); /* Glass card background */
    --color-text-white: #f8f9fa;
    --color-text-gray: #a0aec0;
    --color-accent-green: #2ec4b6;     /* Mint Green */
    
    /* Layout & Spacing */
    --container-width: 1200px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Borders & Shadows */
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(255, 107, 53, 0.3);
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--color-bg-dark);
    color: var(--color-text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

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

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

/* --- Typography Helpers --- */
.section-padding {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    text-transform: uppercase;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    display: inline-block;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.section-header p {
    color: var(--color-text-gray);
    font-size: 1.1rem;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition-normal);
    border: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background-color: #ff8552;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-gradient {
    background: linear-gradient(90deg, var(--color-primary) 0%, #ff8c42 100%);
    color: white;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.btn-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #ff8c42 0%, var(--color-primary) 100%);
    opacity: 0;
    z-index: -1;
    transition: opacity var(--transition-normal);
}

.btn-gradient:hover::before {
    opacity: 1;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* --- Glassmorphism Card --- */
.glass-card {
    background: var(--color-bg-card);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    padding: 30px;
    box-shadow: var(--shadow-soft);
}

.hover-lift {
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

/* --- Header & Navigation --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 25, 47, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    transition: background var(--transition-fast), padding var(--transition-fast);
    padding: 20px 0;
}

.main-header.scrolled {
    padding: 12px 0;
    background: rgba(10, 25, 47, 0.95);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-text-white);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: height var(--transition-fast);
}

.main-header.scrolled .logo img {
    height: 38px;
}

.main-footer .logo img {
    height: 55px;
}

.logo i {
    color: var(--color-primary);
}

.logo span {
    color: var(--color-primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text-gray);
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-text-white);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition-normal);
}

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

.btn-admin-nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    color: var(--color-text-white);
}

.btn-admin-nav:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-1px);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    padding-top: 160px;
    padding-bottom: 100px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 24px;
    color: white;
}

.hero-content h1 span {
    color: var(--color-primary);
    background: linear-gradient(90deg, var(--color-primary) 0%, #ff8c42 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    color: var(--color-text-gray);
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.badge {
    background-color: rgba(255, 107, 53, 0.15);
    color: var(--color-primary);
    border: 1px solid rgba(255, 107, 53, 0.3);
    padding: 6px 14px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 20px;
}

/* Forms inside Glass Cards */
.quick-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-gray);
    margin-bottom: 8px;
    font-weight: 600;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 16px;
    color: var(--color-text-gray);
    font-size: 1rem;
}

.input-wrapper input, .input-wrapper select, .input-wrapper textarea {
    width: 100%;
    padding: 12px 16px 12px 45px;
    background-color: rgba(10, 25, 47, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    color: white;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color var(--transition-fast);
}

.input-wrapper input:focus, .input-wrapper select:focus, .input-wrapper textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.15);
}

.input-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

/* --- Stats Bar --- */
.stats-bar {
    background-color: rgba(26, 54, 93, 0.3);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    padding: 40px 0;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-primary);
    font-family: 'Outfit', sans-serif;
}

.stat-label {
    color: var(--color-text-gray);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- Cards Grid (Aulas) --- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}

.card-image {
    width: 100%;
    position: relative;
    border-radius: var(--border-radius-sm);
}

.card-body {
    padding: 25px 0 0 0;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-badge {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 50px;
    display: inline-block;
    width: fit-content;
    margin-bottom: 15px;
}

.bg-soft-blue {
    background-color: rgba(0, 180, 216, 0.15);
    color: var(--color-secondary);
}

.bg-gradient-orange {
    background: linear-gradient(90deg, rgba(255, 107, 53, 0.2) 0%, rgba(255, 140, 66, 0.2) 100%);
    color: var(--color-primary);
    border: 1px solid rgba(255, 107, 53, 0.3);
}

.bg-soft-green {
    background-color: rgba(46, 196, 182, 0.15);
    color: var(--color-accent-green);
}

.card-body h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.card-body p {
    color: var(--color-text-gray);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-features {
    margin-bottom: 25px;
}

.card-features li {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    color: var(--color-text-white);
}

.card-features li i {
    font-size: 0.8rem;
}

.card-footer-pricing {
    border-top: 1px solid var(--glass-border);
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.price-label {
    font-size: 0.8rem;
    color: var(--color-text-gray);
    text-transform: uppercase;
}

.price-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    font-family: 'Outfit', sans-serif;
}

.premium-card {
    border-color: rgba(255, 107, 53, 0.3);
}

/* --- Court Rental Section (Aluguel) --- */
.rental-feature-block {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
    margin-top: 40px;
}

.features-list {
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.feature-item-inline {
    display: flex;
    gap: 20px;
}

.feature-item-inline .icon-box {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 180, 216, 0.15);
    border: 1px solid rgba(0, 180, 216, 0.3);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-secondary);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.feature-item-inline h4 {
    font-size: 1.15rem;
    margin-bottom: 6px;
}

.feature-item-inline p {
    color: var(--color-text-gray);
    font-size: 0.95rem;
}

.rental-pricing-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 30px;
    border-left: 4px solid var(--color-secondary);
}

.rounded-image-shadow {
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--glass-border);
}

/* --- About Section (Sobre) --- */
.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-content p {
    color: var(--color-text-gray);
    margin-bottom: 20px;
}

.about-amenities {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.amenity-badge {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 600;
}

.amenity-badge i {
    color: var(--color-primary);
}

/* --- Footer --- */
.main-footer {
    background-color: #050d1a;
    border-top: 1px solid var(--glass-border);
    padding: 80px 0 30px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-col-brand p {
    color: var(--color-text-gray);
    margin: 20px 0;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-gray);
}

.social-links a:hover {
    background-color: var(--color-primary);
    color: white;
    transform: translateY(-2px);
}

.footer-col-links h4, .footer-col-contact h4 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: white;
}

.footer-col-links ul li {
    margin-bottom: 12px;
}

.footer-col-links ul li a {
    color: var(--color-text-gray);
    font-size: 0.95rem;
}

.footer-col-links ul li a:hover {
    color: white;
    padding-left: 5px;
}

.footer-col-contact ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--color-text-gray);
    font-size: 0.95rem;
}

.footer-col-contact ul li i {
    color: var(--color-primary);
    margin-top: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    font-size: 0.85rem;
    color: var(--color-text-gray);
}

/* --- Floating WhatsApp Button --- */
.whatsapp-floating {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: transform var(--transition-normal);
}

.whatsapp-floating:hover {
    transform: scale(1.1) rotate(8deg);
}

.whatsapp-floating .tooltip-text {
    position: absolute;
    right: 75px;
    background-color: #0a192f;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 50px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    border: 1px solid var(--glass-border);
}

.whatsapp-floating:hover .tooltip-text {
    opacity: 1;
    visibility: visible;
}

/* --- Lead Modal --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 13, 26, 0.8);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal.show {
    display: flex;
}

.modal-content {
    width: 100%;
    max-width: 500px;
    position: relative;
    border-color: rgba(255, 255, 255, 0.15);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text-gray);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.close-modal:hover {
    color: white;
}

.modal-header {
    margin-bottom: 25px;
}

.modal-header h2 {
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-header h2 i {
    color: var(--color-primary);
}

.modal-header p {
    color: var(--color-text-gray);
    font-size: 0.95rem;
}

/* Animations */
.animated-modal {
    animation: zoomIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* --- Responsive Media Queries --- */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .rental-feature-block {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .rental-visual {
        order: -1;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }
    
    .hero-section {
        padding-top: 120px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: rgba(10, 25, 47, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 50px;
        gap: 30px;
        transition: left var(--transition-normal);
        border-top: 1px solid var(--glass-border);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .about-amenities {
        grid-template-columns: 1fr;
    }
    
    .whatsapp-floating {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.6rem;
    }
}

/* --- Dynamic Alert Banner Styles --- */
.alert-banner {
    background: linear-gradient(90deg, var(--color-primary) 0%, #ff8c42 100%);
    color: white;
    text-align: center;
    padding: 8px 0;
    font-size: 0.9rem;
    font-weight: 700;
    z-index: 1010;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.alert-banner-container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Offsets when alert banner is active */
body.has-alert-banner .main-header {
    top: 40px;
}

body.has-alert-banner .hero-section {
    padding-top: 200px;
}

@media (max-width: 768px) {
    body.has-alert-banner .nav-menu {
        top: 120px;
        height: calc(100vh - 120px);
    }
}
