/* 
   Café com Dados Campinas - Main Stylesheet
   Identity: Minimalist, Professional, Premium
*/

:root {
    /* Colors */
    --primary-navy: #0B3D6E;
    --primary-navy-dark: #051c33;
    --secondary-orange: #F17405;
    --secondary-orange-hover: #d16504;
    --bg-cream: #FAFAF8;
    --text-dark: #2C2C2A;
    --text-medium: #888780;
    --white: #ffffff;
    
    /* Typography */
    --font-heading: 'Barlow Condensed', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    
    /* Transitions */
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    
    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-cream);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--primary-navy);
}

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

ul {
    list-style: none;
}

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

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--secondary-orange);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 35px;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1.1rem;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    text-align: center;
    transition: var(--transition);
    text-transform: uppercase;
}

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

.btn-primary:hover {
    background-color: var(--secondary-orange-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-navy);
    border: 2px solid var(--primary-navy);
}

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

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: 15px 0;
}

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

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

.logo img {
    height: 40px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1rem;
    color: var(--primary-navy);
}

.nav-links a:hover {
    color: var(--secondary-orange);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-navy);
    cursor: pointer;
}

/* Hero Section - Presentation Style */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #051c33 0%, var(--primary-navy) 100%);
    color: var(--white);
    padding-top: 80px; 
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -100px;
    width: 600px;
    height: 600px;
    background: var(--secondary-orange);
    filter: blur(150px);
    opacity: 0.1;
    border-radius: 50%;
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-content {
    max-width: 700px;
}

.hero-meta {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 1rem;
    color: var(--secondary-orange);
    margin-bottom: 20px;
    display: block;
}

.hero h1 {
    font-size: 5.5rem;
    line-height: 0.9;
    font-weight: 800;
    margin-bottom: 25px;
    color: var(--white);
    text-transform: uppercase;
}

.hero h1 span {
    color: var(--secondary-orange);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    max-width: 600px;
    opacity: 0.9;
    font-weight: 400;
}

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

.hero .btn-secondary {
    color: var(--white);
    border-color: var(--white);
}

.hero .btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-navy);
}

.hero-badge {
    flex-shrink: 0;
    animation: float 6s ease-in-out infinite;
}

.hero-badge img {
    height: 350px;
    width: auto;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Next Editions Cards */
.editions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.edition-card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border-top: 5px solid var(--primary-navy);
    transition: var(--transition);
    position: relative;
}

.edition-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.edition-date {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    color: var(--secondary-orange);
    margin-bottom: 15px;
    display: block;
}

.edition-info {
    margin-bottom: 25px;
}

.edition-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--text-medium);
}

.edition-status {
    display: inline-block;
    padding: 5px 15px;
    background-color: rgba(11, 61, 110, 0.1);
    color: var(--primary-navy);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.mini-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--primary-navy);
    color: var(--white);
    padding: 4px 10px;
    font-size: 0.7rem;
    border-radius: 4px;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 31px;
    top: 60px;
    bottom: -40px;
    width: 2px;
    background-color: var(--primary-navy);
    opacity: 0.2;
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-icon {
    width: 64px;
    height: 64px;
    background-color: var(--white);
    border: 2px solid var(--primary-navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 2;
    flex-shrink: 0;
}

.timeline-content {
    background-color: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    flex: 1;
}

.timeline-content h3 {
    margin-bottom: 10px;
}

/* About Cards */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.benefit-card {
    text-align: center;
    padding: 40px 30px;
}

.benefit-icon {
    font-size: 3rem;
    color: var(--secondary-orange);
    margin-bottom: 20px;
}

/* Location */
.location-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: center;
}

.location-info h3 {
    margin-bottom: 20px;
}

.location-map {
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.location-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Quick Guide */
.guide-card {
    background-color: var(--bg-cream);
    padding: 60px 40px;
    border-radius: 12px;
    border: 2px solid var(--secondary-orange);
    box-shadow: 0 15px 35px rgba(241, 116, 5, 0.1);
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.guide-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--secondary-orange);
}

.guide-list {
    margin: 40px 0;
    display: grid;
    gap: 20px;
}

.guide-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    font-weight: 500;
    font-size: 1.1rem;
}

.guide-item span {
    font-size: 1.5rem;
    line-height: 1;
}

/* FAQ Accordion */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--white);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-question {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--primary-navy);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-out;
}

