/* Jurmala Garden House: a warm family summer house by the sea.
   Linen and cream grounds, honey gold details, sea buckthorn as the sunny accent, espresso for text.
   Soft arches (villa windows), a light paper grain, a hand-written touch. Never cold, never corporate. */

:root {
  --linen: #FFFDF8;
  --cream: #F7F0E3;
  --sand: #EEE2CB;
  --paper: #FFFFFF;
  --gold: #B98D3E;
  --gold-light: #E2C68C;
  --sun: #F5A11C;
  --sun-deep: #D9800B;
  --espresso: #231B14;
  --ink: #3A2E24;
  --ink-soft: #6E5C4A;
  --line: rgba(185, 141, 62, .38);
  --shadow: 0 1px 2px rgba(35, 27, 20, .06), 0 18px 40px -18px rgba(35, 27, 20, .28);

  --font-display: 'Cormorant Garamond', 'Cormorant', Garamond, Georgia, serif;
  --font-text: 'Nunito Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-hand: 'Caveat', 'Segoe Print', 'Bradley Hand', cursive;

  --ease: cubic-bezier(.22, .7, .18, 1);
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --header-h: 76px;
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* A faint linen grain over everything, so the page feels like paper rather than a screen. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: .07;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .15 0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

img { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
[hidden] { display: none !important; }
figure { margin: 0; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 500; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--sun-deep); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold-light); color: var(--espresso); }

.defs { position: absolute; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: .6em 1em; border-radius: 999px; background: var(--espresso); color: var(--linen);
  text-decoration: none; transition: top .2s;
}
.skip:focus { top: 12px; }

.container {
  width: min(1240px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}
.section { padding-block: clamp(5rem, 11vw, 9.5rem); }

/* ---------- Type ---------- */

.hand {
  font-family: var(--font-hand);
  font-weight: 500;
  line-height: 1.1;
}
.eyebrow {
  display: inline-block;
  margin: 0 0 .5rem;
  font-size: clamp(1.45rem, 2.2vw, 1.8rem);
  color: var(--gold);
  transform: rotate(-2deg);
  transform-origin: left center;
}
.eyebrow--light { color: var(--gold-light); }

.title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.6vw, 4.9rem);
  line-height: 1.02;
  letter-spacing: -.01em;
  color: var(--espresso);
  text-wrap: balance;
}
.title em, .hero__title em, .wordmark em, .goodbye__text em {
  font-style: italic;
  font-weight: 400;
  color: var(--sun-deep);
}
.title--light { color: var(--linen); }
.title--light em { color: var(--sun); }

.rule {
  width: 72px;
  height: 1px;
  margin: 1.6rem 0 1.8rem;
  background: var(--gold);
  transform-origin: left;
}

.tbc {
  display: inline-block;
  padding: .1em .5em;
  border-radius: 6px;
  background: rgba(245, 161, 28, .18);
  color: var(--sun-deep);
  font-weight: 600;
}

/* ---------- Shapes ---------- */

.arch, .photo, .circle { position: relative; overflow: hidden; background: var(--sand); }
.arch { border-radius: 100vmax 100vmax 0 0; }
.photo { border-radius: 18px; }
.circle { border-radius: 50%; }
.arch img, .photo img, .circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo--tilt {
  border: 10px solid var(--paper);
  box-shadow: var(--shadow);
  transform: rotate(3deg);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .95em 1.7em;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-text);
  font-size: .98rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.btn--sun { background: var(--sun); color: var(--espresso); box-shadow: 0 10px 24px -12px rgba(217, 128, 11, .7); }
