@font-face {
  font-family: "DM Sans";
  font-display: swap;
  font-style: normal;
  font-weight: 400 800;
  src: url("assets/fonts/dm-sans-latin-variable.woff2") format("woff2");
}

@font-face {
  font-family: "Lora";
  font-display: swap;
  font-style: normal;
  font-weight: 400 700;
  src: url("assets/fonts/lora-latin-variable.woff2") format("woff2");
}

:root {
  --green: #382b1e;
  --sage: #edcfb3;
  --beige: #f7ede2;
  --brown: #382b1e;
  --taupe: #988c81;
  --peach: #edcfb3;
  --paper: #f7ede2;
  --white: #f7ede2;
  --line: rgba(56, 43, 30, 0.16);
  --shadow: 0 18px 45px rgba(56, 43, 30, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--brown);
  font-family: "DM Sans", Arial, sans-serif;
  line-height: 1.5;
}

img,
iframe {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(170px, 260px) 1fr auto;
  gap: 1rem;
  align-items: center;
  min-height: 76px;
  padding: 0.75rem 5vw;
  background: rgba(247, 237, 226, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand img {
  width: 250px;
  height: auto;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 1.35rem;
  color: var(--green);
  font-size: 0.95rem;
  font-weight: 700;
}

.site-nav a,
.text-link,
.email-link {
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.28em;
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.78rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.button:hover,
.nav-cta:hover {
  transform: translateY(-1px);
}

.nav-cta,
.button.primary {
  background: var(--peach);
  color: var(--brown);
  border-color: var(--peach);
}

.button.secondary {
  background: rgba(247, 237, 226, 0.16);
  color: var(--white);
  border-color: rgba(247, 237, 226, 0.72);
}

.button.compact {
  min-height: 42px;
  padding-inline: 1rem;
}

.hero {
  position: relative;
  display: flex;
  align-items: end;
  min-height: clamp(460px, 72svh, 720px);
  overflow: hidden;
  isolation: isolate;
  background: var(--green);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("assets/images/tide-trail-cottage-gallery-01.avif") center / cover no-repeat;
  filter: brightness(1.16) contrast(1.1) saturate(1.2);
  transform: scale(1.01);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(38, 35, 28, 0.56), rgba(38, 35, 28, 0.18) 58%, rgba(38, 35, 28, 0.04)),
    linear-gradient(0deg, rgba(38, 35, 28, 0.24), rgba(38, 35, 28, 0));
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1120px, 90vw);
  margin: 0 auto;
  padding: 6rem 0 4rem;
  color: var(--white);
  text-shadow: 0 2px 22px rgba(38, 35, 28, 0.56);
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--sage);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0;
}

.hero h1,
.section-heading h2,
.inquiry-copy h2 {
  margin: 0;
  font-family: "Lora", Georgia, serif;
  line-height: 1.05;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 760px;
  font-size: 4.9rem;
}

.hero-copy {
  max-width: 650px;
  margin: 1.25rem 0 0;
  font-size: 1.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.65rem;
}

.fact-band {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  width: min(1120px, 90vw);
  margin: -2.2rem auto 0;
  position: relative;
  z-index: 2;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.fact {
  min-height: 112px;
  padding: 1.35rem;
  background: var(--white);
}

.fact span,
.info-list span,
.rate-panel span,
.term-grid span {
  display: block;
  color: var(--taupe);
  font-size: 0.88rem;
  font-weight: 800;
}

.fact strong,
.info-list strong,
.term-grid strong {
  display: block;
  margin-top: 0.24rem;
  color: var(--green);
  font-size: 1.35rem;
  line-height: 1.15;
}

.section {
  width: min(1120px, 90vw);
  margin: 0 auto;
  padding: 5.5rem 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.split-heading {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
}

.section-heading h2,
.inquiry-copy h2 {
  color: var(--green);
  font-size: 2.85rem;
}

.video-frame {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: var(--green);
  box-shadow: var(--shadow);
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(52, 74, 50, 0.92), rgba(56, 43, 30, 0.78)),
    url("assets/images/tide-trail-cottage-gallery-02.avif") center / cover no-repeat;
  color: var(--white);
  font-family: "Lora", Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
}

.gallery-count {
  margin: -0.6rem 0 1.2rem;
  color: rgba(56, 43, 30, 0.74);
  font-size: 0.95rem;
  font-weight: 700;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  display: block;
  height: 8rem;
  overflow: hidden;
  border-radius: 6px;
  background: var(--beige);
  cursor: zoom-in;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease, filter 220ms ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.035);
}

