/* ==========================================================================
   Lakeview Suites & Venue
   One stylesheet. No framework.
   ========================================================================== */

:root {
   /* Palette drawn from the property: lake water, cut grass, the barn's
      black-and-white, and the warm wood inside the house. */
   --ink:        #14262e;
   --ink-soft:   #33505c;
   --muted:      #67808c;
   --ground:     #fcfaf6;
   --ground-alt: #f2ede3;
   --line:       #e3dbcd;
   --accent:     #9b6f38;
   --accent-dark:#7d5827;
   --white:      #ffffff;

   --shadow-sm: 0 1px 2px rgba(20, 38, 46, .06), 0 2px 8px rgba(20, 38, 46, .05);
   --shadow-md: 0 4px 12px rgba(20, 38, 46, .08), 0 12px 32px rgba(20, 38, 46, .08);

   --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
   --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;

   --gutter: clamp(1.25rem, 4vw, 3rem);
   --section-y: clamp(3.5rem, 8vw, 7rem);
   --header-h: 68px;
}

/* --- reset ---------------------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

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

body {
   margin: 0;
   font-family: var(--sans);
   font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
   line-height: 1.65;
   color: var(--ink-soft);
   background: var(--ground);
   -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent-dark); }

h1, h2, h3, h4 {
   font-family: var(--serif);
   color: var(--ink);
   font-weight: 500;
   line-height: 1.12;
   margin: 0 0 .5em;
   letter-spacing: -.005em;
}

h1 { font-size: clamp(2.6rem, 1.6rem + 4.4vw, 5rem); }
h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); }
h3 { font-size: clamp(1.35rem, 1.15rem + .9vw, 1.75rem); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.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;
}

/* --- layout --------------------------------------------------------------- */

.wrap { width: min(1180px, 100% - var(--gutter) * 2); margin-inline: auto; }
.wrap--narrow { width: min(760px, 100% - var(--gutter) * 2); }

section { padding-block: var(--section-y); }

.eyebrow {
   font-family: var(--sans);
   font-size: .75rem;
   font-weight: 600;
   letter-spacing: .16em;
   text-transform: uppercase;
   color: var(--accent);
   margin: 0 0 1rem;
}

.lede { font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); color: var(--ink-soft); }

/* --- buttons -------------------------------------------------------------- */

.btn {
   display: inline-flex;
   align-items: center;
   gap: .5rem;
   padding: .8rem 1.6rem;
   border: 1px solid transparent;
   border-radius: 999px;
   font: 600 .95rem/1 var(--sans);
   text-decoration: none;
   white-space: nowrap;
   flex: none;
   cursor: pointer;
   transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }

.btn--primary { background: var(--accent); color: var(--white); }
.btn--primary:hover { background: var(--accent-dark); }