.btn--sun:hover { background: #FFB43F; transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(217, 128, 11, .8); }
.btn--line { border-color: rgba(35, 27, 20, .35); color: var(--espresso); }
.btn--line:hover { border-color: var(--espresso); background: var(--espresso); color: var(--linen); }
.btn--small { padding: .7em 1.2em; font-size: .9rem; }

/* ---------- Sprig motif ---------- */

.sprig__stem, .sprig__leaf {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sprig__berry { fill: var(--sun); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease), transform .5s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(255, 253, 248, .86);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: var(--header-h);
  width: min(1400px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 500;
  line-height: 1;
  color: var(--espresso);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark__sprig { width: 30px; height: 30px; flex: none; }
.wordmark--light { color: var(--linen); }
.wordmark--light em { color: var(--sun); }

.nav { margin-inline: auto; }
.nav__list { display: flex; gap: clamp(1rem, 2vw, 2rem); }
.nav__list a {
  position: relative;
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.nav__list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav__list a:hover::after, .nav__list a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }

.site-header__end { display: flex; align-items: center; gap: 1rem; }
.lang { display: flex; gap: .15rem; font-size: .82rem; font-weight: 700; }
.lang a {
  padding: .35em .55em;
  border-radius: 999px;
  color: var(--ink-soft);
  text-decoration: none;
}
.lang a[aria-current="page"] { background: var(--cream); color: var(--espresso); }
.lang a:hover { color: var(--espresso); }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--linen);
  cursor: pointer;
}
.menu-toggle__bars, .menu-toggle__bars::before {
  display: block;
  width: 18px; height: 1.5px;
  margin: 0 auto;
  background: var(--espresso);
  transition: transform .4s var(--ease);
}
.menu-toggle__bars { position: relative; transform: translateY(-3px); }
.menu-toggle__bars::before { content: ""; position: absolute; top: 6px; left: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { transform: translateY(0) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(-6px) rotate(-90deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 49; /* just under the header, so the name and the close button stay on top */
  display: grid;
  place-items: center;
  padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 2rem) var(--gutter) calc(3rem + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--cream);
}
/* While the menu is open the header turns the same solid cream, so the two read as one panel. */
body.menu-open .site-header {
  background: var(--cream);
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transform: none;
}
.menu[hidden] { display: none; }
.menu ul { display: grid; gap: .4rem; text-align: center; }
.menu a {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 9vw, 3.2rem);
  color: var(--espresso);
  text-decoration: none;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  min-height: min(100svh, 1000px);
  width: min(1400px, 100% - 2 * var(--gutter));
  margin-inline: auto;
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: 4rem;
}
.hero__hello {
  margin: 0 0 .4rem;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--gold);
  transform: rotate(-3deg);
  transform-origin: left;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.7rem, 7.8vw, 7.8rem); /* "Garden House" stays on one line under "Jurmala" */
  line-height: .9;
  letter-spacing: -.02em;
  color: var(--espresso);
}
.hero__title em { display: block; padding-right: .06em; } /* "Jurmala" above, "Garden House" below */
.hero__lead {
  max-width: 30rem;
  margin: 1.6rem 0 1.8rem;
  font-size: clamp(1.08rem, 1.4vw, 1.22rem);
  color: var(--ink);
}
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem .9rem;
  margin-bottom: 2.2rem;
  font-size: .95rem;
  color: var(--ink-soft);
}
.hero__facts li { display: flex; align-items: baseline; gap: .4em; }
.hero__facts li + li::before {
  content: "";
  width: 5px; height: 5px;
  margin-right: .6rem;
  border-radius: 50%;
  background: var(--sun);
  align-self: center;
}
.hero__facts strong {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--espresso);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.hero__media {
  position: relative;
  height: min(78svh, 760px);
  min-height: 460px;
}
.hero__arch {
  position: absolute;
  inset: 0 0 0 14%;
  box-shadow: var(--shadow);
}
.hero__arch2 {
  position: absolute;
  left: 0;
  bottom: -2rem;
  width: 34%;
  aspect-ratio: 3 / 4;
  border: 8px solid var(--linen);
  box-shadow: var(--shadow);
}
.stamp {
  position: absolute;
  top: 6%;
  left: 2%;
  width: clamp(110px, 11vw, 150px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--linen);
  box-shadow: var(--shadow);
}
.stamp__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  fill: var(--ink-soft);
}
.stamp__sprig {
  position: absolute;
  inset: 28%;
  width: 44%;
  height: 44%;
}
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.2rem;
  width: 26px;
  height: 42px;
  border: 1.5px solid rgba(35, 27, 20, .35);
  border-radius: 999px;
  transform: translateX(-50%);
}
.hero__scroll span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--sun-deep);
  animation: scrollcue 2.2s var(--ease) infinite;
}
@keyframes scrollcue {
  0% { transform: translateY(0); opacity: 0; }
  30% { opacity: 1; }
  80% { transform: translateY(14px); opacity: 0; }
  100% { opacity: 0; }
}

