/* Counselling Southern Adelaide
   System fonts only: no third-party font requests, fast on mobile. */

:root {
  --paper: #f5f2ea;
  --band: #e8ebe1;
  --ink: #1e3a33;        /* deep eucalyptus: headings, buttons */
  --text: #2f433c;       /* body copy */
  --muted: #56665f;      /* secondary copy, 5.6:1 on paper */
  --gum: #4c6b5c;        /* eucalyptus mid-tone */
  --rule: #cfd2c6;
  --clay: #8a4b26;       /* hover + focus accent, 6:1 on paper */

  --serif: "Iowan Old Style", "Charter", "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 56px);
  --measure: 36em;
}

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

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 18px/1.6 var(--serif);
  font-variant-numeric: oldstyle-nums;
  hanging-punctuation: first;
}

h1, h2, h3 { color: var(--ink); font-weight: 400; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
}
a:hover { color: var(--clay); text-decoration-color: currentColor; }
a[href^="tel:"] { font-variant-numeric: lining-nums; white-space: nowrap; }

:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 12px; top: -100px; z-index: 20;
  background: var(--ink); color: var(--paper); padding: 10px 14px; font: 16px var(--sans);
}
.skip:focus { top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Header */

.site-header { border-bottom: 1px solid var(--rule); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }

.wordmark { text-decoration: none; color: var(--ink); line-height: 1.2; }
.wordmark:hover { color: var(--ink); }
.wordmark-name { display: block; font-size: 21px; letter-spacing: -.005em; }
.wordmark-sub { display: block; font: 14px/1.4 var(--sans); color: var(--muted); }

.site-nav { display: flex; align-items: center; gap: 32px; font: 15px/1.4 var(--sans); }
.site-nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.site-nav a { text-decoration: none; color: var(--text); padding: 12px 0; }
.site-nav a:hover { color: var(--clay); text-decoration: underline; }
.site-nav .header-phone { color: var(--ink); font-weight: 600; padding-left: 26px; border-left: 1px solid var(--rule); }

.menu-toggle {
  display: none;
  font: 600 15px var(--sans); color: var(--ink);
  background: none; border: 1px solid var(--ink); border-radius: 2px;
  min-height: 44px; padding: 0 16px; cursor: pointer;
}

/* Buttons */

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  background: var(--ink); color: var(--paper);
  font: 600 16px/1.2 var(--sans); text-decoration: none;
  border: 1px solid var(--ink); border-radius: 2px;
}
.button:hover { background: #2c5045; color: var(--paper); }

/* Hero */

.hero { padding-top: clamp(48px, 8vw, 104px); }
.hero-meta { font: 15px/1.5 var(--sans); color: var(--muted); margin-bottom: 22px; }
.hero h1 {
  font-size: clamp(38px, 5.4vw, 70px);
  line-height: 1.06;
  letter-spacing: -.015em;
  max-width: 15em;
}
.hero-body {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 40px 64px; align-items: end;
  margin-top: clamp(28px, 4vw, 48px);
}
.intro { font-size: 21px; line-height: 1.55; max-width: 30em; margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.hero-call { margin: 0; font: 16px var(--sans); color: var(--muted); }
.hero-call a { color: var(--ink); font-weight: 600; }

.hero-figure { margin: clamp(48px, 7vw, 88px) 0 0; position: relative; }
.hero-figure img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 21 / 8; object-fit: cover; object-position: 50% 82%;
  /* Pulls the stock sunset towards the site palette until a local photo replaces it. */
  filter: saturate(.55) sepia(.12) contrast(.96);
}
.hero-figure figcaption {
  font-style: italic; font-size: 19px; color: var(--ink);
  margin-top: 14px; padding-left: 18px; border-left: 2px solid var(--gum);
  max-width: 24em;
}

/* Sections */

.section { padding: clamp(64px, 9vw, 120px) 0; }
.section.container,
.section-grid {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px 64px;
}
.section.container { padding-left: var(--gutter); padding-right: var(--gutter); }
.section + .section.container { border-top: 1px solid var(--rule); }
.band { background: var(--band); }
.band + .section.container, .section.container + .band { border-top: 0; }

.section h2 { font-size: clamp(30px, 3.2vw, 40px); line-height: 1.12; letter-spacing: -.01em; }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 17px; max-width: 18em; }
.section-body { min-width: 0; }
.prose { max-width: var(--measure); }
.lead { font-size: 23px; line-height: 1.45; color: var(--ink); }

/* Services */

