*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --lake: #1B4965;
    --sky: #5FA8D3;
    --sand: #E8DCC4;
    --sunset: #D4923A;
    --pine: #2D4A3E;
    --birch: #F5F1EB;
    --dark: #1a1a1a;
    --white: #ffffff;
}

html {
    scroll-behavior: auto;
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    font-family: 'Raleway', sans-serif;
    color: var(--dark);
    background-color: var(--birch);
    line-height: 1.6;
    width: 100%;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: 'Libre Baskerville', serif;
}

a {
    text-decoration: none;
    color: inherit;
}

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

.page-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas:
        "header"
        "main"
        "footer";
    min-height: 100vh;
}

.site-header {
    grid-area: header;
    background-color: var(--lake);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--sunset);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    border-radius: 50%;
    border: 3px solid var(--sunset);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.2rem;
    align-items: center;
}

.nav-links a {
    color: var(--sand);
    font-weight: bold;
    font-size: 0.82rem;
    transition: color 0.3s ease;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--sunset);
    border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
    visibility: hidden;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

.site-main {
    grid-area: main;
    width: 100%;
    overflow-x: clip;
}

.welcome {
    position: relative;
    width: 100%;
    background: #000;
    color: var(--white);
    display: grid;
    grid-template-areas: "stack";
}

.welcome-bg {
    grid-area: stack;
    width: 100%;
    font-size: 0;
    line-height: 0;
    min-height: 0;
}

.welcome-bg img,
.welcome-bg video {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: fill;
}

.welcome-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: 1;
}

.welcome-content {
    grid-area: stack;
    z-index: 2;
    max-width: 800px;
    padding: 8rem 2rem 5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.welcome h1 {
    font-size: 3rem;
    line-height: 1.2;
}

.welcome p {
    font-size: 1rem;
    font-weight: 600;
}

.welcome-cta {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.8rem 2rem;
    background-color: var(--sunset);
    color: var(--white);
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 6px;
    transition: background-color 0.3s ease;
    width: fit-content;
}

.welcome-cta:hover {
    background-color: #b87a2e;
}

.gallery-section {
    padding: 3rem 2rem;
}

#gallery {
    height: 95vh;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow: hidden;
}

#gallery .gallery-grid {
    flex: 1;
    min-height: 0;
    overflow: visible;
    justify-content: center;
}

.featured-gallery-section {
    background-color: var(--sand);
}

.gallery-section h2 {
    font-size: 2rem;
    color: var(--lake);
    margin-bottom: 2rem;
    text-align: center;
}

.gallery-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.gallery-row {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

.gallery-item {
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.3s ease;
    flex-shrink: 1;
    min-width: 0;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.pagination-btn {
    background-color: var(--lake);
    color: var(--birch);
    border: none;
    padding: 0.6rem 1.2rem;
    font-family: 'Raleway', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.pagination-btn:hover {
    background-color: var(--pine);
}

.pagination-btn:disabled {
    background-color: rgba(27, 73, 101, 0.3);
    cursor: not-allowed;
}

.pagination-info {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--lake);
}

.services-section {
    padding: 3rem 2rem;
    background-color: var(--lake);
    color: var(--birch);
}

.services-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.service-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-3px);
}

.service-card h3 {
    font-size: 1rem;
    color: var(--sand);
    font-weight: 400;
}

.service-card p {
    font-size: 0.8rem;
    color: var(--birch);
    font-weight: 300;
    flex: 1;
}

.service-price {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--sunset);
    text-align: center;
    margin-top: auto;
    padding-top: 1rem;
}

.service-price span {
    font-size: 1rem;
    font-family: 'Raleway', sans-serif;
    color: rgba(245, 241, 235, 0.4);
    font-weight: 400;
}

.whatsnew-section {
    padding: 3rem 2rem;
    background-color: var(--pine);
    color: var(--birch);
}

.whatsnew-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.whatsnew-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.whatsnew-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 1.5rem;
    transition: transform 0.2s ease;
}

.whatsnew-card:hover {
    transform: translateY(-3px);
}

.whatsnew-date {
    color: var(--sunset);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
}

