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

@font-face {
    font-family: "Caveat";
    src: url("../fonts/Caveat.ttf") format("truetype");
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "OpenSans";
    src: url("../fonts/OpenSans-VariableFont_wdth,wght.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

html {
    scroll-behavior: smooth;
}
body {
    min-height: 100vh;
    font-family: "OpenSans", Verdana, Arial, sans-serif;
    background: url("../img/bg.png") no-repeat center center / cover;
	background-attachment: fixed;
}
.background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0;
}
.background-video.is-playing {
    opacity: 1;
}
.container {
    width: min(100% - 40px, 1200px);
    margin-inline: auto;
}


@media (max-width: 767px) {
	 body {
        background-image: url("../img/bg_mob.png");
    }
    .container {
        width: calc(100% - 30px);
    }
}	
@media (max-width: 767px) {
    
}


@media (max-width: 767px) {
   
}

@media (max-width: 767px) {
    
}

/* KLUSS KRASTS — interface */
:root { --panel-background: rgba(20,36,40,.88); --ivory: #f8e9cb; --ink: #172b31; --edge: rgba(248,233,203,.36); --motion: 850ms cubic-bezier(.22,.75,.25,1); }
body { overflow: hidden; color: var(--ivory); }
button { font: inherit; cursor: pointer; color: inherit; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--ivory); outline-offset: 5px; }
[hidden] { display: none !important; }
.brand { position: fixed; z-index: 4; top: 50%; left: 50%; width: min(500px, 78vw); transform: translate(-50%, -50%); transition: top var(--motion), left var(--motion), width var(--motion), transform var(--motion); }
.brand img { display: block; width: 100%; height: auto; }
body.section-open .brand { top: 18px; left: 24px; width: 160px; transform: none; }
.controls { --menu-color: #f4e8cf; position: fixed; z-index: 6; top: 0; right: 0; display: flex; align-items: center; gap: 18px; padding: 12px 20px; background: rgba(20,36,40,.70); border-radius: 0 0 0 16px; max-width: 100vw; }
.languages { display: flex; gap: 4px; padding: 0; border: 0; background: none; }
.languages button { border: 0; background: transparent; padding: 7px 5px; font-size: 18px; font-weight: 700; color: var(--menu-color); }
.languages button[aria-pressed="true"] { background: var(--ivory); color: var(--ink); }
.menu-toggle { width: 44px; height: 44px; display: grid; align-content: center; justify-items: center; gap: 5px; background: none; border: 0; }
.menu-toggle span { width: 23px; height: 2px; background: var(--menu-color); transition: transform .25s, opacity .25s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.navigation { position: fixed; z-index: 7; top: 80px; right: 24px; width: max-content; max-width: calc(100vw - 48px); padding: 0; border: 0; background: none; box-shadow: none; }
.navigation button { display: block; width: 100%; padding: 10px 0; text-align: right; background: none; border: 0; font-size: 18px; font-weight: 600; color: var(--menu-color); }
.navigation button:hover, .navigation button[aria-current="page"], .languages button:hover { color: #fff; }
.section-panel { position: fixed; z-index: 3; inset: 115px max(24px, calc((100vw - 1000px)/2)) 62px; display: flex; flex-direction: column; background: var(--panel-background); border: 1px solid var(--edge); border-radius: 16px; box-shadow: 0 18px 65px #0005; opacity: 0; visibility: hidden; transform: translateY(18px) scale(.98); transition: opacity .45s, transform .45s, visibility .45s; }
.section-open .section-panel { opacity: 1; visibility: visible; transform: none; transition-delay: .25s; }
.panel-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: clamp(22px,5vw,55px); overscroll-behavior: contain; }
.panel-scroll h1 { font-weight: 400; font-size: clamp(24px,4vw,38px); margin-bottom: 25px; }
.panel-scroll p { line-height: 1.8; max-width: 700px; }
.return-button { align-self: center; margin: 12px 0 22px; padding: 10px 28px; background: #f8e9cb13; border: 1px solid var(--edge); border-radius: 30px; transition: background .3s; }
.return-button:hover { background: #f8e9cb35; }
.footer { position: fixed; bottom: 0; left: 0; right: 0; z-index: 4; padding: 12px; text-align: center; font-size: 16px; text-shadow: 0 1px 5px #000, 0 1px 3px #000; }
.footer a { color: inherit; text-decoration: none; text-shadow: 2px 2px 0px rgba(0, 0, 0, 1.0)}
@media (max-width: 767px) {
    .controls { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 8px; padding: 6px 10px 6px 14px; }
    .languages button { padding: 6px; font-size: 18px; }
    .menu-toggle { width: 40px; height: 40px; }
    .navigation { position: static; grid-column: 1 / -1; grid-row: 2; width: max-content; max-width: calc(100vw - 24px); padding: 0 4px 6px; }
    .languages { grid-column: 1; grid-row: 1; justify-self: end; }
    .menu-toggle { grid-column: 2; grid-row: 1; }
    body.section-open .brand { top: 12px; left: 12px; width: min(112px, 30vw); }
    .section-panel { inset: 85px 12px 50px; border-radius: 12px; }
    .footer { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .brand, .section-panel { transition: none; } }

/* Desktop: horizontal navigation; mobile: existing hamburger. */
@media (min-width: 768px) {
    .controls { gap: 22px; }
    .menu-toggle { display: none; }
    .navigation { position: static; display: flex; align-items: center; gap: 22px; width: auto; max-width: none; padding: 0; }
    .navigation button { width: auto; padding: 9px 0; white-space: nowrap; font-size: 18px; }
}

@media (min-width: 768px) and (max-width: 950px) {
    .controls { gap: 12px; padding: 10px 12px; }
    .navigation { gap: 12px; }
    .navigation button { font-size: 16px; }
    .languages button { font-size: 16px; }
}

/* About us / Gallery — separate headings within one section */
.panel-scroll:has(.about-copy) > h1,
.about-gallery > h2 { color: #b4d2d9; font-weight: 400; font-size: clamp(24px, 3vw, 30px); line-height: 1.2; margin-bottom: 14px; }
.about-copy { max-width: 740px; }
.about-copy h2 { font-size: clamp(20px, 2.4vw, 23px); font-weight: 400; line-height: 1.25; margin-bottom: 12px; }
.about-copy p { font-size: 17px; line-height: 1.4; margin-bottom: 10px; }
.about-copy p:last-child { font-style: italic; margin-top: 14px; }
.about-gallery { margin-top: 24px; }
@media (max-width: 767px) { .about-copy p { font-size: 16px; } }


/* Polaroid gallery — independent of the site navigation and panel. */
.polaroid-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px 18px;
    padding: 7px 5px 16px;
    align-items: stretch;
}
.polaroid {
    --tilt: -1deg;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 9px 9px 0;
    border: 0;
    border-radius: 1px;
    background: #fffaf0;
    color: #273d42;
    text-align: center;
    box-shadow: 2px 5px 12px #0005;
    transform: rotate(var(--tilt));
    transition: transform .22s ease, box-shadow .22s ease;
}
.polaroid:nth-child(2n) { --tilt: 1deg; }
.polaroid:nth-child(3n) { --tilt: -.6deg; }
.polaroid img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.polaroid-caption {
    flex: 1;
    display: grid;
    place-items: center;
    min-height: 54px;
    padding: 7px 2px 10px;
    font: 500 23px/1.1 "Caveat", "Segoe Print", "Comic Sans MS", cursive;
    overflow-wrap: anywhere;
}
@media (hover: hover) and (pointer: fine) {
    .polaroid:hover { transform: rotate(0) scale(1.035); box-shadow: 3px 8px 20px #0008; z-index: 1; }
}
.polaroid:focus-visible { transform: rotate(0); }
@media (max-width: 767px) {
    .polaroid-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; padding-inline: 2px; }
    .polaroid { padding: 6px 6px 0; }
    .polaroid-caption { font-size: 21px; min-height: 48px; }
}
@media (max-width: 420px) {
    .polaroid-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .polaroid { max-width: 340px; width: 100%; justify-self: center; padding: 9px 9px 0; }
    .polaroid-caption { font-size: 24px; }
}
.gallery-viewer {
    position: fixed;
    inset: 0;
    margin: auto;
    padding: 0;
    width: max-content;
    max-width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
    border: 0;
    background: transparent;
    color: var(--ivory);
    overflow: auto;
}
.gallery-viewer::backdrop { background: rgba(10,20,23,.90); }
.gallery-viewer-inner { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; padding: 38px 0 8px; }
.gallery-large { min-width: 0; margin: 0; padding: 10px 10px 0; background: #fffaf0; color: #273d42; box-shadow: 0 8px 40px #0007; }
.gallery-large img { display: block; width: min(1024px, calc(100vw - 132px), calc((100dvh - 138px) * 4 / 3)); height: auto; max-width: 100%; }
.gallery-large figcaption { padding: 8px 3px 12px; text-align: center; font: 500 28px/1.15 "Caveat", "Segoe Print", "Comic Sans MS", cursive; }
.gallery-viewer button { border: 0; background: transparent; color: var(--ivory); font-size: 36px; line-height: 1; min-height: 40px; }
.gallery-close { position: absolute; top: 0; right: 0; width: 42px; }
@media (max-width: 767px) {
    .gallery-viewer-inner { grid-template-columns: 1fr 1fr; padding-top: 38px; gap: 6px; }
    .gallery-large { grid-column: 1 / -1; grid-row: 1; padding: 7px 7px 0; }
    .gallery-large img { width: min(calc(100vw - 40px), calc((100dvh - 190px) * 4 / 3)); }
    .gallery-prev { grid-column: 1; grid-row: 2; }
    .gallery-next { grid-column: 2; grid-row: 2; }
    .gallery-large figcaption { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) { .polaroid { transition: none; } }


/* Pakalpojumi — six included experiences. Existing gallery is unchanged. */
.panel-scroll:has(.services-copy) > h1 {
    color: #b4d2d9;
    font-weight: 400;
    font-size: clamp(24px, 3vw, 30px);
    line-height: 1.2;
    margin-bottom: 18px;
}
.services-headline {
    font-family: "Caveat", cursive;
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 600;
    color: #f4e8cf;
    text-align: center;
    line-height: 1.1;
    margin: 0 0 10px;
}
.panel-scroll .services-intro {
    max-width: none;
    text-align: center;
    color: #f4e8cf;
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.4;
    margin: 0 auto 26px;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.service-card {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    min-width: 0;
    aspect-ratio: 4 / 3;
    border: 1px solid rgba(244,232,207,.55);
    border-radius: 14px;
    background: #142428;
    color: #f4e8cf;
    box-shadow: 0 4px 14px #0003;
    transition: border-color .2s, box-shadow .2s;
}
.service-card img {
    position: absolute;
    z-index: -2;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.service-card::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(to bottom, transparent 35%, rgba(15,25,27,.25) 55%, rgba(13,25,28,.95) 100%);
    pointer-events: none;
}
.service-card-caption {
    display: block;
    padding: 18px 10px 12px;
    font-size: 17px;
    line-height: 1.25;
    font-weight: 600;
    text-align: center;
    text-shadow: 0 1px 4px #000;
}
@media (hover:hover) and (pointer:fine) {
    .service-card:hover { border-color: #f4e8cf; box-shadow: 0 6px 20px #0006; }
    .service-card:hover img { transform: scale(1.045); }
}
.service-viewer .gallery-large {
    padding: 0;
    border: 1px solid var(--edge);
    border-radius: 14px;
    overflow: hidden;
    background: #142428;
    color: #f4e8cf;
}
.service-viewer .gallery-large img {
    width: min(1024px, calc(100vw - 132px), calc((100dvh - 250px) * 4 / 3));
    height: auto;
    max-height: 58dvh;
    object-fit: contain;
    background: #142428;
}
.service-viewer .gallery-large figcaption {
    font: 400 16px/1.4 "OpenSans", Verdana, Arial, sans-serif;
    padding: 14px 20px 18px;
    max-width: 100%;
}
.service-detail-title, .service-detail-description, .service-detail-included { display: block; }
.service-detail-title { font-size: 22px; font-weight: 500; color: #b4d2d9; margin-bottom: 7px; }
.service-detail-included { color: #b4d2d9; margin-top: 12px; font-weight: 600; }
@media (max-width: 767px) {
    .services-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
    .service-card-caption { font-size: 15px; padding: 12px 7px 9px; }
    .service-viewer .gallery-large img { width: min(calc(100vw - 40px), calc((100dvh - 285px) * 4 / 3)); max-height: 52dvh; }
    .service-viewer .gallery-large figcaption { font-size: 15px; padding: 12px; }
    .service-detail-title { font-size: 20px; }
}
@media (max-width: 360px) {
    .services-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .service-card, .service-card img { transition: none; } }

/* Rezervācija — scoped to the booking section; other sections remain unchanged. */
.panel-scroll:has(.booking-copy) > h1 { color: #b4d2d9; font-weight: 400; font-size: clamp(24px, 3vw, 30px); line-height: 1.2; margin-bottom: 22px; }
.booking-copy { max-width: 760px; margin: 0 auto; color: #f4e8cf; }
.booking-copy .booking-script { font: 600 clamp(36px, 5vw, 54px)/1.12 "Caveat", cursive; color: #f4e8cf; margin: 0 0 8px; text-align: center; }
.booking-welcome { text-align: center; margin: 8px 0 32px; }
.booking-welcome p { font: 500 clamp(25px, 3.6vw, 38px)/1.15 "Caveat", cursive; margin: auto; color: #f4e8cf; }
.booking-animate { animation: booking-reveal .85s .35s ease both; }
.booking-animate-choices { animation: booking-reveal .65s 1s ease both; }
@keyframes booking-reveal { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
.booking-choices h3 { color: #b4d2d9; font-size: clamp(18px, 2.5vw, 22px); font-weight: 400; text-align: center; margin: 0 0 20px; }
.booking-types { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 15px; }
.booking-type { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 23px 12px; min-height: 174px; background: #f4e8cf08; border: 1px solid #b4d2d96b; border-radius: 14px; transition: background .25s, border-color .25s, transform .25s; }
.booking-type svg { width: 44px; height: 44px; fill: none; stroke: #b4d2d9; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.booking-type strong { font-weight: 600; font-size: 18px; line-height: 1.25; }
.booking-type span { font-size: 14px; color: #b4d2d9; line-height: 1.35; }
@media (hover:hover) and (pointer:fine) { .booking-type:hover { background: #b4d2d91a; border-color: #b4d2d9; transform: translateY(-3px); } }
.booking-copy .booking-demo { max-width: 650px; font-size: 13px; line-height: 1.45; text-align: center; color: #b4d2d9; margin: 20px auto 0; }
.booking-form-header { text-align: center; margin-bottom: 20px; }
.booking-form-header p { color: #b4d2d9; margin: auto; line-height: 1.4; }
.booking-form .booking-demo { margin: 0 auto 20px; }
.booking-fields { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.booking-fields label, .booking-fixed-guests { display: flex; flex-direction: column; gap: 7px; color: #b4d2d9; min-width: 0; font-size: 15px; }
.booking-fields input, .booking-fields select, .booking-fields textarea, .booking-fixed-guests strong { display: block; width: 100%; min-width: 0; min-height: 44px; background: #f4e8cf0d; border: 1px solid #b4d2d95c; border-radius: 8px; color: #f4e8cf; font: 400 16px/1.35 "OpenSans", Verdana, Arial, sans-serif; padding: 10px 12px; color-scheme: dark; }
.booking-fields select option { background: #142428; color: #f4e8cf; }
.booking-fields textarea { resize: vertical; }
.booking-fields :is(input,select,textarea):focus { outline: 1px solid #b4d2d9; border-color: #b4d2d9; }
.booking-wide, .booking-fixed-guests { grid-column: 1 / -1; }
.booking-fixed-guests strong { font-weight: 400; }
.booking-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; }
.booking-primary, .booking-secondary { border-radius: 28px; padding: 11px 23px; font-size: 16px; line-height: 1.35; transition: background .25s, color .25s; }
.booking-primary { background: #b4d2d9; color: #142428; border: 1px solid #b4d2d9; font-weight: 600; }
.booking-primary:hover { background: #f4e8cf; border-color: #f4e8cf; }
.booking-secondary { background: transparent; color: #f4e8cf; border: 1px solid var(--edge); }
.booking-secondary:hover { background: #f4e8cf18; }
.booking-done { text-align: center; animation: booking-reveal .5s ease both; }
.booking-check { width: 56px; height: 56px; stroke: #b4d2d9; stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 12px; }
.booking-done .booking-success { color: #b4d2d9; font-size: 19px; margin: 0 auto 24px; line-height: 1.4; }
.booking-summary { display: grid; grid-template-columns: minmax(100px,1fr) minmax(0,2fr); gap: 12px 20px; max-width: 580px; margin: 0 auto; padding: 19px; border: 1px solid var(--edge); border-radius: 12px; text-align: left; }
.booking-summary dt { color: #b4d2d9; }
.booking-summary dd { margin: 0; overflow-wrap: anywhere; }
.booking-done .booking-primary { margin-top: 23px; }
.booking-focus:focus { outline: none; }
@media (max-width: 767px) {
    .booking-welcome { margin-bottom: 24px; }
    .booking-types { grid-template-columns: 1fr; gap: 10px; }
    .booking-type { display: grid; grid-template-columns: 44px minmax(0,1fr); justify-items: start; text-align: left; column-gap: 14px; row-gap: 4px; min-height: 86px; padding: 15px; }
    .booking-type svg { grid-row: 1 / 3; width: 36px; height: 36px; }
    .booking-type strong { font-size: 17px; }
    .booking-fields { gap: 14px 10px; }
}
@media (max-width: 480px) {
    .booking-fields, .booking-summary { grid-template-columns: minmax(0,1fr); }
    .booking-summary { gap: 6px; }
    .booking-summary dd:not(:last-child) { margin-bottom: 8px; }
    .booking-actions { flex-direction: column-reverse; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) { .booking-animate, .booking-animate-choices, .booking-done { animation: none; } .booking-type { transition: none; } }

/* Dedicated close control, outside the scrolling content. */
.section-panel > .section-close { align-self:flex-end; flex:none; display:grid; place-items:center; width:40px; height:40px; margin:10px 12px 0 0; padding:0; border:1px solid var(--edge); border-radius:50%; background:#f8e9cb13; color:var(--ivory); font:400 28px/1 Arial,sans-serif; }
.section-panel > .section-close:hover { background:#f8e9cb35; }
.panel-scroll { padding-top:max(0px, calc(clamp(22px,5vw,55px) - 50px)); }
