/* ==========================================================================
   FONT FACES
   ========================================================================== */
@font-face {
    font-family: 'Bodoni Moda Local';
    src: url('assets/fonts/BodoniModa-VariableFont.ttf') format('truetype');
    font-weight: 300 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Bodoni Moda Local';
    src: url('assets/fonts/BodoniModa-Italic.ttf') format('truetype');
    font-weight: 300 900;
    font-style: italic;
    font-display: swap;
}

/* ==========================================================================
   CSS VARIABLES & DESIGN TOKENS
   ========================================================================== */
:root {
    --bg-top-hero: #000;
    --bg-dark-middle: #08040B;
    --bg-bottom-footer: #eaded3;
    
    --color-text-dark: #1A1A1A;
    --color-text-muted: #55504C;
    --color-text-light: #F4EFEA;
    --color-text-light-muted: #F4EFEA;
    
    --border-dark-divider: rgba(255, 255, 255, 0.16);

    --font-serif: 'Bodoni Moda Local', 'Bodoni Moda', Georgia, 'Times New Roman', serif;
    --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    --container-max-width: 1024px;
    --transition-smooth: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ==========================================================================
   BASE & RESET
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-top-hero);
    color: var(--color-text-dark);
    font-family: var(--font-sans);
    line-height: 1.5;
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

.site-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* Screen reader only utility */
.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;
}

/* ==========================================================================
   1. HERO SECTION (100% WIDTH, BG: #EAE0D4)
   ========================================================================== */
.section-hero {
    width: 100%;
    background-color: var(--bg-top-hero);
    display: flex;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-image: url('/dearmarilyn/assets/images/hero_bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height:750px;
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        background-position: center top;
    }
}

.hero-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-banner-img {
    width: 100%;
    max-width: var(--container-max-width);
    height: auto;
    object-fit: contain;
    display: block;
    user-select: none;
}

/* ==========================================================================
   2. DETAILS SECTION (100% WIDTH, BG: #08040B)
   ========================================================================== */
.section-details {
    width: 100%;
    background-color: var(--bg-dark-middle);
    color: var(--color-text-light);
    padding: 70px 0;
    display: flex;
    justify-content: center;
    position: relative;
}

.details-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 0 20px;
    position: relative;
}

.detail-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 24px 20px 24px;
    position: relative;
}

/* Vertical Dividers Between Cards */
.detail-card:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 5%;
    height: 90%;
    width: 1px;
    background-color: var(--border-dark-divider);
}

.card-icon-wrap {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.card-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: invert(1) brightness(1.2);
}

.card-label {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    color: var(--color-text-light);
    text-transform: uppercase;
    margin-bottom: 18px;
}

.card-highlight {
    font-family: var(--font-serif);
    color: var(--color-text-light);
    line-height: 1.15;
}

.date-range {
    font-size: 1.6rem;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.announce-date {
    font-size: 1.45rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.card-divider {
    width: 44px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.35);
    margin: 18px auto 22px auto;
}

.card-text {
    font-size: 0.88rem;
    line-height: 1.55;
    color: #E2DBD4;
   
}

.card-text .text-pl {
    margin-bottom: 12px;
    font-weight: 400;
}

.card-text .text-en {
   
    font-weight: 300;
    font-size: 0.9rem;
    color: var(--color-text-light-muted);
    line-height: 1.5;
    font-family:Bodoni Moda Local;
    font-style: italic;
}

/* Prize Circle in Col 2 */
.prize-circle-wrap {
    margin: 8px 0 22px 0;
}

.prize-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    overflow: hidden;
    margin: 0 auto;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
    transition: var(--transition-smooth);
}

.prize-circle:hover {
    transform: scale(1.04);
    border-color: rgba(255, 255, 255, 0.6);
}

.prize-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.prize-text {
    font-size: 0.92rem;
}

/* Location Badge in Col 1 */
.location-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    text-align: left;
    padding-top: 0px;
}

.pin-icon {
    width: 35px;
    height: 35px;
    object-fit: contain;
    filter: invert(1);
    flex-shrink: 0;
}

.location-text strong {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-text-light);
}

.location-text span {
    font-size: 0.8rem;
    color: var(--color-text-light-muted);
}

/* ==========================================================================
   3. FOOTER SECTION (100% WIDTH, BG: #E8DED2)
   ========================================================================== */
.section-footer {
    width: 100%;
    background-color: var(--bg-bottom-footer);
    padding: 50px 0 60px 0;
    display: flex;
    justify-content: center;
    position: relative;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    padding: 0 40px;
    gap: 30px;
}

/* Rules Column */
.rules-col {
    display: flex;
    flex-direction: column;
}

.rules-header {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 24px;
}