.btn--outline { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--outline:hover { border-color: var(--ink); background: var(--white); }

.btn--ghost-light { border-color: rgba(255,255,255,.55); color: var(--white); background: rgba(255,255,255,.08); backdrop-filter: blur(4px); }
.btn--ghost-light:hover { background: rgba(255,255,255,.9); color: var(--ink); border-color: transparent; }

/* --- header --------------------------------------------------------------- */

.site-header {
   position: sticky;
   top: 0;
   z-index: 60;
   height: var(--header-h);
   display: flex;
   align-items: center;
   background: var(--ground);
   border-bottom: 1px solid var(--line);
   transition: background-color .25s ease, border-color .25s ease;
}
/* Over a hero image the bar floats transparent until the page scrolls. */
.site-header--over-hero { background: transparent; border-bottom-color: transparent; position: fixed; left: 0; right: 0; }
.site-header--over-hero .brand,
.site-header--over-hero .nav a,
.site-header--over-hero .nav-toggle { color: var(--white); }
.site-header--over-hero .brand { text-shadow: 0 1px 12px rgba(0,0,0,.4); }
.site-header--over-hero.is-stuck {
   background: rgba(252, 250, 246, .93);
   backdrop-filter: blur(10px);
   border-bottom-color: var(--line);
   box-shadow: var(--shadow-sm);
}
.site-header--over-hero.is-stuck .brand,
.site-header--over-hero.is-stuck .nav a,
.site-header--over-hero.is-stuck .nav-toggle { color: var(--ink); text-shadow: none; }

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.brand {
   flex: none;
   font-family: var(--serif);
   font-size: 1.3rem;
   font-weight: 600;
   color: var(--ink);
   text-decoration: none;
   letter-spacing: .01em;
   white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.nav a {
   color: var(--ink);
   text-decoration: none;
   font-size: .925rem;
   font-weight: 500;
   padding: .35rem 0;
   border-bottom: 1.5px solid transparent;
   transition: border-color .18s ease, opacity .18s ease;
}
.nav a:hover { border-bottom-color: currentColor; }
.nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.nav .btn { border-bottom: 0; padding: .65rem 1.3rem; }

.nav-toggle {
   display: none;
   background: none;
   border: 0;
   padding: .5rem;
   margin-block: -.5rem;
   color: var(--ink);
   cursor: pointer;
}
.nav-toggle svg { width: 26px; height: 26px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }

@media (max-width: 860px) {
   .nav-toggle { display: block; }
   .nav {
      position: fixed;
      inset: var(--header-h) 0 auto 0;
      flex-direction: column;
      align-items: stretch;
      gap: 0;
      padding: .5rem var(--gutter) 1.5rem;
      background: var(--ground);
      border-bottom: 1px solid var(--line);
      box-shadow: var(--shadow-md);
      transform: translateY(-8px);
      opacity: 0;
      visibility: hidden;
      transition: opacity .2s ease, transform .2s ease, visibility .2s;
   }
   .nav[data-open="true"] { opacity: 1; visibility: visible; transform: none; }
   .site-header--over-hero .nav a { color: var(--ink); }
   .nav a { color: var(--ink); padding: .85rem 0; border-bottom: 1px solid var(--line); }
   .nav a:last-of-type { border-bottom: 0; }
   .nav .btn { margin-top: .9rem; justify-content: center; }
   .site-header--over-hero .nav .btn { color: var(--white); }
}

/* --- hero ----------------------------------------------------------------- */

.hero {
   position: relative;
   min-height: min(88svh, 780px);
   display: flex;
   align-items: flex-end;
   padding: 0 0 clamp(3rem, 7vw, 5.5rem);
   color: var(--white);
   isolation: isolate;
   overflow: hidden;
}
.hero::after {
   content: "";
   position: absolute;
   inset: 0;
   z-index: -1;
   background: linear-gradient(180deg, rgba(10,22,28,.55) 0%, rgba(10,22,28,.15) 35%, rgba(10,22,28,.78) 100%);
}
.hero-img {
   position: absolute;
   inset: 0;
   z-index: -2;
   width: 100%;
   height: 100%;
   object-fit: cover;
}
.hero h1 { color: var(--white); max-width: 14ch; margin-bottom: .25em; }
.hero p { font-size: clamp(1.1rem, 1rem + .55vw, 1.4rem); max-width: 46ch; color: rgba(255,255,255,.92); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }


/* --- intro + fact strip ---------------------------------------------------- */

.intro { text-align: center; padding-bottom: 0; }
.intro .lede { margin-inline: auto; }

.facts {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
   gap: 1px;
   margin-top: clamp(2.5rem, 5vw, 4rem);
   background: var(--line);
   border: 1px solid var(--line);
   border-radius: 14px;
   overflow: hidden;
}
.fact { background: var(--ground); padding: 1.75rem 1.25rem; text-align: center; }
.fact dt { font-family: var(--serif); font-size: 2.1rem; color: var(--ink); line-height: 1; }
.fact dd { margin: .5rem 0 0; font-size: .875rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; font-weight: 500; }

/* --- alternating feature blocks -------------------------------------------- */

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.feature--alt { background: var(--ground-alt); }
.feature__media { position: relative; }
.feature__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; box-shadow: var(--shadow-md); }
.feature__body { max-width: 34rem; }

@media (max-width: 820px) {
   .feature { grid-template-columns: 1fr; }
   .feature__media { order: -1; }
}

/* The reversed variant only matters once there are two columns to reverse. */
@media (min-width: 821px) {
   .feature--reverse .feature__media { order: 2; }
}

.spec-list { list-style: none; margin: 0 0 1.75rem; padding: 0; display: grid; gap: .6rem; }
.spec-list li { position: relative; padding-left: 1.6rem; }
.spec-list li::before {
   content: "";
   position: absolute;
   left: .1rem; top: .62em;
   width: .45rem; height: .45rem;
   border-radius: 50%;
   background: var(--accent);
}

.feature-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* --- price cards ------------------------------------------------------------ */

.prices { display: grid; gap: 1rem; margin: 0 0 1.75rem; }
.price {
   display: flex;
   align-items: baseline;
   justify-content: space-between;
   gap: 1rem;
   padding: 1rem 1.25rem;
   background: var(--white);
   border: 1px solid var(--line);
   border-radius: 12px;
}
.feature--alt .price { background: var(--ground); }
.price__label { font-weight: 600; color: var(--ink); }
.price__meta { display: block; font-weight: 400; font-size: .875rem; color: var(--muted); }
.price__amount { font-family: var(--serif); font-size: 1.65rem; color: var(--ink); white-space: nowrap; }

.note {
   font-size: .9rem;
   color: var(--muted);
   padding: .9rem 1.1rem;
   border-left: 3px solid var(--accent);
   background: rgba(155, 111, 56, .06);
   border-radius: 0 8px 8px 0;
}

/* --- grounds band ----------------------------------------------------------- */

.band { position: relative; color: var(--white); isolation: isolate; text-align: center; }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(14, 30, 38, .62); }
.band img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.band h2 { color: var(--white); }
.band p { color: rgba(255,255,255,.9); }
.band .wrap--narrow { padding-block: clamp(1rem, 4vw, 3rem); }