/* ---------- Welcome ---------- */

.welcome__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
}
.welcome__media { position: relative; padding-bottom: 4rem; }
.welcome__arch { width: 82%; aspect-ratio: 3 / 4; }
.welcome__gift {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 42%;
  aspect-ratio: 3 / 4;
}
.welcome__text { max-width: 34rem; }
.welcome__text > p { color: var(--ink); }

.note {
  position: relative;
  margin-top: 2.4rem;
  padding: 1.6rem 1.8rem 1.4rem;
  border-radius: 4px 22px 22px 22px;
  background: var(--cream);
}
.note::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 28px;
  width: 64px;
  height: 22px;
  background: rgba(226, 198, 140, .65);
  transform: rotate(-4deg);
}
.note p { margin: 0; font-family: var(--font-display); font-size: 1.35rem; font-style: italic; line-height: 1.45; color: var(--espresso); }
.note .note__sign { margin-top: .6rem; font-family: var(--font-hand); font-style: normal; font-size: 1.7rem; color: var(--sun-deep); }

/* ---------- Rooms ---------- */

.rooms { background: var(--cream); overflow: hidden; }
.rooms__head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.rooms__intro { max-width: 32rem; margin-top: 1.2rem; color: var(--ink-soft); }
.rooms__track-wrap {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), calc((100vw - 1240px) / 2));
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.rooms__track-wrap::-webkit-scrollbar { display: none; }
.rooms__track {
  display: flex;
  gap: clamp(1.4rem, 3vw, 3rem);
  width: max-content;
  padding-inline: max(var(--gutter), calc((100vw - 1240px) / 2));
  padding-bottom: .5rem;
}
.rooms__track-wrap.is-pinned { overflow: visible; scroll-snap-type: none; }
/* While the row slides sideways the cards must fit the screen's height, captions included. */
.rooms__track-wrap.is-pinned .room { width: clamp(210px, min(24vw, calc((100svh - 330px) * .75)), 340px); }
.rooms__track-wrap.is-pinned .room:nth-child(even) { margin-top: 3rem; }
.rooms__track-wrap.is-pinned .room__body p { font-size: .95rem; line-height: 1.55; }
.room {
  width: clamp(250px, 25vw, 350px);
  scroll-snap-align: start;
}
.room:nth-child(even) { margin-top: clamp(2rem, 6vw, 5rem); }
.room__open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.room__img { aspect-ratio: 3 / 4; }
.room__img img { transition: transform 1.2s var(--ease); }
.room__open:hover .room__img img { transform: scale(1.06); }
.room__body { padding-top: 1.3rem; }
.room__num { font-family: var(--font-hand); font-size: 1.4rem; color: var(--gold); }
.room__body h3 { font-family: var(--font-display); font-size: 2rem; line-height: 1.1; color: var(--espresso); margin-bottom: .5rem; }
.room__body p { font-size: .98rem; color: var(--ink-soft); }

/* ---------- Garden ---------- */

.garden__grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}
.garden__text { max-width: 31rem; }
.ticks { display: grid; gap: .6rem; margin-top: 1.6rem; }
.ticks li { position: relative; padding-left: 2rem; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: .45em;
  width: 1.05rem; height: .55rem;
  border-left: 2px solid var(--sun-deep);
  border-bottom: 2px solid var(--sun-deep);
  transform: rotate(-45deg);
}
.ticks--inline { display: flex; flex-wrap: wrap; gap: .7rem 2rem; justify-content: center; }

