/* =========================================================================
   Paula Reynolds Counselling — static site styles
   Brand: navy #003C5E · teal #34A5B8 · serif Libre Baskerville · sans DM Sans
   ========================================================================= */

@import url("../fonts/fonts.css");

/* ---- Design tokens ---------------------------------------------------- */
:root {
  --navy:        #003c5e;
  --navy-deep:   #002c46;
  --teal:        #34a5b8;
  --teal-dark:   #2b8b9b;
  --ink:         #333333;
  --ink-soft:    #55636b;
  --paper:       #ffffff;
  --paper-alt:   #f5f3ef;
  --line:        #e4e0d8;
  --white:       #ffffff;

  --serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --sans:  "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container: 1180px;
  --radius: 14px;
  --shadow: 0 18px 40px -24px rgba(0, 44, 70, 0.45);
  --header-h: 92px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: var(--teal-dark); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--navy); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--navy);
  line-height: 1.15;
  font-weight: 700;
  margin: 0 0 .5em;
}

p { margin: 0 0 1.1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
  z-index: 2000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---- Buttons --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .01em;
  padding: 15px 30px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-1px); }

.btn--primary { background: var(--teal); color: #fff; }
.btn--primary:hover { background: var(--teal-dark); color: #fff; }

.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }

.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-deep); color: #fff; }

/* ---- Header ---------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background .3s ease, box-shadow .3s ease, height .3s ease;
}
.site-header.is-scrolled {
  background: var(--teal);
  box-shadow: 0 8px 24px -14px rgba(0,44,70,.6);
  height: 74px;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 46px; width: auto; }
.site-header.is-scrolled .brand img { height: 40px; }

.header-right { display: flex; align-items: center; gap: 22px; }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: 0;
  color: #fff;
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 4px;
}
.menu-toggle .bars { display: inline-flex; flex-direction: column; gap: 4px; }
.menu-toggle .bars span { width: 22px; height: 2px; background: #fff; border-radius: 2px; }

.social { display: flex; align-items: center; gap: 10px; }
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #fff;
  color: var(--teal);
  transition: transform .15s ease, background .2s ease, color .2s ease;
}
.social a:hover { transform: translateY(-2px); background: var(--navy); color: #fff; }
.social svg { width: 16px; height: 16px; }

/* ---- Overlay menu ---------------------------------------------------- */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 1500;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s;
}
.nav-overlay.is-open { opacity: 1; visibility: visible; transform: none; }
.nav-overlay .close {
  position: absolute;
  top: 26px; right: 28px;
  width: 46px; height: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.35);
  background: transparent;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease;
}
.nav-overlay .close:hover { background: rgba(255,255,255,.12); }
.nav-overlay nav { text-align: center; }
.nav-overlay a.nav-link {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  color: #fff;
  padding: 10px 20px;
  transition: color .2s ease;
}
.nav-overlay a.nav-link:hover,
.nav-overlay a.nav-link[aria-current="page"] { color: var(--teal); }
.nav-overlay .overlay-contact {
  margin-top: 30px;
  color: rgba(255,255,255,.85);
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}
.nav-overlay .overlay-contact a { color: #fff; }
.nav-overlay .overlay-social { margin-top: 18px; }
.nav-overlay .overlay-social a { color: var(--teal); }

body.menu-open { overflow: hidden; }

/* ---- Hero (home) ----------------------------------------------------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  color: #fff;
  background: var(--navy);
  background-image: linear-gradient(90deg, rgba(0,30,48,.72) 0%, rgba(0,44,70,.35) 60%, rgba(0,44,70,.12) 100%), url("/assets/img/hero.jpg");
  background-size: cover;
  background-position: center 30%;
}
.hero .container { padding-block: 140px 80px; }
.hero-inner { max-width: 640px; }
.hero h1 {
  color: #fff;
  font-size: clamp(2.9rem, 7vw, 5rem);
  margin-bottom: .25em;
}
.hero .lede { font-size: 1.25rem; max-width: 34ch; margin-bottom: 1.2em; }
.hero .callout {
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 1.6em;
}
.hero .callout a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---- Page hero (inner) ---------------------------------------------- */
.page-hero {
  position: relative;
  color: #fff;
  background: var(--navy);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  min-height: 52vh;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,30,48,.45) 0%, rgba(0,30,48,.35) 40%, rgba(0,30,48,.78) 100%);
}
.page-hero .container { position: relative; padding-block: 140px 46px; }
.page-hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  margin: 0;
}
.page-hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .8rem;
  font-weight: 600;
  color: var(--teal);
  font-family: var(--sans);
  margin-bottom: 14px;
}

