/* Creekside House K — simple static styles. No frameworks. Mobile-first. */
:root {
  --bg: #f7f4ec;
  --surface: #ffffff;
  --sage: #4f6b55;
  --sage-dark: #3a5240;
  --sage-light: #e3ebe1;
  --creek: #6f9a97;
  --earth: #6b4f2e;
  --clay: #c98a5c;
  --text: #555555;
  --muted: #5f6b64;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(40, 55, 45, .12);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Roboto", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sage-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: normal; line-height: 1.2; color: var(--earth); }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 0 0 1rem; }
h3 { font-size: 1.35rem; margin: 0 0 .75rem; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--sage); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; }

.container { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 720px; }
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; color: var(--creek); font-weight: 600; margin: 0 0 .4rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fefefc;
  border-bottom: 1px solid rgba(79, 107, 85, .12);
}
.nav { width: min(1120px, 100% - 2rem); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .5rem 0; position: relative; }
.nav__brand img { width: 101px; height: auto; }
.nav__toggle {
  display: none; width: 2.5rem; height: 2.5rem; padding: 0; border: 0; border-radius: 8px;
  background: transparent; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav__toggle-bar { display: block; width: 1.25rem; height: 2px; background: var(--earth); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav__links { list-style: none; display: flex; gap: 1.15rem; margin: 0; padding: 0; }
.nav__links a { display: block; padding: .5rem .7rem; text-decoration: none; font-size: .92rem; color: var(--text); border-radius: 8px; white-space: nowrap; }
.nav__links a:hover { background: var(--sage-light); color: var(--sage-dark); }
@media (max-width: 760px) {
  .nav { justify-content: center; min-height: 3.4rem; }
  .nav__brand { position: absolute; left: 50%; transform: translateX(-50%); }
  .nav__brand img { width: 88px; }
  .nav__toggle { display: inline-flex; margin-left: auto; position: relative; z-index: 1; }
  .nav__links {
    display: none; position: absolute; left: 0; right: 0; top: calc(100% + 1px);
    flex-direction: column; gap: 0; padding: .5rem 0 .75rem;
    background: #fefefc; border-bottom: 1px solid rgba(79, 107, 85, .12);
    box-shadow: 0 10px 24px rgba(40, 55, 45, .08);
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: .85rem 1rem; font-size: 1rem; border-radius: 0; text-align: center; }
  .nav__links a:hover { background: var(--sage-light); }
}

/* Hero */
.hero { position: relative; min-height: clamp(360px, 62vh, 640px); display: grid; overflow: hidden; background: var(--bg); }
.hero__img { grid-area: 1 / 1; width: 100%; height: 100%; min-height: clamp(360px, 62vh, 640px); object-fit: cover; object-position: center center; }
.hero__overlay {
  grid-area: 1 / 1; display: grid; place-items: end center; padding: 1.25rem 1.25rem 2.5rem;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 40%, rgba(25, 40, 30, .35));
}
.hero__card {
  background: rgba(255, 255, 255, .92); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.5rem 1.75rem; text-align: center; max-width: 30rem;
}
.hero h1 { margin: 0 0 .35rem; font-size: clamp(1.6rem, 3.5vw, 2.1rem); color: var(--earth); }
.hero__tagline { margin: .25rem 0 1.1rem; font-family: var(--serif); font-size: 1.15rem; color: var(--sage-dark); }
@media (max-width: 760px) {
  .hero__overlay { display: none; }
}
@media (min-width: 800px) {
  .hero__overlay { place-items: center start; padding-left: 6vw; background: linear-gradient(to right, rgba(25,40,30,.3), rgba(0,0,0,0) 55%); }
  .hero__card { padding: 2.25rem 2.5rem; }
}

/* Buttons */
.btn {
  display: inline-block; background: var(--sage); color: #fff; text-decoration: none;
  padding: .75rem 1.4rem; border-radius: 999px; font-weight: 600; border: 2px solid var(--sage);
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--sage-dark); border-color: var(--sage-dark); }
.btn--outline { background: transparent; color: var(--sage-dark); }
.btn--outline:hover { background: var(--sage); color: #fff; }

/* Welcome */
.welcome { text-align: center; }
.features { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.features li { background: var(--sage-light); color: var(--sage-dark); padding: .45rem 1rem; border-radius: 999px; font-size: .92rem; }

/* Gallery */
.gallery-section { background: var(--surface); }
.gallery { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(2, 1fr); grid-auto-flow: dense; }
.gallery__item a { display: block; height: 100%; border-radius: 10px; overflow: hidden; background: var(--sage-light); }
.gallery__item img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s ease; }
.gallery__item a:hover img { transform: scale(1.04); }
.gallery__item--wide { grid-column: span 2; }
.gallery__item--tall { grid-row: span 2; }
.gallery__item--tall img { aspect-ratio: auto; }
.gallery__hint { color: var(--muted); font-size: .9rem; margin: 1rem 0 0; text-align: center; }
@media (min-width: 800px) {
  .gallery { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
}

/* Reservations */
.reservations { background: var(--sage-light); }
.embed-block { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem; margin-top: 1.5rem; }
.embed { width: 100%; min-height: 120px; overflow-x: auto; }
.embed iframe { max-width: 100%; border: 0; }
.embed-note { color: var(--muted); font-size: .88rem; margin: 1rem 0 0; }
@media (min-width: 800px) { .embed-block { padding: 2rem; } }

/* Reservations — two columns on desktop */
@media (min-width: 900px) {
  .reservations .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 1.25rem;
    row-gap: 1rem;
    align-items: start;
  }
  .reservations .eyebrow,
  .reservations #reservations-title,
  .reservations .embed-note {
    grid-column: 1 / -1;
  }
  .reservations .embed-block { margin-top: 0; }
}


/* Location */
.location__grid { display: grid; gap: 2rem; align-items: center; }
address { font-style: normal; font-size: 1.15rem; margin: 0 0 1.5rem; line-height: 1.7; }
.location__photo { margin: 0; }
.location__photo img { border-radius: var(--radius); box-shadow: var(--shadow); max-height: 460px; width: 100%; object-fit: cover; }
@media (min-width: 800px) { .location__grid { grid-template-columns: 1fr 1fr; } }

/* Contact */
.contact { background: var(--surface); text-align: center; }
.contact__list { display: grid; gap: 1rem; margin: 1.5rem 0 0; }
.contact__list div { background: var(--bg); border-radius: 10px; padding: 1rem; }
.contact__list dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--creek); font-weight: 600; }
.contact__list dd { margin: .25rem 0 0; }
.placeholder { color: var(--muted); font-style: italic; }
@media (min-width: 700px) { .contact__list { grid-template-columns: repeat(3, 1fr); } }

