/* ==========================================================================
   Cornerstone Wills & Trust — Kolleen C. Bannon, PA
   Design tokens
   ========================================================================== */

:root{
  /* Color */
  --paper:      #EDE6D6; /* warm limestone */
  --paper-dim:  #E3DAC4; /* slightly deeper limestone for alt sections */
  --stone:      #D6CCB2; /* mid stone — cards, rules, borders */
  --ink:        #22302A; /* deep pine charcoal — primary text / dark sections */
  --ink-soft:   #47564C; /* muted ink for secondary text */
  --patina:     #4B6B5C; /* verdigris — links, secondary accents */
  --brass:      #A9812E; /* aged brass — highlights, hover, small marks */
  --wine:       #6E3B3B; /* deep wine — primary calls to action */
  --wine-dark:  #552C2C;
  --cream:      #F7F3E9; /* near-white for cards on dark sections */

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.95rem);
  --step-0:  clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --step-1:  clamp(1.25rem, 1.15rem + 0.4vw, 1.5rem);
  --step-2:  clamp(1.6rem, 1.4rem + 0.8vw, 2.1rem);
  --step-3:  clamp(2.1rem, 1.7rem + 1.6vw, 3.1rem);
  --step-4:  clamp(2.7rem, 2.1rem + 2.6vw, 4.2rem);

  --rule: 1px solid var(--stone);
  --container: 1180px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1,h2,h3,h4{
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  color: var(--ink);
}
h1{ font-size: var(--step-4); }
h2{ font-size: var(--step-3); }
h3{ font-size: var(--step-2); }
h4{ font-size: var(--step-1); font-family: var(--font-body); font-weight: 700; }

p{ margin: 0 0 1.1em; max-width: 62ch; }
.lede{ font-size: var(--step-1); color: var(--ink-soft); max-width: 46ch; }

.wrap{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

/* Eyebrow / labels ------------------------------------------------------ */
.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  color: var(--wine);
  text-transform: uppercase;
  margin-bottom: 0.9em;
}

/* Corner mark — the recurring "cornerstone" signature ------------------- */
.mark{
  width: 1em; height: 1em;
  flex: none;
  display: inline-block;
}
.mark path{ fill: currentColor; }

.corner-rule{
  display:flex; align-items:center; gap:0.5rem;
  color: var(--brass);
}
.corner-rule::after{
  content:"";
  height:1px;
  flex:1;
  background: var(--stone);
}

