/* Align Massage Therapy — Prototype D: Personal layout, Earth palette
   Light geometric sans headings over a humanist sans body, earth-tone palette with
   olive for detail and a warm gold for calls to action.
   Home hero uses a full-image overlay (text on top of the image) rather than a side-by-side grid. */

:root {
  --bg: #F3EFE7;
  --bg-alt: #FFFFFF;
  --text: #2E2A24;
  --text-muted: #6B6459;
  --accent: #6B7A4F;
  --accent-dark: #5C6B41;
  --accent-text: #FFFFFF;
  /* Warm gold for calls to action. White text can't reach WCAG AA on a true gold,
     so CTA labels use the dark text colour (5.5:1, hover 4.6:1). */
  --cta: #BC9B6A;
  --cta-dark: #B08D5B;
  --cta-text: var(--text);
  --border: #DCD4C4;

  --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-width: 1100px;
  --radius: 2px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 1rem;
}

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

a {
  color: inherit;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.6em;
}

h1 { font-size: 2.1rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }

p {
  margin: 0 0 1.25em;
}

@media (min-width: 900px) {
  h1 { font-size: 3.25rem; }
  h2 { font-size: 2.25rem; }
  h3 { font-size: 1.4rem; }
}

.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 0.5rem;
  background: var(--accent);
  color: var(--accent-text);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  z-index: 1000;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 0.5rem;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-dark);
  outline-offset: 2px;
}

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--text);
}

.wordmark .logo-mark {
  width: 72px;
  height: 38px;
  flex-shrink: 0;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
}

.hamburger-icon,
.hamburger-icon::before,
.hamburger-icon::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hamburger-icon {
  position: relative;
}

.hamburger-icon::before,
.hamburger-icon::after {
  content: '';
  position: absolute;
  left: 0;
}

.hamburger-icon::before { top: -6px; }
.hamburger-icon::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .hamburger-icon {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger-icon::before {
  transform: rotate(45deg);
  top: 0;
}

.nav-toggle[aria-expanded="true"] .hamburger-icon::after {
  transform: rotate(-45deg);
  top: 0;
}

.primary-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.primary-nav.is-open {
  max-height: 400px;
}

.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.primary-nav a {
  display: flex;
  align-items: center;
  padding: 0.75rem 0.5rem;
  min-height: 44px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border-bottom: 1px solid transparent;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  border-bottom-color: var(--accent);
  color: var(--accent-dark);
}

.primary-nav a.nav-cta {
  border: 1px solid var(--cta);
  background: var(--cta);
  color: var(--cta-text);
  justify-content: center;
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}

.primary-nav a.nav-cta:hover {
  background: var(--cta-dark);
  border-color: var(--cta-dark);
  color: var(--cta-text);
}

@media (min-width: 900px) {
  .wordmark,
  .primary-nav a {
    white-space: nowrap;
  }

  .nav-toggle {
    display: none;
  }

  .primary-nav {
    position: static;
    max-height: none;
    overflow: visible;
    border-bottom: none;
  }

  .primary-nav ul {
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: 1.75rem;
  }

  .primary-nav a.nav-cta {
    margin-top: 0;
    padding: 0.6rem 1.25rem;
  }
}

/* Full-size wordmark only once the desktop nav has room beside it. */
@media (min-width: 1100px) {
  .wordmark {
    font-size: 1.35rem;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.85rem 1.75rem;
  background: transparent;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid var(--text);
  border-radius: var(--radius);
  cursor: pointer;
}

.btn:hover {
  background: var(--text);
  color: var(--bg);
}

.btn-solid {
  background: var(--cta);
  color: var(--cta-text);
  border-color: var(--cta);
}

.btn-solid:hover {
  background: var(--cta-dark);
  border-color: var(--cta-dark);
  color: var(--cta-text);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* Hero — full-image overlay, text rendered on top of the image */
.hero {
  position: relative;
  color: #fff;
  /* Height tracks viewport width so the hero never becomes an ultra-wide
     letterbox that over-zooms the photo; floor keeps it tall on mobile. */
  min-height: clamp(420px, 42vw, 620px);
  display: flex;
  align-items: flex-end;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Portrait phone photo in a wide hero: bias the crop down to the hands-on-back action. */
  object-position: center 30%;
  z-index: -2;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(46, 42, 36, 0.12) 0%, rgba(46, 42, 36, 0.88) 100%);
  z-index: -1;
}

.hero-content {
  padding: 3rem 1.25rem 3.5rem;
  max-width: var(--max-width);
  margin-inline: auto;
  width: 100%;
}

.hero-content .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  opacity: 0.85;
  margin-bottom: 0.75rem;
  display: block;
}

.hero-content h1 {
  color: #fff;
  max-width: 22ch;
}

.hero-content p.tagline {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.1rem;
  max-width: 46ch;
}

.hero-content .btn:not(.btn-solid) {
  color: #fff;
  border-color: #fff;
}

.hero-content .btn:not(.btn-solid):hover {
  background: #fff;
  color: var(--text);
}

/* Page hero */
.page-hero {
  padding-block: 3rem 2rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.page-hero p.lede {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 60ch;
}

/* Sections */
section {
  padding: 3rem 0;
}

@media (min-width: 900px) {
  section {
    padding: 4.5rem 0;
  }
}

.section-alt {
  background: var(--bg-alt);
}

/* Olive rather than charcoal so the band doesn't merge into the footer below it. */
.section-accent {
  background: var(--accent-dark);
  color: #fff;
  text-align: center;
}

.section-accent h2 {
  color: #fff;
}

.section-accent .btn-group {
  justify-content: center;
}

/* Split — full-bleed photo on one half, copy on the other; stacks on mobile. */
.split {
  display: grid;
  padding: 0;
  background: var(--bg-alt);
}

.split-media img {
  width: 100%;
  height: 100%;
  max-height: 480px;
  object-fit: cover;
}

.split-body {
  padding: 3rem 1.25rem;
  max-width: 68ch;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }

  .split-media img {
    max-height: none;
  }

  .split-body {
    padding: 4.5rem 3rem;
    align-self: center;
  }
}

.card-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 800px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--bg-alt);
  border-radius: 6px;
  padding: 2rem 1.75rem;
}

