:root {
    --terracotta-50: #f7ede7;
    --terracotta-100: #efd8cb;
    --terracotta-200: #dfb8a2;
    --terracotta-300: #cf9879;
    --terracotta-400: #bf7850;
    --terracotta-500: #b65e3c;
    --terracotta-600: #94472d;
    --terracotta-700: #6f3422;
    --terracotta-800: #452117;
    --ink: #39281f;
    --sand: #fbf6f2;
    --white: #ffffff;
    --shadow: 0 24px 60px rgba(111, 52, 34, 0.14);
}

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Muli", "Segoe UI", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(182, 94, 60, 0.12), transparent 30%),
        linear-gradient(180deg, #fffaf7 0%, var(--sand) 42%, #fff 100%);
}

a { color: inherit; }
.site-shell { overflow-x: hidden; }

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(16px);
    background: rgba(255, 250, 247, 0.82);
    border-bottom: 1px solid rgba(111, 52, 34, 0.08);
}

.topbar .inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    font-family: "monallesiascript", "Times New Roman", serif;
    font-size: 2rem;
    color: var(--terracotta-700);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 22px;
    font-size: 0.96rem;
}

.nav-links a {
    text-decoration: none;
    color: rgba(57, 40, 31, 0.82);
}

.nav-links a:hover { color: var(--terracotta-600); }

.hero {
    max-width: 1180px;
    margin: 0 auto;
    padding: 70px 20px 40px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    align-items: center;
    gap: 42px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(182, 94, 60, 0.1);
    color: var(--terracotta-700);
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1,
.section-title h2,
.gift-card h3,
.event-card h3,
.panel h2,
.checkout-box h1 {
    font-family: Georgia, "Times New Roman", serif;
}

.hero h1 {
    margin: 22px 0 18px;
    font-size: clamp(3rem, 7vw, 5.4rem);
    line-height: 0.95;
    color: var(--terracotta-800);
}

.hero p {
    max-width: 620px;
    font-size: 1.08rem;
    line-height: 1.8;
    color: rgba(57, 40, 31, 0.84);
}

.hero-actions {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
    background: var(--terracotta-600);
    color: var(--white);
    box-shadow: 0 14px 30px rgba(148, 71, 45, 0.25);
    border: none;
}

.btn-secondary {
    background: transparent;
    color: var(--terracotta-700);
    border: 1px solid rgba(148, 71, 45, 0.22);
}

.btn-primary:hover,
.btn-secondary:hover { transform: translateY(-2px); }

.countdown-card,
.hero-image,
.story-card,
.event-card,
.panel,
.gift-card,
.product-panel,
.checkout-box {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(111, 52, 34, 0.08);
    box-shadow: var(--shadow);
}

.countdown-card {
    margin-top: 32px;
    border-radius: 28px;
    padding: 22px;
}

.countdown-card strong {
    display: block;
    margin-bottom: 12px;
    color: var(--terracotta-700);
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.countdown-item {
    padding: 16px 12px;
    border-radius: 18px;
    background: var(--sand);
    text-align: center;
}

.countdown-item span {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--terracotta-700);
}

.countdown-item small {
    color: rgba(57, 40, 31, 0.64);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.hero-image {
    position: relative;
    border-radius: 36px;
    padding: 18px;
}

.hero-image::before {
    content: "";
    position: absolute;
    inset: -22px auto auto -22px;
    width: 120px;
    height: 120px;
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(182, 94, 60, 0.24), rgba(182, 94, 60, 0.03));
    z-index: 0;
}

.hero-image img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 620px;
    object-fit: cover;
    border-radius: 24px;
}

.section {
    max-width: 1180px;
    margin: 0 auto;
    padding: 32px 20px 88px;
}

.section-title {
    max-width: 680px;
    margin-bottom: 30px;
}

.section-title span {
    color: var(--terracotta-600);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.9rem;
}

.section-title h2 {
    margin: 10px 0 14px;
    font-size: clamp(2rem, 4vw, 3.4rem);
    color: var(--terracotta-800);
}

.section-title p {
    margin: 0;
    line-height: 1.8;
    color: rgba(57, 40, 31, 0.8);
}

.story-grid,
.event-grid,
.gift-grid {
    display: grid;
    gap: 22px;
}

.story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.story-card {
    border-radius: 28px;
    overflow: hidden;
}

.story-card img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.story-content { padding: 26px; }

.story-content h3 {
    margin: 0 0 10px;
    font-size: 1.8rem;
    color: var(--terracotta-700);
}

.story-content p {
    margin: 0;
    line-height: 1.75;
    color: rgba(57, 40, 31, 0.78);
}

.event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.event-grid.single { grid-template-columns: minmax(0, 680px); justify-content: center; }
.event-grid.single .event-card { text-align: center; }
.event-grid.single .event-card ul { list-style: none; padding: 0; }
.event-grid.single .event-card li { margin-bottom: 6px; }

.event-card {
    border-radius: 28px;
    padding: 28px;
}

.event-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 22px;
    margin-bottom: 18px;
}

.event-card h3 {
    margin: 0 0 12px;
    font-size: 1.7rem;
    color: var(--terracotta-700);
}

