/* Theme: Neutral slate (neutral) */
:root {
  color-scheme: light dark;
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #161a20;
  --muted: #5b6472;
  --border: #dde1e7;
  --accent: #33445c;
  --accent-contrast: #ffffff;
  --heading-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --body-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --max-width: 68rem;
  --radius: 14px;
  --space: clamp(1rem, 2.5vw, 2rem);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1216;
    --surface: #171b21;
    --text: #eceff3;
    --muted: #a3adbb;
    --border: #252c35;
    --accent: #8fa7c4;
    --accent-contrast: #0d0d0d;
  }
}

[data-theme="dark"] {
  --bg: #0f1216;
  --surface: #171b21;
  --text: #eceff3;
  --muted: #a3adbb;
  --border: #252c35;
  --accent: #8fa7c4;
  --accent-contrast: #0d0d0d;
}

[data-theme="light"] {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #161a20;
  --muted: #5b6472;
  --border: #dde1e7;
  --accent: #33445c;
  --accent-contrast: #ffffff;
}

/* === Global reset & base === */
*, *::before, *::after {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

figure {
  margin: 0;
}

/* === Wrap === */
.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space);
  width: 100%;
  overflow: hidden;
}

/* === Header / navigation === */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5em;
  flex-shrink: 0;
}

.brand-mark {
  display: flex;
}

.logo-mark {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--accent);
}

.brand-name {
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
  white-space: nowrap;
}

nav {
  flex: 1 1 auto;
  min-width: 0;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
}

.nav-list a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
}

.nav-list a:hover {
  text-decoration: underline;
}

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--text);
  flex-shrink: 0;
}

/* === Skip link === */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--accent);
  color: var(--accent-contrast);
  padding: 0.5rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  top: 0;
}

/* === Hero === */
.hero {
  background: var(--bg);
  padding: 4rem 0;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-copy {
  flex: 1 1 40%;
  min-width: 18rem;
}

.hero-copy h1 {
  font-family: var(--heading-font);
  font-size: 2.5rem;
  margin: 0 0 0.5rem;
  color: var(--text);
  line-height: 1.15;
}

.hero-subtext {
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
  line-height: 1.5;
}

.hero-actions {
  margin: 0;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-contrast);
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
}

.button:hover {
  opacity: 0.85;
}

.hero-figure {
  flex: 1 1 50%;
  min-width: 16rem;
}

.hero-figure img {
  border-radius: var(--radius);
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* === Trust strip === */
.trust-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* === Content sections === */
.content-section {
  padding: 4rem 0;
  background: var(--bg);
}

.content-section:nth-child(even) {
  background: var(--surface);
}

.section-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.section-copy {
  flex: 1 1 45%;
  min-width: 16rem;
}

.section-copy h2 {
  font-family: var(--heading-font);
  font-size: 1.7rem;
  margin: 0 0 1rem;
  color: var(--text);
}

.section-copy p {
  color: var(--text);
  line-height: 1.6;
  margin: 0;
}

.section-figure {
  flex: 1 1 45%;
  min-width: 16rem;
}

.section-figure img {
  border-radius: var(--radius);
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* === Footer === */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  color: var(--text);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 2rem;
}

.site-footer h2 {
  font-family: var(--heading-font);
  font-size: 1.25rem;
  margin: 0 0 0.75rem;
}

.contact-list,
.hours-list,
.social-list,
.source-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li,
.hours-list li,
.social-list li,
.source-list li {
  margin-bottom: 0.35rem;
}

.contact-list a,
.social-list a,
.source-list a {
  color: var(--accent);
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: break-all;
  hyphens: none;
}

.contact-list a:hover,
.social-list a:hover,
.source-list a:hover {
  text-decoration: underline;
}

.note {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.sources {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.sources h2 {
  font-size: 1.1rem;
}

.sources .note {
  margin: 0.5rem 0;
}

/* === Responsive tweaks === */
@media (max-width: 640px) {
  .hero-copy h1 {
    font-size: 1.8rem;
  }

  .hero-inner {
    flex-direction: column;
  }

  .section-inner {
    flex-direction: column;
  }

  .header-inner {
    flex-direction: column;
    align-items: stretch;
  }

  nav {
    width: 100%;
    overflow: hidden;
  }

  .nav-list {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .nav-list::-webkit-scrollbar {
    display: none;
  }

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

/* === Images within wrappers should never overflow === */
.wrap img,
.wrap figure,
.wrap video {
  max-width: 100%;
  height: auto;
}

/* === Ensure all list items with long links wrap properly === */
ul li {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-all;
  min-width: 0;
}

/* === Container for trust-list items to prevent overflow === */
.trust-list li {
  white-space: nowrap;
}

@media (max-width: 640px) {
  .trust-list li {
    white-space: normal;
  }
}

/* === Prevent wide images from causing overflow === */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* === Ensure all body content is constrained === */
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body-font);
  line-height: 1.5;
  overflow-x: hidden;
  width: 100%;
}

/* === Theme toggle hover === */
.theme-toggle:hover {
  background: var(--border);
}

/* === Booking widget placeholder === */
#booking-widget {
  min-height: 1rem;
}