.rules-icon {
    width: 38px;
    height: 38px;
    object-fit: contain;
    flex-shrink: 0;
    margin-top: 2px;
}

.rules-label {
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    color: var(--color-text-dark);
    margin-bottom: 4px;
}

.rules-text-pl {
    font-size: 0.92rem;
    color: var(--color-text-dark);
}

.rules-text-en {
    font-size: 0.86rem;
    font-style: italic;
    color: var(--color-text-muted);
}

.rules-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: 56px;
}

.qr-code-box {
    width: 88px;
    height: 88px;
   
    flex-shrink: 0;
}

.qr-code-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* CTA Button */
.btn-rules {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 24px;
    border: 1.5px solid var(--color-text-dark);
    background: transparent;
    color: var(--color-text-dark);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: var(--transition-smooth);
}

.btn-rules .btn-arrow {
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

.btn-rules:hover {
    background-color: var(--color-text-dark);
    color: #FAF6F2;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.btn-rules:hover .btn-arrow {
    transform: translateX(4px);
}

/* Postmark Stamp Column */
.postmark-col {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    border-left: 1px solid #000;
}

.postmark-wrap {
    width: 100%;
    max-width: 320px;
}

.postmark-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    opacity: 0.95;
    transition: var(--transition-smooth);
}

.postmark-img:hover {
    opacity: 1;
    transform: rotate(-1deg) scale(1.02);
}

/* ==========================================================================
   4. MODAL POPUP (REGULAMIN)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay[hidden] {
    display: none;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    z-index: 10;
    background-color: #FAF6F2;
    max-width: 680px;
    width: 100%;
    max-height: 88vh;
    border-radius: 8px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    animation: modalFadeIn 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

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

.modal-close {
    position: absolute;
    top: 18px;
    right: 22px;
    font-size: 2rem;
    line-height: 1;
    color: var(--color-text-dark);
    opacity: 0.6;
    transition: var(--transition-smooth);
}

.modal-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

.modal-body {
    padding: 40px 36px 36px 36px;
}

.modal-header-text {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 20px;
    margin-bottom: 24px;
}

.modal-tag {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: #777;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.modal-header-text h2 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    line-height: 1.25;
    color: var(--color-text-dark);
}

.modal-section {
    margin-bottom: 20px;
}

.modal-section h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text-dark);
}

.modal-section p {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 6px;
}

.modal-footer {
    margin-top: 30px;
    display: flex;
    justify-content: flex-end;
}

.btn-modal-close {
    padding: 10px 24px;
    background-color: var(--color-text-dark);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.btn-modal-close:hover {
    background-color: #000;
}
/* ==========================================================================
   MODAL IFRAME EMBED STYLES
   ========================================================================== */
.modal-iframe-content {
    max-width: 900px;
    width: 95%;
    height: 90vh;
    max-height: 850px;
    background-color: #FAF6F2;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.modal-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 22px;
    background-color: #EDE2D8;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.modal-title-small {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #444;
}

.modal-top-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.modal-btn-open-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #1A1A1A;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.18);
    background-color: rgba(255, 255, 255, 0.6);
    transition: var(--transition-smooth);
}

.modal-btn-open-tab:hover {
    background-color: #fff;
    border-color: #1A1A1A;
}

.modal-close-btn {
    font-size: 1.8rem;
    line-height: 1;
    color: #1A1A1A;
    opacity: 0.7;
    padding: 0 4px;
    transition: var(--transition-smooth);
}

.modal-close-btn:hover {
    opacity: 1;
    transform: scale(1.15);
}

.rules-iframe {
    width: 100%;
    height: 100%;
    flex: 1;
    border: none;
    background-color: #EDE2D8;
}


/* ==========================================================================
   5. RESPONSIVE BREAKPOINTS (RWD)
   ========================================================================== */
@media (max-width: 900px) {
    .section-details {
        padding: 50px 0;
    }

    .details-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .detail-card {
        padding: 20px 10px;
    }

    .detail-card:not(:last-child)::after {
        display: none;
    }

    .detail-card:not(:last-child) {
        border-bottom: 1px solid var(--border-dark-divider);
        padding-bottom: 40px;
    }

    .section-footer {
        padding: 40px 0 50px 0;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .rules-header {
        justify-content: center;
        text-align: left;
    }

    .rules-actions {
        margin-left: 0;
        justify-content: center;
    }

    .postmark-col {
        justify-content: center;
    }
}

@media (max-width: 580px) {
    .section-details {
        padding: 40px 0;
    }

    .details-container {
        padding: 0 16px;
    }

    .footer-container {
        padding: 0 20px;
    }

    .rules-actions {
        flex-direction: column;
        gap: 16px;
    }

    .btn-rules {
        width: 100%;
    }
    /* Postmark Stamp Column */
.postmark-col {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    border-left: none;
}
}
