body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    background: linear-gradient(120deg, #f8f8f8 0%, #ffe5e5 100%);
    color: #222;
    max-width: 100vw;
}

header {
    background: linear-gradient(90deg, #b22222 60%, #8b1a1a 100%);
    color: #fff;
    padding: 3rem 1rem 2rem 1rem;
    text-align: center;
    letter-spacing: 1px;
    box-shadow: 0 2px 12px #0002;
}

nav {
    background: #fff;
    padding: 1rem 0;
    text-align: center;
    box-shadow: 0 2px 8px #0001;
    position: sticky;
    top: 0;
    z-index: 10;
}

nav a {
    color: #b22222;
    margin: 0 1.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.2s;
}

nav a:hover {
    color: #8b1a1a;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    /* padding: 1.2rem 2rem 2.5rem 2rem; */
    border-radius: 0 0 48px 48px;
    box-shadow: 0 4px 24px #0002;
    position: relative;
    top: 0;
    z-index: 1;
}

.text-with-margin {
    margin: 1.2rem 2rem 2.5rem 2rem;
}

h1,
h2 {
    margin-top: 0;
}

ul {
    list-style: disc inside;
}

.contact {
    background: #f3f3f3;
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 2.5rem;
    box-shadow: 0 2px 8px #0001;
}

footer {
    text-align: center;
    color: #595959;
    padding: 2rem 1rem 1rem 1rem;
    margin-top: 3rem;
    font-size: 1rem;
    background: #fff;
    border-top: 1px solid #eee;
}

/* Carousel Styles */
.carousel {
    width: 100%;
    /* match .container padding (2rem left+right) */
    /* max-width: calc(1200px + 4rem); */
    max-width: 100vw;
    /* margin: 0 -2rem 0 -2rem; */
    /* negative margin to offset .container padding */
    padding: 0;
    position: relative;
    overflow: hidden;
    border-radius: 0;
    /* remove bottom rounding */
    box-shadow: 0 4px 24px #0002;
    background: #eee;
    aspect-ratio: 2 / 1;
    height: auto;
}

.carousel-images {
    display: flex;
    transition: transform 0.6s cubic-bezier(.77, 0, .18, 1);
    width: 100%;
    height: 100%;
    /* Ensure children fill the carousel height */
}

.carousel-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Make wrapper take full height of carousel */
}

.carousel-image-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* filter: blur(24px) brightness(0.9) saturate(1.2); */
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.3s;
}

.carousel-image-wrapper>img:not(.carousel-image-bg) {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: contain;
    aspect-ratio: 2 / 1;
    user-select: none;
    background: transparent;
    box-shadow: none;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(178, 34, 34, 0.85);
    border: none;
    color: #fff;
    font-size: 2rem;
    padding: 0.3em 0.7em;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s, box-shadow 0.2s, outline 0.2s;
}

.carousel-btn:hover,
.carousel-btn:focus {
    background: #8b1a1a;
    box-shadow: 0 0 0 3px #b2222240;
    outline: 2px solid #b22222;
}

.carousel-btn.prev {
    left: 18px;
}

.carousel-btn.next {
    right: 18px;
}

.carousel-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.carousel-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff8;
    border: 2px solid #b22222;
    cursor: pointer;
    transition: background 0.2s, border 0.2s;
    opacity: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.carousel-dot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.carousel-dot.active {
    background: #b22222;
    border-color: #fff;
    opacity: 0.4;
}

.carousel-dot:hover,
.carousel-dot:focus {
    border-color: #8b1a1a;
    background: #fff2;
    outline: 2px solid #b22222;
}

.carousel-dot img:hover,
.carousel-dot img:focus {
    filter: brightness(0.85);
}

/* Skeleton Loader Styles */
.carousel-skeleton {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #eee;
    pointer-events: none;
}

