/* Reset e Variáveis */
:root {
    --primary-color: #a47dab; /* Lilas */
    --secondary-color: #5e366e; /* Deep Purple */
    --accent-color: #f8d7da; /* Rosa claro */
    --text-color: #333;
    --light-text: #fff;
    --dark-text: #222;
    --bg-light: #f9f9f9;
    --bg-dark: #222;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-light);
    overflow-x: hidden;
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.heart {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    transform: rotate(45deg);
    position: relative;
    animation: heartbeat 1.4s linear infinite;
}

.heart:before, .heart:after {
    content: '';
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    position: absolute;
}

.heart:before {
    top: -25px;
    left: 0;
}

.heart:after {
    top: 0;
    left: -25px;
}

@keyframes heartbeat {
    0% { transform: rotate(45deg) scale(1); }
    25% { transform: rotate(45deg) scale(1.1); }
    30% { transform: rotate(45deg) scale(1.4); }
    50% { transform: rotate(45deg) scale(1.2); }
    70% { transform: rotate(45deg) scale(1.4); }
    100% { transform: rotate(45deg) scale(1); }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.header-content {
    text-align: center;
    padding: 1rem 0;
}

.couple-names {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.wedding-date {
    font-size: 1rem;
    color: var(--secondary-color);
    font-weight: 300;
}

/* Navigation */
.main-nav {
    display: flex;
    justify-content: center;
    padding: 0 1rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0.5rem;
}

.nav-list {
    display: flex;
    list-style: none;
}

.nav-list li {
    margin: 0 1rem;
}

.nav-list a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition);
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--primary-color);
}

.nav-list a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-list a:hover:after,
.nav-list a.active:after {
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    margin-top: 120px;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    margin-top: 20px;
}

.slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--light-text);
    z-index: 10;
    width: 90%;
    max-width: 800px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: 10px;
}

.hero-overlay h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--light-text);
}

.countdown {
    font-size: 1.5rem;
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.countdown span {
    display: inline-block;
    min-width: 70px;
    padding: 0.5rem;
    background-color: rgba(212, 175, 55, 0.8);
    border-radius: 5px;
}

/* Sections */
.section {
    padding: 4rem 1rem;
}

.section-title {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 1rem auto;
}

/* Gallery */
.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    padding: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    aspect-ratio: 1/1;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Details Section */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.detail-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.detail-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.detail-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.detail-card h3 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.detail-card p {
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    background-color: var(--bg-dark);
    color: var(--light-text);
    text-align: center;
    padding: 2rem 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.social-links {
    margin-top: 1rem;
}

.social-links a {
    display: inline-block;
    color: var(--light-text);
    margin: 0 0.5rem;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-img {
    max-height: 90vh;
    max-width: 90vw;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--primary-color);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-nav:hover {
    background-color: var(--primary-color);
}

.lightbox-nav.prev {
    left: 20px;
}

.lightbox-nav.next {
    right: 20px;
}

.lightbox-caption {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    color: #fff;
    padding: 0 20px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .couple-names {
        font-size: 1.8rem;
    }
    
    .hero-overlay h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
    }
    
    .nav-list {
        position: fixed;
        top: 120px;
        left: -100%;
        width: 100%;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.95);
        padding: 1rem 0;
        transition: var(--transition);
    }
    
    .nav-list.active {
        left: 0;
    }
    
    .nav-list li {
        margin: 0.5rem 0;
        text-align: center;
    }
    
    .hero-overlay h2 {
        font-size: 2rem;
    }
    
    .countdown {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }

    .slide {
        margin-top: 0px;
    }    
}

@media (max-width: 576px) {
    .couple-names {
        font-size: 1.5rem;
    }
    
    .wedding-date {
        font-size: 0.9rem;
    }
    
    .hero {
        margin-top: 100px;
    }
    
    .hero-overlay {
        padding: 1rem;
    }
    
    .hero-overlay h2 {
        font-size: 1.8rem;
    }
    
    .countdown {
        gap: 0.5rem;
    }
    
    .countdown span {
        min-width: 60px;
        font-size: 1rem;
    }
    
    .section {
        padding: 2rem 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}
/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-content {
    position: relative;
    width: calc(50% - 40px);
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: auto;
}

.timeline-content:before {
    content: '';
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

.timeline-item:nth-child(odd) .timeline-content:before {
    left: -30px;
}

.timeline-item:nth-child(even) .timeline-content:before {
    right: -30px;
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-weight: 500;
}

.timeline-image {
    margin-top: 1rem;
}

.timeline-image img {
    width: 100%;
    border-radius: 5px;
}

/* RSVP Page */
.rsvp-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.rsvp-title {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.rsvp-form .form-group {
    margin-bottom: 1.5rem;
}

.rsvp-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.rsvp-form input[type="text"],
.rsvp-form input[type="email"],
.rsvp-form input[type="password"],
.rsvp-form input[type="number"],
.rsvp-form select,
.rsvp-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-body);
    transition: var(--transition);
}

.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.radio-group {
    display: flex;
    gap: 1rem;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
    cursor: pointer;
}

.rsvp-form button {
    display: block;
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.rsvp-form button:hover {
    background-color: var(--secondary-color);
}

/* Mobile-specific improvements */
@media (max-width: 768px) {
    .rsvp-container {
        padding: 1.5rem;
        margin: 1rem auto;
    }
    
    /* Improve Google Forms elements */
    #rsvpFormContainer .freebirdFormviewerViewItemsItemItem {
        padding: 12px 0;
    }
    
    #rsvpFormContainer .quantumWizTextinputPaperinputInput,
    #rsvpFormContainer .quantumWizTextinputPapertextareaInput {
        font-size: 16px;
        padding: 12px;
    }
    
    #rsvpFormContainer .freebirdFormviewerViewItemsRadioChoice {
        margin: 8px 0;
    }
}

