/*
  Perth Parenting Consultancy — site styles. Plain CSS, no build step.

  Deliberately a different look from perthsocialworksupervision.com.au
  (teal / sand / Georgia serif / square photos). This one takes its palette
  straight from the PPC logo — deep navy and sky blue — on a warm cream
  ground, with rounded geometric type (Outfit, which echoes the logo
  lettering) and arch-topped photo frames.

  Themes: light is the default. The light / dark / auto choice is resolved to
  data-theme="dark"|"light" on <html> by the inline script in index.html
  before first paint; main.js owns the switch in the header.

  Fonts are self-hosted from /fonts (both SIL Open Font Licence) so the site
  makes no third-party requests — which keeps the privacy policy simple.
*/

@font-face {
  font-family: "Outfit";
  src: url("fonts/outfit.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --navy: #0d3b78;          /* logo dark blue: headings, buttons */
  --navy-deep: #082a57;
  --sky: #2f98dd;           /* logo light blue: accents, large text only */
  --link: #1d64a8;          /* sky darkened to hold AA contrast as body text */

  --ground: #fbf7f0;        /* warm cream page */
  --surface: #ffffff;
  --tint: #f3ede2;          /* alternating section band */
  --ink: #142235;
  --ink-soft: #4d5b6e;
  --line: #e6ddcf;

  --tint-sky: #e2f0fb;
  --tint-navy: #e6eaf6;
  --tint-peach: #fbe8da;
  --peach: #d9774a;

  --on-navy: #ffffff;
  --header-veil: rgba(251, 247, 240, 0.9);
  --shadow: 0 18px 40px -22px rgba(13, 59, 120, 0.35);

  --contact-bg: #0d3b78;
  --contact-ink: #ffffff;
  --contact-soft: #c8daf0;

  --footer-bg: #f3ede2;

  --wrap: 1140px;
  --radius: 22px;
  --arch: 999px 999px var(--radius) var(--radius);
}

[data-theme="dark"] {
  --navy: #9dccf3;          /* on a dark ground the "navy" role goes light */
  --navy-deep: #c3e1fa;
  --sky: #5db6ef;
  --link: #8cc6f2;

  --ground: #0b1626;
  --surface: #12223a;
  --tint: #0f1d31;
  --ink: #e8eef6;
  --ink-soft: #a6b4c7;
  --line: #22344f;

  --tint-sky: #12304c;
  --tint-navy: #1a2647;
  --tint-peach: #33241e;
  --peach: #f0a07a;

  --on-navy: #0b1626;
  --header-veil: rgba(11, 22, 38, 0.88);
  --shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.7);

  --contact-bg: #12305a;
  --contact-ink: #ffffff;
  --contact-soft: #bcd2ec;

  --footer-bg: #081120;
}

html.theming,
html.theming *,
html.theming *::before,
html.theming *::after {
  transition: background-color 0.28s ease, border-color 0.28s ease,
    color 0.28s ease, fill 0.28s ease, stroke 0.28s ease !important;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand-words {
  font-family: "Outfit", "Figtree", system-ui, sans-serif;
  color: var(--navy);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.08; font-weight: 600; margin: 0 0 24px; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.15; font-weight: 600; margin: 0 0 20px; }
h3 { font-size: 1.3rem; line-height: 1.3; font-weight: 600; margin: 0 0 8px; }

/* The italic accent word in headings, set in Figtree italic and sky blue. */
h1 em, h2 em {
  font-family: "Figtree", system-ui, sans-serif;
  font-style: italic;
  font-weight: 400;
  color: var(--sky);
}

p { margin: 0 0 1em; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.small { font-size: 0.9rem; }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--navy); color: var(--on-navy); padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip:focus { left: 8px; }

.eyebrow {
  font-family: "Outfit", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--peach);
  margin: 0 0 14px;
}
.lead { font-size: 1.18rem; color: var(--ink-soft); }

