/* ============================================
   LOPES RIO - Landing Page Styles
   Mobile-First Responsive Design
   ============================================ */

/* Custom Fonts */
@font-face {
    font-family: 'BornReady';
    src: url('bornreadyupright.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* CSS Variables */
:root {
    --color-primary: #EB184C;
    --color-primary-hover: #F40612;
    --color-white: #FFFFFF;
    --color-black: #000000;
    --color-gray-light: rgba(255, 255, 255, 0.7);
    --color-gray-dark: rgba(0, 0, 0, 0.6);
    --color-card-bg: rgba(255, 255, 255, 0.95);
    --color-card-dark: rgba(45, 45, 45, 0.95);

    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-script: 'BornReady', cursive;

    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-button: 0 4px 15px rgba(229, 9, 20, 0.4);

    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
}

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

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

body {
    font-family: var(--font-primary);
    line-height: 1.5;
    color: var(--color-white);
    background: var(--color-black);
    overflow-x: hidden;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    background: url('BG.jpg') center/cover no-repeat;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.1) 30%,
        rgba(0, 0, 0, 0.4) 100%
    );
    pointer-events: none;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    position: relative;
    z-index: 10;
    padding: 0.75rem 1rem;
}

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

.logo-img {
    height: 24px;
    width: auto;
}

/* ============================================
   BADGE (20 Anos) - Mobile: Faixa / Desktop: Bandeira
   ============================================ */
.badge-container {
    position: relative;
    z-index: 10;
    width: 100%;
}

.badge {
    background: var(--color-white);
    color: var(--color-black);
    padding: 0.75rem 1rem;
    text-align: center;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
}

.badge-highlight {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-primary);
}

.badge-text {
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.3;
}

/* ============================================
   HERO CONTENT
   ============================================ */
.hero-content {
    position: relative;
    z-index: 5;
    flex: 1;
    display: flex;
    align-items: center;
    padding: 1.5rem;
    max-width: 600px;
}

.hero-title {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-white);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

.hero-title-highlight {
    display: block;
    position: relative;
    width: fit-content;
    font-family: var(--font-script);
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--color-white);
    margin-top: -0.15rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-title-highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -8%;
    width: 116%;
    height: 1rem;
    background: url('GRIFO.png') center/100% 100% no-repeat;
    z-index: -1;
}

/* ============================================
   CARDS SECTION
   ============================================ */
.cards-section {
    position: relative;
    z-index: 5;
    padding: 1rem 1.5rem;
    padding-bottom: 2rem;
}

.cards-inner {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
}

.cards-subtitle {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-white);
    margin-bottom: 1rem;
    text-align: left;
}

.cards-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

