/* ============================ Design tokens ============================ */
:root {
  /* eggshell backgrounds (slightly darker off-white) */
  --bg:        #E7E0D1;
  --bg-warm:   #EDE7D9;
  --panel:     #F3EEE2;
  --card:      #F6F2E8;

  /* ink / text */
  --ink:       #36392F;
  --ink-soft:  #5A5E4F;
  --ink-mute:  #7E8170;

  /* greens */
  --green:     #5E7A57;
  --green-deep:#445A40;
  --sage:      #8AA17F;

  /* salmon */
  --salmon:    #E2998A;
  --salmon-deep:#CE7E6E;
  --salmon-soft:#F0C9BF;

  --shadow-sm: 0 4px 16px rgba(54, 57, 47, 0.08);
  --shadow-md: 0 14px 40px rgba(54, 57, 47, 0.14);
  --shadow-lg: 0 26px 70px rgba(54, 57, 47, 0.18);

  --maxw: 1080px;
  --ease:  cubic-bezier(.22,.61,.36,1);

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body:    "Nunito Sans", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  margin: 0;
  letter-spacing: 0.2px;
}

p { margin: 0; }

a { color: inherit; }

/* ============================ Buttons ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.2px;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease),
              background-color .3s var(--ease), color .3s var(--ease);
  will-change: transform;
}
.btn__icon { display: inline-flex; }
.btn__icon svg { width: 20px; height: 20px; }

.btn--primary {
  background: var(--green);
  color: #F7F4EA;
  box-shadow: 0 10px 24px rgba(68, 90, 64, 0.28);
}
.btn--primary:hover {
  background: var(--green-deep);
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(68, 90, 64, 0.34);
}

.btn--soft {
  background: var(--panel);
  color: var(--ink);
  border-color: rgba(206, 126, 110, 0.45);
}
.btn--soft:hover {
  background: var(--salmon-soft);
  border-color: var(--salmon-deep);
  color: var(--salmon-deep);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.btn--lg { padding: 1.1rem 2.4rem; font-size: 1.1rem; }

/* ============================ HERO ============================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem 6rem;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(1200px 700px at 50% -10%, var(--bg-warm), transparent 70%),
    var(--bg);
}
/* subtle Ghibli forest-house wash behind the hero */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/ghibli_foresthouse.jpeg") center / cover no-repeat;
  opacity: 0.055;
  z-index: 0;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 600px;
  width: 100%;
}

.portrait {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow-md);
  border: 5px solid var(--card);
  position: relative;
  z-index: 1;
}
.portrait::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(94, 122, 87, 0.25);
  pointer-events: none;
}
.portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  display: block;
}

.hero__name {
  font-size: clamp(2.6rem, 8vw, 4.2rem);
  color: var(--ink);
}

.hero__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
}
.hero__title .dot { color: var(--salmon-deep); }

.hero__tag {
  margin: 1.2rem auto 0;
  max-width: 28ch;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 4vw, 1.45rem);
  color: var(--ink-soft);
}

