/* =========================================================
   The Second Act Counselling — shared stylesheet
   Palette & type drawn from the parchment-book logo.
   ========================================================= */

:root {
  --ink:        #34281f;   /* main text — dark brown ink            */
  --ink-soft:   #5d4a39;   /* secondary text                        */
  --burgundy:   #7a2c2c;   /* logo lettering                        */
  --burgundy-dk:#591e1e;
  --dragon:     #b5392b;   /* dragon red accent                     */
  --gold:       #b08833;   /* quill / gilt accent                   */
  --gold-dk:    #8a6a26;
  --parchment:  #efe2c4;   /* page base                             */
  --parchment-2:#e7d6b2;
  --card:       #fdf6e6;   /* raised cards                          */
  --card-edge:  #ddc9a2;
  --line:       #e0cda6;
  --shadow:     rgba(70, 45, 20, 0.16);
  --shadow-lg:  rgba(70, 45, 20, 0.22);
  --maxw: 1120px;
  --radius: 12px;
  --ease: cubic-bezier(.21,.6,.35,1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  color: var(--ink);
  font-family: "Lora", Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.72;
  background-color: var(--parchment);
  /* Aged-parchment: soft light pooling in the centre, warmer at the edges */
  background-image:
    radial-gradient(ellipse 80% 60% at 50% 22%, rgba(255,250,235,0.65), transparent 70%),
    radial-gradient(ellipse at 85% 0%,  rgba(176,136,51,0.10), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(120,80,30,0.12), transparent 55%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
/* Fine paper grain + edge vignette as a fixed overlay */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(ellipse 120% 120% at 50% 50%, transparent 60%, rgba(90,60,25,0.10) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

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

a { color: var(--burgundy); text-underline-offset: 2px; text-decoration-color: rgba(122,44,44,0.35); }
a:hover { color: var(--dragon); }

h1, h2, h3, h4 {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--burgundy);
  line-height: 1.14;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.3rem, 5.5vw, 3.7rem); }
h2 { font-size: clamp(1.7rem, 3.8vw, 2.6rem); }
h3 { font-size: 1.3rem; color: var(--burgundy-dk); letter-spacing: 0; }

p { margin: 0 0 1.1em; }
.lead { font-size: clamp(1.12rem, 2vw, 1.28rem); color: var(--ink-soft); line-height: 1.6; }

.container { width: 90%; max-width: var(--maxw); margin: 0 auto; }
.section { padding: clamp(3.2rem, 7vw, 6rem) 0; }
.section--tight { padding: clamp(2rem, 4vw, 3rem) 0; }
.center { text-align: center; }

/* Section heading helper */
.section-head { max-width: 42rem; margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; }
.section-head p.lead { margin-bottom: 0; }

/* Decorative gilt divider */
.flourish {
  text-align: center; color: var(--gold); font-size: 1.2rem;
  letter-spacing: 0.6em; margin: 0.4em 0 1.2em; user-select: none;
}
.eyebrow {
  display: inline-block;
  text-transform: uppercase; letter-spacing: 0.2em;
  font-size: 0.78rem; font-weight: 700; color: var(--dragon);
  font-family: "Lora", serif; margin-bottom: 0.6rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: "Lora", serif; font-weight: 700; font-size: 1rem;
  padding: 0.82em 1.7em; border-radius: 999px;
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.btn--primary {
  background: linear-gradient(165deg, #c2432f, var(--burgundy));
  color: #fdf3e0; box-shadow: 0 6px 18px rgba(122,44,44,0.32);
}
.btn--primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(122,44,44,0.40); }
.btn--ghost { background: transparent; color: var(--burgundy); border-color: var(--gold); }
.btn--ghost:hover { background: rgba(176,136,51,0.16); color: var(--burgundy-dk); transform: translateY(-2px); }
.btn--light { background: #fdf3e0; color: var(--burgundy); }
.btn--light:hover { background: #fff; transform: translateY(-2px); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243,231,205,0.86);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; }
.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; }
.brand img { height: 52px; width: auto; }
.brand-text { font-family: "Playfair Display", serif; font-weight: 700; color: var(--burgundy); font-size: 1.1rem; line-height: 1.05; }
.brand-text small { display:block; font-size: 0.62rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold-dk); font-weight:700; margin-top: 2px; }

.nav-links { display: flex; align-items: center; gap: 0.15rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; text-decoration: none; color: var(--ink);
  font-weight: 600; font-size: 0.96rem; padding: 0.5em 0.85em; border-radius: 8px;
  transition: color .15s, background .15s;
}
.nav-links a:hover { background: rgba(176,136,51,0.16); color: var(--burgundy); }
.nav-links a.active { color: var(--dragon); }
.nav-links a.active:not(.btn)::after {
  content: ""; display: block; height: 2px; background: var(--dragon);
  border-radius: 2px; margin: 2px 0.85em 0;
}
.nav-links .btn { padding: 0.55em 1.2em; margin-left: 0.4rem; }

.nav-toggle {
  display: none; background: none; border: 1.5px solid var(--card-edge);
  border-radius: 9px; padding: 0.35em 0.6em; cursor: pointer; color: var(--burgundy);
  font-size: 1.25rem; line-height: 1;
}

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--parchment); border-bottom: 1px solid var(--line);
    padding: 0.6rem 5%; gap: 0.1rem; display: none; box-shadow: 0 12px 24px var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.8em 0.5em; }
  .nav-links a.active:not(.btn)::after { display: none; }
  .nav-links .btn { margin: 0.5rem 0 0.2rem; justify-content: center; }
}