.garden__collage {
  position: relative;
  min-height: clamp(520px, 62vw, 760px);
}
.garden__big {
  position: absolute;
  right: 0;
  top: 0;
  width: 64%;
  aspect-ratio: 3 / 4;
}
.garden__front {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 42%;
  aspect-ratio: 3 / 4;
  border: 8px solid var(--linen);
  box-shadow: var(--shadow);
  transform: rotate(-3deg);
}
.garden__berries {
  position: absolute;
  left: 8%;
  top: 6%;
  width: 26%;
  aspect-ratio: 1;
  border: 6px solid var(--linen);
  box-shadow: var(--shadow);
}
.garden__caption {
  position: absolute;
  left: 3%;
  top: 30%;
  max-width: 30%;
  text-align: center;
  font-size: 1.5rem;
  color: var(--ink-soft);
  transform: rotate(-6deg);
}

/* ---------- Perks ---------- */

.perks .container {
  padding: clamp(3rem, 6vw, 5rem) clamp(1.4rem, 5vw, 5rem);
  border-radius: 40px;
  background: var(--cream);
}
.perks__head { text-align: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.perks__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3rem) clamp(1.2rem, 3vw, 2.5rem);
}
.perk { text-align: center; }
.perk svg {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.perk h3 { font-family: var(--font-display); font-size: 1.6rem; line-height: 1.15; color: var(--espresso); margin-bottom: .35rem; }
.perk p { margin: 0; font-size: .93rem; line-height: 1.55; color: var(--ink-soft); }

/* ---------- Area ---------- */

.area__head { text-align: center; }
.area__head .eyebrow { transform-origin: center; }
.area__intro { max-width: 36rem; margin: 1.2rem auto 0; color: var(--ink-soft); }

.postcards {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin: clamp(3rem, 6vw, 5rem) auto clamp(3rem, 6vw, 5rem);
  padding: 2rem var(--gutter);
}
.postcard {
  flex: none;
  width: clamp(170px, 15vw, 240px);
  margin-inline: -1rem;
  padding: 10px 10px 0;
  background: var(--paper);
  box-shadow: var(--shadow);
  transform: rotate(var(--tilt, 0deg));
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.postcard:nth-child(even) { margin-top: 3rem; }
.postcard img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.postcard--wide { width: clamp(220px, 20vw, 320px); }
.postcard--wide img { aspect-ratio: 4 / 3; }
.postcard figcaption {
  padding: .6rem .2rem .7rem;
  font-size: 1.35rem;
  text-align: center;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.postcard:hover { z-index: 2; transform: rotate(0deg) translateY(-10px) scale(1.04); box-shadow: 0 30px 60px -24px rgba(35, 27, 20, .45); }

.distances {
  max-width: 52rem;
  margin-inline: auto;
}
.distances li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: .85rem 0;
}
.distances__place { font-family: var(--font-display); font-size: clamp(1.3rem, 2vw, 1.6rem); color: var(--espresso); }
.distances__dots { flex: 1; min-width: 2rem; border-bottom: 1.5px dotted var(--gold-light); transform: translateY(-.3em); }
.distances__time { font-size: .95rem; font-weight: 700; color: var(--sun-deep); white-space: nowrap; }

.map {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: stretch;
  margin-top: clamp(4rem, 8vw, 6rem);
}
.map__card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.8rem, 4vw, 3rem);
  border-radius: 32px;
  background: var(--cream);
}
.map__street { font-family: var(--font-display); font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1.05; color: var(--espresso); }
.map__town { margin: .5rem 0 1rem; font-weight: 700; color: var(--sun-deep); }
.map__note { color: var(--ink-soft); }
.map__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .6rem; }
.map__frame {
  position: relative;
  min-height: clamp(320px, 38vw, 460px);
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid var(--line);
  /* A soft paper map until the real one is asked for. */
  background-color: #F3EBDD;
  background-image:
    linear-gradient(104deg, transparent 46%, rgba(255, 253, 248, .95) 46.5%, rgba(255, 253, 248, .95) 49%, transparent 49.5%),
    linear-gradient(14deg, transparent 58%, rgba(255, 253, 248, .95) 58.4%, rgba(255, 253, 248, .95) 60.4%, transparent 60.8%),
    linear-gradient(16deg, transparent 22%, rgba(255, 253, 248, .8) 22.3%, rgba(255, 253, 248, .8) 23.6%, transparent 24%),
    linear-gradient(100deg, transparent 15%, rgba(255, 253, 248, .8) 15.3%, rgba(255, 253, 248, .8) 16.6%, transparent 17%),
    linear-gradient(98deg, transparent 80%, rgba(255, 253, 248, .8) 80.3%, rgba(255, 253, 248, .8) 81.6%, transparent 82%),
    radial-gradient(circle at 20% 80%, rgba(176, 196, 150, .45) 0 14%, transparent 14.5%),
    radial-gradient(circle at 85% 20%, rgba(176, 196, 150, .4) 0 12%, transparent 12.5%);
}
.map__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__load {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  width: 100%;
  border: 0;
  background: none;
  cursor: pointer;
}
.map__pin svg { width: 44px; height: 58px; fill: var(--sun); stroke: var(--espresso); stroke-width: 1.5; filter: drop-shadow(0 8px 10px rgba(35, 27, 20, .25)); transition: transform .5s var(--ease); }
.map__pin svg circle { fill: var(--linen); }
.map__load:hover .map__pin svg { transform: translateY(-6px); }
.map__label {
  margin-top: .6rem;
  padding: .7em 1.4em;
  border-radius: 999px;
  background: var(--espresso);
  color: var(--linen);
  font-size: .95rem;
  font-weight: 700;
}
.map__load small { font-size: .85rem; color: var(--ink-soft); }

