/* Diane Jennings Hypnotherapy. Colours from her logo: slate teal and blush. */
:root {
  --teal: #4c6971;
  --teal-dark: #36515a;
  --blush: #ceafad;
  --blush-soft: #f4ebe9;
  --rose: #9b7175;
  --cream: #fbf8f5;
  --white: #ffffff;
  --ink: #263236;
  --muted: #55646a;
  --line: #e4dcd8;
  --error-bg: #fbeceb;
  --error-ink: #8a2c26;
  --radius: 14px;
  --serif: Georgia, 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: var(--teal-dark); text-underline-offset: 0.15em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); font-weight: normal; line-height: 1.25; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); margin: 0 0 0.5em; }
h2 { font-size: clamp(1.45rem, 3vw, 1.85rem); margin: 1.4em 0 0.5em; }
h2:first-child, h1 + h2 { margin-top: 0; }
h3 { font-size: 1.25rem; margin: 0 0 0.4em; }
p, ul, ol { margin: 0 0 1em; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.lead { font-size: 1.2rem; color: var(--ink); }
.small, .meta { font-size: 0.92rem; color: var(--muted); }

.skip { position: absolute; left: -9999px; top: 0; background: var(--white); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: relative; z-index: 5; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 84px; }
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--muted); padding: 8px 0; }
.brand img { width: 180px; height: auto; }
.brand-sub { font-size: 0.85rem; letter-spacing: 0.02em; margin-top: -2px; }
.nav-wide ul, .nav-menu ul { list-style: none; margin: 0; padding: 0; }
.nav-wide ul { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav-wide a, .nav-menu a {
  display: block; padding: 8px 10px; text-decoration: none; color: var(--ink); border-radius: 8px; font-size: 0.98rem;
}
.nav-wide a:hover, .nav-menu a:hover { background: var(--blush-soft); }
.nav-wide a[aria-current='page'], .nav-menu a[aria-current='page'] { color: var(--teal-dark); box-shadow: inset 0 -2px 0 var(--blush); }

.nav-menu { display: none; }
.nav-menu summary {
  list-style: none; cursor: pointer; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px;
  font-weight: 600; color: var(--teal-dark); background: var(--white);
}
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu[open] summary { background: var(--blush-soft); }
.nav-menu nav {
  position: absolute; left: 0; right: 0; top: 100%; background: var(--white);
  border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(38, 50, 54, 0.08); padding: 8px 16px 16px;
}
.nav-menu a { padding: 12px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
.nav-menu li:last-child a { border-bottom: 0; }

@media (max-width: 1079px) {
  .nav-wide { display: none; }
  .nav-menu { display: block; }
}

/* Buttons */
.button {
  display: inline-block; background: var(--teal); color: var(--white); text-decoration: none; font-weight: 600;
  padding: 12px 22px; border-radius: 999px; border: 2px solid var(--teal); font-size: 1rem; line-height: 1.3;
  cursor: pointer; font-family: var(--sans);
}
.button:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: var(--white); }
.button-quiet { background: transparent; color: var(--teal-dark); }
.button-quiet:hover { background: var(--blush-soft); color: var(--ink); border-color: var(--teal); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5em; }

/* Sections */
.hero { background: var(--white); padding: 40px 0 48px; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.hero-photo img { border-radius: var(--radius); }
.page-head { background: var(--white); padding: 40px 0 32px; border-bottom: 1px solid var(--line); }
.page-head .lead { margin-bottom: 0; }
.band { padding: 48px 0; }
.band-soft { background: var(--blush-soft); }
.band-call { background: var(--teal); color: var(--white); }
.band-call h2 { color: var(--white); }
.band-call .button { background: var(--white); color: var(--teal-dark); border-color: var(--white); }
.band-call .button:hover { background: var(--blush-soft); color: var(--ink); }
.band-call .button-quiet { background: transparent; color: var(--white); border-color: var(--white); }
.band-call .button-quiet:hover { background: rgba(255, 255, 255, 0.15); color: var(--white); }
.split { display: grid; gap: 32px; align-items: start; }
.split picture img { border-radius: var(--radius); }

@media (min-width: 900px) {
  .hero { padding: 64px 0 72px; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 56px; }
  .split { grid-template-columns: 1.1fr 0.9fr; gap: 56px; }
  .band { padding: 72px 0; }
}

/* Lists */
.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 0.6em; }
.ticks li::before {
  content: ''; position: absolute; left: 4px; top: 0.55em; width: 12px; height: 12px; border-radius: 50%;
  background: var(--blush); box-shadow: 0 0 0 3px var(--blush-soft);
}
.band-soft .ticks li::before { box-shadow: 0 0 0 3px var(--white); }
.steps { padding-left: 1.4em; }
.steps li { margin-bottom: 0.9em; padding-left: 4px; }

/* Cards */
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 a { text-decoration: none; color: var(--teal-dark); }
.card h3 a:hover { text-decoration: underline; }
.card p { margin: 0; color: var(--muted); }

/* Quote */
.quote { margin: 0 0 1em; background: var(--white); border-radius: var(--radius); padding: 28px; border-left: 4px solid var(--blush); }
.quote blockquote { margin: 0 0 0.75em; font-family: var(--serif); font-size: 1.2rem; line-height: 1.5; }
.quote blockquote p { margin: 0; }
.quote figcaption { color: var(--muted); }

/* Prices */
.prices { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; margin-bottom: 1em; }
.prices caption { text-align: left; color: var(--muted); padding-bottom: 8px; font-size: 0.95rem; }
.prices th, .prices td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: left; }
.prices td { text-align: right; font-weight: 600; white-space: nowrap; }
.prices th { font-weight: normal; }
.prices tr:last-child th, .prices tr:last-child td { border-bottom: 0; }