/* Buttons ---------------------------------------------------------------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--step--1);
  letter-spacing: 0.02em;
  padding: 0.9em 1.5em;
  border-radius: 2px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color .15s ease;
  cursor: pointer;
}
.btn-primary{
  background: var(--wine);
  color: var(--cream);
}
.btn-primary:hover{ background: var(--wine-dark); transform: translateY(-1px); }
.btn-ghost{
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover{ border-color: var(--wine); color: var(--wine); }
.btn-ghost.on-dark{ color: var(--cream); border-color: rgba(247,243,233,0.5); }
.btn-ghost.on-dark:hover{ color: var(--brass); border-color: var(--brass); }

a:focus-visible, button:focus-visible, .btn:focus-visible{
  outline: 2px solid var(--wine);
  outline-offset: 3px;
}

/* Header ------------------------------------------------------------------ */
.site-header{
  background: var(--ink);
  color: var(--cream);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 3px solid var(--brass);
}
.site-header .wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}
.brand{
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--cream);
}
.brand .mark{ width: 1.9rem; height: 1.9rem; color: var(--brass); }
.brand-text{ display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong{ font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.brand-text span{ font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--stone); }

.nav-links{
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a{
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--cream);
  padding: 0.3rem 0.1rem;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a[aria-current="page"]{ border-bottom-color: var(--brass); }
.nav-phone{
  color: var(--brass) !important;
  white-space: nowrap;
}
.nav-toggle{
  display: none;
  background: none; border: 1px solid var(--stone); color: var(--cream);
  border-radius: 2px; padding: 0.4rem 0.6rem; font-size: 1rem;
}

@media (max-width: 820px){
  .nav-toggle{ display: inline-flex; }
  .nav-links{
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--ink);
    padding: 1rem clamp(1.25rem,4vw,3rem) 1.5rem;
    border-bottom: 3px solid var(--brass);
    display: none;
    gap: 0.9rem;
  }
  .nav-links.open{ display: flex; }
}

/* Hero ---------------------------------------------------------------- */
.hero{
  background: var(--paper);
  overflow: hidden;
}
.hero .wrap{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  padding-top: clamp(1.75rem, 3.5vw, 3rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
}
.hero-art{ margin: 0; }
.portrait-frame{
  position: relative;
  border: 1px solid var(--stone);
  padding: 10px;
  background: var(--cream);
  box-shadow: 0 18px 40px -24px rgba(34,48,42,0.5);
}
.portrait-frame::after{
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid var(--brass);
  pointer-events: none;
}
.portrait-frame img{
  width: 100%;
  height: auto;
  display: block;
  filter: saturate(0.96);
}
/* Hero portrait: controlled head-and-shoulders crop so it reads as a
   professional headshot rather than a tall full-length portrait. */
.hero-art .portrait-frame img{
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
  object-position: 50% 18%;
}
.hero-art figcaption{
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  margin-top: 0.9rem;
  padding-left: 0.2rem;
}
.hero-art figcaption strong{
  font-family: var(--font-display);
  font-size: var(--step-0);
  color: var(--ink);
}
.hero-art figcaption span{
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass);
}
@media (max-width: 900px){
  .hero .wrap{ grid-template-columns: 1fr; }
  .hero-art{ order: -1; max-width: 300px; margin: 0 auto; }
}
.hero h1{ margin-bottom: 0.4em; }
.hero .lede{ margin-bottom: 1.6em; }
.hero-ctas{ display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-bottom: 1.5rem; }
.hero-note{ font-size: var(--step--1); color: var(--ink-soft); }

/* Page header (interior pages) ------------------------------------------ */
.page-header{
  background: var(--ink);
  color: var(--cream);
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}
.page-header .eyebrow{ color: var(--brass); }
.page-header h1{ color: var(--cream); margin-bottom: 0.3em; }
.page-header .lede{ color: var(--stone); }

/* Sections ---------------------------------------------------------------- */
section{ padding: clamp(3rem, 6vw, 5.5rem) 0; }
.section-alt{ background: var(--paper-dim); }
.section-dark{ background: var(--ink); color: var(--cream); }
.section-dark h2, .section-dark h3{ color: var(--cream); }
.section-dark .lede{ color: var(--stone); }
.section-head{ max-width: 60ch; margin-bottom: 2.5rem; }

/* Grids & cards ----------------------------------------------------------- */
.grid{ display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px){ .grid-3{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px){ .grid-3, .grid-2{ grid-template-columns: 1fr; } }

.card{
  background: var(--cream);
  border: var(--rule);
  border-top: 3px solid var(--patina);
  padding: 1.9rem 1.7rem;
}
.card h3, .card h4{ margin-bottom: 0.4em; }
.card p:last-child{ margin-bottom: 0; }
.card .mark{ color: var(--brass); width: 1.6rem; height: 1.6rem; margin-bottom: 0.9rem; }

/* Process list ------------------------------------------------------------- */
.steps{ list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li{
  counter-increment: step;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  padding: 1.5rem 0;
  border-top: var(--rule);
}
.steps li:last-child{ border-bottom: var(--rule); }
.steps li::before{
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step-1);
  color: var(--brass);
}

/* Testimonials -------------------------------------------------------- */
.quote{
  background: var(--cream);
  border: var(--rule);
  padding: 1.9rem;
  position: relative;
}
.quote p{ font-family: var(--font-display); font-style: italic; font-size: var(--step-0); color: var(--ink); max-width: none; }
.quote cite{ display:block; font-style: normal; font-family: var(--font-body); font-weight: 700; font-size: var(--step--1); color: var(--ink-soft); margin-top: 0.8rem; }

/* FAQ --------------------------------------------------------------------- */
details.faq{
  border-top: var(--rule);
  padding: 1.3rem 0;
}
details.faq:last-child{ border-bottom: var(--rule); }
details.faq summary{
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-1);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
details.faq summary::-webkit-details-marker{ display:none; }
details.faq summary::after{
  content: "+";
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--brass);
  font-size: 1.4rem;
  flex: none;
}
details.faq[open] summary::after{ content: "–"; }
details.faq .faq-a{ padding-top: 0.9rem; color: var(--ink-soft); max-width: 68ch; }

/* CTA band --------------------------------------------------------------- */
.cta-band{
  background: var(--wine);
  color: var(--cream);
  text-align: center;
}
.cta-band h2{ color: var(--cream); }
.cta-band .lede{ color: var(--stone); margin-inline: auto; }
.cta-band .hero-ctas{ justify-content: center; }

/* Footer -------------------------------------------------------------- */
.site-footer{
  background: var(--ink);
  color: var(--stone);
  padding: 3rem 0 2rem;
  font-size: var(--step--1);
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(214,204,178,0.25);
}
@media (max-width: 700px){ .footer-grid{ grid-template-columns: 1fr; } }
.footer-grid h4{ color: var(--cream); font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.9rem; }
.footer-grid ul{ list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-grid a{ text-decoration: none; color: var(--stone); }
.footer-grid a:hover{ color: var(--brass); }
.footer-bottom{ padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.footer-brand{ display:flex; align-items:center; gap:0.6rem; color: var(--cream); }
.footer-brand .mark{ width:1.4rem; height:1.4rem; color: var(--brass); }
.disclaimer{ max-width: 62ch; color: rgba(214,204,178,0.65); font-size: 0.78rem; }

/* About-page portrait + family band ------------------------------------ */
.about-portrait{ margin: 0 0 1.25rem; }
.about-portrait img{ width: 100%; height: auto; display: block; filter: saturate(0.96); }
.family-band .portrait-frame img{ width: 100%; height: auto; display: block; }
@media (max-width: 640px){
  .family-band{ gap: 1.5rem; }
}

/* Reveal on scroll ------------------------------------------------------ */
.reveal{ opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible{ opacity: 1; transform: none; }

/* Utility ------------------------------------------------------------- */
.center{ text-align: center; margin-inline: auto; }
.small{ font-size: var(--step--1); }
.stack-sm > * + *{ margin-top: 0.6rem; }
