/* Gabrielle Durupt Counselling — site styles
   Tokens, base, shared components (header, footer, buttons, forms, cards).
   Page sections carry their own inline layout styles from the design. */

:root {
  --brand: #5E6B4A;
  --brand-strong: #4F5A3D;
  --brand-deep: #434D34;
  --brand-soft: #E7E8DA;
  --accent: #7A5C73;
  --accent-strong: #684D62;
  --terracotta: #A0674A;
  --cream: #F6F3EC;
  --cream-100: #ECE7DB;
  --bg-page: #F6F3EC;
  --surface: #FFFFFF;
  --surface-warm: #FFFDF2;
  --text: #33302A;
  --text-soft: #4E4A42;
  --text-muted: rgba(51, 48, 42, .5);
  --text-on-brand: #F6F3EC;
  --text-on-accent: #F6F3EC;
  --line: rgba(94, 107, 74, .16);
  --line-strong: rgba(94, 107, 74, .36);
  --eyebrow: #7A5C73;
  --focus-ring: rgba(122, 92, 115, .3);
  --tint: #E9EADD;
  --secondary: #A8B08C;
  --sand: #ECE5D6;
  --danger: #b85a3d;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Nunito Sans', system-ui, sans-serif;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(67, 77, 52, .05), 0 6px 18px rgba(67, 77, 52, .08);
  --ease-out: cubic-bezier(.4, .1, .2, 1);
  --dur-fast: .18s;
  --dur-base: .25s;
}

/* ---------------- Base ---------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--brand-strong);
  margin: 0;
  text-wrap: balance;
}
h1 em, h2 em, h3 em { font-style: italic; color: var(--accent); }
p { margin: 0; text-wrap: pretty; }
img, svg, video { display: block; max-width: 100%; }
:where(a) { color: var(--accent); text-decoration: none; }
:where(a:hover) { color: var(--brand-strong); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 20;
  background: var(--brand); color: var(--text-on-brand);
  padding: 10px 16px; border-radius: var(--radius-pill); font-size: 15px; font-weight: 600;
}
.skip-link:focus { top: 12px; color: var(--text-on-brand); }

/* ---------------- Buttons ---------------- */
.mwc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600;
  font-size: 15px; line-height: 1; white-space: nowrap; cursor: pointer;
  padding: 14px 26px; border-radius: var(--radius-pill);
  border: 1.5px solid transparent; transition: all var(--dur-fast) var(--ease-out);
  text-decoration: none;
}
.mwc-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--focus-ring); }
.mwc-btn--sm { padding: 9px 18px; font-size: 13px; }
.mwc-btn--lg { padding: 17px 32px; font-size: 16.5px; }

.mwc-btn--brand { background: var(--brand); color: var(--text-on-brand); }
.mwc-btn--brand:hover { background: var(--brand-strong); color: var(--text-on-brand); transform: translateY(-1px); box-shadow: var(--shadow-sm); }

.mwc-btn--cream { background: var(--cream); color: var(--brand-strong); }
.mwc-btn--cream:hover { background: var(--cream-100); color: var(--brand-strong); transform: translateY(-1px); box-shadow: var(--shadow-sm); }

.mwc-btn--ghost { background: transparent; border-color: var(--brand); color: var(--brand); }
.mwc-btn--ghost:hover { background: var(--brand); color: var(--text-on-brand); }

.mwc-btn--ghost-light { background: transparent; border-color: rgba(255, 255, 255, .45); color: #fff; }
.mwc-btn--ghost-light:hover { background: rgba(255, 255, 255, .14); border-color: #fff; color: #fff; }

/* ---------------- Link arrow ---------------- */
.mwc-linkarrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-body); font-weight: 600;
  font-size: 14.5px; color: var(--brand); cursor: pointer;
}
.mwc-linkarrow svg { width: 15px; height: 15px; transition: transform var(--dur-fast) var(--ease-out); }
.mwc-linkarrow:hover svg { transform: translateX(3px); }
.mwc-linkarrow--accent { color: var(--eyebrow); }

/* ---------------- Flourish divider ---------------- */
.mwc-flourish { display: block; width: 72px; color: var(--accent); }
.mwc-flourish--terracotta { color: var(--terracotta); }

/* ---------------- Forms ---------------- */
.mwc-field { display: block; }
.mwc-field__label { display: block; font-family: var(--font-body); font-size: 12px; font-weight: 600; color: var(--brand); margin-bottom: 6px; letter-spacing: .01em; }
.mwc-input, .mwc-textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--text);
  padding: 12px 14px; border: 1px solid var(--line-strong);
  background: var(--surface-warm); border-radius: var(--radius-sm);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.mwc-textarea { resize: vertical; min-height: 110px; line-height: 1.6; }
.mwc-input:focus, .mwc-textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--focus-ring); }