/* Gallery */
.gallery { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.gallery img { border-radius: 10px; aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(4, 1fr); gap: 16px; } }

/* FAQ and prose */
.faq h2 { font-size: 1.3rem; margin-top: 1.6em; }
.faq h2:first-child { margin-top: 0; }
.prose h2 { font-size: 1.35rem; }
.post-summary h2 { margin-bottom: 0.2em; }
.post-summary .meta { margin-bottom: 0.4em; }

/* Contact */
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 0.8fr 1.2fr; gap: 64px; } }
.contact-form label { display: block; font-weight: 600; margin-bottom: 4px; }
.contact-form .optional { font-weight: normal; color: var(--muted); }
.contact-form input, .contact-form textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--white); border: 1px solid #b9b0ac;
  border-radius: 10px; padding: 12px 14px;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 3px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.contact-form textarea { resize: vertical; min-height: 150px; }
.hint { display: block; font-size: 0.92rem; color: var(--muted); margin-top: 6px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { border-radius: 10px; padding: 12px 16px; margin-bottom: 1em; }
.notice-error { background: var(--error-bg); color: var(--error-ink); border: 1px solid #efc9c5; }

/* Footer */
.site-footer { background: var(--ink); color: #e8eef0; padding: 40px 0 24px; font-size: 0.95rem; }
.site-footer a { color: #ffffff; }
.site-footer p { margin: 0 0 0.5em; }
.footer-grid { display: grid; gap: 24px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-name { font-family: var(--serif); font-size: 1.15rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.footer-small { border-top: 1px solid rgba(255, 255, 255, 0.15); margin-top: 24px; padding-top: 16px; color: #c4cfd2; font-size: 0.88rem; }

/* Her butterfly, from her logo, as a quiet motif. The image is a white
   shape used as a mask, so it can take any of her colours. */
.eyebrow { font-size: 0.95rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--rose); margin: 0 0 0.6em; font-weight: 600; }
.hero-home { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--white) 0%, var(--blush-soft) 100%); }
.hero-home::after {
  content: ''; position: absolute; left: -50px; bottom: -70px; width: 300px; height: 232px; pointer-events: none;
  background: var(--blush); opacity: 0.22; transform: scaleX(-1);
  -webkit-mask: url('/img/butterfly.png') no-repeat center / contain; mask: url('/img/butterfly.png') no-repeat center / contain;
}
.hero-home .wrap { position: relative; z-index: 1; }
.hero-home h1 { color: var(--teal-dark); font-size: clamp(2.2rem, 5.5vw, 3.4rem); }
.hero-home .hero-photo img { box-shadow: 0 18px 40px rgba(76, 105, 113, 0.18); }

.flutter::before {
  content: ''; display: block; width: 44px; height: 34px; margin-bottom: 10px; background: var(--rose); opacity: 0.85;
  -webkit-mask: url('/img/butterfly.png') no-repeat left center / contain; mask: url('/img/butterfly.png') no-repeat left center / contain;
}
.flutter-band { position: relative; overflow: hidden; }
.flutter-band::after {
  content: ''; position: absolute; right: 4%; bottom: -40px; width: 260px; height: 201px; pointer-events: none;
  background: var(--white); opacity: 0.12;
  -webkit-mask: url('/img/butterfly.png') no-repeat center / contain; mask: url('/img/butterfly.png') no-repeat center / contain;
}
.flutter-band .wrap { position: relative; z-index: 1; }

.band-room { background: var(--teal); color: var(--white); }
.band-room h2 { color: var(--white); }
.band-room a { color: var(--white); }
.band-room picture img { border-radius: var(--radius); }

.try { list-style: none; padding: 0; display: grid; gap: 14px; }
.try li { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--blush); border-radius: 10px; padding: 16px 18px; }

@media (min-width: 900px) {
  .split-reverse { grid-template-columns: 0.9fr 1.1fr; align-items: center; }
  .hero-home::after { left: 1%; bottom: -80px; width: 360px; height: 278px; }
}
@media (max-width: 899px) {
  .hero-home::after { width: 200px; height: 155px; left: auto; right: -50px; bottom: auto; top: -30px; opacity: 0.18; }
}