/* Card Base Styles */
.card {
    border-radius: 12px;
    overflow: hidden;
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

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

/* Card Sede - Imagem em cima, faixa embaixo */
.card-sede {
    display: flex;
    flex-direction: column;
    width: 100%;
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.card-sede-image {
    aspect-ratio: 1;
    background: url('fachada.png') center/cover no-repeat;
}

.card-sede-overlay {
    background: #353032;
    padding: 0.75rem 1rem;
    height: 55px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.card-sede-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 0.125rem;
}

.card-sede-address {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.3;
}

/* Card Em Breve - Mesma estrutura do card-sede */
.card-soon {
    display: flex;
    flex-direction: column;
    width: 100%;
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.card-soon-top {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
}

.card-soon-label {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 0.1em;
}

.card-soon-bottom {
    background: #353032;
    padding: 0.75rem 1rem;
    height: 55px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.card-soon-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-white);
    margin: 0;
}

.card-soon-address {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.3;
}

/* Card CTA - Mesma estrutura dos outros cards */
.card-cta {
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    position: relative;
}

.card-cta-top {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 1.25rem;
    background: rgba(0, 0, 0, 0.4);
}

.cta-text {
    font-size: 1.1rem;
    color: var(--color-white);
    line-height: 1.5;
    margin: 0;
}

.cta-highlight {
    color: var(--color-white);
    font-weight: 700;
}

.card-cta-bottom {
    background: #353032;
    height: 55px;
}

.cta-button {
    position: absolute;
    left: 1.25rem;
    bottom: 35px;
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.6rem 1.25rem;
    border-radius: 4px;
    text-decoration: none;
    transition: all var(--transition-fast);
    z-index: 5;
}

.cta-button {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.6rem 1.25rem;
    border-radius: 4px;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.cta-button:hover {
    background: var(--color-primary-hover);
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.5);
}

.cta-button:active {
    transform: scale(0.98);
}

/* ============================================
   TABLET STYLES (min-width: 640px)
   ============================================ */
@media (min-width: 640px) {
    .header {
        padding: 1.5rem 2rem;
    }

    .logo-img {
        height: 28px;
    }

    .badge-container {
        position: absolute;
        top: 0;
        right: 2.5rem;
        left: auto;
        width: auto;
        margin: 0;
    }

    .badge {
        display: block;
        width: auto;
        padding: 1.75rem 1.5rem;
        padding-bottom: 3rem;
        max-width: 150px;
        border-radius: 0;
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), 50% 100%, 0 calc(100% - 24px));
        filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.45));
        box-shadow: none;
    }

    .badge-highlight {
        display: block;
        font-size: 1rem;
    }

    .badge-text {
        display: block;
        font-size: 0.8rem;
        margin-top: 0.25rem;
    }

    .hero-content {
        padding: 3rem 2rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-title-highlight {
        font-size: 4rem;
        margin-top: -0.35rem;
    }

    .hero-title-highlight::after {
        height: 1.25rem;
    }

    .cards-section {
        padding: 2rem;
        padding-bottom: 4rem;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .cards-subtitle {
        font-size: 1rem;
    }

    .cards-wrapper {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 1rem;
    }

    .card-sede {
        flex: 0 1 auto;
        width: min(200px, 28vw);
        height: auto;
    }

    .card-soon {
        flex: 0 1 auto;
        width: min(200px, 28vw);
        height: auto;
    }

    .card-soon-bottom {
        padding: 0.75rem 1rem;
    }

    .card-cta {
        flex: 1 1 auto;
        width: min(520px, 45vw);
        height: auto;
    }

    .card-cta-top {
        min-height: 200px;
    }
}

/* ============================================
   DESKTOP STYLES (min-width: 1024px)
   ============================================ */
@media (min-width: 1024px) {
    .hero {
        min-height: 100vh;
        background-attachment: fixed;
    }

    .header {
        padding: 1.5rem 4rem;
    }

    .logo-img {
        height: 32px;
    }

    .badge-container {
        position: absolute;
        top: 0;
        right: 4rem;
        margin: 0;
    }

    .badge {
        display: block;
        padding: 2rem 1.75rem;
        padding-bottom: 3.5rem;
        max-width: 170px;
        border-radius: 0;
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), 50% 100%, 0 calc(100% - 28px));
        filter: drop-shadow(0 12px 35px rgba(0, 0, 0, 0.5));
        box-shadow: none;
    }

    .badge-highlight {
        display: block;
        font-size: 1.125rem;
    }

    .badge-text {
        display: block;
        font-size: 0.875rem;
        margin-top: 0.25rem;
    }

    .hero-content {
        padding: 2rem 4rem;
        max-width: 700px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-title-highlight {
        font-size: 4.5rem;
        margin-top: -0.5rem;
    }

    .hero-title-highlight::after {
        height: 1.5rem;
    }

    .cards-section {
        padding: 1rem 4rem;
        padding-bottom: 2rem;
    }

    .cards-subtitle {
        font-size: 1.125rem;
        margin-bottom: 1.5rem;
    }

    .cards-wrapper {
        flex-wrap: nowrap;
        align-items: center;
        justify-content: center;
        gap: 1.25rem;
    }

    .card-sede {
        flex: 0 1 auto;
        width: min(220px, 20vw);
        height: auto;
    }

    .card-sede-title {
        font-size: clamp(0.875rem, 1vw, 1rem);
    }

    .card-sede-address {
        font-size: clamp(0.7rem, 0.8vw, 0.8rem);
    }

    .card-soon-text {
        font-size: clamp(0.875rem, 1vw, 1rem);
    }

    .card-soon {
        flex: 0 1 auto;
        width: min(220px, 20vw);
        height: auto;
    }

    .card-soon-label {
        font-size: 1.5rem;
    }

    .card-cta {
        flex: 1 1 auto;
        width: min(650px, 50vw);
        height: auto;
    }

    .card-cta-top {
        min-height: 220px;
    }

    .cta-text {
        font-size: clamp(1rem, 1.2vw, 1.2rem);
    }

    .cta-text {
        font-size: 1rem;
    }

    .cta-button {
        font-size: 1rem;
        padding: 0.875rem 2rem;
    }
}

/* ============================================
   LARGE DESKTOP (min-width: 1440px)
   ============================================ */
@media (min-width: 1440px) {
    .header {
        padding: 1.5rem 6rem;
    }

    .badge-container {
        top: 0;
        right: 6rem;
    }

    .badge {
        padding: 2.5rem 2rem;
        padding-bottom: 4rem;
        max-width: 180px;
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), 50% 100%, 0 calc(100% - 30px));
        filter: drop-shadow(0 15px 40px rgba(0, 0, 0, 0.5));
    }

    .hero-content {
        padding: 2rem 6rem;
        max-width: 800px;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-title-highlight {
        font-size: 5rem;
        margin-top: -0.6rem;
    }

    .hero-title-highlight::after {
        height: 1.75rem;
    }

    .cards-section {
        padding: 1rem 6rem;
        padding-bottom: 2.5rem;
    }

    .cards-wrapper {
        max-width: 1200px;
    }

    .card-sede {
        width: min(240px, 18vw);
        height: auto;
    }

    .card-soon {
        width: min(240px, 18vw);
        height: auto;
    }

    .card-cta {
        width: min(720px, 52vw);
        height: auto;
    }

    .card-cta-top {
        min-height: 240px;
    }

    .cta-text {
        font-size: clamp(1.1rem, 1.3vw, 1.3rem);
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.badge {
    animation: fadeIn 0.6s ease-out 0.3s both;
}

.cards-section {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* ============================================
   UTILITIES
   ============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for accessibility */
.cta-button:focus-visible {
    outline: 3px solid var(--color-white);
    outline-offset: 3px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero {
        background-attachment: scroll;
    }
}