.links {
  margin-top: 2.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: stretch;
}
@media (min-width: 540px) {
  .links { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .links .btn { flex: 0 1 auto; }
}

/* scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 1.8rem; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
  color: var(--ink-mute);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.scroll-cue svg { width: 22px; height: 22px; animation: bob 2.2s var(--ease) infinite; }
@keyframes bob { 0%,100%{ transform: translateY(0); opacity:.6 } 50%{ transform: translateY(6px); opacity:1 } }

/* ============================ Decorative botanicals ============================ */
.decor {
  position: absolute;
  height: auto;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  z-index: 1;
}
.decor.parallax { z-index: 0; will-change: transform; }

/* hero corner leaves */
.decor--hero-tl, .decor--hero-br { opacity: 0.85; }
.decor--hero-tl {
  width: clamp(150px, 30vw, 320px);
  top: -3%; left: -6%;
  --r: -8deg;
  transform: rotate(var(--r));
}
.decor--hero-br {
  width: clamp(170px, 36vw, 380px);
  bottom: -7%; right: -7%;
  --r: 168deg;
  transform: rotate(var(--r));
}
/* mirrored fills: hidden until there's room beside the content column */
.decor--hero-tr, .decor--hero-bl { display: none; opacity: 0.55; }
.decor--hero-tr {
  width: clamp(150px, 16vw, 230px);
  top: -4%; right: -4%;
  --sx: -1; --r: -8deg;
  transform: rotate(var(--r)) scaleX(var(--sx));
}
.decor--hero-bl {
  width: clamp(150px, 18vw, 250px);
  bottom: -6%; left: -4%;
  --sx: -1; --r: 348deg;
  transform: rotate(var(--r)) scaleX(var(--sx));
}
@media (min-width: 1024px) {
  .decor--hero-tr, .decor--hero-bl { display: block; }
}
.sway     { animation: sway 9s ease-in-out infinite; }
.sway-rev { animation: sway 11s ease-in-out infinite reverse; }
@keyframes sway {
  0%,100% { transform: rotate(var(--r,0deg)) scaleX(var(--sx,1)) translateY(0); }
  50%     { transform: rotate(calc(var(--r,0deg) + 2.5deg)) scaleX(var(--sx,1)) translateY(-9px); }
}

/* portrait */
.portrait-wrap {
  position: relative;
  width: clamp(210px, 50vw, 300px);
  aspect-ratio: 1;
  margin: 0 auto 1.8rem;
  display: grid;
  place-items: center;
}

/* botanical divider under section headings */
.divider {
  display: block;
  width: clamp(160px, 32vw, 240px);
  height: auto;
  margin: 1.1rem auto 0;
  opacity: 0.9;
}

/* ============================ ABOUT ============================ */
.about {
  position: relative;
  padding: clamp(6rem, 14vh, 10rem) 1.5rem;
  background:
    linear-gradient(180deg, var(--bg) 0%, var(--green-deep) 0%, var(--green) 4%, #4f6849 100%);
  color: #F4F0E4;
  overflow: hidden;
}
/* soften the top edge so it reads as a wash, not a hard band */
.about {
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(247,244,234,.12), transparent 60%),
    linear-gradient(170deg, #56714f 0%, #41553c 100%);
}

.about__inner {
  position: relative; z-index: 2;
  max-width: 760px; margin: 0 auto;
  text-align: center;
}
.eyebrow {
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--salmon-soft);
  margin-bottom: 0.9rem;
}
.about h2 {
  font-size: clamp(2rem, 6vw, 3.2rem);
  color: #F7F4EA;
}
.about .divider { margin-bottom: 1.8rem; opacity: 0.75; }
.about__body {
  display: grid;
  gap: 1.3rem;
  font-size: clamp(1.02rem, 2.4vw, 1.18rem);
  color: rgba(247, 244, 234, 0.9);
  max-width: 62ch; margin: 0 auto;
}

.about__leaf-l { width: clamp(150px,26vw,320px); top: 3%;  left: -7%;  opacity:.32; transform: rotate(-6deg); }
.about__leaf-r { width: clamp(140px,24vw,300px); top: 26%; right: -8%; opacity:.32; transform: rotate(6deg); }

/* ============================ MODALITIES ============================ */
.modalities {
  padding: clamp(5rem, 12vh, 8rem) 1.5rem;
  background: var(--bg);
}
.modalities__inner { max-width: var(--maxw); margin: 0 auto; }
.modalities h2 {
  text-align: center;
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  color: var(--green-deep);
}
.modalities .divider { margin-bottom: 2.6rem; }
.cards {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}
.card {
  position: relative;
  background: var(--card);
  border-radius: 22px;
  padding: 2.4rem 1.8rem 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(94,122,87,.12);
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card__icon {
  width: 66px; height: 66px;
  object-fit: contain;
  object-position: center;
  display: block;
  margin-bottom: 1.1rem;
}
.card h3 {
  font-size: 1.7rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.card p { color: var(--ink-soft); font-size: 1rem; }
.card::after {
  content:""; position:absolute; right:-30px; bottom:-30px;
  width:120px; height:120px; border-radius:50%;
  background: radial-gradient(circle, rgba(226,153,138,.18), transparent 70%);
}

/* ============================ CTA ============================ */
.cta {
  position: relative;
  padding: clamp(5rem, 12vh, 8rem) 1.5rem;
  background: var(--bg-warm);
  text-align: center;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/ocean_lighthouse.png") center / cover no-repeat;
  opacity: 0.2;
  z-index: 1;
  pointer-events: none;
}
.cta__inner { position: relative; z-index: 2; max-width: 600px; margin: 0 auto; }
.cta p { margin: 0.8rem 0 2rem; font-size: 1.15rem; color: var(--ink-soft); }

/* heading framed inside the Tropical_67 banner */
.cta__heading {
  position: relative;
  width: min(560px, 88vw);
  aspect-ratio: 1200 / 737;
  margin: 0 auto 0.4rem;
}
.cta__frame {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  opacity: .88;
  filter: hue-rotate(100deg) saturate(0.55) brightness(1.18);
  pointer-events: none; user-select: none;
}
.cta .btn--primary {
  background: #A9C9DC;
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(120, 158, 180, 0.32);
}
.cta .btn--primary:hover {
  background: #8FB4CC;
  box-shadow: 0 16px 34px rgba(120, 158, 180, 0.4);
}
.cta__heading h2 {
  position: absolute;
  top: 45%; left: 50%;
  transform: translate(-50%, -50%);
  width: 66%;
  margin: 0;
  font-size: clamp(1.4rem, 4.4vw, 2.4rem);
  line-height: 1.05;
  color: var(--green-deep);
}

/* ============================ Footer ============================ */
.footer {
  background: var(--green-deep);
  color: rgba(247,244,234,.85);
  padding: 2.2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}
.footer__divider { width: clamp(160px, 30vw, 220px); opacity: 0.6; margin: 0 0 0.4rem; }
.footer p { font-family: var(--font-display); font-size: 1.3rem; }
.footer__top { color: var(--salmon-soft); text-decoration: none; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; }
.footer__top:hover { text-decoration: underline; }

/* ============================ Reveal animations ============================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
/* stagger children inside a group */
.links.reveal.is-visible .btn { animation: none; }

/* ============================ Tip modal ============================ */
.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(54, 57, 47, 0.5);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  animation: modalFade 0.25s var(--ease);
}
.modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 380px;
  background: var(--card);
  border: 1px solid rgba(94, 122, 87, 0.15);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  padding: 2.6rem 2rem 2.2rem;
  text-align: center;
  animation: modalPop 0.28s var(--ease);
}
.modal__close {
  position: absolute;
  top: 0.6rem; right: 0.85rem;
  width: 2rem; height: 2rem;
  display: grid; place-items: center;
  background: none; border: none;
  font-size: 1.7rem; line-height: 1;
  color: var(--ink-mute);
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.modal__close:hover { background: rgba(94, 122, 87, 0.1); color: var(--ink); }
.modal__title {
  font-size: clamp(1.8rem, 6vw, 2.2rem);
  color: var(--green-deep);
}
.modal__text {
  margin: 0.5rem auto 1.6rem;
  max-width: 26ch;
  color: var(--ink-soft);
  font-size: 1rem;
}
.modal__links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalPop {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

/* ============================ Storefront page ============================ */
/* subtle water wash behind the whole storefront page */
.store-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("../assets/waterbg.png") center / cover no-repeat;
  opacity: 0.35;
  z-index: -1;
  pointer-events: none;
}
.store-hero {
  position: relative;
  text-align: center;
  overflow: hidden;
  padding: clamp(3.6rem, 9vh, 6rem) 1.5rem 1.6rem;
  background:
    radial-gradient(1000px 520px at 50% -10%, rgba(237, 231, 217, 0.55), transparent 70%);
}
.store-hero .eyebrow { color: var(--ink); }
.store-back {
  position: absolute;
  top: 1.3rem; left: 1.3rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--green);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.store-back svg { width: 16px; height: 16px; }
.store-back:hover { color: var(--green-deep); }
.store-page .footer { background: rgba(68, 90, 64, 0.3); }
.store-hero__inner { position: relative; z-index: 1; }
.store-hero h1 {
  font-size: clamp(2.4rem, 7vw, 3.6rem);
  color: var(--ink);
}
.store-intro {
  max-width: 52ch;
  margin: 1.1rem auto 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 2.4vw, 1.12rem);
  background: rgba(246, 242, 232, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  padding: 0.85rem 1.4rem;
  box-shadow: var(--shadow-sm);
}

.store {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2rem, 5vh, 3.4rem) 1.5rem clamp(4rem, 9vh, 6rem);
}
.store-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 620px) { .store-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .store-list { grid-template-columns: repeat(3, 1fr); } }

.store-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.3rem;
  background:
    linear-gradient(160deg, rgba(246, 242, 232, 0.82), rgba(237, 231, 217, 0.68));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 20px;
  padding: 1.8rem 1.6rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.store-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(226, 153, 138, 0.55);
}
.store-item__name {
  font-size: 1.35rem;
  line-height: 1.3;
  color: var(--ink);
  text-align: center;
}
.store-item__link { width: 100%; }
.store-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  padding: 2rem 0;
}
.store-disclosure {
  text-align: center;
  margin-top: 2.6rem;
  color: var(--ink-mute);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

/* ============================ Reduced motion ============================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .sway, .sway-rev, .scroll-cue svg { animation: none !important; }
  .decor.parallax { transform: none !important; }
  .modal__overlay, .modal__dialog { animation: none !important; }
}
