/* ============================================================
   PSES — Psychology Executive Services
   Shared stylesheet
   ============================================================ */

:root {
  --ink:    #14342e;   /* deep petrol green — brand / headings   */
  --ink-2:  #2c4a43;   /* softer heading tone                    */
  --bg:     #f4f5f2;   /* page background                        */
  --paper:  #ffffff;   /* cards / panels                         */
  --accent: #a9803f;   /* muted ochre — warmth, "the human"      */
  --sage:   #6e8b7e;   /* secondary eucalyptus                   */
  --muted:  #56605a;   /* body / secondary text                  */
  --line:   #dcddd6;   /* hairlines                              */
  --shadow: 0 1px 2px rgba(20,52,46,.04), 0 8px 30px rgba(20,52,46,.06);

  --display: "Spectral", Georgia, serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1120px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--muted);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

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

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
  font-family: var(--body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244,245,242,.85);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 74px; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .7rem; }
.brand img { height: 38px; width: auto; }
.brand-text { font-family: var(--display); font-weight: 600; color: var(--ink); font-size: 1.15rem; letter-spacing: .01em; }
.brand-text span { display: block; font-family: var(--body); font-weight: 500; font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--sage); }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a { font-size: .92rem; font-weight: 500; color: var(--ink-2); }
.nav a[aria-current="page"] { color: var(--accent); }
.nav a.disabled { color: #a8ada7; pointer-events: none; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5.5rem);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 55% at 82% 8%, rgba(110,139,126,.22), transparent 60%),
    radial-gradient(50% 50% at 12% 92%, rgba(169,128,63,.12), transparent 60%);
  pointer-events: none;
}
.hero .wrap { position: relative; max-width: 940px; }
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.3rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: .4em;
}
.hero h1 em { font-style: italic; color: var(--sage); }
.hero .lead {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  max-width: 40ch;
  color: var(--ink-2);
}
.hero-actions { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: .9rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: .95rem;
  padding: .8rem 1.6rem; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-2); color: #fff; transform: translateY(-1px); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }

/* ---------- Sections ---------- */
section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-head { max-width: 60ch; margin-bottom: clamp(2rem, 5vw, 3.2rem); }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 500; }
.section-head p { font-size: 1.08rem; margin: .6rem 0 0; }

.band { background: var(--ink); color: #dfe7e3; }
.band h2, .band h3 { color: #fff; }
.band .eyebrow { color: #b9cabf; }
.band .lead-quote {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3.5vw, 2.3rem);
  font-weight: 400; font-style: italic;
  color: #fff; line-height: 1.35; max-width: 26ch;
}

/* ---------- Services grid ---------- */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 2rem 1.9rem;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 40px rgba(20,52,46,.10); }
.card .num {
  font-family: var(--body); font-size: .75rem; font-weight: 700;
  letter-spacing: .1em; color: var(--accent); display: block; margin-bottom: 1rem;
}
.card h3 { font-size: 1.28rem; font-weight: 600; margin-bottom: .5rem; }
.card p { margin: 0; font-size: .98rem; }

/* ---------- Purpose split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split .panel { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: clamp(2rem,4vw,3rem); box-shadow: var(--shadow); }
.split blockquote { margin: 0; }

/* ---------- Clients ---------- */
.clients { text-align: center; }
.client-logos {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: clamp(2rem, 6vw, 5rem); margin-top: 2rem;
}
.client-logos img { height: 54px; width: auto; opacity: .78; filter: grayscale(1); transition: .25s; }
.client-logos a:hover img { opacity: 1; filter: none; }

/* ---------- About ---------- */
.prose { max-width: 68ch; }
.prose p { margin: 0 0 1.2rem; font-size: 1.06rem; }
.prose .drop { font-size: 1.2rem; color: var(--ink-2); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 3.5rem); }
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.info-list li:last-child { border-bottom: 0; }
.info-list .label { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: .3rem; }
.info-list a { color: var(--ink-2); }
.info-list a:hover { color: var(--accent); }

form.contact { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: clamp(1.6rem, 3vw, 2.4rem); box-shadow: var(--shadow); }
form.contact label { display: block; font-size: .82rem; font-weight: 600; color: var(--ink); margin: 1rem 0 .35rem; letter-spacing: .02em; }
form.contact input, form.contact textarea {
  width: 100%; padding: .8rem .9rem; font-family: inherit; font-size: 1rem;
  color: var(--ink); background: #fbfbf9;
  border: 1px solid var(--line); border-radius: 10px; transition: border-color .2s, box-shadow .2s;
}
form.contact input:focus, form.contact textarea:focus {
  outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px rgba(110,139,126,.18);
}
form.contact textarea { min-height: 130px; resize: vertical; }
form.contact .btn { margin-top: 1.4rem; width: 100%; justify-content: center; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: .9rem; text-align: center; }

.map-embed { margin-top: 2.5rem; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.map-embed iframe { display: block; width: 100%; height: 320px; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #b9c6c0; padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.site-footer h4 { color: #fff; font-family: var(--body); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; margin-bottom: 1rem; }
.site-footer p, .site-footer a { color: #b9c6c0; font-size: .95rem; }
.site-footer a:hover { color: #fff; }
.footer-brand { font-family: var(--display); font-size: 1.4rem; color: #fff; margin-bottom: .8rem; }
.footer-social { display: flex; gap: 1rem; margin-top: 1rem; }
.footer-social a { font-size: .85rem; letter-spacing: .04em; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 3rem; padding-top: 1.5rem; font-size: .85rem; color: #8ba097; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .split, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .nav {
    position: fixed; inset: 74px 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter) 1.5rem; display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: .8rem 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