.event-card ul {
    margin: 0;
    padding-left: 18px;
    line-height: 1.9;
    color: rgba(57, 40, 31, 0.82);
}

.rsvp-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
    gap: 22px;
}

.panel {
    border-radius: 30px;
    padding: 32px;
}

.panel h2 {
    margin: 0 0 12px;
    font-size: 2.1rem;
    color: var(--terracotta-800);
}

.panel p {
    margin: 0 0 22px;
    line-height: 1.8;
    color: rgba(57, 40, 31, 0.78);
}

.rsvp-form .field { margin-bottom: 16px; }

.rsvp-form input[type="text"] {
    width: 100%;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid rgba(111, 52, 34, 0.14);
    background: #fff;
    font-size: 1rem;
}

.radio-set {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 18px 0 20px;
}

.radio-set label {
    flex: 1 1 180px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--sand);
    border: 1px solid rgba(111, 52, 34, 0.08);
}

.detail-list {
    display: grid;
    gap: 14px;
}

.detail-item {
    padding: 18px 20px;
    border-radius: 18px;
    background: var(--sand);
}

.detail-item strong {
    display: block;
    margin-bottom: 6px;
    color: var(--terracotta-700);
}

/* Splide Gift Carousel Customization */
#gift-splide .splide__arrow {
    background: var(--white);
    border: 2px solid rgba(148, 71, 45, 0.25);
    box-shadow: 0 4px 16px rgba(111, 52, 34, 0.15);
    width: 44px;
    height: 44px;
    opacity: 1;
    transition: all 0.2s ease;
}

#gift-splide .splide__arrow svg {
    fill: var(--terracotta-600);
}

#gift-splide .splide__arrow:hover {
    background: var(--terracotta-600);
    border-color: var(--terracotta-600);
}

#gift-splide .splide__arrow:hover svg {
    fill: var(--white);
}

#gift-splide .splide__pagination {
    bottom: -28px;
}

#gift-splide .splide__pagination__page {
    background: rgba(148, 71, 45, 0.25);
    width: 10px;
    height: 10px;
    transition: all 0.2s ease;
}

#gift-splide .splide__pagination__page.is-active {
    background: var(--terracotta-600);
    transform: scale(1.35);
}

#gift-splide {
    padding-bottom: 40px;
}

#gift-splide .gift-card {
    height: 100%;
}

.gift-slider {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 10px 4px 20px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.gift-slider::-webkit-scrollbar {
    height: 8px;
}

.gift-slider::-webkit-scrollbar-track {
    background: rgba(182, 94, 60, 0.1);
    border-radius: 10px;
}

.gift-slider::-webkit-scrollbar-thumb {
    background: var(--terracotta-300);
    border-radius: 10px;
}

.gift-slider .gift-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
    border-radius: 26px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(111, 52, 34, 0.08);
    box-shadow: var(--shadow);
}

.gift-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.gift-card {
    border-radius: 26px;
    overflow: hidden;
}

.gift-card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
}

.gift-body { padding: 22px; }

.gift-card h3 {
    margin: 0 0 8px;
    font-size: 1.4rem;
    color: var(--terracotta-700);
}

.gift-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    color: rgba(57, 40, 31, 0.76);
}

.gift-body .btn-primary { width: 100%; }

.product-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 56px 20px 80px;
}

.product-grid {
    display: grid;
    grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
    gap: 24px;
}

.product-panel,
.checkout-box {
    border-radius: 30px;
    overflow: hidden;
}

.product-panel img {
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
}

.checkout-box { padding: 34px; }

.checkout-box .price {
    font-size: 2rem;
    color: var(--terracotta-700);
    font-weight: 800;
}

.checkout-box p {
    line-height: 1.8;
    color: rgba(57, 40, 31, 0.8);
}

.helper-note {
    padding: 16px 18px;
    border-radius: 16px;
    background: rgba(182, 94, 60, 0.08);
    color: var(--terracotta-700);
}

.footer-note {
    text-align: center;
    padding: 0 20px 38px;
    color: rgba(57, 40, 31, 0.58);
}

.text-danger ul { margin: 0 0 14px; }

/* Modal PIX */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(57, 40, 31, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: 28px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-content h3 {
    font-family: Georgia, "Times New Roman", serif;
    color: var(--terracotta-800);
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.8rem;
}

.modal-content p {
    color: rgba(57, 40, 31, 0.8);
    line-height: 1.6;
    margin-bottom: 0;
}

.close-modal {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(182, 94, 60, 0.1);
    border: none;
    color: var(--terracotta-700);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.close-modal:hover {
    background: var(--terracotta-600);
    color: var(--white);
}

@media (max-width: 991px) {
    .hero-grid,
    .story-grid,
    .event-grid,
    .rsvp-grid,
    .gift-grid,
    .product-grid {
        grid-template-columns: 1fr;
    }

    .nav-links { display: none; }
    .hero-image img { height: 420px; }
    .countdown-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .topbar .inner,
    .hero,
    .section,
    .product-page {
        padding-left: 16px;
        padding-right: 16px;
    }

    .brand { font-size: 1.7rem; }
    .hero h1 { font-size: 2.8rem; }

    .panel,
    .checkout-box,
    .story-content,
    .gift-body,
    .event-card {
        padding: 22px;
    }
}