.contact-form {
  min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  box-shadow: 0 20px 50px -30px rgba(67, 77, 52, .35);
  padding: clamp(22px, 3.5vw, 40px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px;
}
.contact-form .span-all { grid-column: 1 / -1; }
.contact-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form__error { grid-column: 1 / -1; margin: 0; font-size: 15px; color: var(--danger); }
.form-thanks {
  min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  box-shadow: 0 20px 50px -30px rgba(67, 77, 52, .35);
  padding: clamp(32px, 4.5vw, 56px);
  display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
}
.form-thanks__icon { width: 56px; height: 56px; border-radius: 50%; background: var(--brand); color: #F6F3EC; display: grid; place-items: center; font-size: 24px; }
.form-thanks h2 { font-size: 36px; color: var(--brand); }
.form-thanks p { font-size: 17px; line-height: 1.7; max-width: 380px; }

/* ---------------- Accordion ---------------- */
.mwc-accordion { border-top: 1px solid var(--line); }
.mwc-acc-item { border-bottom: 1px solid var(--line); }
.mwc-acc-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  text-align: left; background: none; border: 0; cursor: pointer; padding: 20px 4px;
  font-family: var(--font-display); font-weight: 500; font-size: 19px; color: var(--brand-strong);
}
.mwc-acc-trigger svg { width: 20px; height: 20px; flex: none; color: var(--accent); transition: transform var(--dur-base) var(--ease-out); }
.mwc-acc-item[data-open="true"] .mwc-acc-trigger svg { transform: rotate(45deg); }
.mwc-acc-panel { overflow: hidden; max-height: 0; visibility: hidden; transition: max-height var(--dur-base) var(--ease-out), visibility 0s var(--dur-base); }
.mwc-acc-item[data-open="true"] .mwc-acc-panel { max-height: 600px; visibility: visible; transition: max-height var(--dur-base) var(--ease-out); }
.mwc-acc-panel__inner { padding: 0 4px 22px; font-family: var(--font-body); font-size: 15.5px; line-height: 1.7; color: var(--text-soft); }

/* ---------------- Header ---------------- */
.site-header { position: relative; z-index: 5; }
.site-header__bar {
  max-width: 1280px; margin: 0 auto; padding: 0 clamp(18px, 3.5vw, 40px);
  min-height: clamp(76px, 7vw, 92px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; flex-direction: column; gap: 2px; line-height: 1.05; color: var(--brand); }
.brand:hover { color: var(--brand); }
.brand__name { font-family: var(--font-display); font-size: clamp(24px, 2.2vw, 29px); font-weight: 600; letter-spacing: -0.01em; }
.brand__tag { font-family: var(--font-display); font-style: italic; font-size: 16px; color: var(--accent); }
.nav { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 28px); }
.nav a {
  font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-strong); white-space: nowrap; padding: 8px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--accent); }
.nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.site-header__actions { display: flex; align-items: center; gap: 10px; }
.menu-btn {
  display: none; width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: transparent; color: var(--brand);
  place-items: center; cursor: pointer; padding: 0;
}
.mobile-nav { display: none; flex-direction: column; padding: 0 clamp(18px, 3.5vw, 40px) 16px; }
.mobile-nav a { padding: 13px 0; font-size: 17px; font-weight: 600; color: var(--brand-strong); border-bottom: 1px solid var(--line); }
.mobile-nav a[aria-current="page"] { color: var(--accent); }

@media (max-width: 1199.98px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
  .mobile-nav.is-open { display: flex; }
}

/* ---------------- Shared bands ---------------- */
.closing-cta { background: var(--brand); color: var(--text-on-brand); padding: clamp(80px, 9vw, 120px) clamp(22px, 4.5vw, 56px); }
.closing-cta__inner { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.closing-cta h2 { font-size: clamp(38px, 4.4vw, 58px); line-height: 1.08; color: #F6F3EC; }
.closing-cta p { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.65; }
.closing-cta__action { padding-top: 10px; }
.closing-cta__returning { margin: 18px 0 0; font-size: 15px; opacity: .85; }
.closing-cta__returning a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

.land-ack { padding: clamp(56px, 6vw, 80px) clamp(22px, 4.5vw, 56px); }
.land-ack__inner { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.land-ack p { font-family: var(--font-display); font-style: italic; font-size: clamp(20px, 2vw, 24px); line-height: 1.5; color: var(--brand-strong); }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--brand-deep); color: var(--text-on-brand); padding: clamp(64px, 7vw, 96px) clamp(22px, 4.5vw, 56px) 28px; }
.site-footer a { color: var(--text-on-brand); }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.site-footer__inner { max-width: 1180px; margin: 0 auto; display: flex; flex-direction: column; gap: 48px; }
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 44px; }
.site-footer__contact { flex: 1 1 280px; display: flex; flex-direction: column; gap: 14px; font-size: 16px; line-height: 1.6; }
.site-footer__contact > a { overflow-wrap: anywhere; }
.site-footer__lockup { display: flex; flex-direction: column; line-height: 1; }
.site-footer__name { font-family: var(--font-display); font-weight: 600; font-size: 38px; }
.site-footer__tag { font-family: var(--font-display); font-style: italic; font-size: 22px; color: #D9DDC6; }
.site-footer__nav { flex: 0 1 300px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; align-content: start; }
.site-footer__nav a { font-size: 16px; }
.site-footer__bottom {
  border-top: 1px solid rgba(246, 243, 236, .22); padding-top: 22px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px;
}

/* ---------------- Cards / grids ---------------- */
.lift { transition: transform .25s ease-out, box-shadow .25s ease-out; }
.lift:hover { transform: translateY(-5px); box-shadow: 0 26px 48px -26px rgba(67, 77, 52, .5) !important; }
.lift--service:hover { box-shadow: 0 24px 44px -24px rgba(67, 77, 52, .45) !important; }
a.lift:hover { color: var(--text); }

.post-grid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------------- Homepage word ribbon ---------------- */
@keyframes gdMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.gd-marquee { display: flex; width: max-content; animation: gdMarquee 40s linear infinite; }
.gd-marquee__item { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; }
.gd-marquee__word { font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 34px); color: var(--brand); white-space: nowrap; }
.gd-marquee__mark { color: var(--accent); font-size: 18px; }

/* ---------------- Blog article links ---------------- */
.post-body a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .gd-marquee { animation: none !important; }
  .lift:hover, .mwc-btn:hover { transform: none; }
}

/* Keep the header CTA compact on small phones so the logo lockup doesn't wrap */
@media (max-width: 420px) {
  .site-header__actions .mwc-btn--sm { padding: 9px 12px; font-size: 12.5px; }
}
