/* ============================================================
   RACF Specialists — styles.css
   Warm, dignified, calm. Mobile-first. WCAG AA focused.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Brand */
  --navy:        #0B2B5A;   /* deep brand navy — headings, primary buttons */
  --navy-deep:   #072356;
  --teal:        #0E7A8A;   /* accent */
  --teal-dark:   #0A6675;   /* accessible teal for links/hover on light bg */
  --slate-blue:  #4D759A;

  /* Neutrals */
  --bg:          #F7F4EE;   /* warm off-white page background */
  --surface:     #FFFFFF;
  --surface-soft:#EFF1EC;   /* gentle sage-tinted alt section */
  --ink:         #25292F;   /* deep charcoal text */
  --ink-soft:    #4C545D;   /* muted body text (AA on bg & surface) */
  --border:      #DBD7CC;
  --border-soft: #E7E3D8;

  /* Type */
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --fs-base: 1.125rem;       /* 18px */

  /* Layout */
  --maxw: 1120px;
  --maxw-narrow: 760px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 6px 24px rgba(11, 43, 90, 0.08);
  --shadow-soft: 0 2px 10px rgba(11, 43, 90, 0.06);
  --gap: clamp(1.5rem, 4vw, 3rem);
  --section-y: clamp(3.5rem, 8vw, 6.5rem);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.18;
  color: var(--navy);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 5.5vw, 3.1rem); font-weight: 500; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.4rem); }
p  { margin: 0 0 1.1em; color: var(--ink-soft); }
p:last-child { margin-bottom: 0; }

a { color: var(--teal-dark); }
a:hover { color: var(--navy); }

strong { color: var(--ink); font-weight: 600; }

/* ---------- Accessibility helpers ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  background: var(--navy);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; color: #fff; }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}
.narrow { max-width: var(--maxw-narrow); }

.section { padding-block: var(--section-y); }
.section .container + .container { margin-top: clamp(2rem, 5vw, 3.25rem); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 244, 238, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--navy);
}
.brand-mark { display: block; }
.brand-words { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: 0.18em;
  color: var(--navy);
}
.brand-sub {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--slate-blue);
  margin-top: 3px;
}

.site-nav { display: flex; align-items: center; }
.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
}
.nav-menu a {
  display: inline-block;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 1rem;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
}
.nav-menu a:hover { color: var(--navy); background: var(--surface-soft); }
.nav-cta {
  background: var(--navy);
  color: #fff !important;
  margin-left: 0.35rem;
}
.nav-cta:hover { background: var(--navy-deep); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.85rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  min-height: 44px;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  position: relative;
}
.nav-toggle-bar::before { position: absolute; top: -6px; }
.nav-toggle-bar::after  { position: absolute; top: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 0.85rem 1.6rem;
  min-height: 48px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-deep); color: #fff; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--slate-blue);
}
.btn-ghost:hover { background: var(--surface); color: var(--navy); border-color: var(--navy); }
.btn-block { width: 100%; }

/* ---------- Shared bits ---------- */
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--teal-dark);
  margin-bottom: 0.75rem;
}
.inline-icon {
  width: 1.15em;
  height: 1.15em;
  vertical-align: -0.18em;
  color: var(--teal);
  flex: none;
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(120% 90% at 85% -10%, rgba(77, 117, 154, 0.18), transparent 60%),
    radial-gradient(90% 80% at 0% 0%, rgba(14, 122, 138, 0.10), transparent 55%),
    var(--bg);
  padding-block: clamp(3rem, 9vw, 6rem);
}
.hero-inner { max-width: 820px; }
.hero h1 { margin-bottom: 0.5em; }
.hero-sub {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  color: var(--ink-soft);
  max-width: 60ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 1.75rem 0 1.5rem;
}
.hero-note {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.98rem;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- Intro ---------- */
.section--intro { background: var(--surface); }

/* ---------- Cards ---------- */
.card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--gap);
}
.card-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.card-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
}
.section--intro .card { background: var(--bg); }
.card h3 { margin-bottom: 0.4em; }
.card p { margin: 0; }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(14, 122, 138, 0.10);
  color: var(--teal-dark);
  margin-bottom: 1rem;
}
.card-icon svg { width: 26px; height: 26px; }

/* (service cards retired in favour of the editorial list below) */

/* ---------- About / Team ---------- */
.section--about { background: var(--bg); }
.team-heading { margin-bottom: 1.5rem; }

