/* Palette pulled from Lauren's painting: cream ground, sage/teal washes, ochre highlights, slate ink */
:root {
  --cream: #f5f2eb;
  --cream-2: #ece7dc;
  --sage: #7f978b;
  --sage-deep: #5f7d72;
  --teal: #2f5d5a;
  --ochre: #c49a45;
  --ink: #2e3a37;
  --ink-soft: #55625e;
  --light: #fbfaf6;

  --display: "Josefin Sans", "Helvetica Neue", Arial, sans-serif;
  --body: "Mulish", "Helvetica Neue", Arial, sans-serif;
  --wave-h: clamp(48px, 7vw, 110px);
}

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

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

body {
  margin: 0;
  font-family: var(--body);
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Subtle painting texture behind the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url("/assets/painting.jpg") center / cover no-repeat;
  opacity: 0.13;
  filter: saturate(1.15);
  pointer-events: none;
}

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

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 200;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.1;
  margin: 0;
}

.eyebrow {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.8rem;
  color: var(--sage-deep);
  margin: 0;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  text-align: center;
  color: var(--sage-deep);
  margin-bottom: 3rem;
}
.section-title.light { color: var(--light); }
.section-title.left { text-align: left; margin-bottom: 1.5rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font: 400 0.82rem/1 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  text-decoration: none;
  padding: 1.05em 2.1em 0.95em;
  border-radius: 999px;
  border: 1px solid var(--sage-deep);
  cursor: pointer;
  transition: background 0.25s, color 0.25s, transform 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--sage-deep); color: var(--light); }
.btn-solid:hover { background: var(--teal); border-color: var(--teal); }
.btn-ghost { background: transparent; color: var(--sage-deep); }
.btn-ghost:hover { background: var(--sage-deep); color: var(--light); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: rgba(245, 242, 235, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(95, 125, 114, 0.15);
}
.nav nav { grid-column: 2; display: flex; gap: clamp(1rem, 3vw, 2.5rem); }
.nav-contact { grid-column: 3; justify-self: end; }
.nav nav a, .nav-contact {
  font: 400 0.78rem var(--display);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.2s;
}
.nav nav a:hover, .nav-contact:hover { color: var(--teal); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 6rem 1.25rem 7rem;
  margin: 1.25rem clamp(0.75rem, 3vw, 2.5rem) 0;
  border-radius: 28px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(245, 242, 235, 0.55) 0%, rgba(245, 242, 235, 0.25) 45%, rgba(245, 242, 235, 0.75) 100%),
    url("/assets/painting.jpg") center 60% / cover no-repeat;
}
.hero-inner { max-width: 960px; }
.hero h1 {
  font-size: clamp(2.4rem, 7.5vw, 4.75rem);
  font-weight: 400;
  color: var(--teal);
  margin: 0.6rem 0 1.4rem;
  letter-spacing: 0.06em;
}
.hero .eyebrow { font-size: clamp(0.8rem, 2vw, 1rem); color: var(--ink); }
.hero-lede {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  max-width: 560px;
  margin: 0 auto 2.4rem;
  color: var(--ink);
  font-weight: 400;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero .btn-ghost { background: rgba(251, 250, 246, 0.6); }

/* ---------- Advantages ---------- */
.advantages {
  padding: 5rem clamp(1.25rem, 5vw, 4rem) calc(var(--wave-h) + 4rem);
  max-width: 1100px;
  margin: 0 auto;
}
.advantages-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.25rem, 3.5vw, 2.5rem);
  margin-bottom: 3.5rem;
}
.advantages-header .section-title {
  margin-bottom: 0;
  text-align: left;
}
.advantages-photo {
  position: relative;
  width: clamp(100px, 14vw, 150px);
  aspect-ratio: 1;
  flex-shrink: 0;
}
.advantages-photo::before {
  content: "";
  position: absolute;
  inset: -8% -10% -6% -6%;
  background: url("/assets/painting.jpg") 70% 75% / 260% no-repeat;
  border-radius: 46% 54% 40% 60% / 55% 45% 55% 45%;
  opacity: 0.85;
  z-index: -1;
}
.advantages-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50% 50% 48% 52% / 55% 52% 48% 45%;
  box-shadow: 0 12px 30px rgba(30, 50, 45, 0.22);
}
.adv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  text-align: center;
}
.adv svg {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: var(--ochre);
  stroke-width: 1.3;
  stroke-linejoin: round;
  stroke-linecap: round;
  margin-bottom: 1rem;
}
.adv h3 {
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--sage-deep);
  margin-bottom: 0.6rem;
}
.adv p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }

