* {
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    color: #111;
    background: #fff;
    opacity: 0;
    animation: fadeInPage 1.2s ease forwards;
}

@keyframes fadeInPage {
    to { opacity: 1; }
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    text-transform: uppercase;
    letter-spacing: 3px;
}

section {
    padding: 80px 10%;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeSlide 1.2s ease forwards;
    background-color: #ffffff;
}

@keyframes fadeSlide {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* SECTION DIVIDER */
.section-line {
    width: 100%;
    height: 1px;
    background: #111;
    opacity: 0.25;
    margin: 40px 0;
}

/* BANNER */
#banner {
    height: 90vh;
    background-image: url('./img/background.jpg');
    background-size: cover;
    background-position: center;
    filter: grayscale(100%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.banner-content {
    text-align: center;
    color: white;
    backdrop-filter: brightness(0.7);
    padding: 20px 40px;
    animation: fadeInBanner 1.8s ease forwards;
}

@keyframes fadeInBanner {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}

#banner h1 {
    font-size: 70px;
    margin: 0;
    font-weight: 700;
}

#banner p {
    font-size: 24px;
    margin-top: 10px;
}

/* ABOUT US */
#aboutus {
    background: #f4f4f4;
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start; 
}

.about-text {
    font-size: 15px;
    line-height: 1.8;
    letter-spacing: 0.5px;
    min-width: 0;   
    word-break: break-word;
}

.about-img {
    width: 100%;
    max-width: 600px;
    height: 90%;
    overflow: hidden;
    border: 1px solid #111;
}

.about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ZAPROSZENIE */
#invitation h2 {
    text-align: center;
}

.official {
    text-align: center;
    font-size: 20px;
    line-height: 1.8;
    margin-bottom: 50px;
}

.places {
    display: flex;
    justify-content: space-around;
    margin-bottom: 50px;
}

/* odl */
#countdown {
    text-align: center;
}

.countdown-box {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
}

.countdown-box div {
    background: #111;
    color: white;
    padding: 25px 35px;
    min-width: 110px;
    border: 1px solid #000;
    letter-spacing: 1px;
    transition: 0.3s;
}

.countdown-box div:hover {
    background: #222;
}

.countdown-box span {
    font-size: 36px;
    display: block;
    font-family: 'Playfair Display';
}

.countdown-box label {
    font-size: 14px;
    opacity: 0.8;
    text-transform: uppercase;
}

/* MAPA */
.map-centered {
    display: flex;
    justify-content: center;
    gap: 20px; /* odstęp między linkami */
    flex-wrap: wrap;
    margin-top: 20px;
}

.map-centered a {
    display: inline-block;
    padding: 12px 25px;
    color: rgb(0, 0, 0);
    text-decoration: none;
    border: 1px solid black;
    transition: 0.3s;
    text-align: center;
}

.map-centered a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.map-centered a:active {
    transform: translateY(0);
    box-shadow: none;
}

/* MENU */
.menu {
    text-align: center;
}

.menu-card {
    max-width: 700px;
    margin: 50px auto;
    padding: 40px 50px;
    border: 1px solid #111;
    background: #fff;
    animation: menuFade 1.2s ease forwards;
}

@keyframes menuFade {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}

.menu-section {
    margin-bottom: 40px;
}

.menu-section h3 {
    font-family: "Playfair Display";
    font-size: 24px;
    letter-spacing: 3px;
    margin-bottom: 20px;
    position: relative;
}

.menu-section h3::after {
    content: "";
    display: block;
    width: 40px;
    height: 1px;
    background: #111;
    margin: 10px auto 0;
    opacity: 0.5;
}

.menu-item {
    font-size: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 15px 0;
    padding: 10px 0;
    transition: 0.3s;
}

.menu-item:hover {
    background: #fafafa;
}

.menu-item span {
    font-family: "Montserrat";
}

.dots {
    width: 100%;
    height: 1px;
    background: #ddd;
    margin: 8px 0;
    max-width: 300px;
}

.desc {
    font-size: 14px;
    opacity: 0.7;
    letter-spacing: 1px;
}

/* TABELKI */
.wishes, .wish-list {
    text-align: center;
    background-color: #1a1a1a;
    color: #fafafa;
}