.service {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 8px 40px;
  padding: 28px 0; border-top: 1px solid #c3c9bb;
}
.service:first-child { padding-top: 6px; border-top: 0; }
.service h3 { font-size: 23px; line-height: 1.25; }
.service p { font-size: 17px; }
.service p + p { color: var(--muted); }

/* About */

.about { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 40px; align-items: start; }
.portrait {
  width: 168px; height: 168px; border-radius: 50%;
  object-fit: cover; display: block;
  box-shadow: 0 0 0 1px var(--rule), 0 0 0 7px var(--paper), 0 0 0 8px var(--rule);
  margin: 8px;
}

/* Steps */

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 28px; }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 2.2em minmax(0, 1fr); column-gap: 12px;
  max-width: 40em;
}
.steps li::before {
  content: counter(step);
  grid-row: span 2;
  font-size: 30px; line-height: 1; color: var(--gum);
  font-variant-numeric: oldstyle-nums;
}
.steps h3 { font-size: 22px; line-height: 1.3; margin-bottom: 6px; }
.steps p { font-size: 17px; }

/* FAQ */

.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-child { border-top: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  padding: 18px 0; min-height: 48px;
  font-size: 19px; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 11px; height: 11px; margin-right: 4px;
  border-right: 1.5px solid var(--gum); border-bottom: 1.5px solid var(--gum);
  transform: translateY(-3px) rotate(45deg);
}
.faq details[open] summary::after { transform: translateY(2px) rotate(225deg); }
.faq summary:hover { color: var(--clay); }
.faq details p { font-size: 17px; max-width: var(--measure); padding-bottom: 22px; margin: 0; }

/* Contact */

.contact-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.contact-label { font: 14px/1.4 var(--sans); color: var(--muted); margin-bottom: 4px; }
.contact-value { font-size: 28px; line-height: 1.25; margin-bottom: 28px; }
.contact-value a { text-decoration-thickness: 1px; }
.contact-email { font-size: 17px; }

