/* ============================================
   Divya Joseph — Strategic Communications Advisor
   Design tokens
   ============================================ */

:root {
  --paper: #DFD3B5;
  --paper-light: #ECE4D1;
  --ink: #3B3B3B;
  --ink-soft: #5C5750;
  --accent: #6C6E36;
  --accent-warm: #E3BD90;
  --brand-dark: #675647;
  --line: #C0BDBC;
  --white: #FFFFFF;

  --font-display: 'Newsreader', serif;
  --font-body: 'Public Sans', sans-serif;

  --max-width: 1120px;
  --text-width: 640px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 500;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 400; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.375rem; }

p { margin: 0 0 1em; }

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}

a:hover, a:focus-visible {
  border-bottom-color: var(--accent);
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.75rem;
}

@media (max-width: 600px) {
  .container,
  .hero-content {
    padding-left: 24px;
    padding-right: 24px;
  }
}

.prose {
  max-width: var(--text-width);
}

.kicker {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--ink-soft);
  margin-bottom: 0.75rem;
}

/* ---------- Header / Nav ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--ink);
  border-bottom: none;
}

.wordmark:hover { border-bottom: none; opacity: 0.75; }

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

.nav-links a {
  color: var(--ink);
  font-size: 0.9375rem;
  border-bottom: 1px solid transparent;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 3px;
  width: 42px;
  height: 38px;
  padding: 0;
  position: relative;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  position: absolute;
  left: 9px;
  right: 9px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle span:nth-child(1) { top: 13px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 25px; }

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 0.9rem 1.75rem;
    border-bottom: 1px solid var(--line);
    display: block;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  padding: 0.8rem 1.5rem;
  border-radius: 2px;
  border: 1px solid var(--brand-dark);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--brand-dark);
  color: var(--paper-light);
  border-color: var(--brand-dark);
}

.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  border-bottom: 1px solid var(--accent);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-secondary:hover, .btn-secondary:focus-visible {
  border-color: var(--brand-dark);
  border-bottom: 1px solid var(--brand-dark);
}

/* ---------- Hero (full-bleed banner) ---------- */

.hero-banner {
  position: relative;
  width: 100%;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(59,52,42,0.82) 0%, rgba(59,52,42,0.62) 42%, rgba(59,52,42,0.22) 75%, rgba(59,52,42,0.05) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 1.75rem;
  width: 100%;
  box-sizing: border-box;
}

.hero-content .prose {
  max-width: 560px;
}

.hero-content .kicker {
  color: var(--accent-warm);
}

.hero-content h1 {
  color: var(--white);
}

.hero-content p {
  color: #F1EADA;
}

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

.hero-content .btn-secondary {
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}

.hero-content .btn-secondary:hover {
  border-color: var(--white);
  color: var(--white);
}

.hero-content .btn-primary {
  background: var(--accent-warm);
  color: var(--brand-dark);
  border-color: var(--accent-warm);
}

.hero-content .btn-primary:hover, .hero-content .btn-primary:focus-visible {
  background: var(--white);
  color: var(--brand-dark);
  border-color: var(--white);
}

@media (max-width: 800px) {
  .hero-banner { min-height: 520px; }
}

/* ---------- Sectional tint backgrounds ---------- */

.tint-1 { background: var(--paper-light); }
.tint-2 { background: #EAD9C0; }
.tint-3 { background: #DBDDC3; }
.tint-4 { background: #E6D8CC; }

/* ---------- Stat strip ---------- */

.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 2.5rem 0;
  background: var(--paper-light);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 700px) {
  .stats-grid { grid-template-columns: 1fr; gap: 1.75rem; }
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--brand-dark);
  margin-bottom: 0.25rem;
}

.stat-label {
  color: var(--ink-soft);
  font-size: 0.9375rem;
  max-width: 26ch;
}

/* ---------- Section spacing ---------- */

section {
  padding: 4rem 0;
}

.section-tight {
  padding: 2.5rem 0;
}

/* ---------- Three-up help grid ---------- */

.help-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

@media (max-width: 800px) {
  .help-grid { grid-template-columns: 1fr; }
}

.help-item {
  border-top: 3px solid var(--accent);
  padding-top: 1.25rem;
}

.help-item:nth-child(2) { border-top-color: var(--accent-warm); }
.help-item:nth-child(3) { border-top-color: var(--brand-dark); }

.help-item p { color: var(--ink-soft); }

/* ---------- Pull quote ---------- */

.pull-quote {
  padding: 4rem 0;
}

.pull-quote blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  color: var(--ink);
  margin: 0 0 1rem;
  max-width: 760px;
}

