/* ============================================================
   Artemis Counseling Services — shared system
   PNW Warm: soft light through Douglas fir
   ============================================================ */


:root {
  /* palette */
  --fern: #4A5D4E;      /* headings, primary   */
  --moss: #6E7F5C;      /* subheads, secondary */
  --clay: #C08552;      /* accents, buttons    */
  --clay-deep: #A56C3D; /* button hover        */
  --stone: #8A8174;     /* labels              */
  --cream: #F4EFE6;     /* page background     */
  --fog: #DDE3DE;       /* section panels      */
  --charcoal: #2E332D;  /* body text           */

  /* derived warm tints */
  --cream-deep: #ECE4D6;
  --fern-tint: #E4E9E2;
  --clay-tint: #F0E2D2;
  --line: rgba(46, 51, 45, 0.10);
  --line-soft: rgba(46, 51, 45, 0.06);

  --shadow-soft: 0 2px 8px rgba(46,51,45,0.04), 0 14px 40px -20px rgba(46,51,45,0.18);
  --shadow-lift: 0 4px 14px rgba(46,51,45,0.06), 0 26px 60px -28px rgba(46,51,45,0.28);

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Mulish', system-ui, -apple-system, sans-serif;

  --maxw: 1180px;
  --radius: 18px;
  --radius-lg: 28px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

/* ---- typography ---------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--fern);
  font-weight: 500;
  letter-spacing: 0.005em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 5.4vw, 4.5rem); font-weight: 500; }
h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); }
h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }

p { margin: 0 0 1.1em; text-wrap: pretty; max-width: 64ch; }

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

.eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin: 0 0 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.eyebrow.center { justify-content: center; }

.lede {
  font-size: clamp(1.18rem, 1.6vw, 1.42rem);
  line-height: 1.6;
  color: #3c4339;
}
.serif-quote {
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  color: var(--moss);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.25;
  text-wrap: balance;
}

/* ---- layout -------------------------------------------------------------- */

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 760px; }

