/*
  Robert W Stevens / Hydrotherapy static site
  Built for simple Netlify hosting with a Squarespace-managed domain.
*/

:root {
  --bg: #f7f1e6;
  --bg-soft: #ede1cf;
  --surface: rgba(255, 251, 246, 0.84);
  --surface-strong: rgba(255, 251, 246, 0.94);
  --ink: #18313a;
  --ink-soft: #5e7278;
  --line: rgba(24, 49, 58, 0.1);
  --teal: #0f7c82;
  --teal-deep: #123841;
  --gold: #e8ab5a;
  --rust: #d46544;
  --olive: #6c8b5f;
  --shadow: 0 26px 60px rgba(17, 34, 41, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --header-height: 84px;
  --wrap: min(1180px, calc(100% - 28px));
  --display: "Space Grotesk", sans-serif;
  --body: "Raleway", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(232, 171, 90, 0.2), transparent 34%),
    radial-gradient(circle at top right, rgba(15, 124, 130, 0.16), transparent 28%),
    linear-gradient(180deg, #faf6ef 0%, #efe5d6 100%);
  color: var(--ink);
  font-family: var(--body);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(24, 49, 58, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 49, 58, 0.025) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 100%);
  opacity: 0.45;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: var(--wrap);
  margin: 0 auto;
}

.stack-lg > * + * {
  margin-top: 18px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  background: linear-gradient(180deg, rgba(19, 41, 49, 0.7), rgba(19, 41, 49, 0));
}

.site-header-solid {
  background: rgba(19, 41, 49, 0.92);
  box-shadow: 0 10px 26px rgba(17, 34, 41, 0.12);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff8ef;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(232, 171, 90, 0.95), rgba(15, 124, 130, 0.82));
  color: #10242c;
  font-size: 0.95rem;
}

.brand-copy {
  font-size: 1rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  position: relative;
  color: #fff8ef;
  font-weight: 500;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
  background: var(--gold);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 248, 239, 0.22);
  border-radius: 14px;
  background: rgba(255, 248, 239, 0.08);
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}

.menu-toggle span {
  width: 22px;
  height: 1px;
  background: #fff8ef;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-home {
  min-height: 92vh;
}

.hero-project {
  min-height: auto;
  height: clamp(320px, 62vw, 860px);
  background: #d3d7d8;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-project .hero-media img {
  object-fit: contain;
  object-position: center center;
}

.hero-overlay {
  background:
    linear-gradient(180deg, rgba(10, 29, 35, 0.34), rgba(10, 29, 35, 0.72)),
    linear-gradient(135deg, rgba(10, 29, 35, 0.18), rgba(15, 124, 130, 0.2));
}

.hero-project .hero-overlay {
  background: linear-gradient(180deg, rgba(10, 29, 35, 0.1), rgba(10, 29, 35, 0.22));
}

.hero-overlay-warm {
  background:
    linear-gradient(180deg, rgba(14, 25, 31, 0.3), rgba(14, 25, 31, 0.68)),
    linear-gradient(135deg, rgba(212, 101, 68, 0.15), rgba(15, 124, 130, 0.28));
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: calc(var(--header-height) + 54px) 0 72px;
  color: #fff8ef;
}

.project-hero-content {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255, 248, 239, 0.82);
}

.eyebrow-dark {
  color: var(--teal);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  letter-spacing: -0.03em;
}

h1 {
  max-width: 11ch;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.94;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.45rem);
  line-height: 1;
}

h3 {
  font-size: 1.38rem;
  line-height: 1.08;
}

p,
li,
blockquote,
.caption,
.footer-contact a {
  font-size: 1.02rem;
  line-height: 1.68;
}

.hero-text {
  max-width: 62ch;
  margin: 20px 0 0;
  color: rgba(255, 248, 239, 0.88);
}

.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--gold), #f6c786);
  color: #10242c;
  box-shadow: 0 16px 30px rgba(16, 36, 44, 0.18);
}

.button-secondary {
  border: 1px solid rgba(255, 248, 239, 0.28);
  background: rgba(255, 248, 239, 0.08);
  color: #fff8ef;
}

.button-link {
  color: var(--teal);
  padding: 0;
  min-height: 0;
}

.section {
  position: relative;
  padding: 92px 0;
}

.section-dark {
  background: linear-gradient(180deg, rgba(18, 56, 65, 0.96), rgba(18, 56, 65, 0.92));
  color: #fff8ef;
}

.section-head {
  display: grid;
  gap: 16px;
  margin-bottom: 32px;
  max-width: 860px;
}

.panel,
.stat-panel {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.photo-card,
.gantt-card,
.project-preview-copy,
.image-stack,
.feature-card,
.scenario-card,
.gallery-card,
.cta-shell {
  overflow: hidden;
}

.photo-card img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.split-layout,
.preview-shell,
.cta-shell,
.footer-grid {
  display: grid;
  gap: 28px;
}

.split-layout,
.preview-shell,
.footer-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
}