/* ---------- Waves ---------- */
.wave {
  position: absolute;
  left: 0;
  width: 100%;
  height: var(--wave-h);
  display: block;
}
.wave-top { bottom: calc(100% - 1px); }
.wave-bottom { top: calc(100% - 1px); }

/* Texture over green sections: one layer spanning section + both waves, masked to the wave shapes */
.tex {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(1px - var(--wave-h));
  bottom: calc(1px - var(--wave-h));
  pointer-events: none;
  background:
    url("/assets/grain.svg") 0 0 / 300px 300px,
    url("/assets/mottle.svg") 0 0 / 1000px 1000px;
  mix-blend-mode: soft-light;
  opacity: 0.9;
  --mask:
    var(--mask-top) top / 100% var(--wave-h) no-repeat,
    linear-gradient(#000, #000) center / 100% calc(100% - 2 * var(--wave-h) + 2px) no-repeat,
    var(--mask-bottom) bottom / 100% var(--wave-h) no-repeat;
  -webkit-mask: var(--mask);
  mask: var(--mask);
}
.services .tex { --mask-top: url("/assets/waves/services-top.svg"); --mask-bottom: url("/assets/waves/services-bottom.svg"); }
.book .tex { --mask-top: url("/assets/waves/book-top.svg"); --mask-bottom: url("/assets/waves/book-bottom.svg"); }
.services-inner, .book-inner { position: relative; z-index: 1; }

/* ---------- Services ---------- */
.services {
  position: relative;
  background: var(--sage);
  color: var(--light);
  padding: 3rem clamp(1.25rem, 5vw, 4rem) 5rem;
}
.services .wave path { fill: var(--sage); }
.services-inner { max-width: 980px; margin: 0 auto; }

.service {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4.5rem);
  margin-bottom: clamp(3rem, 7vw, 5rem);
}
.service:last-child { margin-bottom: 0; }
.service.flip .blob { order: 2; }
.service.flip .service-text { text-align: right; }

.blob {
  position: relative;
  aspect-ratio: 1.25;
  width: 100%;
  max-width: 340px;
  justify-self: center;
  background: url("/assets/painting.jpg") var(--pos, center) / 320% no-repeat;
  border-radius: 58% 42% 55% 45% / 48% 60% 40% 52%;
  box-shadow: 0 18px 40px rgba(30, 50, 45, 0.25);
  animation: morph 14s ease-in-out infinite alternate;
}
.blob.b2 { border-radius: 42% 58% 38% 62% / 55% 45% 55% 45%; animation-delay: -5s; }
.blob.b3 { border-radius: 50% 50% 62% 38% / 40% 58% 42% 60%; animation-delay: -9s; }

@keyframes morph {
  50% { border-radius: 45% 55% 40% 60% / 58% 42% 58% 42%; }
  100% { border-radius: 60% 40% 52% 48% / 44% 56% 46% 54%; }
}

