/* ============================================
   Dead Parents Society — stylesheet
   deadparentssociety.co
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;1,400&family=Inter:wght@300;400;500&display=swap');

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --parchment:   #F7F3EE;
  --linen:       #EDE6DC;
  --charcoal:    #2C2825;
  --mid:         #6B6057;
  --sage:        #7A9E7E;
  --sage-light:  #C4D9C6;
  --rose:        #C4847A;
  --rose-light:  #EDD5D2;
  --white:       #FFFFFF;

  --font-display: 'Lora', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --max-width: 860px;
  --gap: 2rem;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--parchment);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--sage); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--rose); }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.25;
  color: var(--charcoal);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 600; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; }
h4 { font-size: 1rem; font-weight: 600; }

p { margin-bottom: 1rem; color: var(--mid); }
p:last-child { margin-bottom: 0; }

strong { color: var(--charcoal); font-weight: 500; }

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 4rem 0;
}

/* --- Signature element: wavy divider --- */
.wave-divider {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin: 0;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: 32px;
}

.divider-line {
  border: none;
  height: 2px;
  background: none;
  position: relative;
  margin: 2.5rem auto;
  max-width: 120px;
  text-align: center;
}

.divider-line::before {
  content: '';
  display: block;
  height: 2px;
  background: var(--sage-light);
  border-radius: 2px;
}

/* --- Navigation --- */
.site-nav {
  background: var(--white);
  border-bottom: 1px solid var(--linen);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--charcoal);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-logo span {
  color: var(--rose);
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--mid);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--charcoal);
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: all 0.3s;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--sage);
  color: var(--white);
  border-color: var(--sage);
}

.btn-primary:hover {
  background: #698a6d;
  border-color: #698a6d;
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}

.btn-outline:hover {
  background: var(--charcoal);
  color: var(--white);
}

/* --- Hero --- */
.hero {
  padding: 5rem 0 4rem;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 1.25rem;
}

.hero h1 {
  margin-bottom: 1.5rem;
  max-width: 680px;
}

.hero-lead {
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 580px;
  margin-bottom: 2rem;
  color: var(--mid);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --- Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--linen);
  border-radius: 8px;
  padding: 1.75rem;
}

.card-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

/* --- Linen band (alternating section bg) --- */
.band {
  background: var(--linen);
}

/* --- Inline callout --- */
.callout {
  background: var(--rose-light);
  border-left: 3px solid var(--rose);
  border-radius: 0 6px 6px 0;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}

.callout p { color: var(--charcoal); margin: 0; }

/* --- Accordion (for resources / FAQ) --- */
.accordion-item {
  border-bottom: 1px solid var(--linen);
}

.accordion-btn {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.25rem 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--charcoal);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.accordion-btn:hover { color: var(--sage); }

.accordion-icon {
  font-size: 1.25rem;
  line-height: 1;
  color: var(--rose);
  transition: transform 0.25s;
  flex-shrink: 0;
}

.accordion-content {
  display: none;
  padding-bottom: 1.25rem;
}

.accordion-content p { color: var(--mid); }

.accordion-item.open .accordion-icon {
  transform: rotate(45deg);
}

.accordion-item.open .accordion-content {
  display: block;
}

/* --- Steps (start a group) --- */
.steps {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1rem 1.25rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--linen);
  align-items: start;
}

.step:last-child { border-bottom: none; }

.step-num {
  width: 48px;
  height: 48px;
  background: var(--sage-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--charcoal);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

/* --- Session card --- */
.session-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.session-list[hidden] {
  display: none;
}

.session-card {
  background: var(--white);
  border: 1px solid var(--linen);
  border-radius: 8px;
  padding: 1.5rem 1.75rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.5rem 1.5rem;
  align-items: center;
}

.session-date {
  text-align: center;
  background: var(--rose-light);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  min-width: 60px;
}

.session-date .day {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
  color: var(--rose);
}

.session-date .month {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid);
}

.session-info h3 { margin-bottom: 0.2rem; }
.session-info p { margin: 0; font-size: 0.9rem; }

/* --- Session tabs --- */
.session-tabs {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
  border-bottom: 1px solid var(--linen);
}

.session-tab {
  font-family: var(--font-display);
  font-size: 1rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.6rem 0.25rem;
  margin-bottom: -1px;
  color: var(--mid);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.session-tab:hover { color: var(--charcoal); }

.session-tab.active {
  color: var(--rose);
  border-bottom-color: var(--rose);
}

/* --- Resource links --- */
.resource-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.resource-link {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--linen);
  border-radius: 6px;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.resource-link:hover {
  border-color: var(--sage);
  box-shadow: 0 2px 8px rgba(122,158,126,0.12);
  color: var(--charcoal);
}

.resource-link-icon { font-size: 1.2rem; flex-shrink: 0; padding-top: 0.1rem; }
.resource-link-text strong { display: block; color: var(--charcoal); font-size: 0.95rem; }
.resource-link-text span { color: var(--mid); font-size: 0.85rem; }

/* --- Footer --- */
.site-footer {
  background: var(--charcoal);
  color: var(--linen);
  padding: 3rem 0 2rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand p {
  font-size: 0.875rem;
  color: #9B9189;
  margin-top: 0.75rem;
}

.footer-nav h4,
.footer-connect h4 {
  color: var(--linen);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-nav ul,
.footer-connect ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-nav a,
.footer-connect a {
  color: #9B9189;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-nav a:hover,
.footer-connect a:hover { color: var(--linen); }

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--linen);
}

.footer-logo span { color: var(--rose); }

.footer-bottom {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding: 1.5rem 1.5rem 0;
  border-top: 1px solid #3E3832;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom p {
  color: #6B6057;
  font-size: 0.8rem;
  margin: 0;
}

/* --- Responsive --- */
@media (max-width: 640px) {
  .nav-links { display: none; flex-direction: column; }
  .nav-links.open { display: flex; position: absolute; top: 64px; left: 0; right: 0; background: var(--white); padding: 1rem 1.5rem 1.5rem; border-bottom: 1px solid var(--linen); gap: 1rem; }
  .nav-toggle { display: flex; }

  .session-card { grid-template-columns: auto 1fr; }
  .session-card .btn { grid-column: 1 / -1; }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