.carousel-skeleton-img {
    width: 90vw;
    max-width: 1400px;
    height: 180px;
    border-radius: 24px;
    background: linear-gradient(90deg, #f3f3f3 25%, #ecebeb 37%, #f3f3f3 63%);
    background-size: 400% 100%;
    animation: shimmer 1.2s infinite linear;
    margin-bottom: 24px;
}

.carousel-skeleton-dots {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.carousel-skeleton-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e0e0e0;
    animation: shimmer 1.2s infinite linear;
}

@keyframes shimmer {
    0% {
        background-position: -400px 0;
    }

    100% {
        background-position: 400px 0;
    }
}

.contact-skeleton {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 1.5em;
}

.skeleton {
    background: linear-gradient(90deg, #f3f3f3 25%, #ecebeb 37%, #f3f3f3 63%);
    background-size: 400% 100%;
    animation: shimmer 1.2s infinite linear;
    border-radius: 6px;
}

.skeleton-input {
    height: 36px;
    width: 100%;
}

.skeleton-textarea {
    height: 70px;
    width: 100%;
}

.skeleton-btn {
    height: 40px;
    width: 120px;
    align-self: flex-end;
}

.global-spinner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    border: 6px solid #eee;
    border-top: 6px solid #b22222;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 900px) {
    .carousel {
        aspect-ratio: 2 / 1;
        border-radius: 0;
        /* width: calc(100% + 1.4rem); */
        width: 100%;
        /* match .container padding (0.7rem left+right) */
        /* max-width: calc(100vw - 0.6rem); */
        max-width: 100vw;
        /* margin: 0 -0.7rem 0 -0.7rem; */
    }

    .carousel-images img {
        aspect-ratio: 2 / 1;
    }

    .container {
        /* padding: 0.7rem 0.7rem 1.2rem 0.7rem; */
        border-radius: 0 0 32px 32px;
        top: 0;
    }

    .text-with-margin {
        margin: 0.7rem 0.7rem 1.2rem 0.7rem;
    }
}

@media (max-width: 600px) {
    .carousel {
        border-radius: 0;
        /* width: calc(100% + 0.4rem); */
        width: 100%;
        /* match .container padding (0.2rem left+right) */
        max-width: 100vw;
        /* margin: 0 -0.2rem 0 -0.2rem; */
    }

    .carousel-images img {
        aspect-ratio: 2 / 1;
    }

    .container {
        /* padding: 0.4rem 0.2rem 0.7rem 0.2rem; */
        border-radius: 0 0 24px 24px;
        top: 0;
    }

    .text-with-margin {
        margin: 0.4rem 0.2rem 0.7rem 0.2rem;
    }

    .carousel {
        border-radius: 0;
    }

    .contact {
        border-radius: 0;
    }

    section {
        padding-left: 0.7rem;
        padding-right: 0.7rem;
    }

    /* Remove border-radius from all elements except carousel buttons and carousel-dot img */
    *:not(.carousel-btn):not(.carousel-dot):not(.carousel-fullscreen-btn):not(.carousel-fullscreen-btn img),
    *:not(.carousel-btn):not(.carousel-dot):not(.carousel-fullscreen-btn):not(.carousel-fullscreen-btn img):before,
    *:not(.carousel-btn):not(.carousel-dot):not(.carousel-fullscreen-btn):not(.carousel-fullscreen-btn img):after {
        border-radius: 0 !important;
    }

    .carousel-btn {
        border-radius: 50% !important;
    }

    .carousel-dot img {
        border-radius: 50% !important;
    }
}

@media (max-width: 700px) {

    /* Remove rounding and spacing only from the info segment (pillar) on mobile */
    .info-segment,
    .pillar {
        border-radius: 0 !important;
        margin-bottom: 0 !important;
        margin-top: 0 !important;
        box-shadow: none !important;
    }

    /* Remove spacing between info segment and footer, add a small border */
    .info-segment,
    .pillar {
        margin-bottom: 0 !important;
        border-bottom: 1.5px solid #eee !important;
    }

    footer {
        margin-top: 0 !important;
        padding-top: 1.2rem !important;
    }

    .info-segment .subtitle,
    .pillar .subtitle {
        display: block;
        width: 100%;
        text-align: center;
        margin-top: 0.5em;
    }

    .info-segment .subtitle br,
    .pillar .subtitle br {
        display: none;
    }
}

@media (min-width: 901px) {
    .carousel {
        aspect-ratio: 2 / 1;
        border-radius: 0;
        /* width: calc(100% + 4rem); */
        /* max-width: calc(1200px + 4rem); */
        width: 100%;
        max-width: 100vw;
        /* margin: 0 -2rem 0 -2rem; */
    }

    .carousel-images img {
        aspect-ratio: 2 / 1;
    }

    .carousel-btn {
        top: 50%;
        transform: translateY(-50%);
        width: 56px;
        height: 56px;
        font-size: 2rem;
        padding: 0.3em 0.7em;
        border-radius: 50%;
        left: 18px;
        right: 18px;
        background: rgba(178, 34, 34, 0.85);
        color: #fff;
        border: none;
        box-shadow: 0 2px 8px #0003;
        z-index: 2;
        cursor: pointer;
        transition: background 0.2s, box-shadow 0.2s, outline 0.2s;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .carousel-btn.prev {
        left: 18px;
        right: auto;
    }

    .carousel-btn.next {
        right: 18px;
        left: auto;
    }

    .carousel-btn:hover,
    .carousel-btn:focus {
        background: #8b1a1a;
        box-shadow: 0 0 0 3px #b2222240;
        outline: 2px solid #b22222;
    }
}

/* Fullscreen Modal Styles */
.carousel-fullscreen-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.92);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
    transition: opacity 0.2s;
}