.num {
  font: 200 1.6rem var(--display);
  color: #f1dfb4;
  letter-spacing: 0.1em;
}
.service h3 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin: 0.25rem 0 0.9rem;
}
.service p { margin: 0; max-width: 420px; opacity: 0.92; }
.service.flip p { margin-left: auto; }

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  max-width: 1050px;
  margin: 0 auto;
  padding: calc(var(--wave-h) + 5rem) clamp(1.25rem, 5vw, 4rem) calc(var(--wave-h) + 5rem);
}
.about-photo {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 400px;
}
.about-photo::before {
  content: "";
  position: absolute;
  inset: -6% -8% -4% -4%;
  background: url("/assets/painting.jpg") 70% 75% / 260% no-repeat;
  border-radius: 46% 54% 40% 60% / 55% 45% 55% 45%;
  opacity: 0.85;
  z-index: -1;
}
.about-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50% 50% 48% 52% / 55% 52% 48% 45%;
  box-shadow: 0 20px 50px rgba(30, 50, 45, 0.22);
}
.about-text p { color: var(--ink-soft); margin: 0 0 1.2rem; }
.about-text .btn { margin-top: 0.8rem; }

/* ---------- Booking ---------- */
.book {
  position: relative;
  background: var(--sage-deep);
  color: var(--light);
  padding: 2rem clamp(0.75rem, 4vw, 3rem) 5rem;
}
.book .wave path { fill: var(--sage-deep); }

/* Ambient footage in the green sections: the video sticks to the viewport while
   its section scrolls past, washed into the sage and faded out at the section edges */
