/* Deep Structure Ltd — calm, simple, readable */

:root {
  --bg: #f7f5f0;
  --bg-tint: #eeebe3;
  --surface: #ffffff;
  --text: #2b2f2c;
  --muted: #5d655f;
  --accent: #3f5a4c;        /* deep sage */
  --accent-soft: #dfe7e0;
  --line: #ddd8cc;
  --radius: 10px;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

/* Stop long URLs / words from stretching grid columns on small screens */
.hero-grid > *, .about-grid > *, .contact-grid > *, .cards > * { min-width: 0; }
a, dd, li { overflow-wrap: anywhere; }

a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.25;
  color: var(--text);
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.45rem; margin-top: 2.2em; }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.1em; }

.wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 760px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(247, 245, 240, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 64px;
}
.brand {
  font-family: var(--serif); font-size: 1.3rem;
  color: var(--text); text-decoration: none; letter-spacing: 0.01em;
}
.site-header nav { display: flex; gap: 28px; }
.site-header nav a {
  color: var(--muted); text-decoration: none; font-size: 1rem;
}
.site-header nav a:hover { color: var(--accent); }

/* Hero */
.hero { padding: 72px 0 64px; }
.hero-grid {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: 56px; align-items: center;
}
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 0.8rem; font-weight: 600; color: var(--accent);
  margin-bottom: 1.2em;
}
.hero h1 { margin-bottom: 0.1em; }
.role { font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 1.25rem; }
.lead { font-size: 1.22rem; color: var(--text); }
.hero-image img { border-radius: var(--radius); }
.hero-image { margin: 0; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 1rem; border: 1px solid var(--accent);
  transition: background 0.2s, color 0.2s;
}
.btn:hover { background: #324a3e; }
.btn-quiet { background: transparent; color: var(--accent); }
.btn-quiet:hover { background: var(--accent-soft); }

/* Therapy-for band */
.band { background: var(--accent); color: #fff; padding: 32px 0; }
.band .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.small-heading {
  color: #fff; font-size: 1.2rem; margin: 0; font-style: italic;
}
.pills { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }
.pills li {
  border: 1px solid rgba(255,255,255,0.4); border-radius: 999px;
  padding: 6px 16px; font-size: 1rem;
}

/* Sections */
.section { padding: 88px 0; }
.section.tinted { background: var(--bg-tint); }

.service-list { list-style: none; padding: 0; margin: 0 0 1.4em; }
.service-list li {
  padding: 16px 0 16px 28px; border-bottom: 1px solid var(--line);
  position: relative;
}
.service-list li::before {
  content: ""; position: absolute; left: 4px; top: 1.45em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
}
.note { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--accent); }

.sub {
  text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.8rem;
  font-weight: 600; color: var(--muted); margin-top: -0.6em;
}

/* Cards */
.cards {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
  max-width: 900px; margin: 12px auto 8px;
}
.card {
  background: var(--surface); border-radius: var(--radius);
  padding: 26px 28px; border: 1px solid var(--line);
}
.card h4 { color: var(--accent); }
.card ul { margin: 0; padding-left: 1.1em; }
.card li { margin-bottom: 0.4em; font-size: 1.05rem; }
.card li::marker { color: var(--accent); }

.techniques dt { font-family: var(--serif); font-size: 1.15rem; color: var(--accent); margin-top: 1.2em; }
.techniques dd { margin: 0.2em 0 0; }

/* About */
.about-grid {
  display: grid; grid-template-columns: 340px 1fr; gap: 64px; align-items: start;
}
.portrait { margin: 0; position: sticky; top: 96px; }
.portrait img { border-radius: var(--radius); }

/* Contact */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: start;
}
.fees {
  background: var(--surface); border-left: 3px solid var(--accent);
  padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0;
}
.details {
  display: grid; grid-template-columns: max-content 1fr; gap: 12px 24px; margin: 28px 0 0;
}
.details dt {
  text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.78rem;
  font-weight: 600; color: var(--muted); padding-top: 0.35em;
}
.details dd { margin: 0; }
.map iframe {
  width: 100%; height: 420px; border: 0; border-radius: var(--radius);
  background: var(--line); display: block;
}
.directions { display: inline-block; margin-top: 12px; font-size: 1rem; }

/* Footer */
.site-footer { padding: 32px 0; font-size: 0.95rem; color: var(--muted); border-top: 1px solid var(--line); }
.site-footer p { margin: 0; }

/* Responsive */
@media (max-width: 880px) {
  .hero { padding: 40px 0 48px; }
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-image { order: -1; }
  .portrait { position: static; max-width: 280px; }
  .section { padding: 64px 0; }
}
@media (max-width: 640px) {
  body { font-size: 1.0625rem; }
  .wrap { padding: 0 16px; }
  .header-inner { flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 16px; min-height: 0; }
  .site-header nav { gap: 20px; overflow-x: auto; }
  .cards { grid-template-columns: 1fr; }
  .map iframe { height: 320px; }
  .details { grid-template-columns: 1fr; gap: 2px; }
  .details dd { margin-bottom: 12px; }
}

/* ---------- Multi-page additions ---------- */

.site-header nav a[aria-current="page"] {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

/* Page title band */
.page-head { padding: 72px 0 8px; }
.page-head h1 { margin-bottom: 0.5em; }
.page-head + .section { padding-top: 40px; }

h2.mt { margin-top: 2em; }

/* Cards on regression page use h3 */
.card h3 { font-size: 1.15rem; margin-top: 0; color: var(--accent); }

/* Light variant of the "therapy for" pills */
.pills-light li { border-color: var(--line); background: var(--surface); color: var(--text); }

/* Home page link cards */
.link-cards {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.link-card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px;
  text-decoration: none; color: var(--text);
  transition: border-color 0.2s, transform 0.2s;
}
.link-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.link-card-title { font-family: var(--serif); font-size: 1.3rem; color: var(--text); }
.link-card-text { color: var(--muted); font-size: 1rem; flex: 1; }
.link-card-more { color: var(--accent); font-weight: 600; font-size: 0.95rem; }

/* Closing call to action on inner pages */
.cta { background: var(--accent-soft); padding: 48px 0; text-align: center; }
.cta p { font-family: var(--serif); font-size: 1.3rem; margin-bottom: 0.8em; }

/* About page heading */
.about-text h1 { font-size: clamp(2rem, 4vw, 2.6rem); }

/* Footer */
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 16px 40px; align-items: start;
}
.footer-grid p { margin: 0 0 4px; }
.footer-brand { font-family: var(--serif); color: var(--text); font-size: 1.1rem; }
.footer-grid a { color: var(--muted); }
.footer-copy { align-self: end; }

@media (max-width: 980px) {
  .link-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  .page-head { padding-top: 48px; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .link-cards { grid-template-columns: 1fr; }
  .site-header nav { gap: 16px; font-size: 0.95rem; }
}

/* Keep the footer at the bottom of short pages */
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