.card h3 {
  color: var(--accent-dark);
}

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

/* "Hello, I'm Cathy" — portrait beside a short intro. Square rather than round:
   the only photo of Cathy has her head at the top edge, so a circle clips her face. */
.intro-me {
  display: grid;
  gap: 2rem;
  justify-items: start;
}

.intro-me .portrait {
  width: 220px;
  aspect-ratio: 1;
  border-radius: 6px;
  object-fit: cover;
  object-position: top;
}

@media (min-width: 700px) {
  .intro-me {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 3.5rem;
    max-width: 900px;
  }

  .intro-me .portrait {
    width: 280px;
  }
}

.prose {
  max-width: 68ch;
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin-top: 2rem;
}

@media (min-width: 600px) {
  .benefits-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.benefit-card {
  border-top: 2px solid var(--accent);
  padding-top: 1rem;
}

.treatment-block {
  display: grid;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.treatment-block:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 2rem;
}

@media (min-width: 700px) {
  .treatment-block {
    grid-template-columns: 0.85fr 1.45fr;
    align-items: center;
  }
}

/* About Me — portrait of Cathy alongside her bio; same photo framing as the
   treatment blocks so both pages crop phone photos identically. */
.about-intro {
  display: grid;
  gap: 2rem;
}

@media (min-width: 700px) {
  .about-intro {
    grid-template-columns: 0.85fr 1.45fr;
    align-items: center;
  }
}

.treatment-media img,
.about-media img {
  border-radius: var(--radius);
  /* Source photos are portrait phone shots; crop to a consistent frame so a
     treatment block never towers over its own copy. */
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.credential-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  font-size: 1.05rem;
}

.credential-list li {
  padding-left: 1.5rem;
  position: relative;
}

.credential-list li::before {
  content: '\2014';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.contact-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-top: 1.5rem;
  background: var(--bg-alt);
}

.contact-card a.contact-link {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--accent-dark);
  display: inline-block;
  margin-bottom: 0.5rem;
}

.placeholder-note {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-style: italic;
}

/* Footer */
.site-footer {
  background: var(--text);
  color: #EEEBE2;
  padding: 2.5rem 0;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.site-footer a {
  color: #fff;
  text-decoration: underline;
}

.site-footer p {
  margin: 0;
}

.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;
}