/* Footer */
.site-footer { background: var(--sage-dark); color: #e9efe7; padding: 2rem 0; text-align: center; font-size: .9rem; }
.site-footer img { margin: 0 auto .75rem; background: #fff; border-radius: 8px; padding: 4px 8px; width: 100px; }
.site-footer p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}


/* Lightbox gallery */
.lightbox[hidden] { display: none !important; }
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  padding: 3.5rem 3rem 2.5rem;
}
.lightbox__backdrop {
  position: absolute; inset: 0; background: rgba(20, 28, 24, .88);
}
.lightbox__figure {
  position: relative; z-index: 1; margin: 0;
  max-width: min(1100px, 100%); max-height: calc(100vh - 6rem);
  display: grid; gap: .65rem; justify-items: center;
}
.lightbox__img {
  max-width: 100%; max-height: calc(100vh - 8rem);
  width: auto; height: auto; object-fit: contain;
  border-radius: 10px; background: #111; box-shadow: var(--shadow);
}
.lightbox__cap { color: #e8eee9; font-size: .95rem; text-align: center; max-width: 40rem; margin: 0; }
.lightbox__counter { position: absolute; bottom: .85rem; left: 50%; transform: translateX(-50%);
  z-index: 2; color: #d7e0da; font-size: .85rem; margin: 0; }
.lightbox__close, .lightbox__nav {
  position: absolute; z-index: 2; border: 0; cursor: pointer;
  background: rgba(254, 254, 252, .92); color: var(--earth);
  width: 2.6rem; height: 2.6rem; border-radius: 999px;
  font-size: 1.4rem; line-height: 1; display: grid; place-items: center;
}
.lightbox__close { top: .85rem; right: .85rem; font-size: 1.7rem; }
.lightbox__nav--prev { left: .6rem; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: .6rem; top: 50%; transform: translateY(-50%); }
.lightbox__close:hover, .lightbox__nav:hover { background: #fff; }
@media (max-width: 640px) {
  .lightbox { padding: 3rem .5rem 2rem; }
  .lightbox__nav { width: 2.2rem; height: 2.2rem; font-size: 1.15rem; }
}


/* Gallery / lightbox loading states */
.gallery__item a {
  position: relative;
  background: linear-gradient(110deg, #e7ebe4 25%, #f4f6f1 40%, #e7ebe4 55%);
  background-size: 200% 100%;
}
.gallery__item.is-loading a {
  animation: shimmer 1.1s ease-in-out infinite;
}
.gallery__item img {
  opacity: 0;
  transition: opacity .35s ease;
}
.gallery__item.is-ready img { opacity: 1; }
@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.lightbox__figure { position: relative; }
.lightbox__spinner {
  position: absolute; inset: 0; display: grid; place-items: center;
  pointer-events: none; z-index: 1;
}
.lightbox__spinner[hidden] { display: none !important; }
.lightbox__spinner::after {
  content: ""; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.25); border-top-color: #fefefc;
  animation: spin .7s linear infinite;
}
.lightbox__img.is-loading { opacity: .15; }
.lightbox__img { transition: opacity .25s ease; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Explore section + article cards */
.explore { background: var(--bg); }
.explore__intro { max-width: 720px; margin: 0 0 1.5rem; }
.explore__cta { margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: .75rem; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.card a { display: flex; flex-direction: column; height: 100%; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; text-decoration: none; color: var(--text); transition: transform .2s; }
.card a:hover { transform: translateY(-3px); }
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card__body { display: block; padding: 1.1rem 1.25rem 1.35rem; }
.card__title { display: block; font-family: var(--serif); font-size: 1.25rem; color: var(--earth); margin-bottom: .35rem; line-height: 1.25; }
.card__text { display: block; font-size: .95rem; color: var(--muted); }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .cards { grid-template-columns: repeat(3, 1fr); } }

/* Article pages */
.article h1 { font-size: clamp(1.9rem, 4.5vw, 2.7rem); margin: 0 0 1.25rem; }
.article h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin: 2.25rem 0 .75rem; }
.article h3 { font-size: 1.15rem; margin: 1.5rem 0 .5rem; }
.article ul { padding-left: 1.25rem; }
.article li { margin-bottom: .4rem; }
.article strong { color: #444; font-weight: 500; }
.article__lead { font-size: 1.15rem; color: var(--sage-dark); }
.breadcrumb { font-size: .88rem; color: var(--muted); margin: 0 0 1.5rem; }
.breadcrumb a { color: var(--muted); }
.article__cta { background: var(--sage-light); border-radius: var(--radius); padding: 1.5rem 1.75rem; margin: 2.5rem 0 0; }
.article__cta h2 { margin-top: 0; }
.article__related { border-top: 1px solid rgba(79, 107, 85, .2); margin-top: 2.5rem; padding-top: 1rem; }
.article__related ul { padding-left: 1.25rem; }
.site-footer__links { margin-top: .5rem !important; }
.site-footer__links a { color: #e9efe7; }

/* Article photos: same thumbs + lightbox as the homepage gallery */
.gallery--article { margin: 1.5rem 0; grid-template-columns: repeat(2, 1fr); gap: 1rem; padding-left: 0 !important; }
.article .gallery--article li { margin-bottom: 0; }
.gallery--article .gallery__item a { height: auto; }
.gallery--article .gallery__item--wide img { aspect-ratio: 16 / 10; }
.gallery__cap { font-size: .88rem; color: var(--muted); margin: .5rem 0 0; line-height: 1.5; }
.gallery__cap .credit { display: block; font-size: .8rem; }
.gallery__cap a, .gallery__item.is-loading .gallery__cap a { display: inline; height: auto; position: static; background: none; border-radius: 0; overflow: visible; animation: none; color: var(--muted); }
@media (max-width: 479px) { .gallery--article { grid-template-columns: 1fr; } .gallery--article .gallery__item--wide { grid-column: auto; } }
@media (min-width: 800px) { .gallery--article { grid-template-columns: repeat(2, 1fr); } }

/* Article CTA card with house photo */
.article__cta { display: grid; gap: 1.25rem; align-items: center; overflow: hidden; }
.article__cta-img { display: block; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.article__cta-img img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 60%; }
@media (min-width: 680px) {
  .article__cta { grid-template-columns: 1.35fr 1fr; gap: 1.75rem; align-items: stretch; }
  .article__cta-text { align-self: center; }
  .article__cta-img img { aspect-ratio: auto; min-height: 220px; }
}
.lightbox__nav[hidden] { display: none; }