.wishes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.wish {
    border: 1px solid #ffffff;
    padding: 20px;
    transition: 0.3s;
    color: #e6e6e6;
}

.wish:hover {
    background: #3e3e3e;
}

.wish h3 {
    font-family: 'Playfair Display';
    margin-bottom: 10px;
}

.wish ul {
    padding: 0;
    list-style: none;
    margin: 0;
}

.wish li {
    margin-bottom: 6px;
    font-size: 16px;
}

/* RSVP */
.rsvp {
    text-align: center;
}

.rsvp h2 {
    margin-bottom: 15px;
}

.rsvp p {
    margin: 10px 0;
    font-size: 16px;
}

.rsvp button {
    padding: 15px 40px;
    border: 1px solid #111;
    background: white;
    cursor: pointer;
    font-size: 18px;
    font-family: 'Montserrat', sans-serif;
    transition: 0.3s;
    margin-bottom: 20px;
}

.rsvp button:hover {
    background: #111;
    color: white;
}

.rsvp button:active {
    transform: scale(0.97);
}

.rsvp a {
    display: block;
    color: #111;
    text-decoration: none;
    font-weight: 500;
    margin: 5px 0;
    transition: 0.3s;
}

.rsvp a:hover {
    color: #555;
}

/* LAST  */
.last-section {
    background-color: #101010;
    color: white;
    text-align: center;
    padding: 100px 10%;
}

.last-section h2 {
    color: white;
    margin-bottom: 20px;
}

.signature {
    font-family: 'Great Vibes', cursive;
    margin-top: 15px;
    font-size: 52px;
    letter-spacing: 3px;
}

/* TIMELINE */
.timeline {
    max-width: 700px;
    margin: 60px auto;
    padding: 20px 0;
    border-top: 1px solid #111;
    border-bottom: 1px solid #111;
}

.timeline h2 {
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: 3px;
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0,0,0,0.15);
    font-family: 'Playfair Display';
    font-size: 20px;
    letter-spacing: 1px;
    transition: 0.3s ease;
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-item:hover {
    background: #111;
    color: white;
    padding-left: 10px;
}

.timeline-item span:first-child {
    font-weight: 600;
    opacity: 0.9;
}

.timeline-item span:last-child {
    font-style: italic;
    opacity: 0.95;
}

.timeline-item span.event {
    font-style: italic;
    opacity: 0.95;
    font-family: 'Playfair Display', serif;
    font-weight: normal; /* żeby nie było zbyt grube */
}

/* DODATKI  */

.section-line {
    background: #000;
    opacity: 0.18;
}

.menu-card:hover,
.table:hover,
.timeline-item:hover {
    box-shadow: 0 0 18px rgba(0,0,0,0.08);
}

h2::after {
    content: "";
    display: block;
    width: 50px;
    height: 1px;
    background: #111;
    margin: 12px auto 0;
    opacity: 0.4;
}

.countdown-box div:hover {
    background: #1a1a1a;
}




/* RESPONSYWNOŚĆ */

@media (max-width: 375px) {
    section {
        padding: 50px 5%;
    }

    #banner h1 {
        font-size: 35px !important;
    }

    #banner p {
        font-size: 18px;
    }

    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-img img {
        height: 300px;
    }

    .countdown-box {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .countdown-box div {
        padding: 20px;
        min-width: 80px;
    }

    .countdown-box span {
        font-size: 28px;
    }

    .countdown-box label {
        font-size: 12px;
    }

    .timeline {
        padding:  10px 0;
        margin: 0 20px;
    }

    .timeline-item {
        flex-direction: column;
        text-align: center;
        gap: 6px;
        padding: 12px 0;
    }

    .timeline-item span:first-child {
        font-size: 18px;
    }

    .timeline-item span:last-child {
        font-size: 16px;
    }

    .menu-card {
        padding: 25px 20px;
    }

    .menu-section h3 {
        font-size: 20px;
    }

    .menu-item span {
        font-size: 16px;
    }

    .tables-grid {
        grid-template-columns: 1fr;
    }

    .map-centered iframe {
        height: 250px;
    }

    .last-section {
        padding: 60px 5%;
    }

    .signature {
        font-size: 26px;
    }

    #invitation{
        display: flex;
        flex-direction: column;
        align-content: center;
    }
    .places {
        text-align: center;
        width: 100%;
        margin: auto;
        display: flex;
        flex-direction: column;
        align-content: center;
        flex-wrap: nowrap;
}

    .rsvp button {
    color: #111 !important;
    text-decoration: none !important;
    -webkit-text-fill-color: #000;
}
}

