/* Home page (index.html): aerial hero slideshow, welcome, Stay With Us, Around the Grounds.
   Loaded after style.css on the home page only. */

:root {
  --cc-sage: #8FAE9A;
  --cc-sage-d: #5F7F6B;
  --cc-sage-dd: #3E5A48;
  --cc-gold: #D8B35A;
  --cc-gold-d: #B58F36;
  --cc-cream: #F6F2EA;
  --cc-paper: #FAFAF7;
  --cc-ink: #2F2F2F;
  --cc-ink-soft: #4A4A4A;
  --hh-sweep: 2500ms;
}

/* ---------- Buttons ---------- */
.cc-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 24px;
  font: 600 18px/1 "Poppins", sans-serif; letter-spacing: .01em;
  color: #2B3328; background: var(--cc-gold);
  border: 0; border-radius: 8px;
  box-shadow: inset 0 0 0 3px var(--cc-gold), inset 0 0 0 4px rgba(255,255,255,.55), 0 2px 0 var(--cc-gold-d), 0 4px 10px rgba(60,50,20,.18);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  -webkit-user-select: none; user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.cc-btn:hover { color: #2B3328; background: #DFBD68; transform: translateY(-1px);
  box-shadow: inset 0 0 0 3px #DFBD68, inset 0 0 0 4px rgba(255,255,255,.7), 0 3px 0 var(--cc-gold-d), 0 6px 14px rgba(60,50,20,.2); }
.cc-btn:active { transform: translateY(1px); box-shadow: inset 0 0 0 3px var(--cc-gold), inset 0 0 0 4px rgba(255,255,255,.55), 0 1px 0 var(--cc-gold-d); }
.cc-btn:focus-visible { outline: 3px solid var(--cc-sage-dd); outline-offset: 3px; }
.cc-btn-line {
  color: var(--cc-sage-dd); background: rgba(250,250,247,.9);
  box-shadow: inset 0 0 0 2px var(--cc-sage-d), 0 2px 0 rgba(62,90,72,.35);
}
.cc-btn-line:hover { color: var(--cc-sage-dd); background: #fff; box-shadow: inset 0 0 0 2px var(--cc-sage-dd), 0 3px 0 rgba(62,90,72,.4), 0 6px 14px rgba(40,60,45,.12); }
.cc-btn-line:active { box-shadow: inset 0 0 0 2px var(--cc-sage-dd); }

/* ---------- Hero ---------- */
.hh { position: relative; padding: 0; overflow: visible; }
.hh-stage {
  position: relative; overflow: hidden;
  height: min(calc(100svh - var(--header-h, 140px)), 100vw, 1100px);
  background: #C9D6C6;
}
.hh-slide { position: absolute; inset: 0; overflow: hidden; visibility: hidden; z-index: 0; }
.hh-slide.is-on { visibility: visible; z-index: 1; }
.hh-slide.is-in, .hh-slide.is-fade { visibility: visible; z-index: 2; }
.hh-photo { position: absolute; inset: 0; }
.hh-photo picture, .hh-photo img { display: block; width: 100%; height: 100%; }
.hh-photo img { object-fit: cover; object-position: 50% 50%; transform: scale(1.03); transform-origin: 50% 50%; }
/* Slide change: the new photo's frame slides in while the photo inside slides back (it stays still), under a soft
   band of light and a trail of sparkles: a wand passing over the picture. Transforms and opacity only, no masks. */
.hh-wand { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; display: none; }
.hh-wand.on { display: block; }
.hh-feather { position: absolute; top: 0; bottom: 0; left: 0; width: 160px; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, #000 0%, rgba(0,0,0,.82) 30%, rgba(0,0,0,.35) 65%, transparent 100%);
          mask-image: linear-gradient(to right, #000 0%, rgba(0,0,0,.82) 30%, rgba(0,0,0,.35) 65%, transparent 100%); }
.hh-feather .hh-photo { right: auto; }
.hh-feather.rev { -webkit-mask-image: linear-gradient(to left, #000 0%, rgba(0,0,0,.82) 30%, rgba(0,0,0,.35) 65%, transparent 100%);
                          mask-image: linear-gradient(to left, #000 0%, rgba(0,0,0,.82) 30%, rgba(0,0,0,.35) 65%, transparent 100%); }

/* previous / next */
.hh-arrow {
  position: absolute; top: 50%; z-index: 4; width: 56px; height: 56px; margin-top: -28px; padding: 0;
  display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  color: var(--cc-sage-dd); background: rgba(250,250,247,.8);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.75); box-shadow: 0 4px 16px rgba(25,40,30,.2);
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.hh-arrow svg { width: 26px; height: 26px; display: block; }
.hh-prev { left: clamp(12px, 1.6vw, 28px); }
.hh-next { right: clamp(12px, 1.6vw, 28px); }
.hh-arrow:hover { background: #fff; transform: scale(1.06); box-shadow: 0 6px 20px rgba(25,40,30,.24); }
.hh-arrow:active { transform: scale(.97); }
.hh-arrow:focus-visible { outline: 3px solid var(--cc-sage-dd); outline-offset: 3px; }
.hh-glow {
  position: absolute; top: 0; bottom: 0; left: 0; width: 22vw; margin-left: -11vw; opacity: 0;
  background: linear-gradient(90deg, rgba(255,253,246,0) 0%, rgba(255,251,238,.10) 30%, rgba(255,253,246,.26) 50%,
    rgba(240,247,255,.10) 70%, rgba(240,247,255,0) 100%);
}
.hh-dust { position: absolute; inset: 0; }
.spk { position: absolute; left: 0; top: 0; width: 74px; height: 74px; margin: -37px 0 0 -37px; opacity: 0;
  background: center / contain no-repeat; }
.spk-w { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'%3E%3Cdefs%3E%3CradialGradient id='g'%3E%3Cstop offset='0' stop-color='%23fffaf0' stop-opacity='.85'/%3E%3Cstop offset='.22' stop-color='%23fffaf0' stop-opacity='.34'/%3E%3Cstop offset='1' stop-color='%23fffaf0' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='30' cy='30' r='22' fill='url(%23g)'/%3E%3Cpath d='M30 1C30.7 22 31.6 28.6 59 30C31.6 31.4 30.7 38 30 59C29.3 38 28.4 31.4 1 30C28.4 28.6 29.3 22 30 1Z' fill='%23ffffff'/%3E%3Cpath d='M30 14C30.5 26.5 31.2 28.8 46 30C31.2 31.2 30.5 33.5 30 46C29.5 33.5 28.8 31.2 14 30C28.8 28.8 29.5 26.5 30 14Z' fill='%23ffffff' transform='rotate(45 30 30)' opacity='.75'/%3E%3Ccircle cx='30' cy='30' r='2.4' fill='%23fff'/%3E%3C/svg%3E"); }
.spk-g { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'%3E%3Cdefs%3E%3CradialGradient id='g'%3E%3Cstop offset='0' stop-color='%23ffe6a3' stop-opacity='.85'/%3E%3Cstop offset='.22' stop-color='%23ffe6a3' stop-opacity='.34'/%3E%3Cstop offset='1' stop-color='%23ffe6a3' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='30' cy='30' r='22' fill='url(%23g)'/%3E%3Cpath d='M30 1C30.7 22 31.6 28.6 59 30C31.6 31.4 30.7 38 30 59C29.3 38 28.4 31.4 1 30C28.4 28.6 29.3 22 30 1Z' fill='%23fff8e2'/%3E%3Cpath d='M30 14C30.5 26.5 31.2 28.8 46 30C31.2 31.2 30.5 33.5 30 46C29.5 33.5 28.8 31.2 14 30C28.8 28.8 29.5 26.5 30 14Z' fill='%23fff8e2' transform='rotate(45 30 30)' opacity='.75'/%3E%3Ccircle cx='30' cy='30' r='2.4' fill='%23fff'/%3E%3C/svg%3E"); }
.spk-b { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'%3E%3Cdefs%3E%3CradialGradient id='g'%3E%3Cstop offset='0' stop-color='%23cfe3ff' stop-opacity='.85'/%3E%3Cstop offset='.22' stop-color='%23cfe3ff' stop-opacity='.34'/%3E%3Cstop offset='1' stop-color='%23cfe3ff' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='30' cy='30' r='22' fill='url(%23g)'/%3E%3Cpath d='M30 1C30.7 22 31.6 28.6 59 30C31.6 31.4 30.7 38 30 59C29.3 38 28.4 31.4 1 30C28.4 28.6 29.3 22 30 1Z' fill='%23f5f9ff'/%3E%3Cpath d='M30 14C30.5 26.5 31.2 28.8 46 30C31.2 31.2 30.5 33.5 30 46C29.5 33.5 28.8 31.2 14 30C28.8 28.8 29.5 26.5 30 14Z' fill='%23f5f9ff' transform='rotate(45 30 30)' opacity='.75'/%3E%3Ccircle cx='30' cy='30' r='2.4' fill='%23fff'/%3E%3C/svg%3E"); }

.hh-over { position: absolute; inset: 0; z-index: 3; display: flex; align-items: flex-end; pointer-events: none; padding-bottom: clamp(28px, 4.2vh, 56px); }
.hh-card {
  pointer-events: auto;
  display: inline-block; max-width: 660px;
  padding: 26px 30px 28px;
  background: rgba(250,250,247,.84);
  -webkit-backdrop-filter: blur(12px) saturate(1.1); backdrop-filter: blur(12px) saturate(1.1);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(25,40,30,.18), 0 1px 0 rgba(255,255,255,.6) inset;
}
.hh-card h1 {
  margin: 0 0 20px; padding: 0;
  font: 600 clamp(28px, 1.2rem + 1.15vw, 40px)/1.18 "Poppins", sans-serif !important;
  color: var(--cc-sage-dd); text-align: left; text-wrap: balance;
}
.hh-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.hh-pause {
  width: 50px; height: 50px; margin-left: auto; padding: 0; border: 0; background: none;
  color: var(--cc-sage-dd); cursor: pointer; border-radius: 50%;
  -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none;
}
.hh-pause svg { display: block; width: 100%; height: 100%; overflow: visible; }
.hh-pause .hh-ring-bg { fill: rgba(255,255,255,.75); stroke: rgba(62,90,72,.22); stroke-width: 3; }
.hh-pause .hh-ring { fill: none; stroke: var(--cc-sage-d); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 100; stroke-dashoffset: 100; transform: rotate(-90deg); transform-origin: 22px 22px; }
.hh-pause g, .hh-pause path { fill: currentColor; }
.hh-pause .hh-i-play { display: none; }
.hh-pause[aria-pressed="true"] .hh-i-play { display: block; }
.hh-pause[aria-pressed="true"] .hh-i-pause { display: none; }
.hh-pause:hover .hh-ring-bg { fill: #fff; }
.hh-pause:focus-visible { outline: 3px solid var(--cc-sage-dd); outline-offset: 2px; }

/* ---------- Shared section bits ---------- */
.hm { text-wrap: pretty; }
.hm section { padding: clamp(52px, 5.2vw, 88px) 0; }
.hm h2 {
  margin: 0 0 14px; font: 600 clamp(30px, 1.3rem + 1vw, 42px)/1.2 "Poppins", sans-serif;
  color: var(--cc-sage-d); text-align: center; text-wrap: balance;
}
.hm-sub { margin: 0 auto 36px; max-width: 900px; font-size: 21px; line-height: 1.5; color: var(--cc-ink-soft); text-align: center; }

/* ---------- Welcome ---------- */
.hm-intro { background: rgba(246,242,234,.72); }
.hm-intro-grid { display: grid; grid-template-columns: minmax(0, 1fr) clamp(380px, 34%, 470px); gap: clamp(36px, 4vw, 72px); align-items: start; }
.hm-intro-text h2 { text-align: left; }
.hm-leaf { display: block; width: 150px; height: auto; margin: 4px 0 22px; }
.hm-intro-text p { margin: 0 0 1.1em; font-size: 20px; line-height: 1.65; color: var(--cc-ink); }
.hm-intro-cta { padding-top: 10px; }

/* three snapshots, pinned up like prints */
.hm-snaps { position: relative; aspect-ratio: 470 / 640; margin-top: 8px; }
.snap {
  position: absolute; margin: 0; padding: 10px 10px 34px;
  background: #FFFEFB; border-radius: 3px;
  box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 10px 26px rgba(40,50,35,.18);
  transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s ease;
}
.snap img { display: block; width: 100%; height: auto; }
.snap-1 { width: 58%; left: 0; top: 0; rotate: -3deg; z-index: 1; }
.snap-2 { width: 62%; right: 0; top: 30%; rotate: 2.5deg; z-index: 2; }
.snap-3 { width: 70%; left: 6%; bottom: 0; rotate: -1.5deg; z-index: 3; }
.snap:hover { transform: translateY(-4px) scale(1.015); box-shadow: 0 2px 4px rgba(0,0,0,.12), 0 16px 34px rgba(40,50,35,.22); }

.hm-facts {
  list-style: none; margin: clamp(36px, 4vw, 60px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px;
}
.hm-facts li {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 128px; padding: 18px 14px; text-align: center;
  background: var(--cc-paper); border: 1px solid rgba(95,127,107,.25); border-radius: 14px;
  box-shadow: 0 6px 18px rgba(40,60,45,.06);
}
.hm-facts strong { font: 600 clamp(30px, 1.2rem + 1vw, 40px)/1.05 "Poppins", sans-serif; color: var(--cc-sage-d); white-space: nowrap; }
.hm-facts span { font-size: 18px; line-height: 1.3; color: var(--cc-ink-soft); }

/* ---------- Stay With Us ---------- */
.hm-stay { background: rgba(228,238,231,.55); }
.stay-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
  grid-auto-rows: auto; grid-template-rows: auto auto 1fr auto;
}
.stay-card {
  grid-row: span 4; display: grid; grid-template-rows: subgrid; row-gap: 0;
  background: var(--cc-paper); border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(95,127,107,.18);
  box-shadow: 0 8px 26px rgba(40,60,45,.1);
}
.stay-photo { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #DCE5DA; }
.stay-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.stay-card:hover .stay-photo img { transform: scale(1.04); }
.stay-card h3 { margin: 0; padding: 20px 22px 8px; font: 600 25px/1.2 "Poppins", sans-serif; color: var(--cc-sage-dd); }
.stay-card p { margin: 0; padding: 0 22px 18px; font-size: 18px; line-height: 1.55; color: var(--cc-ink-soft); }
.stay-card .cc-btn { margin: 0 22px 24px; align-self: end; }

/* ---------- Around the Grounds ---------- */
.g-grid {
  margin-top: 30px;
  display: grid; gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(3, clamp(170px, 14vw, 250px));
  grid-template-areas:
    "big big tall a"
    "big big tall b"
    "c   d   e    f";
}
.g-tile {
  position: relative; display: block; overflow: hidden; border-radius: 12px;
  background: #DCE5DA; box-shadow: 0 6px 18px rgba(40,60,45,.12);
  cursor: zoom-in; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
}
.g-tile img { display: block; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none;
  transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.g-tile:hover img { transform: scale(1.04); }
.g-tile:focus-visible { outline: 3px solid var(--cc-sage-dd); outline-offset: 3px; }
.g-cap {
  position: absolute; left: 10px; bottom: 10px;
  padding: 6px 12px; border-radius: 999px;
  font: 600 16px/1.2 "Poppins", sans-serif; color: var(--cc-sage-dd);
  background: rgba(250,250,247,.88); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.t-big { grid-area: big; } .t-tall { grid-area: tall; } .t-a { grid-area: a; } .t-b { grid-area: b; }
.t-c { grid-area: c; } .t-d { grid-area: d; } .t-e { grid-area: e; } .t-f { grid-area: f; }
.t-big .g-cap { left: 16px; bottom: 16px; font-size: 18px; }
.g-all { margin: 30px 0 0; text-align: center; }

/* GLightbox on light frosted glass, page showing through */
.glightbox-container .goverlay { background: rgba(246,242,234,.72) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.1); backdrop-filter: blur(14px) saturate(1.1); }
.glightbox-container, .glightbox-container button { -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.glightbox-container img { -webkit-user-drag: none; }
.glightbox-container .gslide-description { background: transparent !important; }
.glightbox-container .gslide-title { -webkit-user-select: text; user-select: text;
  font: 600 20px/1.3 "Poppins", sans-serif !important; color: var(--cc-sage-dd) !important; margin: 0 !important; text-align: center; }
.glightbox-container .gdesc-inner { padding: 12px 10px 0 !important; }
.glightbox-clean .gnext, .glightbox-clean .gprev, .glightbox-clean .gclose { background: rgba(62,90,72,.85) !important; border-radius: 50%; }
.glightbox-clean .gnext, .glightbox-clean .gprev { width: 48px !important; height: 48px !important; }
.glightbox-clean .gclose { width: 40px !important; height: 40px !important; }
.glightbox-clean .gslide-media { box-shadow: 0 14px 50px rgba(30,45,35,.28) !important; }

/* ---------- Reveal on scroll (classes added by home.js only) ---------- */
.rv-ready .rv.rv-wait { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--rv-d, 0ms); }
.rv-ready .rv.rv-wait.rv-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv-ready .rv.rv-wait { transform: none !important; transition: opacity .4s ease; }
  .hh-photo img { transform: none; }
}

/* ---------- Narrower screens ---------- */
@media (max-width: 1199px) {
  .stay-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; }
  .hm-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
  /* the card sits under the photos, on the page */
  .hh-over { position: static; display: block; padding: 0; pointer-events: auto; }
  .hh-card { display: block; max-width: none; margin: -34px 0 0; position: relative; z-index: 3;
    background: var(--cc-paper); -webkit-backdrop-filter: none; backdrop-filter: none;
    border: 1px solid rgba(95,127,107,.2); padding: 24px 22px 24px; }
  .hm-intro-grid { grid-template-columns: 1fr; }
  .hm-snaps { width: min(100%, 520px); margin: 10px auto 0; }
  .g-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: clamp(150px, 30vw, 260px);
    grid-template-areas: "big big" "big big" "tall a" "tall b" "c d" "e f"; }
}
@media (max-width: 599px) {
  .hh-arrow { width: 44px; height: 44px; margin-top: -22px; }
  .hh-arrow svg { width: 22px; height: 22px; }
  .hm-intro-text p { font-size: 19px; }
  .hm-sub { font-size: 19px; }
  .hh-card { margin-top: -26px; padding: 20px 18px 22px; border-radius: 14px; }
  .hh-card h1 { font-size: 27px !important; margin-bottom: 16px; }
  .hh-actions { gap: 10px; }
  .hh-actions .cc-btn { flex: 1 1 auto; padding: 0 16px; font-size: 17px; }
  .hm-facts { gap: 12px; }
  .hm-facts li { min-height: 110px; padding: 14px 8px; }
  .hm-facts span { font-size: 17px; }
  /* cards become a row to swipe */
  .stay-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px;
    margin: 0 -16px; padding: 4px 16px 18px; scroll-padding: 0 16px; }
  .stay-card { flex: 0 0 82%; scroll-snap-align: start; grid-template-rows: auto auto 1fr auto; }
  .g-cap { font-size: 15px; left: 8px; bottom: 8px; padding: 5px 10px; }
}