/* --- details / rates -------------------------------------------------------- */

.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); margin-top: 2.5rem; }
.detail-card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 1.75rem; box-shadow: var(--shadow-sm); }
.detail-card h3 { font-size: 1.3rem; }
.detail-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; font-size: .95rem; }
.detail-card li { display: flex; justify-content: space-between; gap: 1rem; }
.detail-card li span:last-child { color: var(--ink); font-weight: 600; text-align: right; }

/* --- gallery teaser --------------------------------------------------------- */

.teaser-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
   gap: .75rem;
   margin-bottom: 2rem;
}
.teaser-grid a { display: block; border-radius: 10px; overflow: hidden; }
.teaser-grid img {
   width: 100%; height: 100%; aspect-ratio: 1;
   object-fit: cover;
   transition: transform .4s ease, filter .3s ease;
}
.teaser-grid a:hover img { transform: scale(1.05); filter: brightness(1.05); }

/* --- footer ----------------------------------------------------------------- */

.site-footer { background: var(--ink); color: rgba(255,255,255,.8); padding-block: clamp(3rem, 6vw, 4.5rem); }
.site-footer h2 { color: var(--white); font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2.5rem; align-items: start; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.contact-list a {
   display: flex;
   align-items: center;
   gap: .8rem;
   color: var(--white);
   text-decoration: none;
   font-size: 1.02rem;
   transition: color .18s ease;
}
.contact-list a:hover { color: #e6c48f; }
.contact-list svg { width: 20px; height: 20px; flex: none; opacity: .7; }
.contact-list a:hover svg { opacity: 1; }

.footer-bottom {
   margin-top: 3rem;
   padding-top: 1.5rem;
   border-top: 1px solid rgba(255,255,255,.15);
   display: flex;
   flex-wrap: wrap;
   gap: 1rem;
   justify-content: space-between;
   font-size: .85rem;
   color: rgba(255,255,255,.55);
}
.footer-bottom a { color: rgba(255,255,255,.75); }

/* --- page header (interior pages) -------------------------------------------- */

.page-head { padding-block: clamp(3rem, 6vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem); background: var(--ground-alt); border-bottom: 1px solid var(--line); text-align: center; }
.page-head h1 { font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem); }
.page-head p { max-width: 52ch; margin-inline: auto; color: var(--muted); }

/* --- gallery ------------------------------------------------------------------ */

.filters {
   display: flex;
   flex-wrap: wrap;
   justify-content: center;
   gap: .5rem;
   position: sticky;
   top: var(--header-h);
   z-index: 40;
   padding: 1rem 0;
   margin-bottom: 1.5rem;
   background: linear-gradient(var(--ground) 78%, transparent);
}
.filter {
   padding: .5rem 1.1rem;
   border: 1px solid var(--line);
   border-radius: 999px;
   background: var(--white);
   color: var(--ink-soft);
   font: 500 .9rem/1 var(--sans);
   cursor: pointer;
   transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.filter .count { opacity: .55; margin-left: .35rem; font-variant-numeric: tabular-nums; }

.photo-grid { columns: 4 260px; column-gap: .85rem; padding-bottom: var(--section-y); }


.photo {
   break-inside: avoid;
   margin: 0 0 .85rem;
   position: relative;
   border-radius: 10px;
   overflow: hidden;
   background: var(--ground-alt);
   cursor: zoom-in;
   display: block;
   width: 100%;
   padding: 0;
   border: 0;
   appearance: none;
   text-align: left;
}
.photo img { width: 100%; height: auto; transition: transform .45s ease; }
.photo:hover img { transform: scale(1.04); }
.photo .caption {
   display: block;
   position: absolute;
   inset: auto 0 0 0;
   padding: 2.5rem .9rem .8rem;
   background: linear-gradient(transparent, rgba(10,22,28,.8));
   color: var(--white);
   font-size: .875rem;
   line-height: 1.35;
   opacity: 0;
   transform: translateY(6px);
   transition: opacity .25s ease, transform .25s ease;
}
.photo:hover .caption, .photo:focus-visible .caption { opacity: 1; transform: none; }
.photo[hidden] { display: none; }

/* Without hover there is no way to reveal a caption, so always show it. */
@media (hover: none) {
   .photo .caption { opacity: 1; transform: none; }
}
/* A phone is too narrow for a 260px column, and one photo per row defeats the
   point of the grid -- force two, and drop the captions at that size since a
   tile that small is mostly caption. The lightbox still shows them. */
@media (max-width: 640px) {
   .photo-grid { columns: 2; column-gap: .5rem; }
   .photo { margin-bottom: .5rem; border-radius: 8px; }
   .photo .caption { display: none; }
}

/* --- lightbox ------------------------------------------------------------------ */

.lightbox {
   position: fixed;
   inset: 0;
   z-index: 100;
   display: grid;
   grid-template-rows: auto minmax(0, 1fr) auto;
   background: #0b1418;
   opacity: 0;
   visibility: hidden;
   transition: opacity .22s ease, visibility .22s;
}
.lightbox[data-open="true"] { opacity: 1; visibility: visible; }
body.lightbox-open { overflow: hidden; }

.lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem clamp(1rem, 3vw, 2rem); color: rgba(255,255,255,.75); font-size: .9rem; }
.lightbox__count { font-variant-numeric: tabular-nums; letter-spacing: .08em; }

.lightbox__stage {
   position: relative;
   display: flex;
   align-items: center;
   justify-content: center;
   min-height: 0;
   /* Leave room for the prev/next buttons so they never sit on the photo. */
   padding: 0 clamp(3.5rem, 7vw, 5.5rem);
}
.lightbox__stage img {
   max-width: 100%;
   max-height: 100%;
   width: auto;
   height: auto;
   object-fit: contain;
   border-radius: 4px;
   box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.lightbox__caption { padding: 1rem clamp(1rem, 3vw, 2rem) 1.75rem; text-align: center; color: rgba(255,255,255,.82); font-size: .95rem; min-height: 3.5rem; }

.lb-btn {
   display: grid;
   place-items: center;
   width: 46px; height: 46px;
   border: 1px solid rgba(255,255,255,.22);
   border-radius: 50%;
   background: rgba(255,255,255,.08);
   color: var(--white);
   cursor: pointer;
   transition: background-color .18s ease, border-color .18s ease, opacity .18s ease;
}
.lb-btn:hover { background: rgba(255,255,255,.9); color: var(--ink); border-color: transparent; }
.lb-btn svg { width: 20px; height: 20px; }
.lb-btn[disabled] { opacity: .25; pointer-events: none; }

.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.lightbox__nav--prev { left: clamp(.25rem, 2vw, 1.25rem); }
.lightbox__nav--next { right: clamp(.25rem, 2vw, 1.25rem); }

@media (max-width: 600px) {
   .lightbox__stage { padding-inline: .5rem; }
   .lightbox__nav { top: auto; bottom: -3.25rem; transform: none; }
   .lightbox__caption { padding-bottom: 4.5rem; }
}