/* ---------- Guests ---------- */

.guests {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(6rem, 12vw, 10rem);
  border-radius: 48px 48px 0 0;
  background: var(--espresso);
  color: var(--linen);
}
.guests__bg {
  position: absolute;
  inset: -10% 0;
  z-index: -1;
  opacity: .55;
}
.guests__bg img { width: 100%; height: 100%; object-fit: cover; }
.guests::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(120% 80% at 50% 110%, rgba(245, 161, 28, .28), transparent 60%),
              linear-gradient(180deg, rgba(35, 27, 20, .55) 0%, rgba(35, 27, 20, .78) 45%, rgba(35, 27, 20, .9) 100%);
}
.guests__inner { text-align: center; }
.guests__inner .eyebrow { transform-origin: center; }
.quotes {
  display: grid;
  gap: clamp(3rem, 6vw, 4.5rem);
  max-width: 62rem;
  margin: clamp(3rem, 6vw, 4.5rem) auto 0;
}
.quote { margin: 0; }
.quote p {
  position: relative;
  margin: 0 auto 1.4rem;
  max-width: 46rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-style: italic;
  line-height: 1.4;
  color: var(--linen);
  text-wrap: pretty;
}
.quote--big p { font-size: clamp(1.6rem, 3vw, 2.5rem); max-width: 56rem; }
.quote p::before {
  content: "“";
  display: block;
  height: .55em;
  font-size: 3.2em;
  line-height: 1;
  font-style: normal;
  color: var(--gold);
}
.quote footer { display: flex; flex-direction: column; align-items: center; gap: .1rem; }
.quote__name { font-family: var(--font-hand); font-size: 1.8rem; color: var(--sun); }
.quote__meta { font-size: .85rem; letter-spacing: .04em; color: var(--gold-light); }

/* ---------- Prices ---------- */