section { position: relative; }
.section-pad { padding: clamp(72px, 11vw, 140px) 0; }
.panel { background: var(--fog); }
.panel-fern { background: var(--fern); color: #E9EDE7; }
.panel-fern h1, .panel-fern h2, .panel-fern h3 { color: #F4EFE6; }
.panel-cream { background: var(--cream-deep); }

/* ---- buttons ------------------------------------------------------------- */

.btn {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 15px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.4s var(--ease), background 0.3s var(--ease), box-shadow 0.4s var(--ease), color 0.3s var(--ease);
  text-decoration: none;
}
.btn-primary {
  background: var(--clay);
  color: #FBF6EE;
  box-shadow: 0 10px 24px -12px rgba(192,133,82,0.8);
}
.btn-primary:hover {
  background: var(--clay-deep);
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -12px rgba(165,108,61,0.7);
}
.btn-ghost {
  background: transparent;
  color: var(--fern);
  border-color: rgba(74,93,78,0.35);
}
.btn-ghost:hover {
  border-color: var(--fern);
  background: rgba(74,93,78,0.06);
  transform: translateY(-2px);
}
.btn-light { background: rgba(255,255,255,0.92); color: var(--fern); }
.btn-light:hover { background:#fff; transform: translateY(-2px); }
.btn .arrow { transition: transform 0.4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---- crescent mark ------------------------------------------------------- */

.crescent {
  display: inline-block;
  position: relative;
  border-radius: 50%;
  background: var(--clay);
}
.crescent::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--cream);
  transform: translate(28%, -16%) scale(0.92);
}

/* ---- nav ----------------------------------------------------------------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244,239,230,0.82);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow 0.4s var(--ease), background 0.4s var(--ease);
}
.nav.scrolled { box-shadow: 0 6px 24px -18px rgba(46,51,45,0.5); background: rgba(244,239,230,0.94); }
.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 16px 32px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .mark { width: 30px; height: 30px; flex: none; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--fern);
  line-height: 1;
}
.brand-sub {
  display: block;
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--stone);
  margin-top: 3px;
}
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a.link {
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--charcoal);
  padding: 9px 16px;
  border-radius: 999px;
  position: relative;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.nav-links a.link:hover { color: var(--fern); background: rgba(74,93,78,0.07); }
.nav-links a.link.active { color: var(--fern); }
.nav-links a.link.active::after {
  content:""; position:absolute; left:16px; right:16px; bottom:2px; height:2px;
  background: var(--clay); border-radius:2px;
}
.nav-cta { margin-left: 8px; }
.nav-toggle { display:none; }

/* ---- footer -------------------------------------------------------------- */

.footer { background: var(--charcoal); color: #C9CdC6; padding: 80px 0 40px; }
.footer h3 { color: #F4EFE6; }
.footer a { color: #C9CDC6; transition: color 0.25s var(--ease); }
.footer a:hover { color: var(--clay); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.footer-col h4 {
  color: #8f968c; font-family: var(--sans); font-weight:600;
  font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 18px;
}
.footer-col ul { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:11px; font-size:0.96rem; }
.footer-bot {
  padding-top: 28px; display:flex; justify-content:space-between; gap:20px; flex-wrap:wrap;
  font-size: 0.84rem; color:#8b9187;
}
.footer .brand-name { color:#F4EFE6; }

/* ---- image slots (placeholders) ------------------------------------------ */

.img-slot {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 75% 12%, rgba(255,255,255,0.5), transparent 55%),
    linear-gradient(155deg, var(--moss) 0%, var(--fern) 78%);
  color: rgba(255,255,255,0.92);
  display: flex; align-items: flex-end;
  box-shadow: var(--shadow-soft);
  isolation: isolate;
}
.img-slot.clay {
  background:
    radial-gradient(120% 90% at 75% 12%, rgba(255,255,255,0.45), transparent 55%),
    linear-gradient(155deg, #D49A66 0%, var(--clay) 70%, #A56C3D 100%);
}
.img-slot.fog {
  background:
    radial-gradient(120% 90% at 70% 10%, rgba(255,255,255,0.7), transparent 60%),
    linear-gradient(160deg, #EDF0EC 0%, var(--fog) 60%, #C9D2CB 100%);
  color: var(--fern);
}
.img-slot::before { /* faint fir/fern texture */
  content:"";
  position:absolute; inset:0; z-index:-1;
  opacity:0.16;
  background-image:
    repeating-linear-gradient(115deg, rgba(255,255,255,0.5) 0 1px, transparent 1px 13px),
    repeating-linear-gradient(245deg, rgba(0,0,0,0.18) 0 1px, transparent 1px 16px);
  mix-blend-mode: soft-light;
}
.img-slot .slot-label {
  font-family: var(--sans);
  font-size: 0.78rem;
  line-height: 1.45;
  padding: 16px 18px;
  letter-spacing: 0.01em;
  background: linear-gradient(0deg, rgba(20,24,20,0.34), transparent);
  width:100%;
}
.img-slot .slot-label b { display:block; font-weight:700; font-size:0.86rem; margin-bottom:2px; letter-spacing:0.06em; text-transform:uppercase; }
.img-slot.fog .slot-label { background: linear-gradient(0deg, rgba(74,93,78,0.10), transparent); }
.img-slot .slot-crescent { position:absolute; top:18px; right:18px; width:30px; height:30px; opacity:0.85; z-index:1; }

.ar-portrait { aspect-ratio: 4 / 5; }
.ar-square { aspect-ratio: 1 / 1; }
.ar-wide { aspect-ratio: 16 / 10; }
.ar-tall { aspect-ratio: 3 / 4; }
.ar-pano { aspect-ratio: 21 / 9; }

/* ---- cards / misc -------------------------------------------------------- */

.card {
  background: #FBF7EF;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }

.divider-leaf { display:flex; align-items:center; justify-content:center; gap:16px; color: var(--stone); opacity:0.7; }
.divider-leaf::before, .divider-leaf::after { content:""; height:1px; width:60px; background: currentColor; }

/* ---- reveal animation ---------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
  .reveal.d1 { transition-delay: 0.08s; }
  .reveal.d2 { transition-delay: 0.16s; }
  .reveal.d3 { transition-delay: 0.24s; }
  .reveal.d4 { transition-delay: 0.32s; }
}

/* ---- responsive ---------------------------------------------------------- */

@media (max-width: 860px) {
  body { font-size: 17px; }
  .nav-links { gap: 0; }
  .nav-links a.link { display:none; }
  .nav-cta { margin-left:0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-cta .btn { padding: 12px 18px; font-size: 0.92rem; }
}

/* ---- real image wiring (fills existing .img-slot boxes, design unchanged) -- */
.img-slot > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.img-slot > .slot-label { position: relative; z-index: 2; }
.img-slot > .slot-crescent { z-index: 2; }
/* once a real photo is present, hide the placeholder gradient text label */
.img-slot.has-photo > .slot-label { display: none; }

/* ---- shared CTA band (was per-page; centralized so no page can miss it) ---- */
.cta-band { background: linear-gradient(160deg, var(--moss) 0%, var(--fern) 85%); position:relative; overflow:hidden; }
.cta-band h2 { color:#F4EFE6; }
.cta-moon { width:clamp(56px,8vw,88px); height:auto; margin:0 auto 1.4rem; display:block; }
