/* Anna Walsh Psychotherapy: replica of the Squarespace design (Nov 2026). When this file or site.js changes, bump ?v= in the HTML pages (they are cached for a year). */

@font-face { font-family: "Marcellus"; src: url("fonts/marcellus-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "PT Serif"; src: url("fonts/pt-serif-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "PT Serif"; src: url("fonts/pt-serif-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "PT Serif"; src: url("fonts/pt-serif-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "PT Serif"; src: url("fonts/pt-serif-latin-700-italic.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }

:root {
  --bg: #f0f0ee;
  --sage: #aec3b2;
  --ink: #000;
  --muted: #6b6b68;
  --field: #fbfbfa;
  --rule: #cfd0cd;
  --display: "Marcellus", Georgia, serif;
  --body: "PT Serif", Georgia, serif;
  --gutter: 4vw;
  --wrap: min(1214px, calc(100% - 8vw));
  --h-size: clamp(34px, 2.2vw + 15px, 47.1px);
  --p-size: clamp(20px, 0.4vw + 17px, 22.9px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 0.7em; }
p:last-child { margin-bottom: 0; }

.skip { position: absolute; left: -9999px; top: 8px; padding: 10px 16px; background: #000; color: #fff; z-index: 100; text-decoration: none; }
.skip:focus { left: 8px; }

/* Headings: all section titles share one style on the original */
.h { font-family: var(--display); font-weight: 400; font-size: var(--h-size); line-height: 1.11; letter-spacing: -0.02em; margin: 0 0 0.5em; }
.lead, .copy p { font-size: var(--p-size); line-height: 1.5; }

/* ---------- Header ---------- */
.site-header { display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gutter); height: 58px; position: relative; z-index: 20; }
.logo { font-family: var(--display); font-size: 24.6px; letter-spacing: -0.02em; text-decoration: none; line-height: 1.2; padding: 12px 0; margin: -12px 0; }
.nav { display: flex; gap: 30px; }
.nav a { font-size: 16px; text-decoration: none; line-height: 24px; }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.burger { display: none; }
.menu-overlay { display: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; background: #000; color: #fff; font-family: var(--body); font-size: 16px; text-decoration: none; border: 0; border-radius: 15px; padding: 0 35.2px; height: 69px; cursor: pointer; transition: opacity .1s linear; }
@media (hover: hover) { .btn:hover { opacity: .8; } }

/* ---------- Home: hero ---------- */
.hero { padding: 48px 0 50px; }
.hero .grid { width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 45fr 19.2fr 35.8fr; align-items: start; }
.hero .text { grid-column: 1; padding-top: 44px; }
.hero .text .h { max-width: 546px; margin-bottom: 0.25em; }
.hero .text p { max-width: 475px; }
.hero .btn { margin-top: 70px; }
.hero .photo { grid-column: 3; }
.hero .photo img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; object-position: 50% 50%; }

/* ---------- Home: sage band with wave edges ---------- */
.wave { display: block; width: 100%; height: 5vw; min-height: 34px; position: relative; }
.band + .wave { margin-top: -1px; }
.wave:first-child { margin-bottom: -1px; }
.wave path { fill: var(--sage); }
.band { background: var(--sage); color: #fff; }
.band .grid { width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 4.6fr 40.4fr 10fr 40.4fr 4.6fr; padding: 92px 0 50px; }
.band .copy { padding-right: 15px; }
.band .col-a { grid-column: 2; }
.band .col-b { grid-column: 4; }
.band .h { margin-bottom: 0.8em; }

/* ---------- Home: process section ---------- */
.process { padding: 100px 0 110px; }
.process .grid { width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 45fr 19.2fr 35.8fr; align-items: start; }
.process .text { grid-column: 1; }
.process .text .h { margin-bottom: 0.7em; }
.process .text p + .h { margin-top: 0.95em; }
.process .circle { grid-column: 3; margin-top: 88px; }
.process .circle img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }

/* ---------- Contact page ---------- */
.contact { padding: 48px 0 110px; }
.contact .grid { width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 50fr 9.1fr 36.4fr 4.5fr; align-items: start; }
.contact .room { grid-column: 1; }
.contact .room img { width: 100%; aspect-ratio: 607 / 413; object-fit: cover; }
.contact .form-wrap { grid-column: 3; padding-top: 2px; }

.form fieldset { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.form legend { padding: 0; font-size: 16px; margin-bottom: 6px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form .field { margin-bottom: 22px; }
.form fieldset .field { margin-bottom: 0; }
.form label { display: block; font-size: 16px; margin-bottom: 6px; }
.form fieldset label { font-size: 14px; }
.form .req { color: var(--muted); font-size: 14px; margin-left: 8px; }
.form input[type="text"], .form input[type="email"], .form textarea { width: 100%; font: 16px/1.4 var(--body); color: #000; background: var(--field); border: 0; border-radius: 10px; padding: 5px 10px; height: 36px; outline: none; transition: background-color .15s cubic-bezier(.33,1,.68,1); }
.form textarea { height: 100px; resize: vertical; display: block; }
.form input:focus, .form textarea:focus { background: #fff; }
@media (hover: hover) { .form input:hover, .form textarea:hover { background: #fff; } }
.form input:focus-visible, .form textarea:focus-visible { box-shadow: 0 0 0 1px #000; }
.form .hp { position: absolute; left: -9999px; }
.form .status { margin-top: 16px; font-size: 16px; }
.form .status.error { color: #a32d2d; }
.thanks { font-size: 18px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--rule); padding: 105px var(--gutter) 100px; }
.site-footer .grid { display: grid; grid-template-columns: 50.4% 21% 28.6%; align-items: end; font-size: 14.6px; line-height: 1.45; }
.site-footer .ukcp img { width: 156px; }
.site-footer a { text-decoration: none; }
.site-footer .title { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- 404 ---------- */
.notfound { width: var(--wrap); margin: 0 auto; padding: 120px 0 160px; }

/* ---------- Mobile (Squarespace switches layout at 767px) ---------- */
@media (max-width: 767px) {
  :root { --gutter: 6vw; --wrap: calc(100% - 12vw); }
  .site-header { height: 82px; }
  .logo { font-size: 16.5px; }
  .nav { display: none; }
  .burger { display: block; width: 44px; height: 44px; margin-right: -4px; background: none; border: 0; padding: 0; cursor: pointer; position: relative; -webkit-tap-highlight-color: transparent; }
  .burger span { position: absolute; left: 4px; width: 36px; height: 1px; background: #000; transition: transform .25s, top .25s; }
  .burger span:nth-child(1) { top: 17px; }
  .burger span:nth-child(2) { top: 26px; }
  .menu-open .burger span:nth-child(1) { top: 22px; transform: rotate(45deg); width: 28px; left: 8px; }
  .menu-open .burger span:nth-child(2) { top: 22px; transform: rotate(-45deg); width: 28px; left: 8px; }
  .menu-open { overflow: hidden; }
  .menu-overlay { position: fixed; inset: 0; background: var(--bg); z-index: 10; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
  .menu-open .menu-overlay { opacity: 1; visibility: visible; }
  .menu-overlay a { font-size: 34px; text-decoration: none; line-height: 1.3; }

  .hero { padding: 30px 0 64px; }
  .hero .grid, .process .grid, .contact .grid { display: block; }
  .hero .grid { display: flex; flex-direction: column-reverse; }
  .hero .photo { width: 65%; margin: 0 auto 49px; }
  .hero .photo img { aspect-ratio: 2 / 3; }
  .hero .text { padding-top: 0; }
  .hero .btn { margin-top: 28px; height: 70px; }

  .band .grid { display: block; padding: 70px 0 40px; }
  .band .col-b { margin-top: 64px; }

  .process { padding: 80px 0 60px; }
  .process .circle { width: 65%; margin: 0 auto 64px; }
  .process .grid { display: flex; flex-direction: column-reverse; }

  .contact { padding: 30px 0 64px; }
  .contact .room { margin-bottom: 26px; }
  .contact .room img { aspect-ratio: 344 / 264; }

  .site-footer { padding: 55px var(--gutter) 50px; }
  .site-footer .grid { display: block; font-size: 15px; }
  .site-footer .ukcp img { width: 122px; margin-bottom: 44px; }
  .site-footer .col + .col { margin-top: 44px; }
}
.sr-only { font-weight: 400; position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Fade-in on load and scroll, matching the original's 0.4s fade on header items, images and button */
.js :is(.site-header .logo, .site-header .nav a, .site-header .burger, .hero .photo, .hero .cta, .process .circle, .contact .room, .site-footer .ukcp) { opacity: 0; transition: opacity .4s ease; }
.js :is(.site-header .logo, .site-header .nav a, .site-header .burger, .hero .photo, .hero .cta, .process .circle, .contact .room, .site-footer .ukcp).in { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js :is(.site-header .logo, .site-header .nav a, .site-header .burger, .hero .photo, .hero .cta, .process .circle, .contact .room, .site-footer .ukcp) { opacity: 1; transition: none; }
}

/* Touch screens (phones, tablets): footer links tall enough to tap without hitting the neighbour */
@media (max-width: 767px), (pointer: coarse) {
  .site-footer a { display: inline-block; line-height: 26px; }
}