.prices__head { text-align: center; margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.prices__head .eyebrow { transform-origin: center; }
.prices__intro { max-width: 32rem; margin: 1.2rem auto 0; color: var(--ink-soft); }
.prices__seasons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  margin: 0 auto 2.4rem;
}
.prices__seasons button {
  padding: .6em 1.2em;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: .92rem;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.prices__seasons button:hover { border-color: var(--gold); color: var(--espresso); }
.prices__seasons button[aria-pressed="true"] { border-color: var(--espresso); background: var(--espresso); color: var(--linen); }
.prices__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: end;
  max-width: 1080px;
  margin-inline: auto;
}
.price {
  position: relative;
  padding: clamp(3.4rem, 6vw, 4.6rem) 1.6rem 2.4rem;
  border: 1px solid var(--line);
  border-radius: 400px 400px 28px 28px;
  background: var(--paper);
  text-align: center;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.price:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.price h3 { font-family: var(--font-display); font-size: 1.7rem; color: var(--espresso); }
.price__amount {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: .1em;
  margin: 1rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 6vw, 5rem);
  font-weight: 500;
  line-height: 1;
  color: var(--espresso);
  font-variant-numeric: lining-nums tabular-nums;
}
.price__per { margin: .4rem 0 1.2rem; font-size: .9rem; font-weight: 700; color: var(--ink-soft); }
.price__note { margin: 0; padding-top: 1.1rem; border-top: 1px solid var(--line); font-size: .95rem; color: var(--ink-soft); }
.price--sun {
  padding-top: clamp(4.2rem, 7vw, 5.6rem);
  border-color: transparent;
  background: var(--sun);
  box-shadow: 0 30px 60px -30px rgba(217, 128, 11, .8);
}
.price--sun .price__per, .price--sun .price__note { color: rgba(35, 27, 20, .78); }
.price--sun .price__note { border-color: rgba(35, 27, 20, .2); }
.price__badge {
  position: absolute;
  top: 1.6rem;
  left: 50%;
  margin: 0;
  font-size: 1.5rem;
  color: var(--espresso);
  transform: translateX(-50%) rotate(-4deg);
  white-space: nowrap;
}
.prices__example { margin: 1.6rem 0 0; text-align: center; font-size: .9rem; color: var(--sun-deep); font-weight: 700; }
.prices__included { margin-top: clamp(3rem, 6vw, 4rem); text-align: center; }
.prices__included h3 { font-size: 1.8rem; color: var(--gold); margin-bottom: 1rem; }

/* ---------- FAQ ---------- */