.gallery-item:focus-visible {
  outline: 3px solid rgba(237, 207, 179, 0.86);
  outline-offset: 4px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 4.5rem 1rem 1rem;
  background: rgba(0, 0, 0, 0.82);
}

.lightbox-stage {
  position: relative;
  display: grid;
  width: min(92vw, 1180px);
  height: min(72vh, 760px);
  place-items: center;
}

.lightbox-stage img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.45);
  object-fit: contain;
}

.lightbox-close,
.lightbox-arrow {
  border: 1px solid rgba(247, 237, 226, 0.35);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.38);
  color: #fff;
  cursor: pointer;
  font: inherit;
  transition: background 160ms ease, transform 160ms ease;
}

.lightbox-close:hover,
.lightbox-arrow:hover {
  background: rgba(0, 0, 0, 0.58);
  transform: scale(1.04);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 3rem;
  height: 3rem;
  font-size: 1.8rem;
  line-height: 1;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 3.5rem;
  height: 3.5rem;
  place-items: center;
  font-size: 2rem;
  transform: translateY(-50%);
}

.lightbox-arrow:hover {
  transform: translateY(-50%) scale(1.04);
}

.lightbox-prev {
  left: 0.75rem;
}

.lightbox-next {
  right: 0.75rem;
}

.lightbox-thumbs {
  display: flex;
  width: min(92vw, 1180px);
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0 0 0.4rem;
}

.lightbox-thumb {
  flex: 0 0 80px;
  height: 52px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.lightbox-thumb.is-active {
  border-color: var(--peach);
}

.lightbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.lightbox-open {
  overflow: hidden;
}

@media (min-width: 560px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 820px) {
  .gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1120px) {
  .gallery-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 3rem;
  align-items: start;
}

.prose {
  max-width: 700px;
  color: rgba(56, 43, 30, 0.88);
  font-size: 1.08rem;
}

.prose p {
  margin: 0 0 1.15rem;
}

.info-list,
.term-grid,
.amenity-grid {
  display: grid;
  gap: 0.9rem;
}

.info-list div,
.term-grid div,
.amenity-card,
.rate-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.info-list div,
.term-grid div {
  min-height: 88px;
  padding: 1rem;
}

.amenity-grid {
  grid-template-columns: repeat(3, 1fr);
}

.amenity-card {
  min-height: 184px;
  padding: 1.3rem;
}

.amenity-card h3 {
  margin: 0 0 0.65rem;
  color: var(--green);
  font-size: 1.12rem;
}

.amenity-card p {
  margin: 0;
  color: rgba(56, 43, 30, 0.8);
}


.answer-grid,
.faq-list {
  display: grid;
  gap: 0.9rem;
}

.answer-grid {
  grid-template-columns: repeat(4, 1fr);
}

.answer-card,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.answer-card {
  min-height: 188px;
  padding: 1.25rem;
}

.answer-card h3 {
  margin: 0 0 0.65rem;
  color: var(--green);
  font-size: 1.05rem;
}

.answer-card p {
  margin: 0;
  color: rgba(56, 43, 30, 0.82);
}

.faq-list {
  max-width: 860px;
}

.faq-list details {
  padding: 1.05rem 1.2rem;
}

.faq-list summary {
  cursor: pointer;
  color: var(--green);
  font-weight: 800;
}

.faq-list p {
  margin: 0.8rem 0 0;
  color: rgba(56, 43, 30, 0.82);
}

.rates-section {
  width: auto;
  max-width: none;
  padding-inline: max(5vw, calc((100vw - 1120px) / 2));
  background: var(--beige);
}

.rates-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 1rem;
}

.rate-panel {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: center;
  padding: 1.6rem;
}

.rate-panel strong {
  display: block;
  color: var(--green);
  font-family: "Lora", Georgia, serif;
  font-size: 3rem;
  line-height: 1;
  letter-spacing: 0;
}

.rate-panel p {
  margin: 0.8rem 0 0;
}

.term-grid {
  grid-template-columns: 1fr;
}