.faq-item.active .faq-answer {
    padding-bottom: 25px;
    max-height: 200px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* Forms */
.forms-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.form-box {
    background-color: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.form-box h3 {
    margin-bottom: 20px;
    text-align: center;
}

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

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-navy);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-orange);
    box-shadow: 0 0 0 3px rgba(241, 116, 5, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.rating-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

.rating-item {
    cursor: pointer;
}

.rating-item input {
    display: none;
}

.rating-item i {
    font-size: 1.5rem;
    color: #ccc;
    transition: var(--transition);
}

.rating-item input:checked + i,
.rating-item:hover i {
    color: #ffcc00;
}

.google-form-container {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
}

.google-form-container iframe {
    display: block;
    border: none;
    background: white;
}

.form-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--text-medium);
    z-index: 1;
}

.form-placeholder i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.2;
}

.google-form-container iframe {
    position: relative;
    z-index: 2;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Footer */
footer {
    background-color: var(--primary-navy);
    color: var(--white);
    padding: 80px 0 30px;
}

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

.footer-about p {
    opacity: 0.7;
    margin-top: 20px;
    max-width: 400px;
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 25px;
}

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

.footer-links a {
    opacity: 0.7;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--secondary-orange);
}

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

/* Responsive Presentation Styles */
@media (max-width: 1024px) {
    .section-title { font-size: 2.2rem; }
    .hero h1 { font-size: 4rem; }
    .hero-content { padding-left: 25px; border-left-width: 6px; }
    .forms-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
    .hero .container { flex-direction: column; text-align: left; align-items: flex-start; }
    .hero h1 { font-size: 3.2rem; }
    .hero-badge { display: none; }
    .location-wrapper { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .section { padding: 60px 0; }
}

/* Decorative Elements */
.coffee-spill {
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(11, 61, 110, 0.05) 0%, transparent 70%);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    z-index: 0;
    pointer-events: none;
}

.coffee-bean {
    position: absolute;
    width: 30px;
    height: 30px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23F17405" opacity="0.2"><path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 1;
    pointer-events: none;
}

.bean-1 { bottom: 10%; right: 5%; transform: rotate(15deg); }
.bean-2 { bottom: 20%; left: 5%; transform: rotate(-25deg); opacity: 0.1; }
.bean-3 { top: 15%; right: 10%; transform: rotate(45deg); opacity: 0.08; }

/* Micro-animations */
.animate-in {
    animation: fadeInUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    opacity: 0;
}

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

/* btn-sm */
.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

/* Edition card footer */
.edition-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.07);
}

/* Mobile nav open */
@media (max-width: 768px) {
    .nav-links.mobile-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 20px 30px;
        box-shadow: var(--shadow-md);
        gap: 16px;
        z-index: 999;
    }
}

/* Form feedback messages */
.form-message {
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 0.875rem;
    margin-top: 12px;
}
.form-error {
    background-color: #FEE2E2;
    color: #DC2626;
    border: 1px solid #FECACA;
}

/* ── Banner Modal ────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.82);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}
.modal-container {
    background: var(--white);
    border-radius: 16px;
    padding: 40px 30px 30px;
    max-width: 520px;
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    position: relative;
    text-align: center;
}
.modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--text-medium);
    padding: 4px;
    line-height: 1;
}
.modal-title {
    font-size: 1.7rem;
    margin-bottom: 8px;
    text-transform: none;
    letter-spacing: 0;
}
.modal-subtitle {
    color: var(--text-medium);
    margin-bottom: 22px;
    font-size: 0.95rem;
}
.banner-canvas-wrapper {
    margin: 0 auto 22px;
    max-width: 240px;
}
.banner-canvas-wrapper canvas {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    display: block;
}
.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Certificate Section ─────────────────────────── */
.cert-box {
    background: var(--white);
    border-radius: 12px;
    padding: 50px 40px;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: var(--shadow-sm);
}
.cert-input-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}
.cert-input-row .form-control {
    flex: 1;
}
.cert-preview {
    margin-top: 20px;
    padding: 18px 20px;
    background: #DCFCE7;
    border-radius: 8px;
    color: #166534;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .cert-input-row { flex-direction: column; }
    .cert-box { padding: 30px 20px; }
    .modal-container { padding: 35px 20px 25px; }
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--secondary-orange);
    z-index: 1100;
}