.bg-video-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.32;
  -webkit-mask-image: linear-gradient(transparent, #000 240px, #000 calc(100% - 240px), transparent);
  mask-image: linear-gradient(transparent, #000 240px, #000 calc(100% - 240px), transparent);
}
.bg-video {
  position: sticky;
  top: 0;
  display: block;
  width: 100%;
  height: 100vh;
  object-fit: cover;
  filter: grayscale(1) contrast(1.1) brightness(1.3);
}
.book-inner { max-width: 1000px; margin: 0 auto; text-align: center; }
.book .section-title { margin-bottom: 1rem; }
.book-sub { margin: 0 0 0.5rem; opacity: 0.92; }
.book-sub a { color: #f1dfb4; font-weight: 600; text-decoration: none; }
.cal-frame {
  min-height: 300px;
}

/* ---------- Contact ---------- */
.contact {
  max-width: 760px;
  margin: 0 auto;
  padding: calc(var(--wave-h) + 5rem) clamp(1.25rem, 5vw, 4rem) 6rem;
  text-align: center;
}
.contact .section-title { margin-bottom: 1rem; }
.contact-sub { margin: 0 auto 2.5rem; max-width: 520px; color: var(--ink-soft); }

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  text-align: left;
  background: rgba(251, 250, 246, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(95, 125, 114, 0.18);
  border-radius: 24px;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  box-shadow: 0 18px 50px rgba(30, 50, 45, 0.1);
}
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field.full { grid-column: 1 / -1; }
.field label {
  font: 400 0.75rem var(--display);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--sage-deep);
}
.field input, .field textarea {
  font: 400 1rem var(--body);
  color: var(--ink);
  background: var(--light);
  border: 1px solid rgba(95, 125, 114, 0.3);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--sage-deep);
  box-shadow: 0 0 0 3px rgba(95, 125, 114, 0.18);
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-actions { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 1rem 1.5rem; }
.form-actions .btn:disabled { opacity: 0.6; cursor: wait; transform: none; }
.form-status { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }
.form-status.ok { color: var(--sage-deep); font-weight: 600; }
.form-status.error { color: #a5503a; }

/* ---------- Footer ---------- */
.footer {
  background: var(--teal);
  color: var(--light);
  text-align: center;
  padding: 3.5rem 1.25rem 2.5rem;
}
.footer p { margin: 0; }
.footer-name {
  font: 200 2rem var(--display);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}
.footer .eyebrow { color: #f1dfb4; margin: 0.4rem 0 1.5rem; }
.footer-list { max-width: 640px; margin: 0 auto 1.5rem !important; font-size: 0.9rem; opacity: 0.85; }
.footer-contact { display: flex; justify-content: center; gap: 0.8rem; margin-bottom: 2rem !important; }
.footer-contact a { text-decoration: none; font-weight: 600; letter-spacing: 0.05em; }
.footer-contact a:hover { color: #f1dfb4; }
.footer-small { font-size: 0.78rem; opacity: 0.6; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .nav nav { display: none; }
  .adv-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
  .service, .service.flip { grid-template-columns: 1fr; text-align: center; }
  .service.flip .blob { order: 0; }
  .service.flip .service-text { text-align: center; }
  .service p, .service.flip p { margin: 0 auto; }
  .blob { max-width: 280px; }
  .about { grid-template-columns: 1fr; text-align: center; }
  .section-title.left { text-align: center; }
  .about-photo { max-width: 300px; }
  .contact-form { grid-template-columns: 1fr; }
}

/* ---------- Hover effects ---------- */
.section-title, .hero h1, .service h3, .adv h3 {
  position: relative;
  transition: letter-spacing 0.6s ease, color 0.6s ease;
}
.section-title::after, .hero h1::after, .service h3::after, .adv h3::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.35em;
  width: 2.2em;
  height: 1px;
  background: var(--ochre);
  transform: translateX(-50%) scaleX(0);
  transition: transform 0.6s ease;
}
.hero h1::after { bottom: -0.12em; width: 1.4em; }
.service h3::after { left: 0; transform: scaleX(0); transform-origin: left; width: 3em; height: 1px; bottom: -0.3em; background: #f1dfb4; }
.service.flip h3::after { left: auto; right: 0; transform-origin: right; }
.section-title.left::after { left: 0; transform: scaleX(0); transform-origin: left; }
.adv h3::after { width: 3em; bottom: -0.45em; }
.adv svg { transition: transform 0.6s cubic-bezier(.2, .7, .2, 1), stroke 0.6s ease; }

.blob, .about-photo img {
  transition: transform 0.7s cubic-bezier(.2, .7, .2, 1), box-shadow 0.7s ease, background-size 1.6s ease, background-position 1.6s ease;
}
.about-photo::before { transition: transform 1s cubic-bezier(.2, .7, .2, 1); }

@media (hover: hover) {
  .section-title:hover, .hero h1:hover { letter-spacing: 0.12em; }
  .section-title:hover::after, .hero h1:hover::after { transform: translateX(-50%) scaleX(1); }
  .section-title.left:hover::after { transform: scaleX(1); }
  .about-text:hover .section-title { letter-spacing: 0.12em; }
  .about-text:hover .section-title::after { transform: scaleX(1); }
  .service:has(.blob:hover, .service-text:hover) h3 { letter-spacing: 0.12em; color: #f1dfb4; }
  .service:has(.blob:hover, .service-text:hover) h3::after { transform: scaleX(1); }
  .adv:hover h3 { letter-spacing: 0.26em; color: var(--teal); }
  .adv:hover h3::after { transform: translateX(-50%) scaleX(1); }
  .adv:hover svg { transform: translateY(-4px); stroke: var(--sage-deep); }

  .service:has(.blob:hover, .service-text:hover) .blob {
    transform: translateY(-6px) scale(1.04);
    box-shadow: 0 28px 55px rgba(30, 50, 45, 0.32);
    background-size: 345%;
  }
  .about-photo:hover img { transform: translateY(-6px) scale(1.03); box-shadow: 0 30px 60px rgba(30, 50, 45, 0.28); }
  .about-photo:hover::before { transform: rotate(-6deg) scale(1.03); }
}

@media (prefers-reduced-motion: reduce) {
  .section-title, .hero h1, .service h3, .adv h3, .adv svg, .blob, .about-photo img, .about-photo::before { transition: none; }
  .service:has(.blob:hover, .service-text:hover) .blob, .about-photo:hover img, .about-photo:hover::before, .adv:hover svg { transform: none; }
  html { scroll-behavior: auto; }
  .blob { animation: none; }
  .btn:hover { transform: none; }
}

@media (max-width: 760px) {
  .service h3::after, .service.flip h3::after, .section-title.left::after {
    left: 50%; right: auto; transform-origin: center; transform: translateX(-50%) scaleX(0);
  }
  .service:has(.blob:hover, .service-text:hover) h3::after, .section-title.left:hover::after, .about-text:hover .section-title::after { transform: translateX(-50%) scaleX(1); }
}