.policy-section {
  padding-bottom: 4rem;
}

.policy-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.policy-list li {
  min-height: 64px;
  padding: 1rem 1rem 1rem 1.15rem;
  border-left: 5px solid var(--sage);
  border-radius: 8px;
  background: var(--white);
}

.inquiry-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 3rem;
  align-items: start;
  width: auto;
  max-width: none;
  padding-inline: max(5vw, calc((100vw - 1120px) / 2));
  background: var(--green);
  color: var(--white);
}

.inquiry-copy {
  position: sticky;
  top: 112px;
}

.inquiry-copy h2 {
  color: var(--white);
}

.inquiry-copy p {
  color: rgba(247, 237, 226, 0.82);
}

.email-link {
  display: inline-flex;
  margin-top: 0.75rem;
  color: var(--peach);
  font-weight: 800;
}

.inquiry-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.2rem;
  border-radius: 8px;
  background: var(--paper);
  color: var(--brown);
  box-shadow: var(--shadow);
}

.inquiry-form label {
  display: grid;
  gap: 0.42rem;
  min-width: 0;
  font-size: 0.9rem;
  font-weight: 800;
}

.inquiry-form .full {
  grid-column: 1 / -1;
}

.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(56, 43, 30, 0.2);
  border-radius: 8px;
  background: var(--white);
  color: var(--brown);
  font: inherit;
  font-weight: 500;
  padding: 0.82rem 0.9rem;
}

.inquiry-form textarea {
  min-height: 132px;
  resize: vertical;
}

.inquiry-form input:focus,
.inquiry-form select:focus,
.inquiry-form textarea:focus {
  outline: 3px solid rgba(237, 207, 179, 0.86);
  border-color: var(--green);
}

.form-button {
  width: fit-content;
  min-width: 160px;
}

.form-status {
  align-self: center;
  margin: 0;
  color: var(--green);
  font-weight: 800;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 5vw;
  background: var(--brown);
  color: var(--paper);
}

.site-footer img {
  width: 220px;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  background: var(--paper);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--peach);
  font-weight: 800;
}

@media (max-width: 940px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .brand img {
    width: 210px;
  }

  .site-nav {
    grid-column: 1 / -1;
    justify-content: start;
    overflow-x: auto;
    padding-bottom: 0.15rem;
  }

  .hero h1 {
    font-size: 3.55rem;
  }

  .fact-band,
  .answer-grid,
  .amenity-grid,
  .term-grid,
  .policy-list,
  .rates-layout,
  .inquiry-section,
  .two-column {
    grid-template-columns: 1fr 1fr;
  }

  .inquiry-copy {
    position: static;
  }
}

@media (max-width: 680px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    min-height: auto;
    padding: 0.75rem 1rem;
  }

  .brand img {
    width: 190px;
  }

  .nav-cta {
    width: 100%;
  }

  .hero {
    min-height: 460px;
    background-position: center;
  }

  .hero-overlay {
    background: linear-gradient(0deg, rgba(38, 35, 28, 0.62), rgba(38, 35, 28, 0.14));
  }

  .hero-inner {
    width: calc(100% - 2rem);
    padding: 4rem 0 2.2rem;
  }

  .hero h1 {
    font-size: 2.65rem;
  }

  .hero-copy {
    font-size: 1.02rem;
  }

  .hero-actions,
  .split-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .nav-cta {
    width: 100%;
  }

  .fact-band,
  .answer-grid,
  .amenity-grid,
  .term-grid,
  .policy-list,
  .rates-layout,
  .inquiry-section,
  .two-column,
  .inquiry-form {
    grid-template-columns: 1fr;
  }

  .fact-band {
    width: calc(100% - 2rem);
    margin-top: 1rem;
  }

  .fact {
    min-height: 92px;
  }

  .section {
    width: calc(100% - 2rem);
    padding: 4rem 0;
  }

  .section-heading h2,
  .inquiry-copy h2 {
    font-size: 2.1rem;
  }

  .video-placeholder {
    font-size: 1.35rem;
  }

  .rates-section,
  .inquiry-section {
    width: auto;
    padding-inline: 1rem;
  }

  .rate-panel strong {
    font-size: 2.35rem;
  }

  .inquiry-form .full {
    grid-column: auto;
  }
}