/* ---- Sections -------------------------------------------------------- */
.section { padding-block: clamp(56px, 8vw, 100px); }
.section--alt { background: var(--paper-alt); }
.section--navy { background: var(--navy); color: rgba(255,255,255,.9); }
.section--navy h2, .section--navy h3 { color: #fff; }

.section-title { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: .6em; }
.section--navy .section-title { color: #fff; }

.lead { font-size: 1.2rem; color: var(--ink-soft); }
.section--navy .lead { color: rgba(255,255,255,.85); }

.measure { max-width: 68ch; }

/* ---- Intro (home): text + portrait ---------------------------------- */
.intro-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.intro-grid .portrait {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.intro-grid .portrait img { width: 100%; }
.intro-eyebrow {
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: .8rem;
  font-weight: 600;
  color: var(--teal-dark);
  margin-bottom: 14px;
}
.intro-grid h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }

/* ---- Service cards --------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 46px;
}
.card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--teal); background: rgba(255,255,255,.07); }
.card .thumb { aspect-ratio: 4 / 3; overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .thumb img { transform: scale(1.05); }
.card .body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-family: var(--sans); font-size: 1.4rem; color: #fff; margin-bottom: .5em; }
.card p { color: rgba(255,255,255,.8); font-size: 1rem; }
.card .more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: #fff;
}
.card .more .arrow {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--teal);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s ease, transform .2s ease;
}
.card:hover .more .arrow { background: #fff; }
.card:hover .more .arrow svg { color: var(--teal); }
.card .more .arrow svg { width: 16px; height: 16px; color: #fff; }

/* ---- About + accordion (home) --------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}
.about-grid .lead-copy { font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.5rem); color: var(--navy); line-height: 1.5; }

.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 4px;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .chev {
  flex: none;
  width: 26px; height: 26px;
  transition: transform .25s ease;
  color: var(--teal-dark);
}
.accordion details[open] summary .chev { transform: rotate(90deg); }
.accordion .panel { padding: 0 4px 24px; color: var(--ink-soft); }
.accordion .panel p:last-child { margin-bottom: 0; }

/* ---- Generic content page copy -------------------------------------- */
.prose { font-size: 1.15rem; }
.prose .kicker {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 1em;
}
.prose h2 { font-size: 1.9rem; margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }

/* ---- Legal / policy pages ------------------------------------------- */
.page-hero--plain {
  min-height: auto;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
}
.page-hero--plain::before { display: none; }
.page-hero--plain .container { padding-block: 150px 46px; }

.legal { max-width: 80ch; }
.legal h2 {
  font-size: 1.5rem;
  margin-top: 1.8em;
  padding-top: 1.2em;
  border-top: 1px solid var(--line);
}
.legal h2:first-of-type { border-top: 0; padding-top: 0; margin-top: .6em; }
.legal h3 { font-size: 1.15rem; margin-top: 1.4em; }
.legal .updated { color: var(--ink-soft); font-size: .95rem; margin-bottom: 1.6em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .5em; }
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4em 0;
  font-size: .98rem;
}
.legal th, .legal td {
  text-align: left;
  padding: 12px 16px;
  border: 1px solid var(--line);
  vertical-align: top;
}
.legal thead th { background: var(--paper-alt); color: var(--navy); }
.legal .addr { background: var(--paper-alt); border-radius: 10px; padding: 18px 22px; }

/* ---- CTA band -------------------------------------------------------- */
.cta-band { background: var(--teal); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.cta-band p { color: rgba(255,255,255,.92); font-size: 1.15rem; max-width: 52ch; margin-inline: auto; }
.cta-band .btn--primary { background: #fff; color: var(--navy); }
.cta-band .btn--primary:hover { background: var(--navy); color: #fff; }

/* ---- Leave site quickly (safety) ------------------------------------ */
.leave-site {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #b3261e;
  color: #fff;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 999px;
  letter-spacing: .03em;
}
.leave-site:hover { background: #8f1e17; color: #fff; }
.leave-site svg { width: 18px; height: 18px; }
.safety-note {
  margin-top: 14px;
  font-size: .95rem;
  color: var(--ink-soft);
  max-width: 60ch;
}
.section--navy .safety-note { color: rgba(255,255,255,.75); }

/* ---- Contact --------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(36px, 6vw, 70px);
  align-items: start;
}
.contact-detail { display: flex; gap: 16px; margin-bottom: 26px; align-items: flex-start; }
.contact-detail .ic {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--paper-alt);
  color: var(--teal-dark);
  display: inline-flex; align-items: center; justify-content: center;
}
.contact-detail .ic svg { width: 20px; height: 20px; }
.contact-detail h3 { font-family: var(--sans); font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-soft); margin: 4px 0 4px; }
.contact-detail > div { min-width: 0; }
.contact-detail a, .contact-detail p { font-size: 1.15rem; color: var(--navy); margin: 0; overflow-wrap: anywhere; }
.form-note, .form-note a { overflow-wrap: anywhere; }
.contact-detail a:hover { color: var(--teal-dark); }

.contact-form {
  background: var(--paper-alt);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .9rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(52,165,184,.18);
}
.form-note { font-size: .9rem; color: var(--ink-soft); margin-top: 14px; }
.form-hint { font-size: .9rem; color: var(--ink-soft); margin: -4px 0 16px; }

/* Honeypot — hidden from people, bots fill it */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* Consent checkbox */
.field-check { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 20px; }
.field-check input { margin-top: 5px; width: 18px; height: 18px; flex: none; accent-color: var(--teal); }
.field-check label { font-size: .92rem; color: var(--ink-soft); line-height: 1.5; }

/* hCaptcha widget */
.h-captcha { margin: 4px 0 22px; }

/* Submit status message */
.form-status { margin-top: 16px; font-size: .95rem; font-weight: 500; }
.form-status.is-pending { color: var(--ink-soft); }
.form-status.is-ok { color: #1a7f4b; }
.form-status.is-err { color: #b3261e; }

/* ---- Footer ---------------------------------------------------------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,.78);
  padding-block: 64px 30px;
  font-size: .98rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 44px;
  align-items: start;
}
.site-footer h4 {
  color: #fff;
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .82rem;
  margin-bottom: 18px;
}
.site-footer a { color: rgba(255,255,255,.8); }
.site-footer a:hover { color: var(--teal); }
.footer-brand img { height: 44px; margin-bottom: 18px; }
.footer-quals { font-size: .92rem; color: rgba(255,255,255,.6); max-width: 40ch; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-contact li { list-style: none; margin-bottom: 10px; display: flex; gap: 10px; }
.footer-contact ul { margin: 0; padding: 0; }
.footer-contact svg { width: 17px; height: 17px; flex: none; margin-top: 4px; color: var(--teal); }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
}
.footer-social a:hover { background: var(--teal); }
.footer-social svg { width: 16px; height: 16px; }
.footer-bacp { margin-top: 24px; }
.footer-bacp img { height: 60px; width: auto; opacity: .92; }
.footer-bottom {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.14);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
  font-size: .88rem;
  color: rgba(255,255,255,.55);
}
.footer-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---- Responsive ------------------------------------------------------ */
@media (max-width: 900px) {
  body { font-size: 17px; }
  .intro-grid { grid-template-columns: 1fr; }
  .intro-grid .portrait { order: -1; max-width: 460px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --header-h: 74px; }
  .hero { min-height: 92vh; }
  .hero .container { padding-block: 120px 60px; }
  .cards { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .social { display: none; }          /* keep header tidy on phones */
  .nav-overlay .overlay-social { display: flex; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---- Reduced motion -------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
