/* Woodland Bay — resident FAQ */
:root {
  --lake-deep: #0c1829;
  --lake-mid: #1a3352;
  --surface: #f6f3ec;
  --surface-elevated: #fffcf7;
  --mist: rgba(246, 243, 236, 0.08);
  --gold: #c9a962;
  --gold-soft: #e8d5a3;
  --teal: #3d7a7a;
  --teal-muted: #5a9590;
  --text: #1c2836;
  --text-soft: #4a5568;
  --border: rgba(201, 169, 98, 0.35);
  --shadow: 0 24px 48px rgba(12, 24, 41, 0.18);
  --radius: 12px;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--lake-deep);
  min-height: 100vh;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 10001;
  padding: 0.6rem 1rem;
  background: var(--surface-elevated);
  color: var(--lake-deep);
  font-weight: 600;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: top 0.2s;
}

.skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

body.gate-open {
  overflow: hidden;
}

/* Access gate (interstitial) */
.gate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(12, 24, 41, 0.92);
}

.gate.is-dismissed {
  display: none;
}

.gate__card {
  width: 100%;
  max-width: 22rem;
  padding: 1.75rem 1.5rem 1.5rem;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.gate__title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lake-mid);
  margin: 0 0 0.5rem;
}

.gate__lead {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  color: var(--text-soft);
  text-align: center;
  line-height: 1.5;
}

.gate__form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.gate__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
}

.gate__input {
  font-family: var(--font-body);
  font-size: 1.35rem;
  letter-spacing: 0.35em;
  text-align: center;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(26, 51, 82, 0.25);
  border-radius: 8px;
  width: 100%;
}

.gate__input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(61, 122, 122, 0.25);
}

.gate__submit {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.7rem 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  color: var(--surface-elevated);
  background: linear-gradient(135deg, var(--lake-mid), var(--lake-deep));
}

.gate__submit:hover {
  filter: brightness(1.08);
}

.gate__submit:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.gate__error {
  margin: 0.85rem 0 0;
  font-size: 0.88rem;
  color: #9b2c2c;
  text-align: center;
}

.gate__error[hidden] {
  display: none;
}

/* Ambient lake backdrop */
.bg-lake {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(90, 149, 144, 0.35), transparent 55%),
    radial-gradient(ellipse 80% 50% at 100% 40%, rgba(201, 169, 98, 0.12), transparent 45%),
    linear-gradient(180deg, var(--lake-mid) 0%, var(--lake-deep) 45%, #070f18 100%);
}

.bg-lake::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-opacity='0.03' d='M0 60h120M60 0v120'/%3E%3C/svg%3E");
  opacity: 0.6;
  pointer-events: none;
}

.wave-accent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: min(35vh, 320px);
  z-index: -1;
  background: linear-gradient(
    to top,
    rgba(61, 122, 122, 0.15) 0%,
    transparent 70%
  );
  pointer-events: none;
  mask-image: linear-gradient(to top, black 20%, transparent);
  -webkit-mask-image: linear-gradient(to top, black 20%, transparent);
}

.site-header {
  margin: 0;
  padding: 0;
}

.header-hero {
  position: relative;
  min-height: clamp(280px, 42vw, 440px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem 1.5rem 3rem;
  background: url("assets/lake-header.jpg") center 35% / cover no-repeat;
}

.header-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(12, 24, 41, 0.35) 0%,
    rgba(12, 24, 41, 0.55) 45%,
    rgba(12, 24, 41, 0.78) 100%
  );
  pointer-events: none;
}

.header-hero__content {
  position: relative;
  z-index: 1;
  max-width: 42rem;
}

.site-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3.25rem, 12vw, 6.5rem);
  color: var(--surface);
  margin: 0 0 0.65rem;
  line-height: 0.98;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow:
    0 2px 24px rgba(0, 0, 0, 0.35),
    0 4px 48px rgba(0, 0, 0, 0.25);
}