.team-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--gap);
  grid-template-columns: 1fr;
}
.team-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-soft);
}
.team-portrait {
  background: linear-gradient(160deg, #fff, var(--surface-soft));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 320px;
}
.team-portrait img { width: 100%; height: auto; mix-blend-mode: multiply; }
.team-name { margin-bottom: 0.15em; }
.post-nominals {
  font-family: var(--font-body);
  font-size: 0.72em;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--slate-blue);
}
.team-role {
  font-weight: 600;
  color: var(--teal-dark);
  margin-bottom: 0.4em;
}
.team-affil { margin-bottom: 1.25em; }
.team-quote {
  position: relative;
  margin: 1.75rem 0 0;
  padding: 1.6rem 0 0;
  border-top: 1px solid var(--border);
}
.team-quote::before {
  content: "\201C";
  position: absolute;
  top: 0.55rem;
  left: -0.05em;
  font-family: var(--font-head);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--teal);
  opacity: 0.35;
  pointer-events: none;
}
.team-quote p {
  font-family: var(--font-head);
  font-size: 1.12rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.6;
}
.team-quote footer {
  font-style: normal;
  font-weight: 600;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

@media (min-width: 720px) {
  .team-card { grid-template-columns: minmax(0, 320px) 1fr; align-items: start; }
  .team-portrait { max-width: none; }
}

/* ---------- Services ---------- */
.section--services { background: var(--surface); }
.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}
.service-row {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: clamp(1rem, 4vw, 2.25rem);
  row-gap: 0.3rem;
  padding: clamp(1.5rem, 4vw, 2rem) 0;
  border-bottom: 1px solid var(--border);
}
.service-index {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--teal-dark);
  letter-spacing: 0.02em;
  line-height: 1.4;
}
.service-row-body h3 { margin: 0 0 0.3em; }
.service-row-body p { margin: 0; max-width: 58ch; }
@media (min-width: 720px) {
  .service-row {
    grid-template-columns: 3.5rem 1fr;
    align-items: baseline;
    padding: 2rem 0;
  }
  .service-index { font-size: 1.3rem; }
}

/* ---------- How it works / steps ---------- */
.section--steps { background: var(--surface-soft); }
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  counter-reset: step;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.step-body h3 { margin-bottom: 0.35em; }
.step-body p { margin: 0; }
.steps-note {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 2rem;
  padding: 1.1rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--ink);
}

/* ---------- Contact ---------- */
.section--contact { background: var(--bg); }
.contact-inner {
  display: grid;
  gap: var(--gap);
  grid-template-columns: 1fr;
}
.contact-callout {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
}
.contact-details {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.contact-details li { display: flex; flex-direction: column; gap: 0.15rem; }
.contact-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--slate-blue);
}
.contact-details a { font-weight: 600; font-size: 1.05rem; }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  box-shadow: var(--shadow);
}
.field { margin-bottom: 1.25rem; }
.field label {
  display: block;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.req { color: var(--teal-dark); }
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  min-height: 48px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus,
.field textarea:focus {
  border-color: var(--teal);
  background: var(--surface);
  outline: 3px solid rgba(14, 122, 138, 0.25);
  outline-offset: 1px;
}
.field-hint {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0.45rem 0 0;
}
.hp-field { position: absolute; left: -9999px; }

@media (min-width: 860px) {
  .contact-inner { grid-template-columns: 1fr 1fr; align-items: start; gap: clamp(2.5rem, 5vw, 4rem); }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: #DDE5F0;
  padding-block: clamp(2.5rem, 6vw, 4rem);
}
.footer-inner {
  display: grid;
  gap: 1.5rem;
}
.site-footer .brand-name { color: #fff; }
.site-footer .brand-sub { color: #93A6C4; }
.footer-brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}
.footer-nav a {
  color: #DDE5F0;
  text-decoration: none;
  font-weight: 500;
}
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-fine { font-size: 0.95rem; color: #C2CFE2; margin: 0; line-height: 1.6; }
.footer-fine .muted { color: #93A6C4; font-size: 0.88rem; }

@media (min-width: 760px) {
  .footer-inner {
    grid-template-columns: auto 1fr;
    align-items: center;
    row-gap: 1.25rem;
  }
  .footer-fine { grid-column: 1 / -1; }
}

/* ---------- Mobile nav ---------- */
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 0.75rem clamp(1.25rem, 5vw, 2.5rem) 1.25rem;
    display: none;
  }
  .site-header { position: sticky; }
  .header-inner { position: relative; }
  .nav-menu.is-open { display: flex; }
  .nav-menu a { padding: 0.85rem 0.75rem; font-size: 1.05rem; }
  .nav-cta { margin-left: 0; text-align: center; margin-top: 0.35rem; }
}

/* ---------- Thank-you page ---------- */
.thanks-main {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: var(--section-y);
}
.thanks-card { max-width: 560px; }
.thanks-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(14, 122, 138, 0.12);
  color: var(--teal-dark);
}
.thanks-icon svg { width: 38px; height: 38px; }
