/* Fonts */
@font-face {
    font-family: 'Breezeblocks';
    src: url('Breezeblocks.woff2') format('woff2'),
         url('Breezeblocks.ttf') format('truetype'),
         url('Breezeblocks.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Radiograph';
    src: url('Radiograph.woff2') format('woff2'),
         url('Radiograph.ttf') format('truetype'),
         url('Radiograph.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'MrsEaves';
    src: url('MrsEavesRomanAllSmallCaps.woff2') format('woff2'),
         url('MrsEavesRomanAllSmallCaps.ttf') format('truetype'),
         url('MrsEavesRomanAllSmallCaps.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Modernist';
    src: url('Sk-Modernist-Regular.woff2') format('woff2'),
         url('Sk-Modernist-Regular.ttf') format('truetype'),
         url('Sk-Modernist-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* Variables */
:root {
    --beige: #F5F0E8;
    --beige-alt: #EDE6D9;
    --dark-blue: #1E3A5F;
    --dark-blue-light: #2C4A6E;
}

/* Clink Effect */
.clink-effect {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    animation: clinkPop 0.6s ease-out forwards;
}

.clink-glass {
    font-size: 28px;
    position: absolute;
    animation: clinkRotate 0.4s ease-out forwards;
}

.clink-sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #BF953F;
    border-radius: 50%;
    animation: sparkle 0.6s ease-out forwards;
}

@keyframes clinkPop {
    0% { transform: scale(0.5); opacity: 1; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 0; }
}

@keyframes clinkRotate {
    0% { transform: rotate(-20deg); }
    30% { transform: rotate(10deg); }
    100% { transform: rotate(0deg); }
}

@keyframes sparkle {
    0% { transform: scale(0) translate(0, 0); opacity: 1; }
    100% { transform: scale(1) translate(var(--tx), var(--ty)); opacity: 0; }
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Avenir Next', 'Avenir', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--beige);
    color: var(--dark-blue);
    line-height: 1.7;
    font-size: 18px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.site-header {
    padding: 0.75rem 2rem 0;
    text-align: center;
}

.logo {
    font-family: 'Breezeblocks', Georgia, serif;
    font-size: 6rem;
    text-decoration: none;
    display: block;
    margin-bottom: -0.5rem;
    /* Gold shimmer effect */
    background: linear-gradient(
        135deg,
        #BF953F 0%,
        #FCF6BA 25%,
        #B38728 50%,
        #FBF5B7 75%,
        #AA771C 100%
    );
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 6s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.logo:hover {
    opacity: 0.9;
}

/* Navigation */
.nav ul {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    list-style: none;
    flex-wrap: wrap;
}

.nav a {
    text-decoration: none;
    color: var(--dark-blue);
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
    padding-bottom: 0.25rem;
}

.nav a:hover {
    opacity: 0.6;
}

.nav a.active {
    border-bottom: 1px solid var(--dark-blue);
}

.nav-rsvp {
    font-weight: 600;
}

/* Main Content */
main {
    flex: 1;
}

/* Home / Hero */
.home {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 2rem 3rem;
    margin-top: -1rem;
}

.hero {
    text-align: center;
    width: 100%;
    max-width: 1000px;
}

.hero-image-wrapper {
    margin-bottom: 0;
}

.hero-image {
    width: 100vw;
    max-width: 1500px;
    height: auto;
    /* Let transparency show through to beige background */
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.hero-image-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

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

.hero-info .date-time {
    font-family: 'Radiograph', Georgia, serif;
    font-size: 2.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}

.hero-info .date-time .at {
    font-family: 'Breezeblocks', Georgia, serif;
    font-size: 0.75em;
    font-style: normal;
    font-weight: normal;
    letter-spacing: 0.02em;
    margin: 0 0.2em;
    vertical-align: middle;
}

.hero-info .venue {
    font-family: 'MrsEaves', 'Times New Roman', serif;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.hero-info .location {
    font-family: 'MrsEaves', 'Times New Roman', serif;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

/* Page Content */
.page {
    padding: 3rem 2rem 4rem;
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-content h1 {
    display: none;
}

.page-content h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
}

.page-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Content Sections */
.content-section {
    margin-bottom: 2.5rem;
}

.content-section:last-child {
    margin-bottom: 0;
}

.content-section p {
    margin-bottom: 0.75rem;
}

.content-section p:last-child {
    margin-bottom: 0;
}

.centered {
    text-align: center;
}

/* Story */
.story-text {
    text-align: center;
    font-size: 1.1rem;
}

/* FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.faq-item h3 {
    margin-bottom: 0.5rem;
}

/* Registry */
.registry-links {
    margin-top: 2rem;
}

.registry-page .page-content {
    max-width: 700px;
    text-align: center;
}

.registry-intro {
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.registry-embed {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem 2rem;
}

/* Page intro */
.page-intro {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.05rem;
}

/* Section Cards - Modern Layout */
.section-card {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 12px rgba(30, 58, 95, 0.06);
    position: relative;
    overflow: hidden;
}

.section-card[data-image]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)),
        var(--bg-image);
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

.section-card[data-image]:hover::before {
    opacity: 1;
}

.section-card > * {
    position: relative;
    z-index: 2;
}

.section-card:last-child {
    margin-bottom: 0;
}

/* Inverted Card (blue background, white text) */
.section-card-inverted {
    background: var(--dark-blue);
    color: var(--beige);
    text-decoration: none;
    display: block;
    transition: background-color 0.3s ease;
}

.section-card-inverted:hover {
    background: var(--dark-blue-light);
}

.section-card-inverted .section-title {
    color: var(--beige);
}

.section-card-inverted .place-address {
    color: var(--beige);
    opacity: 0.8;
}

.section-card-inverted[data-image]::before {
    background:
        linear-gradient(rgba(30, 58, 95, 0.75), rgba(30, 58, 95, 0.75)),
        var(--bg-image);
    background-size: cover;
    background-position: center;
}

.section-card-inverted[data-image]:hover::before {
    background:
        linear-gradient(rgba(30, 58, 95, 0.6), rgba(30, 58, 95, 0.6)),
        var(--bg-image);
    background-size: cover;
    background-position: center;
    opacity: 1;
}

.explore-arrow-inline {
    font-size: 1.5rem;
    display: inline-block;
    margin-top: 0.5rem;
    transition: transform 0.3s ease;
}

.section-card-inverted:hover .explore-arrow-inline {
    transform: translateX(6px);
}

/* Map Card in Grid */
.map-card {
    background: var(--dark-blue);
    padding: 0;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--beige);
    transition: all 0.3s ease;
}

.map-card:hover {
    background: var(--dark-blue-light);
    box-shadow: 0 8px 30px rgba(30, 58, 95, 0.2);
}

.map-card-embed {
    position: relative;
    width: 100%;
    height: 140px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.map-card-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.map-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 30%, var(--dark-blue) 100%);
    z-index: 1;
}

.map-card:hover .map-card-overlay {
    background: linear-gradient(to bottom, transparent 30%, var(--dark-blue-light) 100%);
}

.map-card-content {
    padding: 1.5rem 2rem 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.map-card .section-title {
    color: var(--beige);
    font-size: 1.75rem;
}

.map-card p {
    color: var(--beige);
    opacity: 0.85;
    margin-bottom: 0.5rem;
}

.map-card .explore-arrow-inline {
    color: var(--beige);
    margin-top: auto;
}

.section-title {
    font-family: 'Radiograph', Georgia, serif;
    font-size: 2rem;
    font-weight: normal;
    margin-bottom: 1rem;
    line-height: 1.3;
    letter-spacing: 0.02em;
}

.section-card p {
    margin-bottom: 0.75rem;
    line-height: 1.8;
    font-size: 0.95rem;
}

.section-card p:last-child {
    margin-bottom: 0;
}

.section-card .highlight {
    font-weight: 600;
}

.section-card .underline {
    text-decoration: underline;
}

.section-card ul {
    margin: 0.5rem 0 0.75rem 1.5rem;
    font-size: 0.95rem;
    line-height: 1.8;
}

.section-card li {
    margin-bottom: 0.25rem;
}

.section-card a {
    color: var(--dark-blue);
    text-decoration: none;
    border-bottom: 1px solid rgba(30, 58, 95, 0.3);
    transition: border-color 0.2s ease;
}

.section-card a:hover {
    border-bottom-color: var(--dark-blue);
}

.section-card .details {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(30, 58, 95, 0.1);
    font-size: 0.95rem;
}

.section-card .detail-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: inherit;
}

.section-card .detail-label {
    font-weight: 600;
    min-width: 100px;
}

.section-card .detail-note {
    margin-top: 1rem;
}

/* Grid Layout for Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.5rem;
}

.card-grid .section-card {
    margin-bottom: 0;
}

/* Smaller section title for grid cards */
.card-grid .section-title {
    font-size: 1.75rem;
}

/* Place address / secondary line styling */
.place-address,
.section-label {
    font-family: 'MrsEaves', 'Times New Roman', serif;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.6;
    margin-bottom: 0.75rem;
}

/* FAQ specific */
.faq-subtitle {
    font-family: 'MrsEaves', 'Times New Roman', serif;
    font-size: 1rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

/* Story page */
.story-content {
    max-width: 650px;
    margin: 0 auto 3rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

.story-content p {
    margin-bottom: 1.5rem;
}

.story-content p:last-child {
    margin-bottom: 0;
}

/* Photo Mosaic */
.photo-mosaic {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 1fr;
    grid-auto-flow: dense;
    gap: 1rem;
    margin-top: 2rem;
}

.mosaic-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition:
        transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        grid-column 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        grid-row 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.mosaic-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.mosaic-item:hover:not(.expanded) {
    z-index: 10;
    transform: scale(1.08);
    box-shadow: 0 10px 40px rgba(30, 58, 95, 0.25);
}

.mosaic-item:hover:not(.expanded) img {
    transform: scale(1.05);
}

.mosaic-item.expanded {
    grid-column: span 2;
    grid-row: span 2;
    z-index: 5;
    box-shadow: 0 8px 30px rgba(30, 58, 95, 0.2);
}

@media (max-width: 900px) {
    .photo-mosaic {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .photo-mosaic {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .mosaic-item:hover:not(.expanded) {
        transform: scale(1.05);
    }
}

/* RSVP */
.rsvp-content {
    max-width: 600px;
}

.rsvp-intro {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.rsvp-step {
    animation: fadeIn 0.3s ease;
}

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

.rsvp-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.rsvp-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(30, 58, 95, 0.08);
    margin-bottom: 1.5rem;
}

.rsvp-guest-name {
    font-family: 'Radiograph', Georgia, serif;
    font-size: 1.75rem;
    font-weight: normal;
    text-align: center;
    margin-bottom: 1.5rem;
}

.rsvp-options {
    display: flex;
    gap: 1rem;
}

.rsvp-option {
    flex: 1;
    cursor: pointer;
}

.rsvp-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.rsvp-option-box {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 1rem;
    border: 2px solid rgba(30, 58, 95, 0.2);
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.rsvp-option-box .option-label {
    font-size: 0.95rem;
    letter-spacing: 0.03em;
}

.rsvp-option input:checked + .rsvp-option-box.accept {
    border-color: #2e7d32;
    background: #e8f5e9;
    color: #2e7d32;
}

.rsvp-option input:checked + .rsvp-option-box.decline {
    border-color: #c62828;
    background: #ffebee;
    color: #c62828;
}

.rsvp-option:hover .rsvp-option-box {
    border-color: var(--dark-blue);
}

.error-message {
    color: #c62828;
    text-align: center;
    margin-top: 1rem;
    font-size: 0.95rem;
}

.btn-link {
    background: none;
    border: none;
    color: var(--dark-blue);
    font-size: 0.9rem;
    cursor: pointer;
    margin-top: 1.5rem;
    display: block;
    text-align: center;
    width: 100%;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.btn-link:hover {
    opacity: 1;
}

.confirmation-message {
    text-align: center;
    background: white;
    padding: 3rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(30, 58, 95, 0.08);
    margin-bottom: 1.5rem;
}

.confirmation-message h2 {
    font-family: 'Breezeblocks', Georgia, serif;
    font-size: 2.5rem;
    font-weight: normal;
    margin-bottom: 1rem;
}

.confirmation-message p {
    font-size: 1.1rem;
    line-height: 1.7;
}

.confirm-note {
    margin-top: 1.5rem;
    font-size: 0.9rem !important;
    opacity: 0.7;
}

@media (max-width: 500px) {
    .form-row {
        flex-direction: column;
    }

    .rsvp-options {
        flex-direction: column;
    }
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group:last-of-type {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    border: 1px solid rgba(30, 58, 95, 0.2);
    border-radius: 4px;
    background: var(--beige);
    color: var(--dark-blue);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--dark-blue);
}

.btn {
    display: block;
    width: 100%;
    padding: 0.875rem 2rem;
    font-size: 0.9rem;
    font-family: inherit;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--dark-blue);
    color: var(--beige);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background: var(--dark-blue-light);
}

/* Map preview */
.map-preview {
    display: flex;
    align-items: center;
    margin-top: 2rem;
    background: var(--dark-blue);
    color: var(--beige);
    text-decoration: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.map-preview:hover {
    background: var(--dark-blue-light);
    box-shadow: 0 8px 30px rgba(30, 58, 95, 0.2);
}

.map-preview-embed {
    position: relative;
    width: 280px;
    height: 160px;
    flex-shrink: 0;
}

.map-preview-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.map-preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, transparent 60%, var(--dark-blue) 100%);
    z-index: 1;
}

.map-preview:hover .map-preview-overlay {
    background: linear-gradient(to right, transparent 60%, var(--dark-blue-light) 100%);
}

.map-preview-content {
    flex: 1;
    padding: 1.5rem 2rem;
}

.explore-text {
    font-family: 'Radiograph', Georgia, serif;
    font-size: 1.5rem;
    display: block;
}

.explore-subtext {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-top: 0.25rem;
    display: block;
}

.explore-arrow {
    flex-shrink: 0;
    margin-right: 2rem;
    transition: transform 0.3s ease;
}

.map-preview:hover .explore-arrow {
    transform: translateX(6px);
}

@media (max-width: 600px) {
    .map-preview {
        flex-direction: column;
    }

    .map-preview-embed {
        width: 100%;
        height: 150px;
    }

    .map-preview-overlay {
        background: linear-gradient(to bottom, transparent 40%, var(--dark-blue) 100%);
    }

    .map-preview:hover .map-preview-overlay {
        background: linear-gradient(to bottom, transparent 40%, var(--dark-blue-light) 100%);
    }

    .explore-arrow {
        margin-right: 0;
        margin-bottom: 1.5rem;
    }
}

/* Footer */
.footer {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--dark-blue);
    color: var(--beige);
    margin-top: auto;
}

.footer-names {
    font-family: 'Breezeblocks', Georgia, serif;
    font-size: 2.625rem;
    margin-bottom: 0.5rem;
}

.footer-details {
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    opacity: 0.85;
}

/* Responsive */
@media (max-width: 768px) {
    .site-header {
        padding: 1.5rem 1.5rem 0;
    }

    .logo {
        font-size: 4rem;
        margin-bottom: 0.5rem;
    }

    .nav ul {
        gap: 1.25rem;
    }

    .nav a {
        font-size: 0.75rem;
    }

    .home {
        padding: 2rem 1.5rem;
    }

    .hero-info .date-time {
        font-size: 1.8rem;
    }

    .hero-info .venue {
        font-size: 1rem;
    }

    .hero-info .location {
        font-size: 1rem;
    }

    .page {
        padding: 2rem 1.5rem 3rem;
    }

    .page-content h1 {
        font-size: 2rem;
    }

    .rsvp-form {
        padding: 1.75rem;
    }
}

@media (max-width: 480px) {
    .nav ul {
        gap: 0.75rem 1rem;
    }

    .hero-info .date-time {
        font-size: 1.4rem;
    }

    .hero-info .venue {
        font-size: 0.9rem;
    }

    .hero-info .location {
        font-size: 0.9rem;
    }

    .footer-names {
        font-size: 1.5rem;
    }
}