@media (max-width: 480px) {
    .rsvp-container {
        padding: 1rem;
        margin: 0.5rem auto;
    }
    
    .rsvp-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

/* Presentes Page */
.presentes-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    text-align: center;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.presentes-btn {
    display: inline-block;
    margin: 2rem 0;
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: var(--transition);
}

.presentes-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.nota {
    font-size: 0.9rem;
    color: #666;
}

/* Responsive Timeline */
@media (max-width: 768px) {
    .timeline:before {
        left: 20px;
    }
    
    .timeline-content {
        width: calc(100% - 60px);
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 40px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content:before,
    .timeline-item:nth-child(even) .timeline-content:before {
        left: -30px;
    }
}

/* Página Dicas */
.tips-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 900px;      /* keeps two comfortable columns */
  margin: 0 auto;
  padding: 0 1rem;       /* breathing room on small screens */
}

@media (max-width: 720px) {
  .tips-container {
    grid-template-columns: 1fr;
    max-width: 600px;    /* optional */
  }
}

.tip-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.tip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.tip-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.tip-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.tip-card ul {
    padding-left: 1.2rem;
}

.tip-card li {
    margin-bottom: 0.5rem;
}

.color-swatch {
    display: inline-block;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    margin: 0 3px;
    vertical-align: middle;
}

/* Página Como Chegar */
.location-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.location-info {
    flex: 1;
    min-width: 300px;
}

.map-container {
    flex: 1;
    min-width: 300px;
    position: relative;
    height: 400px; /* Altura fixa */
    width: 300px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden; /* Impede que o mapa vaze */
    z-index: 1; /* Mantém abaixo do menu */
}

.location-container {
    position: relative;
    z-index: 1;
}

/* Ajuste para mobile */
@media (max-width: 768px) {
    .map-container {
        height: 300px;
        order: -1; /* Coloca o mapa acima no mobile */
        margin-bottom: 1.5rem;
    }
}

.address-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.address-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.transport-options {
    margin-top: 2rem;
}

.transport-card {
    background: #fff;
    padding: 1.2rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.transport-card i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.btn {
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 5px;
    margin-top: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    background: var(--secondary-color);
}

#weddingMap {
    height: 400px;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.map-note {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

/* Responsivo */
@media (max-width: 768px) {
    .location-container {
        flex-direction: column;
    }
    
    .transport-card {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }
}

.presentes-alternativos ul {
    list-style-type: none;
}

/* --- CORREÇÃO PARA MAPA E RESPONSIVIDADE --- */

/* Evita rolagem horizontal */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Garante que o container do mapa ocupe 100% da largura disponível */
.map-container {
    width: 100%;
    margin: 0 auto;
}

#weddingMap {
    width: 100% !important;
    height: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Centraliza o mapa e ajusta no mobile */
@media (max-width: 768px) {
    .map-container {
        order: -1;
        margin-bottom: 1.5rem;
        width: 100%;
    }

    #weddingMap {
        height: 300px !important;
    }

    .location-container {
        flex-direction: column;
    }

    /* Evita que o mapa ultrapasse o contêiner */
    .map-container, #weddingMap {
        left: 0;
        right: 0;
    }
}

/* Ajuste extra: garantir que o mapa se redimensione após o carregamento */
.leaflet-container {
    width: 100% !important;
    height: 100% !important;
}

button[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
    background-color: #cccccc;
}

/* === Layout: Jantar + Beleza ao lado de Hospedagem === */
.tips-container .tip-feature {
  grid-column: 1 / -1;
  width: 100%;
  display: flex;
  gap: 24px;
  align-items: stretch;     /* faz as duas colunas terem a mesma altura */
}

/* Coluna da ESQUERDA (pilha com 2 cartões) */
.tips-container .tip-feature > .tip-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1 1 50%;            /* 50/50 */
  min-width: 0;             /* evita overflow */
}

/* Cada cartão da esquerda ocupa metade da coluna */
.tips-container .tip-feature > .tip-stack > .tip-card {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
}

/* Coluna da DIREITA (Hospedagem/PT ou Accommodation/EN) — aceita ambos os nomes e ambas as estruturas */
.tips-container .tip-feature > .hospedagem,
.tips-container .tip-feature > .accommodation {
  flex: 1 1 50%;            /* 50/50 */
  min-width: 0;
  display: flex;
  flex-direction: column;   /* garante stretch vertical */
}

/* Caso a coluna da direita seja o PRÓPRIO .tip-card (PT) */
.hospedagem.tip-card,
.accommodation.tip-card {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

/* Caso na EN haja um WRAPPER .accommodation com um .tip-card dentro */
.accommodation > .tip-card {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

/* Mobile: empilha e libera altura natural */
@media (max-width: 768px) {
  .tips-container .tip-feature {
    flex-direction: column;
  }
  .tips-container .tip-feature > .tip-stack > .tip-card {
    flex: 0 0 auto;
  }
}

.contact-card {
  grid-column: 1 / -1;          /* spans full width within tips-container grid */
  text-align: left;
  background-color: #fff;
  padding: 0.5rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  margin-top: 0.5rem;
}

.contact-card i {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  display: block;
}

.contact-card a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.contact-card a:hover {
  text-decoration: underline;
}