/* Buttons: pill shaped */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid var(--navy);
  background: var(--navy);
  color: var(--on-navy);
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}
.btn:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: var(--on-navy); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--on-navy); }
.btn-small { padding: 8px 18px; font-size: 0.92rem; }
.btn-light { background: #fff; border-color: #fff; color: #0d3b78; word-break: break-all; }
.btn-light:hover { background: #e2f0fb; border-color: #e2f0fb; color: #082a57; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-veil);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 44px; height: 44px; }
.brand-words { display: flex; flex-direction: column; line-height: 1.02; font-weight: 600; }
.brand-perth, .brand-consultancy { font-size: 0.86rem; color: var(--navy); }
.brand-parenting { font-size: 1.15rem; color: var(--sky); }

.site-header nav { display: flex; gap: 4px; margin-left: auto; }
.site-header nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}
.site-header nav a:hover { background: var(--tint-sky); color: var(--navy); }
.header-actions { display: flex; align-items: center; gap: 12px; }

.theme-switch {
  display: flex; align-items: center; gap: 2px; padding: 3px;
  border: 1px solid var(--line); border-radius: 999px;
}
.theme-opt {
  display: grid; place-items: center; width: 30px; height: 26px; padding: 0;
  border: 0; border-radius: 999px; background: transparent; color: var(--ink-soft); cursor: pointer;
  transition: color 0.16s ease, background-color 0.16s ease;
}
.theme-opt:hover { color: var(--ink); }
.theme-opt[aria-checked="true"] { background: var(--tint-sky); color: var(--navy); }
.theme-opt svg {
  width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.theme-opt .icon-half { fill: currentColor; stroke: none; }

/* Arch-topped photo frame — the signature shape of this site */
.arch { border-radius: var(--arch); overflow: hidden; box-shadow: var(--shadow); background: var(--tint); }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch-tall { aspect-ratio: 4 / 5; }
.arch-wide { aspect-ratio: 5 / 4; border-radius: 260px 260px var(--radius) var(--radius); }

/* Hero */
.hero { padding: 72px 0 88px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-image { position: relative; margin: 0; }
.hero-image .arch { aspect-ratio: 1 / 1.02; }
.hero-image .arch img { object-position: 50% 100%; }
.hero-image::before {
  /* soft sky disc behind the arch, echoing the logo's ring */
  content: ""; position: absolute; z-index: -1;
  width: 78%; aspect-ratio: 1; right: -14%; top: -8%;
  border-radius: 50%; background: var(--tint-sky);
}
.float-card {
  position: absolute; left: -36px; bottom: 36px; max-width: 260px;
  background: var(--surface); color: var(--navy);
  padding: 18px 22px 18px 22px; border-radius: 18px; box-shadow: var(--shadow);
  font-family: "Outfit", sans-serif; font-size: 1.12rem; font-weight: 500; line-height: 1.35;
}
.float-by {
  display: flex; align-items: center; gap: 10px; margin-top: 14px; padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: "Figtree", sans-serif; font-size: 0.8rem; font-weight: 400; line-height: 1.3; color: var(--ink-soft);
}
.float-by img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.float-by strong { color: var(--navy); font-weight: 600; }
.float-mark { display: block; font-size: 2.4rem; line-height: 0.6; color: var(--sky); margin-bottom: 4px; }

/* Sections */
.section { padding: 96px 0; }
.section-tint { background: var(--tint); }
.intro { color: var(--ink-soft); max-width: 640px; margin: 0 auto 36px; }

/* Themes */
.themes { padding-top: 48px; }
.theme-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.theme-card { border-radius: var(--radius); padding: 32px 30px 30px; display: flex; flex-direction: column; }
.theme-card h3 { font-size: 1.5rem; margin-top: auto; }
.theme-card p { margin: 0; color: var(--ink-soft); }
.tint-sky { background: var(--tint-sky); }
.tint-navy { background: var(--tint-navy); }
.tint-peach { background: var(--tint-peach); }
.theme-icon {
  width: 52px; height: 52px; margin-bottom: 48px;
  fill: none; stroke: var(--navy); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}
.tint-peach .theme-icon { stroke: var(--peach); }
.tint-sky .theme-icon { stroke: var(--sky); }

/* Approach */
.approach { padding-top: 40px; }
.approach-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 64px; align-items: start; }
.approach-head { position: sticky; top: 120px; }
.approach-body p { color: var(--ink-soft); }
.pull {
  margin: 36px 0 0; padding: 28px 32px;
  border-left: 4px solid var(--sky); border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface);
}
.pull p {
  margin: 0; font-family: "Outfit", sans-serif; font-size: 1.35rem; line-height: 1.4;
  color: var(--navy); font-weight: 500;
}

/* Services */
.service { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.ticks li { position: relative; padding-left: 34px; font-weight: 500; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--sky) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Practitioners */
.person {
  display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start;
  margin-top: 48px; padding: 40px; border-radius: 32px; background: var(--surface);
  border: 1px solid var(--line);
}
.person-photo { position: sticky; top: 120px; }
.person h3 { font-size: 2rem; margin-bottom: 4px; }
.role { color: var(--peach); font-weight: 600; font-size: 0.98rem; margin-bottom: 20px; }
.person-text > p { color: var(--ink-soft); }
.chips { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 5px 14px; border-radius: 999px; background: var(--tint-sky); color: var(--navy);
  font-size: 0.86rem; font-weight: 600;
}
.more { margin: 8px 0 20px; border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px; }
.more summary { cursor: pointer; padding: 12px 0; font-weight: 600; color: var(--navy); }
.more p { color: var(--ink-soft); }

/* How it works */
.how-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px 72px; align-items: start; }
.how-head .arch { margin-top: 32px; }
.steps { list-style: none; padding: 0; margin: 0; }
.steps li {
  display: grid; grid-template-columns: 120px 1fr; gap: 24px; align-items: baseline;
  padding: 28px 0; border-top: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.step-num {
  font-family: "Outfit", sans-serif; font-size: 4.5rem; line-height: 0.9; font-weight: 300;
  color: var(--sky); letter-spacing: -0.04em;
}
.steps h3 { font-size: 1.5rem; }
.steps p { margin: 0; color: var(--ink-soft); }
.how-note { grid-column: 2; color: var(--ink-soft); font-size: 0.98rem; margin-top: 12px; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
.faq-head p:not(.eyebrow) { color: var(--ink-soft); }
.faq-list { display: grid; gap: 12px; }
.faq { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 0 24px; }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; font-family: "Outfit", sans-serif; font-size: 1.15rem; font-weight: 500; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex-shrink: 0; display: grid; place-items: center; width: 32px; height: 32px;
  border-radius: 50%; background: var(--tint-sky); color: var(--navy); font-size: 1.3rem; line-height: 1;
  transition: transform 0.2s ease;
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--ink-soft); padding-bottom: 8px; }

/* Cancellation scale */
.notice-scale { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.notice-scale li {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 26px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line);
}
.notice-scale .when { font-weight: 500; }
.notice-scale .fee {
  font-family: "Outfit", sans-serif; font-weight: 600; padding: 4px 14px; border-radius: 999px; white-space: nowrap;
}
.notice-scale .ok .fee { background: var(--tint-sky); color: var(--navy); }
.notice-scale .half .fee { background: var(--tint-peach); color: var(--peach); }
.notice-scale .full .fee { background: var(--peach); color: #fff; }
[data-theme="dark"] .notice-scale .full .fee { color: #0b1626; }

/* Contact */
.contact { padding: 96px 0 72px; }
.contact-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  background: var(--contact-bg); color: var(--contact-soft);
  border-radius: 36px; padding: 56px;
  position: relative; overflow: hidden;
}
.contact-card::after {
  /* the logo's open ring, drawn large and faint in the corner */
  content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px;
  border: 26px solid rgba(255, 255, 255, 0.06); border-radius: 50%; pointer-events: none;
}
.contact-card h2, .contact-card h3 { color: var(--contact-ink); }
.contact-card h3 { font-size: 1.15rem; }
.contact-card a:not(.btn) { color: var(--contact-ink); }
.contact-cols { display: grid; gap: 28px; align-content: start; }
.contact-cols > div { border-top: 1px solid rgba(255, 255, 255, 0.18); padding-top: 20px; }
.contact-cols p { margin-bottom: 0.5em; }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " →"; }
.area { text-align: center; color: var(--ink-soft); font-size: 0.92rem; max-width: 720px; margin: 28px auto 0; }

/* Footer */
.site-footer { background: var(--footer-bg); padding: 48px 0 40px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 0.95rem; }
.footer-inner { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand strong { color: var(--navy); font-family: "Outfit", sans-serif; }
.footer-meta p { margin-bottom: 0.6em; }

/* Responsive */
@media (max-width: 1020px) {
  /* Nav drops to its own scrollable row under the brand — no JS menu needed. */
  .header-inner { flex-wrap: wrap; row-gap: 0; padding-top: 10px; }
  .header-actions { margin-left: auto; }
  .site-header nav {
    order: 3; width: calc(100% + 48px); margin: 6px -24px 0; padding: 4px 18px 8px;
    overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--line);
  }
  .site-header nav::-webkit-scrollbar { display: none; }
  .site-header nav a { white-space: nowrap; font-size: 0.9rem; }
  html { scroll-padding-top: 130px; }
}
@media (max-width: 860px) {
  .section { padding: 72px 0; }
  .hero { padding: 40px 0 64px; }
  .hero-inner, .approach-grid, .service, .how-grid, .faq-grid, .person, .contact-card, .footer-inner {
    grid-template-columns: 1fr; gap: 40px;
  }
  .hero-image { max-width: 440px; margin: 0 auto; }
  .float-card { left: -8px; }
  .approach-head, .person-photo { position: static; }
  .person { padding: 24px; }
  .person-photo { max-width: 360px; }
  .theme-cards { grid-template-columns: 1fr; }
  .theme-icon { margin-bottom: 24px; }
  .how-note { grid-column: auto; }
  .contact-card { padding: 36px 28px; border-radius: 28px; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .site-header nav { width: calc(100% + 32px); margin: 6px -16px 0; padding: 4px 10px 8px; }
  .header-inner { gap: 12px; }
  .brand img { width: 36px; height: 36px; }
  .header-actions .btn-small { display: none; }
  .ticks { grid-template-columns: 1fr; }
  .btn-light { font-size: 0.85rem; padding: 12px 18px; word-break: normal; overflow-wrap: anywhere; }
  .steps li { grid-template-columns: 72px 1fr; gap: 12px; }
  .step-num { font-size: 3rem; }
  .notice-scale li { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media print {
  .site-header { position: static; }
  .theme-switch, .skip { display: none; }
  .approach-head, .person-photo { position: static; }
}
