/* ==========================================================================
   Word and Life Counselling Centre — shared stylesheet
   Palette: Navy #15202E · Terracotta #C1703F · Cream #FBF7F1
   ========================================================================== */

:root {
  --navy: #15202E;
  --navy-soft: #3A4A5E;
  --terracotta: #C1703F;
  --terracotta-dark: #A65E32;
  --sand: #F3E3D4;
  --sand-line: #E7E0D4;
  --cream: #FBF7F1;
  --white: #FFFFFF;
  --ink: #15202E;
  --body-text: #4E5666;
  --muted: #7A8494;
  --gold: #E7B48A;
  --radius: 4px;
  --container: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--ink); text-decoration: none; }

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

h1, h2, h3, h4 { margin: 0 0 0.5em; font-weight: 800; letter-spacing: -0.01em; }

p { margin: 0 0 1em; color: var(--body-text); }

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 16px;
  display: block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.btn-primary { background: var(--terracotta); color: var(--white); }
.btn-primary:hover { background: var(--terracotta-dark); }
.btn-outline { background: transparent; color: var(--cream); border: 1.5px solid var(--cream); }
.btn-outline:hover { background: rgba(251,247,241,0.1); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: #0E1826; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--terracotta); }

/* Header / Nav */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  background: var(--cream);
  position: relative;
  z-index: 100;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.logo img { height: 42px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav ul { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; align-items: center; }
.main-nav > ul > li { position: relative; }
.main-nav a.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  padding: 8px 0;
  display: inline-block;
}
.main-nav a.nav-link:hover { color: var(--terracotta); }

/* Services dropdown */
.has-dropdown > .nav-link::after {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-left: 7px;
  margin-bottom: 2px;
}
.dropdown {
  position: absolute;
  top: 100%;
  left: -20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(21,32,46,0.14);
  min-width: 280px;
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: flex;
  flex-direction: column;
  padding: 12px 14px;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}
.dropdown a span.desc { font-size: 12.5px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.dropdown a:hover { background: var(--sand); color: var(--terracotta-dark); }
.dropdown .dropdown-all {
  border-top: 1px solid var(--sand-line);
  margin-top: 6px;
  padding-top: 14px;
  color: var(--terracotta);
}

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  position: relative;
  transition: .2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: 85%;
    max-width: 360px;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    padding: 90px 28px 40px;
    box-shadow: -20px 0 40px rgba(0,0,0,0.15);
    transform: translateX(100%);
    transition: transform .25s ease;
    overflow-y: auto;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; align-items: flex-start; width: 100%; gap: 4px; }
  .main-nav > ul > li { width: 100%; }
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    display: none;
    width: 100%;
    padding: 4px 0 4px 14px;
  }
  .has-dropdown.open .dropdown { display: flex; flex-direction: column; }
  .main-nav .btn { margin-top: 20px; width: 100%; justify-content: center; }
  .nav-backdrop { display: none; position: fixed; inset: 0; background: rgba(21,32,46,0.4); z-index: 90; }
  .nav-backdrop.open { display: block; }
}

/* Hero */
.hero {
  position: relative;
  width: calc(100% - 48px);
  max-width: var(--container);
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(115deg, #0E1826 0%, #15202E 42%, #3A4A5E 68%, #C1703F 130%);
  min-height: 500px;
  display: flex;
  align-items: flex-end;
}
.hero::before {
  content: "";
  position: absolute; top: 0; right: 0;
  width: 55%; height: 100%;
  background: radial-gradient(ellipse at top right, rgba(241,201,158,0.35), transparent 60%);
}
.hero-inner { position: relative; padding: 72px 48px 64px; max-width: 620px; }
.hero h1 { font-size: 44px; line-height: 1.14; color: var(--white); margin-bottom: 22px; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero p { font-size: 17px; line-height: 1.7; color: #D8DEE6; max-width: 480px; margin-bottom: 32px; }
.hero .cta-row { display: flex; gap: 16px; flex-wrap: wrap; }

.page-hero {
  min-height: 300px;
  align-items: center;
}
.page-hero .hero-inner { padding: 56px 48px; max-width: 720px; }
.page-hero h1 { font-size: 38px; margin-bottom: 14px; }
.page-hero p { margin-bottom: 0; }

/* Sections */
section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 36px;
}
.section-label.on-dark { color: var(--gold); text-align: center; }

.bg-navy { background: var(--navy); color: var(--white); }
.bg-navy p { color: #B7C0CC; }
.bg-sand { background: var(--sand); }
.bg-white { background: var(--white); }
.bg-terracotta { background: var(--terracotta); color: var(--white); }

/* Grids / cards */
.grid { display: grid; gap: 4px; background: var(--sand-line); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid > * { background: var(--cream); }

.card { padding: 40px 32px; }
.card .icon-circle {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--sand);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.card .icon-circle svg { stroke: var(--terracotta); }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { font-size: 15px; margin-bottom: 14px; }

.explore-card {
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 160px;
}
.explore-card .title { font-weight: 700; font-size: 16px; color: var(--navy); }
.explore-card.featured { background: var(--navy); }
.explore-card.featured .title { color: var(--white); }
.explore-card.featured .desc { font-size: 12.5px; color: #B7C0CC; font-weight: 400; margin-top: 4px; }
.explore-card.featured .link-arrow { color: var(--gold); }

/* Team */
.team-card { background: var(--white); }
.team-photo {
  width: 100%; aspect-ratio: 0.9;
  background: var(--sand);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 13px;
}
.team-info { padding: 20px; }
.team-info .name { font-weight: 700; font-size: 17px; color: var(--navy); }
.team-info .role { font-size: 13px; color: var(--terracotta); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-top: 4px; }
.team-info .bio { font-size: 14px; margin-top: 12px; margin-bottom: 0; }

/* Promise / pillar stat blocks */
.promise-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 48px; max-width: 900px; margin: 0 auto; text-align: center; }
.promise-grid .label { font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--gold); margin-bottom: 14px; }

/* Fees table */
.fee-box { background: var(--sand); border-radius: var(--radius); padding: 40px; }
.fee-row { display: flex; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--sand-line); }
.fee-row:last-child { border-bottom: none; }
.fee-row .fee-name { font-weight: 600; font-size: 15px; color: var(--navy); }
.fee-row .fee-val { font-size: 15px; color: var(--body-text); }

/* Forms */
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--sand-line);
  border-radius: 3px;
  font-family: inherit;
  font-size: 15px;
  background: var(--white);
  color: var(--ink);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--terracotta);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* CTA band */
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { font-size: 30px; margin: 0; max-width: 600px; color: var(--white); }

/* Footer */
.site-footer { padding: 56px 0; background: var(--cream); border-top: 1px solid var(--sand-line); }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; }
.footer-brand img { height: 34px; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; max-width: 300px; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col .heading { font-weight: 700; font-size: 14px; color: var(--navy); margin-bottom: 14px; }
.footer-col div, .footer-col a { font-size: 14px; line-height: 2; color: var(--body-text); }
.footer-col a { display: block; }
.footer-col a:hover { color: var(--terracotta); }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--sand-line); font-size: 13px; color: var(--muted); }

/* Breadcrumb */
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--terracotta); }

/* Responsive */
@media (max-width: 900px) {
  .hero h1 { font-size: 34px; }
  .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .promise-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}
