/* Jessika Malone Counseling — rebuilt static site
   Palette + type carried over from the original Blocksy design. */

:root {
  --cream:    #f8f6f2;
  --paper:    #ffffff;
  --mist:     #f2f5f7;
  --line:     #e1e8ed;
  --ink:      #192a3d;
  --ink-deep: #0a221f;
  --slate:    #3a4f66;
  --blue:     #4492bb;
  --rose:     #da4256;
  --maxw:     1120px;
  --readw:    720px;
  --radius:   6px;
  --shadow:   0 6px 24px rgba(25,42,61,.08);
  --serif:    Georgia, "Times New Roman", Times, serif;
  --sans:     -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink-deep); line-height: 1.2; font-weight: 600; }
h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 .5em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin: 0 0 .6em; }
h3 { font-size: 1.25rem; margin: 0 0 .4em; }
p { margin: 0 0 1.1em; }
a { color: var(--blue); text-decoration: none; transition: color .15s; }
a:hover { color: var(--rose); }
img { max-width: 100%; height: auto; display: block; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 200;
}
.skip-link:focus { left: 8px; top: 8px; color: #fff; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.read { max-width: var(--readw); margin: 0 auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.brand img { height: 50px; width: auto; mix-blend-mode: darken; }
.brand { font-family: var(--serif); font-size: 1.15rem; color: var(--ink-deep); font-weight: 600; }
.nav { display: flex; align-items: center; gap: 1.35rem; }
.nav a { color: var(--ink); font-size: .98rem; }
.nav a:hover { color: var(--rose); }
.nav a.btn { color: var(--cream); }
.nav a.btn:hover { color: #fff; }
.has-sub { position: relative; }
.has-sub > a::after { content: " ▾"; font-size: .7em; color: var(--slate); }
.submenu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: .5rem; min-width: 240px;
  display: none; flex-direction: column; gap: .1rem;
}
@media (min-width: 961px) {
  .has-sub:hover .submenu, .has-sub:focus-within .submenu { display: flex; }
}
.submenu a { padding: .5rem .7rem; border-radius: 4px; font-size: .95rem; }
.submenu a:hover { background: var(--mist); color: var(--ink-deep); }
.nav .btn { margin-left: .25rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: var(--ink); color: var(--cream);
  padding: .7rem 1.4rem; border-radius: var(--radius); font-weight: 600; font-size: .98rem;
  border: 1px solid var(--ink); cursor: pointer; transition: background .18s, color .18s, transform .05s;
}
.btn:hover { background: var(--rose); border-color: var(--rose); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn-lg { padding: .9rem 1.8rem; font-size: 1.05rem; }

/* ---------- Hero ---------- */
/* Responsive min-height keeps enough of the hero image visible regardless of
   headline length or viewport size; content is vertically centred and grows
   past it only if it must. Scales with viewport height so short viewports
   (mobile) don't force a hero image crop that's mostly headline text. */
.hero { position: relative; color: #fff; display: grid; align-items: center; min-height: clamp(420px, 70vh, 700px); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; min-height: clamp(420px, 70vh, 700px); object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,34,31,.45), rgba(10,34,31,.68)); }
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: clamp(2.5rem, 5vw, 4rem) 24px; }
.hero-inner .lead { max-width: 640px; }
.hero h1 { color: #fff; }
.hero p { font-size: 1.2rem; color: #f3efe9; }
.hero .eyebrow { color: #ffd9c2; }

.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-family: var(--sans);
  font-weight: 700; color: var(--rose); margin: 0 0 .8rem; }

/* ---------- Sections ---------- */
section { padding: clamp(3rem, 7vw, 5rem) 0; }
section.tight { padding: clamp(2rem, 4vw, 3rem) 0; }
.section-alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.center { text-align: center; }

.prose ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin: .35em 0; }
.prose h2 { margin-top: 1.4em; }
.note { background: var(--mist); border-left: 3px solid var(--blue); padding: 1rem 1.2rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.5em 0; font-size: .97rem; }
.note-error { background: #fbeaea; border-left-color: #c0392b; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(25,42,61,.13); }
.card img { aspect-ratio: 3/2; object-fit: cover; width: 100%; }
.card-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: .3em; }
.card-body p { font-size: .97rem; color: var(--slate); flex: 1; }
.card-body .arrow { color: var(--blue); font-weight: 600; font-size: .95rem; margin-top: .4rem; }
.card:hover .arrow { color: var(--rose); }

/* pill list of specialties */
.pills { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 1rem 0 0; }
.pills a {
  display: inline-block; background: var(--paper); border: 1px solid var(--line);
  padding: .5rem 1rem; border-radius: 999px; color: var(--ink); font-size: .95rem; font-weight: 500;
}
.pills a:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* two-column split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink-deep); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #d7dee6; }
.cta-band a.contactline { color: #ffd9c2; }

/* ---------- FAQ ---------- */
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .8rem; padding: 0 1.2rem; }
.faq summary { cursor: pointer; padding: 1.1rem 0; font-weight: 600; font-family: var(--serif); font-size: 1.1rem; color: var(--ink-deep); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font-size: 1.4rem; margin-left: 1rem; }
.faq details[open] summary::after { content: "–"; }
.faq details[open] { padding-bottom: .6rem; }
.faq details p { color: var(--slate); font-size: 1rem; }

/* ---------- Contact form ---------- */
.form-grid { display: grid; gap: 1rem; }
.form-grid label { font-weight: 600; font-size: .95rem; display: block; margin-bottom: .3rem; }
.form-grid input, .form-grid textarea {
  width: 100%; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: var(--radius);
  font-family: inherit; font-size: 1rem; background: var(--paper); color: var(--ink);
}
.form-grid input:focus, .form-grid textarea:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
.reassure { font-size: .9rem; color: var(--slate); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-deep); color: #cdd6df; padding: 3rem 0 2rem; font-size: .95rem; }
.site-footer a { color: #e7ecf1; }
.site-footer a:hover { color: #ffd9c2; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { color: #fff; font-family: var(--sans); text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; margin: 0 0 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: .4rem 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.5rem; font-size: .85rem; color: #9fb0bf; }
.footer-brand .footer-wordmark { font-family: var(--serif); font-size: 1.35rem; color: #fff; display: block; margin-bottom: 1rem; }

/* ---------- Breadcrumb ---------- */
.crumb { font-size: .85rem; color: var(--slate); padding-top: 1.5rem; }
.crumb a { color: var(--slate); }
.crumb a:hover { color: var(--rose); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav {
    position: fixed; inset: 0; z-index: 150;
    background: var(--cream);
    flex-direction: column; align-items: center; gap: 0;
    padding: 96px 24px 2.5rem; margin: 0;
    display: none; overflow-y: auto;
    text-align: center;
  }
  .nav.open { display: flex; }
  .nav a { padding: .55rem 0; border-bottom: 0; color: var(--ink-deep); font-size: 1.2rem; font-weight: 700; }
  .nav .btn {
    margin: 1.75rem 0 0; padding: .55rem 1.1rem; font-size: .9rem; text-align: center;
  }
  .has-sub { display: flex; flex-direction: column; align-items: center; margin-bottom: .3rem; }
  .has-sub > a::after { content: ""; }
  .submenu {
    position: static; transform: none; display: flex;
    background: transparent; box-shadow: none; border: 0; border-radius: 0;
    padding: .1rem 0 .6rem; margin: 0; min-width: 0; gap: 0;
    flex-direction: column; align-items: center;
  }
  .submenu a { padding: .4rem 0; border-bottom: 0; color: var(--slate); font-size: .95rem; font-weight: 400; border-radius: 0; }
  .submenu a:hover { background: transparent; color: var(--rose); }
  .nav-toggle { display: block; position: relative; z-index: 160; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