.faq { background: var(--cream); border-radius: 48px; margin-inline: clamp(0px, 2vw, 24px); }
.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.faq__head { position: sticky; top: calc(var(--header-h) + 2rem); }
.faq__head p:last-child { margin-top: 1.4rem; color: var(--ink-soft); }
.qa { border-bottom: 1px solid var(--line); }
.qa:first-child { border-top: 1px solid var(--line); }
.qa summary {
  position: relative;
  display: block;
  padding: 1.4rem 3rem 1.4rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  font-weight: 500;
  line-height: 1.25;
  color: var(--espresso);
  cursor: pointer;
  list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before, .qa summary::after {
  content: "";
  position: absolute;
  right: .4rem;
  top: 50%;
  width: 16px;
  height: 1.5px;
  background: var(--sun-deep);
  transition: transform .45s var(--ease);
}
.qa summary::after { transform: rotate(90deg); }
.qa[open] summary::after { transform: rotate(0deg); }
.qa__a { overflow: hidden; }
.qa__a p { margin: 0; padding: 0 2rem 1.5rem 0; color: var(--ink); }

/* ---------- Contact ---------- */

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
}
.contact__text > p { margin-top: 1.4rem; color: var(--ink-soft); }
.contact__ways { display: grid; gap: .9rem; margin-top: 2rem; }
.way {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  text-decoration: none;
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.way:hover { transform: translateX(6px); border-color: var(--gold); box-shadow: var(--shadow); }
.way svg {
  flex: none;
  width: 48px;
  height: 48px;
  padding: 12px;
  border-radius: 50%;
  background: var(--sun);
  fill: none;
  stroke: var(--espresso);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.way span { display: flex; flex-direction: column; line-height: 1.3; }
.way strong { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--espresso); }
.way small { font-size: .9rem; color: var(--ink-soft); }

.form {
  display: grid;
  gap: 1.1rem;
  padding: clamp(1.6rem, 4vw, 2.8rem);
  border-radius: 32px;
  background: var(--cream);
}
.form__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form__row { display: grid; gap: .35rem; min-width: 0; }
.form label { font-size: .85rem; font-weight: 700; color: var(--ink-soft); }
.form input, .form select, .form textarea {
  width: 100%;
  min-width: 0;
  padding: .85rem 1rem;
  border: 1px solid transparent;
  border-radius: 14px;
  background: var(--paper);
  color: var(--espresso);
  font: inherit;
  font-size: 1rem;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.form textarea { resize: vertical; min-height: 7rem; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(226, 198, 140, .45);
}
.form [aria-invalid="true"] { border-color: #C0532E; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__send { justify-self: start; margin-top: .4rem; }
.form__status { min-height: 1.5em; margin: 0; font-size: .95rem; font-weight: 600; color: var(--ink-soft); }
.form[data-state="sent"] .form__status { color: #4F7A3A; }
.form[data-state="failed"] .form__status { color: #B4492A; }
.form[data-state="sending"] .form__send { opacity: .6; cursor: progress; }

/* ---------- Goodbye ---------- */

.goodbye {
  position: relative;
  margin-top: clamp(2rem, 5vw, 4rem);
}
.goodbye__img {
  height: clamp(340px, 62vh, 640px);
  margin-inline: clamp(0px, 2vw, 24px);
  overflow: hidden;
  border-radius: 48px 48px 0 0;
}
.goodbye__img img { width: 100%; height: 120%; object-fit: cover; }
.goodbye__text {
  position: absolute;
  inset: auto 0 18% 0;
  margin: 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: .95;
  color: var(--linen);
  text-shadow: 0 4px 30px rgba(35, 27, 20, .45);
}
.goodbye__text .hand { display: block; font-size: .5em; color: var(--gold-light); transform: rotate(-3deg); }
.goodbye__text em { color: var(--linen); }

/* ---------- Footer ---------- */

.footer {
  padding: clamp(3rem, 6vw, 4.5rem) 0 calc(2rem + env(safe-area-inset-bottom, 0px));
  background: var(--espresso);
  color: var(--cream);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.footer__where { margin-top: 1rem; color: var(--gold-light); font-size: .95rem; }
.footer__links { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 1.5rem; }
.footer__links a, .footer__lang a { color: var(--cream); text-decoration: none; font-size: .95rem; }
.footer__links a:hover, .footer__lang a:hover { color: var(--sun); }
.footer__lang { flex-direction: column; gap: .3rem; font-size: .95rem; font-weight: 400; }
.lang--light a { padding: 0; }
.lang--light a[aria-current="page"] { background: none; color: var(--sun); }
.footer__small { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(226, 198, 140, .2); font-size: .85rem; color: rgba(247, 240, 227, .6); }

/* ---------- Phone action bar ---------- */

.action-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 45;
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
  padding: .6rem max(12px, env(safe-area-inset-left, 0px)) calc(.6rem + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-right, 0px));
  background: rgba(255, 253, 248, .92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 -1px 0 var(--line);
  transform: translateY(110%);
  transition: transform .5s var(--ease);
}
.action-bar.is-visible { transform: translateY(0); }
.action-bar a {
  padding: .8rem .5rem;
  border-radius: 999px;
  background: var(--cream);
  color: var(--espresso);
  font-size: .92rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.action-bar a:first-child { background: var(--sun); }

/* ---------- Lightbox ---------- */

.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(35, 27, 20, .94);
  color: var(--linen);
}
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox__img {
  max-width: min(92vw, 1100px);
  max-height: 84dvh;
  border-radius: 16px;
  object-fit: contain;
}
.lightbox__close, .lightbox__nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 253, 248, .3);
  border-radius: 50%;
  background: rgba(35, 27, 20, .4);
  color: var(--linen);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox__close { top: calc(16px + env(safe-area-inset-top, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); }
.lightbox__nav--prev { left: max(16px, env(safe-area-inset-left, 0px)); top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: max(16px, env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); left: 0; right: 0; margin: 0; text-align: center; font-family: var(--font-hand); font-size: 1.4rem; color: var(--gold-light); }

/* ---------- Smaller screens ---------- */

@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
  .site-header__end { margin-left: auto; }
  .perks__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root { --header-h: 66px; }
  /* Solid on phones: neater, and newer iPhones colour the strip behind the clock to match it. */
  .site-header.is-scrolled { background: var(--linen); -webkit-backdrop-filter: none; backdrop-filter: none; }
  body { font-size: 1.02rem; }
  .site-header__end .btn { display: none; }
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: calc(var(--header-h) + 1.2rem);
    padding-bottom: 2rem;
    gap: 2.2rem;
  }
  .hero__media { order: -1; height: auto; min-height: 0; aspect-ratio: 4 / 4.3; max-height: 62svh; width: min(100%, 560px); margin-inline: auto; }
  .hero__arch2 { width: 30%; bottom: -1.2rem; }
  .hero__lead { margin: 1.2rem 0 1.4rem; }
  .hero__facts { margin-bottom: 1.6rem; }
  .section { padding-block: clamp(3.5rem, 12vw, 6rem); }
  .hero__scroll { display: none; }
  .prices__grid { grid-template-columns: 1fr; max-width: 360px; gap: 1.2rem; }
  .price { padding: 2.6rem 1.4rem 1.6rem; }
  .price--sun { padding-top: 3.4rem; }
  .price__amount { font-size: 3.3rem; margin-top: .6rem; }
  .price__per { margin-bottom: .9rem; }
  .price__note { padding-top: .8rem; }
  .price__badge { top: 1.1rem; font-size: 1.35rem; }
  .price--sun { order: -1; }
  .postcards {
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
    padding-block: 2rem 3rem;
  }
  .postcards::-webkit-scrollbar { display: none; }
  .postcard { margin-inline: .4rem; scroll-snap-align: center; }
  .postcard:nth-child(even) { margin-top: 1.5rem; }
  .footer__grid { grid-template-columns: 1fr; }
  .action-bar { display: grid; }
  .footer { padding-bottom: calc(6rem + env(safe-area-inset-bottom, 0px)); }
}

/* Tablets keep two columns side by side; phones stack them. */
@media (min-width: 701px) and (max-width: 900px) {
  .welcome__grid, .garden__grid, .contact__grid { gap: 2.5rem; }
  .welcome__media { padding-bottom: 3rem; }
  .garden__collage { min-height: 0; aspect-ratio: 1 / 1.3; }
  .faq__grid { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 2.5rem; }
  .map { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .note { padding: 1.3rem 1.4rem 1.1rem; }
  .note p { font-size: 1.2rem; }
  .form__pair { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .welcome__grid, .garden__grid, .contact__grid, .faq__grid, .map { grid-template-columns: 1fr; }
  .welcome__media { order: 2; width: min(100%, 520px); margin-inline: auto; }
  .garden__collage { min-height: 0; aspect-ratio: 1 / 1.15; width: min(100%, 560px); margin-inline: auto; }
  .faq__head { position: static; }
}

@media (max-width: 520px) {
  /* The longer name, the language switch and the menu button share one row on small phones. */
  .site-header__inner { gap: .6rem; }
  .site-header__end { gap: .5rem; }
  .wordmark { font-size: 1.4rem; gap: .35rem; }
  .wordmark__sprig { width: 22px; height: 22px; }
  .site-header .lang a { padding: .35em .45em; }
  .footer .wordmark { font-size: 1.85rem; }
  /* On phones the name stacks, "Jurmala" over "Garden House", like the big title, so the language switch and menu fit. */
  .site-header .wordmark { font-size: 1.3rem; line-height: .95; }
  .site-header .wordmark span { display: flex; flex-direction: column; }
  .hero__facts { gap: .5rem 1.2rem; }
  .hero__facts li + li::before { display: none; }
  .hero__actions .btn { flex: 1 1 100%; }
  .stamp { width: 96px; top: 2%; }
  .perks__grid { gap: 2rem 1rem; }
  .perk h3 { font-size: 1.35rem; }
  .form__pair { grid-template-columns: 1fr; }
  .distances li { flex-wrap: wrap; gap: .1rem .8rem; }
  .distances__dots { display: none; }
  .distances__time { white-space: normal; }
  .way strong { font-size: 1.3rem; }
}

@media (max-width: 350px) {
  .site-header .wordmark__sprig { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
