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

html { scroll-behavior: smooth; scroll-padding-top: 52px; }

body {
  background: #faf8f5;
  color: #2b2b2b;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.6;
}

a { color: inherit; }

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  height: 52px;
  padding: 0 24px;
  background: rgba(250, 248, 245, 0.95);
  border-bottom: 1px solid #e8e3dc;
}
.brand { text-decoration: none; font-size: 1.05rem; letter-spacing: 0.04em; white-space: nowrap; }
.brand span { color: #777; font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase; margin-left: 6px; }
nav { display: flex; gap: 24px; }
nav a {
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #555;
}
nav a:hover { color: #000; }
nav { align-items: center; }
.insta-icon { display: flex; align-items: center; }
.insta-line { color: #777; font-style: italic; }
.insta-line a { font-style: normal; color: #2b2b2b; text-decoration-color: #b8ab98; text-underline-offset: 3px; }
.insta-line a:hover { color: #000; }

/* Hero */
/* Welcome area: fills the whole first screen, under the top bar.
   To change the background photo, change the url(...) below. */
.hero {
  height: calc(100vh - 52px);
  height: calc(100svh - 52px);
  min-height: 360px;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 16px;
  color: #fff;
  background:
    linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)),
    url("images/background.jpg") center 55% / cover no-repeat #2a1d14;
}
.hero h1 { text-shadow: 0 2px 16px rgba(0, 0, 0, 0.3); }
.hero .tagline { color: rgba(255, 255, 255, 0.85); }
h1 {
  font-weight: normal;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  letter-spacing: 0.04em;
}
.tagline {
  letter-spacing: 0.4em;
  text-transform: uppercase;
  margin-top: 0.5rem;
  color: #777;
}

/* Sections */
.section { padding: 80px 24px; max-width: 1000px; margin: 0 auto; text-align: center; }
.section.alt { max-width: none; background: #f2eee8; }
.section.alt > * { max-width: 1000px; margin-left: auto; margin-right: auto; }
h2 {
  font-weight: normal;
  font-size: 1.9rem;
  letter-spacing: 0.06em;
  margin-bottom: 32px;
}
.note { color: #999; font-style: italic; font-size: 0.9rem; margin: 12px auto 24px; }

/* Grey stand-in boxes until real photos go in */
.placeholder {
  background: #ddd6cc;
  color: #8a8175;
  display: grid;
  place-items: center;
  font-family: inherit;
  font-style: italic;
}

/* About */
.about { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: center; text-align: left; }
.about-photo { aspect-ratio: 4 / 5; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-text p + p { margin-top: 1em; }

/* Gallery */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.category { border: 0; background: none; cursor: pointer; font-family: inherit; color: inherit; }
.category-photo { display: grid; aspect-ratio: 4 / 5; overflow: hidden; transition: opacity 0.3s; }
.category-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.category:hover .category-photo { opacity: 0.85; }
.category-name {
  display: block;
  margin-top: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

/* Full collection screen */
.collection {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(30, 28, 25, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  cursor: pointer;
  animation: fade-in 0.2s ease;
}
.collection[hidden] { display: none; }
.collection-panel {
  background: #faf8f5;
  width: 100%;
  max-width: 1000px;
  max-height: 100%;
  overflow-y: auto;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  cursor: default;
  animation: pop-in 0.25s ease;
}
@keyframes fade-in { from { opacity: 0; } }
@keyframes pop-in { from { opacity: 0; transform: scale(0.96); } }
.collection-bar {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 24px;
  background: rgba(250, 248, 245, 0.95);
  border-bottom: 1px solid #e8e3dc;
}
.collection-bar h2 { margin: 0; }
.collection-close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  color: #555;
  padding: 4px 12px;
}
.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}
.collection-item { aspect-ratio: 1; border: 0; padding: 0; cursor: pointer; overflow: hidden; background: none; font-family: inherit; }
.collection-item img, .collection-item .placeholder { width: 100%; height: 100%; object-fit: cover; display: grid; }
.collection-item:hover img.loaded { opacity: 0.85; }

/* Photos in pop-ups fade in gently instead of appearing in pieces */
.collection-item { background: #ece6de; }
.collection-item img, .viewer-frame img { opacity: 0; transition: opacity 0.3s ease; }
.collection-item img.loaded, .viewer-frame img.loaded { opacity: 1; }

/* Booking */
.booking-intro { max-width: 560px; margin: 0 auto 32px; }
.button {
  display: inline-block;
  padding: 14px 32px;
  background: #2b2b2b;
  color: #faf8f5;
  text-decoration: none;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.85rem;
}
.button:hover { background: #000; }

.booking-form { max-width: 640px; margin: 0 auto; text-align: left; display: grid; gap: 18px; }
.booking-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.booking-form label { display: grid; gap: 6px; font-size: 0.9rem; color: #555; }
.booking-form .optional { color: #aaa; font-style: italic; }
.booking-form input,
.booking-form select,
.booking-form textarea {
  font: inherit;
  font-size: 1rem;
  color: #2b2b2b;
  padding: 10px 12px;
  border: 1px solid #d8d1c7;
  border-radius: 4px;
  background: #fff;
  width: 100%;
}
.booking-form textarea { resize: vertical; }
.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus { outline: 2px solid #b8ab98; outline-offset: 1px; border-color: transparent; }
.booking-form .button { justify-self: center; border: 0; cursor: pointer; font-family: inherit; margin-top: 8px; }
.booking-form .button:disabled { opacity: 0.6; cursor: wait; }
/* Session details box: slides open when a session type is chosen */
.session-info {
  background: #f2eee8;
  border-left: 3px solid #b8ab98;
  border-radius: 4px;
  padding: 0 20px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: -18px; /* hide the form gap while closed */
  transition: max-height 0.35s ease, opacity 0.35s ease, padding 0.35s ease, margin 0.35s ease;
}
.session-info.open { max-height: 240px; opacity: 1; padding: 16px 20px; margin-top: 0; }
.session-info h3 { font-weight: normal; font-size: 1.05rem; letter-spacing: 0.04em; margin-bottom: 6px; }
.session-info .price { font-style: italic; color: #2b2b2b; margin-bottom: 6px; }
.session-info ul { list-style: none; color: #555; }
.session-info li::before { content: "·"; margin-right: 8px; color: #999; }

.form-status { text-align: center; font-style: italic; color: #555; min-height: 1.6em; }
.trap { position: absolute; left: -9999px; }

footer { text-align: center; padding: 32px 16px; color: #999; font-size: 0.85rem; border-top: 1px solid #e8e3dc; }

/* Large photo viewer */
.viewer {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(20, 20, 20, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
}
.viewer[hidden] { display: none; }
.viewer-frame img { max-width: 85vw; max-height: 85vh; display: block; }
.viewer-frame .big { width: min(70vw, 600px); aspect-ratio: 1; font-size: 1.5rem; }
.viewer button {
  position: absolute;
  background: none;
  border: 0;
  color: #fff;
  font-size: 3rem;
  cursor: pointer;
  padding: 8px 16px;
  line-height: 1;
}
.viewer-close { top: 12px; right: 12px; }
.viewer-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.viewer-next { right: 8px; top: 50%; transform: translateY(-50%); }

/* Phones */
@media (max-width: 640px) {
  .topbar { padding: 0 16px; gap: 12px; }
  .brand span { display: none; }
  nav { gap: 16px; }
  nav a { font-size: 0.72rem; letter-spacing: 0.12em; }
  .section { padding: 56px 16px; }
  .about { grid-template-columns: 1fr; text-align: center; }
  .about-photo { max-width: 280px; margin: 0 auto; width: 100%; }
  .grid { gap: 8px; }
  .category-name { font-size: 0.7rem; letter-spacing: 0.12em; }
  .collection { padding: 16px; }
  .booking-form .row { grid-template-columns: 1fr; }
  .collection-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 16px; }
}