.footer-grid-single {
  grid-template-columns: minmax(0, 1fr);
  text-align: center;
}

.card-grid {
  display: grid;
  gap: 18px;
}

.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.four-up {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card,
.scenario-card,
.project-preview-copy,
.gantt-card {
  padding: 24px;
}

.update-card {
  display: grid;
  align-content: start;
  gap: 16px;
}

.feature-card p,
.scenario-card p,
.project-preview-copy p,
.stat-panel p,
.cta-shell p,
.footer-grid p,
.section-head p {
  margin: 0;
  color: var(--ink-soft);
}

.section-dark .feature-card p,
.section-dark .gantt-card p,
.section-dark .check-item,
.section-dark h2,
.section-dark .eyebrow {
  color: #fff8ef;
}

.detail-list,
.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-list {
  display: grid;
  gap: 10px;
}

.detail-list li {
  position: relative;
  padding-left: 20px;
}

.detail-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

.detail-list.compact li {
  line-height: 1.48;
}

blockquote {
  margin: 6px 0 0;
  padding-left: 18px;
  border-left: 3px solid var(--gold);
  color: var(--ink);
  font-weight: 500;
}

.section-feature-band {
  padding-top: 18px;
}

.section-project-preview {
  padding-top: 18px;
}

.image-stack {
  position: relative;
  min-height: 430px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(18, 56, 65, 0.06), rgba(18, 56, 65, 0.12));
}

.image-large {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  border-radius: 20px;
}

.image-small {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: min(44%, 240px);
  border-radius: 18px;
  border: 6px solid rgba(255, 251, 246, 0.92);
  box-shadow: 0 14px 30px rgba(17, 34, 41, 0.18);
}

.stats-strip {
  padding-top: 30px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.stat-panel {
  padding: 22px;
}

.stat-label {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--teal);
}

.stat-panel h2 {
  font-size: 2.1rem;
  margin-bottom: 10px;
}

.stat-link {
  margin-top: 12px;
}

.scenario-grid {
  align-items: stretch;
}

.scenario-card {
  position: relative;
}

.scenario-card.recommended {
  background: linear-gradient(180deg, rgba(15, 124, 130, 0.1), rgba(255, 251, 246, 0.96));
}

.scenario-card.risk {
  background: linear-gradient(180deg, rgba(212, 101, 68, 0.08), rgba(255, 251, 246, 0.96));
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(15, 124, 130, 0.12);
  color: var(--teal);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tag-soft {
  background: rgba(232, 171, 90, 0.16);
  color: #8d5a16;
}

.tag-risk {
  background: rgba(212, 101, 68, 0.12);
  color: #af482d;
}

.scenario-card h3 {
  margin-top: 16px;
}

.scenario-highlight {
  margin: 12px 0 18px;
  color: var(--ink);
  font-weight: 500;
}

.section-plan {
  padding-top: 18px;
}

.timeline-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.timeline-tab {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(24, 49, 58, 0.12);
  border-radius: 999px;
  background: rgba(255, 251, 246, 0.78);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.timeline-tab:hover,
.timeline-tab:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(15, 124, 130, 0.4);
}

.timeline-tab.is-active {
  background: linear-gradient(135deg, rgba(15, 124, 130, 0.12), rgba(232, 171, 90, 0.16));
  color: var(--teal-deep);
  border-color: rgba(15, 124, 130, 0.28);
}

.timeline-panel {
  padding: 28px;
}

.timeline-panel-head {
  display: grid;
  gap: 20px;
  margin-bottom: 24px;
}

.timeline-intro {
  margin-top: 12px;
  max-width: 64ch;
  color: var(--ink-soft);
}

.timeline-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.summary-chip {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(15, 124, 130, 0.06);
  border: 1px solid rgba(15, 124, 130, 0.08);
}

.summary-chip span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.summary-chip strong {
  font-family: var(--display);
  font-size: 1.32rem;
  letter-spacing: -0.03em;
}

.phase-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.phase-card {
  padding: 0;
  border-radius: 20px;
  background: rgba(255, 251, 246, 0.88);
  border: 1px solid rgba(24, 49, 58, 0.08);
  overflow: hidden;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.phase-card.is-open {
  border-color: rgba(15, 124, 130, 0.26);
  box-shadow: 0 16px 32px rgba(17, 34, 41, 0.08);
}

.phase-card-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.phase-card-toggle:hover,
.phase-card-toggle:focus-visible {
  background: rgba(15, 124, 130, 0.04);
}

.phase-card-toggle-copy {
  display: grid;
  gap: 0;
}

.phase-card-body {
  padding: 0 18px 18px;
  border-top: 1px solid rgba(24, 49, 58, 0.08);
}

.phase-card-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(15, 124, 130, 0.08);
  color: var(--teal-deep);
  font-family: var(--display);
  font-size: 1.45rem;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 160ms ease, background 160ms ease;
}

.phase-card.is-open .phase-card-icon {
  transform: rotate(45deg);
  background: rgba(232, 171, 90, 0.24);
}

.phase-range {
  margin: 0 0 12px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
}

.phase-card h4,
.timeline-watch h4 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 1.05rem;
  line-height: 1.1;
}