@media (max-width: 480px) {
    section {
        padding: 60px 5%;
    }

    #banner h1 {
        font-size: 40px !important;
    }

    #banner p {
        font-size: 20px;
    }

    .about-img img {
        height: 350px;
    }

    .countdown-box {
        flex-direction: column;
        gap: 18px;
        align-items: center;
    }

    .countdown-box div {
        min-width: 90px;
        padding: 22px;
    }

    .countdown-box span {
        font-size: 30px;
    }

    .countdown-box label {
        font-size: 13px;
    }

    .timeline {
        padding:  10px 0;
        margin: 0 20px;
    }   
    .timeline-item span:first-child {
        font-size: 18px;
    }

    .timeline-item span:last-child {
        font-size: 16px;
    }

    .signature {
        font-size: 28px;
    }

    #invitation{
        display: flex;
        flex-direction: column;
        align-content: center;
    }
    .places {
        text-align: center;
        width: 100%;
        margin: auto;
        display: flex;
        flex-direction: column;
        align-content: center;
        flex-wrap: nowrap;
}

    .rsvp button {
    color: #111 !important;
    text-decoration: none;
    -webkit-text-fill-color: #000;
}
}

@media (max-width: 768px) {
    section {
        padding: 70px 8%;
    }

    #banner h1 {
        font-size: 45px !important;
    }

    #banner p {
        font-size: 22px;
    }

    .about-wrapper {
        grid-template-columns: 1fr;
    }

    .about-img img {
        height: 400px;
    }

    .countdown-box {
        flex-direction: row;
        gap: 25px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .countdown-box div {
        min-width: 100px;
        padding: 23px;
    }

    .countdown-box span {
        font-size: 34px;
    }

    .countdown-box label {
        font-size: 14px;
    }

    .timeline-item {
        flex-direction: column;
        text-align: center;
        gap: 8px;
        padding: 15px 30px;
    }

    .timeline-item span:first-child {
        font-size: 19px;
    }

    .timeline-item span:last-child {
        font-size: 17px;
    }

    .menu-card {
        padding: 30px 30px;
    }

    .tables-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .map-centered iframe {
        height: 300px;
    }

    .last-section {
        padding: 80px 8%;
    }

    .signature {
        font-size: 35px;
    }

    #invitation{
        display: flex;
        flex-direction: column;
        align-content: center;
    }
    .places {
        text-align: center;
        width: 100%;
        margin: auto;
        display: flex;
        flex-direction: column;
        align-content: center;
        flex-wrap: nowrap;
}

    .rsvp button {
    color: #111 !important;
    text-decoration: none;
    -webkit-text-fill-color: #000;
}
}

@media (max-width: 1024px) {
    section {
        padding: 70px 8%;
    }

    #banner h1 {
        font-size: 60px;
    }

    #banner p {
        font-size: 23px;
    }

    .about-img img {
        height: 450px;
    }

    .countdown-box {
        flex-direction: row;
        gap: 30px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .countdown-box div {
        min-width: 105px;
        padding: 24px;
    }

    .countdown-box span {
        font-size: 36px;
    }

    .countdown-box label {
        font-size: 14px;
    }

    .timeline-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding: 18px 0;
    }

    .timeline-item span:first-child {
        font-size: 20px;
    }

    .timeline-item span:last-child {
        font-size: 18px;
    }

    .menu-card {
        padding: 35px 40px;
    }

    .tables-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .map-centered iframe {
        height: 350px;
    }

    .last-section {
        padding: 90px 8%;
    }

    .signature {
        font-size: 40px;
    }
}

a {
    color: #111 !important;
    text-decoration: none !important;
    -webkit-text-fill-color: #111 !important;
    -webkit-tap-highlight-color: transparent;
}