.booking { background: var(--paper); border: 1px solid #c3c9bb; padding: 28px; }
.booking h3 { font-size: 23px; margin-bottom: 12px; }
.booking p { font-size: 17px; }
.booking .button { width: 100%; margin-top: 6px; }
.booking-alt { margin-top: 16px; text-align: center; font: 15px var(--sans); }
.booking-note {
  margin-top: 22px !important; padding-top: 18px; border-top: 1px solid var(--rule);
  font: 14px/1.55 var(--sans); color: var(--muted);
}

/* Footer */

.site-footer { background: var(--ink); color: #dfe5dc; padding: 56px 0 36px; font: 16px/1.6 var(--sans); }
.site-footer a { color: #fff; text-decoration-color: rgba(255,255,255,.5); }
.site-footer a:hover { color: #f1d9c4; }
.site-footer :focus-visible { outline-color: #f1d9c4; }

.urgent { border: 1px solid rgba(255,255,255,.28); padding: 22px 24px; margin-bottom: 44px; max-width: 52em; }
.urgent h2 { color: #fff; font: 600 17px/1.4 var(--sans); margin-bottom: 6px; }
.urgent p { color: #dfe5dc; }

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.18); }
.footer-name { font: 21px/1.3 var(--serif); color: #fff; margin-bottom: 6px; }
.footer-grid a, .footer-grid .link-button { display: inline-block; padding: 6px 0; }
.footer-grid p { line-height: 1.3; }
.footer-small { margin-top: 20px; font-size: 14px; color: #b9c5bd; }

.link-button {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; color: #fff;
  text-decoration: underline; text-decoration-color: rgba(255,255,255,.5);
  text-decoration-thickness: 1px; text-underline-offset: .2em;
}
.link-button:hover { color: #f1d9c4; }

/* Privacy dialog */

dialog {
  width: min(600px, calc(100% - 32px)); max-height: calc(100% - 32px);
  border: 0; border-radius: 2px; padding: 40px;
  background: var(--paper); color: var(--text);
}
dialog::backdrop { background: rgba(20, 38, 33, .72); }
dialog h2 { font-size: 30px; margin: 0 0 18px; }
dialog p { font-size: 17px; }
.dialog-close {
  position: absolute; top: 14px; right: 14px; min-height: 40px; padding: 0 12px;
  font: 600 14px var(--sans); color: var(--ink);
  background: none; border: 1px solid var(--rule); border-radius: 2px; cursor: pointer;
}

.m-only { display: none; }

/* Tablet */

@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; align-items: center; }
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 84px; z-index: 10;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: 8px var(--gutter) 20px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 17px; }
  .site-nav .header-phone { border-left: 0; padding: 16px 0 4px; font-size: 17px; }
  .site-header { position: relative; }

  .section.container, .section-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-body { grid-template-columns: 1fr; align-items: start; }
}

/* Phone */

@media (max-width: 640px) {
  body { font-size: 17px; }
  .header-inner { min-height: 72px; gap: 12px; }
  .site-nav { top: 72px; }
  .wordmark-name { font-size: 16px; white-space: nowrap; }
  .wordmark-sub { font-size: 13px; }

  .m-only { display: inline; }
  .hero-meta .sep { display: none; }
  .intro { font-size: 19px; }
  .hero-actions .button { width: 100%; }
  .hero-figure { margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); }
  .hero-figure img { aspect-ratio: 4 / 3; object-position: 40% 85%; }
  .hero-figure figcaption { margin-left: var(--gutter); margin-right: var(--gutter); font-size: 18px; }

  .lead { font-size: 21px; }
  .service { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: 24px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-value { font-size: 26px; }
  .contact-value.contact-email { font-size: 16px; overflow-wrap: anywhere; }
  .booking { padding: 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 12px; }
  dialog { padding: 64px 22px 28px; }
}

@media print {
  .site-header nav, .menu-toggle, .hero-figure, .booking .button { display: none; }
  body { background: #fff; }
}

/* Keep legacy booking links visible and long addresses inside their column. */
#booking { scroll-margin-top: 24px; }
.contact-email { overflow-wrap: anywhere; }

/* Practice identity: original uploaded logo, with its teal carried across the site. */
:root { --ink: #244e4e; --text: #354c47; --gum: #326767; --band: #e6ece6; }
.site-header { background: #faf8f2; }
.header-inner { min-height: 104px; }
.wordmark { display: flex; align-items: center; gap: 15px; min-width: 0; }
.brand-logo { display: block; width: 82px; height: 66px; object-fit: contain; background: #326767; border-radius: 7px; }
.wordmark-copy { display: block; }
.wordmark-name { max-width: 230px; font-size: 23px; line-height: 1.12; }
.wordmark-sub { margin-top: 7px; font-size: 11px; letter-spacing: .035em; }
.hero { padding-top: clamp(48px, 7vw, 88px); }
.hero h1 { max-width: 14em; letter-spacing: -.035em; }
.hero h1 em { color: var(--gum); font-weight: 400; }
.hero-meta { font-size: 13px; letter-spacing: .035em; }
.hero-figure img { border-radius: 60px 4px 4px 4px; }
.hero-figure figcaption { margin-top: 20px; }
.button { border-radius: 5px; box-shadow: 0 5px 14px #244e4e12; transition: background .18s ease, box-shadow .18s ease; }
.button:hover { background: #326767; box-shadow: 0 7px 18px #244e4e22; }
.booking { border-radius: 8px; box-shadow: 0 12px 28px #244e4e08; }
.footer-logo { width: 90px; height: auto; display: block; border-radius: 6px; margin-bottom: 20px; }
@media (min-width: 961px) and (max-width: 1100px) { .site-nav { gap: 18px; } .site-nav ul { gap: 17px; } .site-nav .header-phone { padding-left: 16px; } .wordmark-name { max-width: 190px; font-size: 21px; } }
@media (max-width: 960px) { .site-nav { top: 104px; } }
@media (max-width: 640px) {
 .header-inner { min-height: 90px; gap: 10px; }
 .site-nav { top: 90px; }
 .brand-logo { width: 56px; height: 52px; flex: none; }
 .wordmark { gap: 10px; }
 .wordmark-name { font-size: 17px; white-space: normal; max-width: 160px; }
 .wordmark-sub { font-size: 10px; max-width: 165px; line-height: 1.35; margin-top: 5px; }
 .menu-toggle { padding: 0 11px; flex: none; }
 .hero h1 { font-size: clamp(36px, 9.5vw, 54px); }
 .hero-figure { margin-left: 0; margin-right: 0; }
 .hero-figure img { border-radius: 40px 4px 4px 4px; }
 .hero-figure figcaption { margin-left: 0; margin-right: 0; }
}
@media (prefers-reduced-motion: reduce) { .button { transition: none; } }

/* Transparent teal replacement logo. */
.brand-logo { width: 66px; height: 66px; background: transparent; border-radius: 0; }
.footer-logo { width: 90px; height: 90px; object-fit: contain; padding: 8px; background: var(--paper); border-radius: 8px; }
@media (max-width: 640px) { .brand-logo { width: 52px; height: 52px; } }