.carousel-fullscreen-img {
    max-width: 90vw;
    max-height: 90vh;
    box-shadow: 0 0 32px #0008;
    border-radius: 12px;
    display: block;
    margin: auto;
    background: #222;
}

.carousel-fullscreen-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(178, 34, 34, 0.85);
    border: none;
    color: #fff;
    font-size: 2.2rem;
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10001;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px #0006;
    transition: background 0.2s, box-shadow 0.2s, outline 0.2s;
}

.carousel-fullscreen-btn:hover,
.carousel-fullscreen-btn:focus {
    background: #8b1a1a;
    box-shadow: 0 0 0 3px #b2222240;
    outline: 2px solid #b22222;
}

.carousel-fullscreen-btn.prev {
    left: 32px;
}

.carousel-fullscreen-btn.next {
    right: 32px;
}

.carousel-fullscreen-btn .thumb {
    position: absolute;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    z-index: 1;
    left: 8px;
    top: 8px;
    filter: brightness(0.7);
}

.carousel-fullscreen-btn .arrow {
    position: relative;
    z-index: 2;
    font-size: 2.2rem;
    color: #fff;
    text-shadow: 0 2px 8px #000a;
    pointer-events: none;
}

.carousel-fullscreen-toggle {
    right: 54px;
    left: auto;
    top: 18px;
    transform: none;
    font-size: 1.5rem;
    padding: 0.2em 0.6em;
    background: rgba(178, 34, 34, 0.85);
    border: none;
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    z-index: 3;
    position: absolute;
}

.carousel-fullscreen-toggle:hover {
    background: #8b1a1a;
}

/* Popup Notification Styles */
.popup-message-container {
    position: fixed;
    right: 32px;
    bottom: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
    pointer-events: none;
}

.popup-message {
    position: relative;
    right: 0;
    min-width: 220px;
    background: #fff;
    color: #222;
    padding: 1em 2em;
    border-radius: 8px;
    box-shadow: 0 4px 24px #0003;
    font-size: 1.1rem;
    opacity: 1;
    transition: opacity 0.6s, transform 0.6s, bottom 0.6s;
    pointer-events: none;
}

.popup-message:focus-within,
.popup-message:hover {
    box-shadow: 0 6px 32px #b2222240;
    outline: 2px solid #b22222;
}

.popup-message .popup-close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 22px;
    height: 22px;
    background: none;
    border: none;
    color: #888;
    font-size: 1.3rem;
    font-weight: bold;
    cursor: pointer;
    opacity: 0.7;
    z-index: 2;
    pointer-events: auto;
    transition: color 0.2s, opacity 0.2s;
}

.popup-message .popup-close:focus,
.popup-message .popup-close:hover {
    color: #b22222;
    background: #fff2;
    outline: 2px solid #b22222;
}

.popup-message.error {
    background: #b22222;
    color: #fff;
    border: 1.5px solid #fff;
}

/* Mobile Break Styles */
.mobile-break {
    display: none;
}

@media (max-width: 700px) {
    .mobile-break {
        display: inline !important;
    }
}

/* Desktop Space Styles */
.desktop-space {
    display: inline;
}

@media (max-width: 700px) {
    .desktop-space {
        display: none !important;
    }
}

/* Hide skeletons by default, show via JS */
.carousel-skeleton,
.contact-skeleton {
    display: none;
}

/* Enhanced Hover/Focus Effects */
button,
input[type="submit"] {
    transition: background 0.2s, box-shadow 0.2s, outline 0.2s;
}

button:hover,
button:focus,
input[type="submit"]:hover,
input[type="submit"]:focus {
    background: #8b1a1a !important;
    color: #fff !important;
    box-shadow: 0 2px 8px #b2222240;
    outline: 2px solid #b22222;
}

input:focus,
textarea:focus {
    outline: 2px solid #b22222;
    box-shadow: 0 0 0 2px #b2222240;
    background: #fff8f8;
}

input:hover,
textarea:hover {
    background: #fff6f6;
}

.carousel-centerer {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

#name,
#email,
#message {
    width: 100%;
    margin-bottom: 8px;
}

.centerthis {
    display: none;
}

#submit-button {
    background: #b22222;
    color: #fff;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
}

#page-visits {
    font-size: 0.9em;
    margin-bottom: 4px;
}