.phase-card p {
  margin: 0;
  color: var(--ink-soft);
}

.timeline-watch {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(24, 49, 58, 0.08);
}

.check-list {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.check-item {
  position: relative;
  padding-left: 24px;
  color: rgba(255, 248, 239, 0.88);
}

.check-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
}

.gantt-card img {
  border-radius: 18px;
}

.gantt-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.gantt-button img {
  width: 100%;
}

.caption {
  margin-top: 12px;
}

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

.gallery-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.gallery-count {
  margin: 0;
  color: var(--ink-soft);
  max-width: 62ch;
}

.gallery-jump {
  flex-shrink: 0;
}

.gallery-card {
  margin: 0;
  border-radius: 20px;
  box-shadow: var(--shadow);
  background: rgba(255, 251, 246, 0.94);
  border: 1px solid rgba(24, 49, 58, 0.08);
}

.gallery-button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 20px 20px 0 0;
}

.gallery-card figcaption {
  display: grid;
  gap: 8px;
  padding: 16px 16px 18px;
}

.gallery-card figcaption strong {
  font-family: var(--display);
  font-size: 1rem;
  line-height: 1.08;
}

.gallery-card figcaption span {
  color: var(--ink-soft);
}

.gallery-zoom {
  position: absolute;
  right: 14px;
  bottom: 14px;
  min-height: 34px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(19, 41, 49, 0.8);
  color: #fff8ef;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 16, 18, 0.78);
  backdrop-filter: blur(6px);
}

.lightbox-panel {
  position: relative;
  z-index: 1;
  width: min(1100px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 24px;
  border-radius: 28px;
  background: rgba(255, 251, 246, 0.98);
  box-shadow: 0 30px 80px rgba(10, 16, 18, 0.32);
}

.lightbox-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  margin-left: auto;
  border: 0;
  border-radius: 999px;
  background: rgba(19, 41, 49, 0.08);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  cursor: pointer;
}

.lightbox-image {
  width: 100%;
  margin-top: 18px;
  border-radius: 20px;
  object-fit: contain;
}

.lightbox-meta {
  margin-top: 18px;
}

.lightbox-meta h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.lightbox-copy {
  margin-top: 12px;
  color: var(--ink-soft);
}

.section-archive {
  padding-top: 18px;
}

.archive-page-intro {
  padding-top: calc(var(--header-height) + 44px);
}

.archive-page-head {
  max-width: 960px;
}

.archive-page-title {
  max-width: none;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 0.96;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.archive-card {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: rgba(255, 251, 246, 0.94);
  border: 1px solid rgba(24, 49, 58, 0.08);
}

.archive-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.archive-button img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.archive-card figcaption {
  display: grid;
  gap: 8px;
  padding: 14px 14px 16px;
}

.archive-card figcaption strong {
  font-family: var(--display);
  font-size: 0.96rem;
  line-height: 1.08;
}

.archive-card figcaption span {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.45;
}

.section-cta {
  padding-top: 26px;
}

.cta-shell {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 28px;
  background: linear-gradient(135deg, rgba(255, 251, 246, 0.94), rgba(237, 225, 207, 0.94));
}

.site-footer {
  padding: 36px 0 46px;
  border-top: 1px solid var(--line);
}

.footer-contact {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.footer-contact a {
  font-family: var(--display);
  font-weight: 700;
}

@media (max-width: 1120px) {
  .three-up,
  .four-up,
  .stat-grid,
  .gallery-grid,
  .timeline-summary-grid,
  .archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-layout,
  .preview-shell,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-contact {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 76px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% - 4px);
    right: 14px;
    left: 14px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    border-radius: 20px;
    background: rgba(19, 41, 49, 0.96);
    box-shadow: 0 18px 40px rgba(17, 34, 41, 0.24);
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero {
    min-height: 80vh;
  }

  h1 {
    max-width: none;
  }

  .three-up,
  .four-up,
  .stat-grid,
  .gallery-grid,
  .timeline-summary-grid,
  .phase-grid,
  .archive-grid {
    grid-template-columns: 1fr;
  }

  .cta-shell {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .image-small {
    position: static;
    width: 100%;
    margin-top: 18px;
    border-width: 0;
  }

  .photo-card img {
    min-height: 360px;
  }

  .timeline-panel {
    padding: 22px;
  }

  .lightbox {
    padding: 14px;
  }

  .lightbox-panel {
    padding: 18px;
  }
}