/* ---------- Hero (photo) ---------- */
.hero { position: relative; isolation: isolate; color: #fbeed6; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(64,21,21,0.92) 0%, rgba(78,26,26,0.82) 42%, rgba(60,30,15,0.55) 100%),
    linear-gradient(0deg, rgba(40,15,12,0.55), transparent 55%);
}
.hero-inner { padding: clamp(4rem, 11vw, 8rem) 0 clamp(3.5rem, 8vw, 6rem); max-width: 40rem; }
.hero .eyebrow { color: #f0c97a; }
.hero h1 { color: #fdf4e2; text-shadow: 0 2px 18px rgba(0,0,0,0.30); }
.hero h1 .em { color: #f3b14a; font-style: italic; }
.hero .lead { color: #f3e6cd; max-width: 34rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }
.hero-meta { margin-top: 1.6rem; font-size: 0.92rem; color: #e7d2ad; display:flex; flex-wrap:wrap; gap:0.4rem 1.2rem; }
.hero-meta span { display:inline-flex; align-items:center; gap:0.45em; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--card-edge);
  border-radius: var(--radius); padding: 1.6rem 1.7rem;
  box-shadow: 0 4px 14px rgba(70,45,20,0.08);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.card h3 { margin-top: 0.3rem; }
.card .icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.7rem; height: 2.7rem; border-radius: 11px;
  background: rgba(176,136,51,0.14); color: var(--burgundy);
  margin-bottom: 0.85rem;
}

/* SVG line icons (replace emoji) */
.icon svg { width: 1.45rem; height: 1.45rem; display: block; }

/* ---------- Issue grid (what I help with) ---------- */
.issue-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
@media (max-width: 860px) { .issue-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .issue-grid { grid-template-columns: 1fr; } }
.issue-card {
  position: relative; background: var(--card); border: 1px solid var(--card-edge);
  border-radius: var(--radius); padding: 1.5rem 1.5rem 1.55rem;
  box-shadow: 0 4px 14px rgba(70,45,20,0.07);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s;
  overflow: hidden;
}
.issue-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(var(--dragon), var(--gold)); opacity: .85;
}
.issue-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px var(--shadow); border-color: var(--gold); }
.issue-card .icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.7rem; height: 2.7rem; border-radius: 11px;
  background: rgba(176,136,51,0.14); color: var(--burgundy); margin-bottom: 0.85rem;
}
.issue-card h3 { margin: 0 0 0.35rem; font-size: 1.18rem; }
.issue-card p { margin: 0; font-size: 0.98rem; color: var(--ink-soft); line-height: 1.55; }

/* Panel — softly framed content block, like a manuscript page */
.panel {
  background: var(--card); border: 1px solid var(--card-edge);
  border-radius: 16px; padding: clamp(1.6rem, 4vw, 2.8rem);
  box-shadow: 0 8px 26px var(--shadow);
}

/* Two-column layout */
.split { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(1.6rem,4vw,3.2rem); align-items: start; }
@media (max-width: 780px) { .split { grid-template-columns: 1fr; } }
.portrait { background: var(--card); border: 1px solid var(--card-edge); border-radius: 16px; padding: 0.5rem; box-shadow: 0 12px 30px var(--shadow); }
.portrait img { border-radius: 11px; width: 100%; }

/* Lists with gilt markers */
.tick-list { list-style: none; padding: 0; margin: 0; }
.tick-list li { position: relative; padding-left: 1.7em; margin-bottom: 0.7em; }
.tick-list li::before { content: "✦"; position: absolute; left: 0; color: var(--gold); }

/* Quote / callout */
.callout {
  border-left: 4px solid var(--gold); background: rgba(176,136,51,0.10);
  padding: 1rem 1.4rem; border-radius: 0 10px 10px 0; margin: 1.4rem 0;
  font-style: italic; font-size: 1.1rem; color: var(--ink-soft);
}

/* Specialty tags */
.tags { display:flex; flex-wrap:wrap; gap:0.55rem; margin: 0; padding:0; list-style:none; }
.tags li {
  font-size: 0.88rem; font-weight:600; color: var(--burgundy);
  background: var(--card); border:1px solid var(--card-edge);
  padding: 0.4em 0.95em; border-radius: 999px;
}

/* ---------- CTA / photo bands ---------- */
.cta-band { background: linear-gradient(165deg, rgba(122,44,44,0.97), rgba(89,30,30,0.98)); color: #f7ead0; text-align: center; }
.cta-band h2 { color: #fdf3e0; }
.cta-band p { color: #f1ddc0; }
.cta-band .btn--primary { background: linear-gradient(165deg,#e8c977,#c89f3f); color:#4a1f1f; box-shadow: 0 6px 18px rgba(0,0,0,0.25); }
.cta-band .btn--primary:hover { color:#3a1717; }

.band--photo { position: relative; isolation: isolate; color: #f7ead0; text-align: center; overflow: hidden; }
.band--photo .band-bg { position:absolute; inset:0; z-index:-2; }
.band--photo .band-bg img { width:100%; height:100%; object-fit: cover; }
.band--photo::after { content:""; position:absolute; inset:0; z-index:-1; background: linear-gradient(0deg, rgba(58,20,18,0.90), rgba(70,28,20,0.78)); }
.band--photo h2 { color:#fdf3e0; }
.band--photo p { color:#f1ddc0; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 1rem; }
.field label { display:block; font-weight:600; margin-bottom: 0.3em; color: var(--ink); }
.field input, .field textarea, .field select {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink);
  padding: 0.72em 0.85em; border-radius: 9px; border: 1px solid var(--card-edge); background: #fffdf6;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(176,136,51,0.25);
}
.field textarea { min-height: 150px; resize: vertical; }
.form-row { display:grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px){ .form-row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: linear-gradient(170deg, #6f2727, var(--burgundy-dk)); color: #f0dcbd; margin-top: 0; }
.site-footer a { color: #f3e4c6; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2.2rem; padding: 3.2rem 0 1.6rem; }
@media (max-width: 740px){ .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; } }
.site-footer h4 { color: #f7ead0; font-size: 0.95rem; letter-spacing: 0.06em; text-transform: uppercase; }
.footer-brand img { height: 66px; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3)); margin-bottom: 0.7rem; }
.footer-brand p { color: #ecd6b3; font-size: 0.96rem; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: 0.45em; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.16); padding: 1.1rem 0; font-size: 0.84rem; color: #e3cca7; display:flex; flex-wrap:wrap; gap:0.5rem 1.5rem; justify-content: space-between; }

/* ---------- Interior page head ---------- */
.page-head { padding: clamp(2.6rem,6vw,4.2rem) 0 clamp(1.5rem,3vw,2rem); text-align:center; }
.page-head .lead { max-width: 60ch; margin-inline:auto; }

.note { font-size: 0.92rem; color: var(--ink-soft); }
.skip-link { position:absolute; left:-999px; }
.skip-link:focus { left: 1rem; top:1rem; background:var(--card); padding:0.6em 1em; border-radius:8px; z-index:100; }

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