.header-hero__contact {
  margin: 0 0 1.1rem;
  font-family: var(--font-body);
  font-size: clamp(0.88rem, 2vw, 1rem);
  font-style: normal;
  font-weight: 500;
  line-height: 1.55;
  color: rgba(246, 243, 236, 0.92);
  text-align: center;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

.header-hero__phone {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  font-weight: 700;
  color: var(--lake-deep);
  text-decoration: none;
  padding: 0.35rem 0.9rem;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.header-hero__phone:hover {
  filter: brightness(1.06);
}

.header-hero__phone:focus-visible {
  outline: 2px solid var(--surface);
  outline-offset: 3px;
}

.site-tagline {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin: 0 0 1.25rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.site-subtitle {
  color: rgba(246, 243, 236, 0.92);
  font-size: 1.05rem;
  max-width: 36em;
  margin: 0 auto;
  font-weight: 400;
  line-height: 1.6;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

main {
  max-width: 52rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* Search */
.search-wrap {
  margin-bottom: 2rem;
}

.search-wrap label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

#faq-search {
  width: 100%;
  padding: 1rem 1.25rem 1rem 3rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-elevated) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%231a3352'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3E%3C/svg%3E") no-repeat 1rem 50% / 1.25rem 1.25rem;
  box-shadow: var(--shadow);
  transition: border-color 0.2s, box-shadow 0.2s;
}

#faq-search:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(61, 122, 122, 0.25), var(--shadow);
}

#faq-search::placeholder {
  color: var(--text-soft);
}

.hint {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(246, 243, 236, 0.55);
  margin-top: 0.65rem;
}

/* FAQ list */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--surface-elevated);
  border: 1px solid rgba(26, 51, 82, 0.08);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(12, 24, 41, 0.08);
  overflow: hidden;
  transition: box-shadow 0.25s ease;
}

.faq-item:hover {
  box-shadow: 0 8px 28px rgba(12, 24, 41, 0.12);
}

.faq-item.is-hidden {
  display: none;
}

.faq-item.is-open {
  border-color: rgba(61, 122, 122, 0.35);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--lake-mid);
  transition: color 0.2s;
}

.faq-trigger:hover {
  color: var(--teal);
}

.faq-trigger:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.faq-num {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--lake-deep);
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  border-radius: 6px;
}

.faq-question-text {
  flex: 1;
}

.faq-icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--teal);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.is-open .faq-icon {
  transform: rotate(180deg);
}

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.is-open .faq-panel {
  grid-template-rows: 1fr;
}

.faq-panel-inner {
  overflow: hidden;
}

.faq-body {
  padding: 0 1.25rem 1.35rem 1.25rem;
  padding-left: calc(1.25rem + 1.75rem + 0.85rem);
  color: var(--text-soft);
  font-size: 0.98rem;
}

@media (max-width: 640px) {
  .faq-body {
    padding-left: 1.25rem;
  }
}

.faq-body p {
  margin: 0 0 0.85rem;
}

.faq-body p:last-child {
  margin-bottom: 0;
}

.faq-body ul {
  margin: 0.5rem 0 0.85rem;
  padding-left: 1.2rem;
}

.faq-body li {
  margin-bottom: 0.35rem;
}

.faq-body strong {
  color: var(--text);
}

.faq-body .cite {
  display: inline;
  font-size: 0.78em;
  font-weight: 600;
  color: var(--teal-muted);
  letter-spacing: 0.015em;
  white-space: normal;
}

.reference-methodology {
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(246, 243, 236, 0.72);
  background: var(--mist);
  border: 1px solid rgba(201, 169, 98, 0.18);
  border-radius: var(--radius);
  padding: 0.9rem 1.05rem;
  margin: 0 0 1.35rem;
}

.reference-methodology strong {
  color: var(--gold-soft);
}

.sources {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(26, 51, 82, 0.1);
  font-size: 0.82rem;
  color: var(--text-soft);
}

.sources span {
  display: block;
  margin-bottom: 0.2rem;
}

.sources a {
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.sources a:hover {
  border-bottom-color: var(--teal);
}

.disclaimer {
  max-width: 52rem;
  margin: 2.5rem auto 0;
  padding: 1.25rem 1.5rem;
  background: var(--mist);
  border: 1px solid rgba(201, 169, 98, 0.2);
  border-radius: var(--radius);
  color: rgba(246, 243, 236, 0.72);
  font-size: 0.88rem;
  line-height: 1.5;
}

.disclaimer strong {
  color: var(--gold-soft);
}

.no-results {
  text-align: center;
  padding: 2rem;
  color: rgba(246, 243, 236, 0.65);
  display: none;
}

.no-results.is-visible {
  display: block;
}

.site-footer {
  text-align: center;
  padding: 2rem 1.5rem 3rem;
  color: rgba(246, 243, 236, 0.45);
  font-size: 0.82rem;
}

.site-footer__line {
  margin: 0 0 0.5rem;
}

.site-footer__meta {
  margin: 0;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.45;
  opacity: 0.9;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .faq-panel,
  .faq-icon {
    transition: none;
  }
}