.whatsnew-card h3 {
    color: var(--sand);
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.whatsnew-card p {
    font-size: 0.85rem;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(245, 241, 235, 0.85);
    overflow-wrap: anywhere;
}

.whatsnew-tag {
    display: inline-block;
    background-color: rgba(95, 168, 211, 0.2);
    color: var(--sky);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    margin-top: 0.8rem;
    text-transform: uppercase;
}

.about-section {
    padding: 3rem 2rem;
    background-color: var(--lake);
    color: var(--birch);
}

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

.about-section h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.about-section p {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 1rem;
}

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

.about-email {
    color: var(--sunset);
}

.loading {
    text-align: center;
    padding: 2rem;
    color: var(--sky);
    grid-column: 1 / -1;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2.5px solid rgba(95, 168, 211, 0.3);
    border-top-color: var(--sky);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 0.5rem;
    vertical-align: middle;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.site-footer {
    grid-area: footer;
    background-color: var(--pine);
    color: var(--birch);
    padding: 1.5rem;
    border-top: 3px solid var(--sunset);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-content p {
    font-size: 1rem;
}

.footer-links {
    display: flex;
    list-style: none;
    gap: 1rem;
}

.footer-links a {
    font-size: 1rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--sunset);
}

.gallery-section,
.services-section,
.whatsnew-section,
.about-section {
    max-width: 100%;
    overflow-x: clip;
}

@media (max-width: 992px) {

    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--lake);
        padding: 1.5rem;
        gap: 1rem;
        border-top: 3px solid var(--sunset);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-container {
        position: relative;
    }

    .welcome h1 {
        font-size: 2rem;
    }

    .welcome-content {
        padding: 6rem 1.5rem 4rem;
    }

    .welcome p {
        font-size: 0.95rem;
    }

    #gallery {
        height: auto;
        overflow: visible;
    }

    .gallery-grid {
        gap: 0.4rem;
    }

    .gallery-row {
        gap: 0.4rem;
    }

    .services-grid {
        grid-template-columns: 1fr 1fr;
    }

    .whatsnew-grid {
        grid-template-columns: 1fr;
    }

    .gallery-section,
    .services-section,
    .whatsnew-section,
    .about-section {
        padding: 2.5rem 1.5rem;
    }

    .service-card p,
    .whatsnew-card p {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {

    .nav-container {
        padding: 0.5rem 1rem;
    }

    .logo img {
        height: 44px;
    }

    .welcome h1 {
        font-size: 1.4rem;
        line-height: 1.25;
    }

    .welcome {
        display: grid;
    }

    .welcome-bg video,
    .welcome-bg img {
        height: 100%;
        max-height: none;
        object-fit: cover;
    }

    .welcome-content {
        padding: 1.5rem 1rem;
        max-width: 100%;
    }

    #gallery {
        height: auto;
        overflow: visible;
    }

    .welcome p {
        font-size: 0.75rem;
        line-height: 1.4;
    }

    .welcome-cta {
        font-size: 0.85rem;
        padding: 0.5rem 1.2rem;
        margin-top: 0.5rem;
    }

    .gallery-grid {
        gap: 0.3rem;
    }

    .gallery-row {
        flex-direction: column;
        gap: 0.3rem;
    }

    .gallery-item {
        width: 100% !important;
        height: auto !important;
        flex-basis: auto !important;
        flex-grow: 0 !important;
    }

    .gallery-item img,
    .gallery-item video {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .pagination-btn {
        font-size: 0.8rem;
        padding: 0.5rem 0.8rem;
    }

    .pagination-info {
        font-size: 0.8rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .whatsnew-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
    }

    .whatsnew-card,
    .service-card {
        padding: 1.2rem;
    }

    .gallery-section,
    .services-section,
    .whatsnew-section,
    .about-section {
        padding: 2rem 1rem;
    }

    .services-section h2,
    .whatsnew-section h2,
    .gallery-section h2,
    .about-section h2 {
        font-size: 1.75rem;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (min-width: 1200px) {
    .welcome-content {
        max-width: 720px;
        margin-left: 3rem;
        padding-left: 2rem;
    }
}

.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.88);
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    font-size: 2rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.lightbox-flip-container {
    perspective: 1200px;
    width: 90vw;
    max-width: 900px;
    max-height: 90vh;
}

.lightbox-flip-inner {
    position: relative;
    width: 100%;
    transition: transform 0.6s ease;
    transform-style: preserve-3d;
}

.lightbox-flip-inner.flipped {
    transform: rotateY(180deg);
}

.lightbox-front,
.lightbox-back {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.lightbox-front {
    background: #000;
}

.lightbox-back {
    background: var(--lake);
    color: var(--birch);
    position: absolute;
    inset: 0;
    transform: rotateY(180deg);
    overflow-y: auto;
    padding: 2.5rem 2rem 2rem;
}

.lightbox-img {
    width: 100%;
    max-height: 90vh;
    object-fit: contain;
    display: block;
}

.lightbox-video {
    width: 100%;
    max-height: 90vh;
    object-fit: contain;
    display: block;
    background: #000;
}

.lightbox-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    font-size: 1.8rem;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

.lightbox-info-btn {
    position: absolute;
    top: 0.5rem;
    right: 3rem;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    font-size: 1.4rem;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.lightbox-info-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.lightbox-details h3 {
    font-size: 1.4rem;
    color: var(--sand);
    margin-bottom: 1rem;
    text-align: center;
}

.detail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.detail-table td {
    padding: 0.4rem 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    vertical-align: top;
}

.detail-label {
    font-weight: 600;
    color: var(--sunset);
    white-space: nowrap;
    width: 140px;
}

@media (max-width: 600px) {
    .lightbox-flip-container {
        width: 96vw;
    }

    .lightbox-back {
        padding: 2rem 1rem 1rem;
    }

    .detail-label {
        width: 110px;
    }

    .lightbox-prev { left: 0.4rem; }
    .lightbox-next { right: 0.4rem; }

    .lightbox-prev,
    .lightbox-next {
        width: 2.4rem;
        height: 2.4rem;
        font-size: 1.4rem;
    }
}

/* ---------- Mobile / tablet polish (additive, mobile-only overrides) ---------- */

section[id] {
    scroll-margin-top: 72px;
}

@supports (height: 100dvh) {
    .page-grid {
        min-height: 100dvh;
    }
}

@media (max-width: 992px) {
    .hamburger {
        width: 44px;
        height: 44px;
        gap: 5px;
        align-items: center;
        justify-content: center;
        padding: 0;
        margin: 0 -0.25rem 0 0;
    }

    .nav-links.active {
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
}

@supports (height: 100svh) {
    @media (max-width: 992px) {
        .nav-links.active {
            max-height: calc(100svh - 60px);
        }
    }
}

@media (max-width: 768px) {
    input[type="text"],
    input[type="search"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="tel"],
    input[type="url"],
    input[type="date"],
    input[type="datetime-local"],
    input[type="time"],
    select,
    textarea {
        font-size: 16px;
    }
}

.welcome-bg img,
.welcome-bg video {
    object-fit: cover;
}

@supports (height: 100dvh) {
    .welcome-bg img,
    .welcome-bg video {
        max-height: 80dvh;
    }
}

.lightbox-close {
    top: calc(0.5rem + env(safe-area-inset-top, 0));
    right: calc(0.5rem + env(safe-area-inset-right, 0));
}

.lightbox-info-btn {
    top: calc(0.5rem + env(safe-area-inset-top, 0));
    right: calc(3rem + env(safe-area-inset-right, 0));
}

.lightbox-prev {
    left: calc(1rem + env(safe-area-inset-left, 0));
}

.lightbox-next {
    right: calc(1rem + env(safe-area-inset-right, 0));
}

@media (max-width: 600px) {
    .lightbox-prev {
        left: calc(0.4rem + env(safe-area-inset-left, 0));
    }
    .lightbox-next {
        right: calc(0.4rem + env(safe-area-inset-right, 0));
    }
}

body.lightbox-open,
body.drawer-open {
    position: fixed;
    width: 100%;
    overflow: hidden;
}

/* ---------- Lightbox slide-navigation ghost cards ---------- */

.lightbox-flip-container {
    will-change: transform;
}

.lightbox-card-ghost {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90vw;
    max-width: 900px;
    max-height: 90vh;
    pointer-events: none;
    z-index: 5;
    will-change: transform;
    transform: translate(-50%, -50%);
}

.lightbox-card-ghost.is-prev {
    transform: translate(-50%, -50%) translateX(calc(-50vw - 50%));
}

.lightbox-card-ghost.is-next {
    transform: translate(-50%, -50%) translateX(calc(50vw + 50%));
}

.lightbox-card-ghost img,
.lightbox-card-ghost video {
    width: 100%;
    max-height: 90vh;
    object-fit: contain;
    display: block;
    border-radius: 8px;
    background: #000;
}

@media (max-width: 600px) {
    .lightbox-card-ghost {
        width: 96vw;
    }
}