.pull-quote cite {
  font-style: normal;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--brand-dark);
  color: var(--paper-light);
  padding: 3.5rem 0;
}

.cta-band h2 { color: var(--white); }
.cta-band p { color: var(--accent-warm); }

.cta-band .btn-primary {
  background: var(--accent-warm);
  color: var(--brand-dark);
  border-color: var(--accent-warm);
}

.cta-band .btn-primary:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ---------- Service rows (Advisory Services) ---------- */

.service-block {
  padding: 3rem 0;
}

.service-row-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.75rem;
}

.service-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--brand-dark);
  background: rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-row h3 {
  margin: 0;
}

.service-row ul {
  columns: 2;
  column-gap: 2.5rem;
  padding-left: 1.1rem;
  color: var(--ink-soft);
  margin: 0.9rem 0 0;
}

.service-row li {
  margin-bottom: 0.6rem;
  break-inside: avoid;
}

@media (max-width: 800px) {
  .service-row ul { columns: 1; }
}

.service-row ul {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
  color: var(--ink-soft);
}

.service-row li { margin-bottom: 0.35rem; }

/* ---------- Timeline (Experience) ---------- */

.timeline {
  position: relative;
  padding-left: 2rem;
  border-left: 1px solid var(--line);
}

.timeline-item {
  position: relative;
  padding-bottom: 3rem;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.4rem;
  top: 0.4rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.timeline-date {
  color: var(--ink-soft);
  font-size: 0.9375rem;
  margin-bottom: 0.25rem;
}

.timeline-org {
  color: var(--ink-soft);
  margin-bottom: 0.75rem;
}

.timeline-item ul {
  padding-left: 1.1rem;
  color: var(--ink-soft);
  margin: 0;
}

.timeline-item li { margin-bottom: 0.4rem; }

/* ---------- About page ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 800px) {
  .about-grid { grid-template-columns: 1fr; }
}

.photo-placeholder {
  aspect-ratio: 4 / 5;
  border: 1px dashed var(--ink-soft);
  background: var(--paper-light);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.about-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

/* ---------- Endorsements ---------- */

.endorsement-block {
  padding: 3rem 0;
}

.endorsement {
  position: relative;
}

.endorsement-mark {
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
  opacity: 0.7;
}

.endorsement blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.375rem;
  margin: 0 0 1.25rem;
  max-width: 760px;
  line-height: 1.45;
}

.endorsement cite {
  font-style: normal;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
  display: block;
}

.endorsement cite span {
  display: block;
  color: var(--ink-soft);
  font-weight: 400;
  margin-top: 0.15rem;
}

.placeholder-note {
  background: var(--paper-light);
  border: 1px dashed var(--line);
  padding: 1.25rem 1.5rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  margin-bottom: 2.5rem;
}

/* ---------- Engagement page ---------- */

.engagement-block {
  padding: 3.5rem 0;
}

.engagement-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.4fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 800px) {
  .engagement-grid { grid-template-columns: 1fr; }
}

.engagement-image {
  width: 100%;
  height: auto;
  border-radius: 3px;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.engagement-section {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0;
}

.engagement-section:last-child {
  border-bottom: 1px solid var(--line);
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
}

form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

label {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  display: block;
  margin-bottom: 0.35rem;
}

input, textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper-light);
  color: var(--ink);
}

textarea { resize: vertical; min-height: 120px; }

.contact-detail {
  margin-bottom: 1.5rem;
}

.contact-detail h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.25rem;
}

.hidden-field {
  position: absolute;
  left: -9999px;
}

/* ---------- Expertise list (Experience page) ---------- */

.expertise-grid {
  columns: 2;
  column-gap: 2.5rem;
  margin-top: 1.25rem;
}

@media (max-width: 700px) {
  .expertise-grid { columns: 1; }
}

/* ---------- Page header (non-home pages) ---------- */

.page-header {
  padding: 3.5rem 0 1rem;
}
