:root {
  --bg: #f5f4f0;
  --paper: #ffffff;
  --text: #17171f;
  --muted: #5d6170;
  --primary: #d62839;
  --secondary: #1f5f4a;
  --border: #e5e6ea;
  --header-height: 70px;
  /* Unified surfaces */
  --hero-bg: var(--bg);
  --gradient-dark: linear-gradient(145deg, #121420, #242a38);
  --surface-dark: #121420;
  --accent-warm: #f1a86a;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "DM Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(245, 244, 240, 0.95);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 900;
}

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

.menu-btn {
  display: none;
  border: 1px solid var(--border);
  background: var(--paper);
  color: var(--text);
  border-radius: 8px;
  padding: 0.5rem 0.85rem;
  font-size: 1.45rem;
  line-height: 1;
}

.site-nav {
  display: flex;
  gap: 1rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
}

.site-nav a.active,
.site-nav a:hover {
  background: var(--paper);
  color: var(--primary);
}

.hero {
  background: var(--hero-bg);
  min-height: calc(100vh - var(--header-height));
  min-height: calc(100dvh - var(--header-height));
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 0 3rem;
  box-sizing: border-box;
}

.services-hero {
  background: var(--hero-bg);
  min-height: calc(100vh - var(--header-height));
  min-height: calc(100dvh - var(--header-height));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem 0 3rem;
  box-sizing: border-box;
  text-align: center;
  color: var(--text);
}

.services-hero .container {
  max-width: 900px;
}

.subtext {
  font-size: 1rem;
  color: var(--muted);
  max-width: 680px;
  margin: 0.95rem auto 0;
  line-height: 1.7;
}

.cta-buttons {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.trust {
  margin-top: 1.35rem;
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.trust span {
  font-size: 0.82rem;
  color: var(--muted);
  border: 1px solid var(--border);
  background: var(--paper);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
}

/* About page hero */
.about-hero {
  background: var(--hero-bg);
  min-height: calc(100vh - var(--header-height));
  min-height: calc(100dvh - var(--header-height));
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 0 3rem;
  box-sizing: border-box;
}

.about-hero .container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

/* Home + About hero: matching headline and intro */
.hero h1,
.about-hero h1 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.15;
  margin: 0.65rem 0;
}

.hero .lead,
.about-hero .lead {
  font-size: 1rem;
  line-height: 1.65;
  margin-top: 1rem;
  max-width: 700px;
}

.hero .actions,
.about-hero .actions {
  margin-top: 1.6rem;
}

.about-hero .trust {
  margin-top: 1.25rem;
  justify-content: flex-start;
}

.about-hero .trust span {
  border: none;
  background: transparent;
  padding: 0;
  border-radius: 0;
  font-size: 0.8125rem;
}

/* About aside: same card system as home hero */
.about-hero .profile-card.hero-card {
  max-width: 280px;
  margin-left: auto;
  text-align: center;
}

.about-hero .profile-card.hero-card p {
  margin: 0;
}

.about-hero .avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent-warm);
  color: var(--surface-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
  margin: 0 auto 0.65rem;
}

.services-title {
  text-align: center;
  margin-bottom: 2rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.service-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

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

.service-list {
  margin-top: 0.85rem;
  padding-left: 1rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.service-list li {
  margin-bottom: 0.3rem;
}

.why-section {
  background: var(--hero-bg);
  padding: 3.6rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.why-list {
  list-style: none;
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 0.6rem;
}

.why-list li {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  color: var(--muted);
}

.why-list li::before {
  content: "✔ ";
  color: var(--secondary);
  font-weight: 700;
}

.services-cta {
  background: var(--gradient-dark);
  color: #fff;
  text-align: center;
  padding: 4rem 0;
}

.services-cta h2 {
  color: #fff;
}

.services-cta p {
  color: rgba(255, 255, 255, 0.78);
  margin-top: -0.35rem;
  margin-bottom: 1.1rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", serif;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.6rem);
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 1.2rem;
}

.lead {
  margin-top: 1rem;
  color: var(--muted);
  max-width: 700px;
}

.actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.6rem;
  flex-wrap: wrap;
}

.btn {
  text-decoration: none;
  display: inline-block;
  border-radius: 10px;
  padding: 0.7rem 1.15rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-secondary {
  background: var(--paper);
  color: var(--secondary);
  border-color: var(--secondary);
}

.btn-light {
  background: var(--paper);
  color: var(--text);
  border-color: var(--border);
}

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

.stat-grid article {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
}

.stat-grid h3 {
  color: var(--primary);
  font-size: 1.6rem;
}

.stat-grid p {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-card {
  background: var(--gradient-dark);
  color: #fff;
  border-radius: 16px;
  padding: 1.5rem;
}

.hero-card h2 {
  color: var(--accent-warm);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.hero-card h3 {
  font-size: 1.4rem;
}

.hero-card p {
  color: #d8deea;
  margin: 0.4rem 0 1rem;
}

.hero-card ul {
  padding-left: 1rem;
}

.section {
  padding: 4rem 0;
}

.section-dark {
  background: var(--gradient-dark);
  color: #fff;
}

.section-dark .eyebrow {
  color: var(--accent-warm);
}

.section-dark .card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.section-dark .card h3 {
  color: #fff;
}

.section-dark .card p {
  color: rgba(255, 255, 255, 0.72);
}

/* About page — contact strip before footer */
.about-contact {
  background: var(--paper);
  border-top: 1px solid var(--border);
}

/* Education (About page) */
.education {
  background: var(--hero-bg);
}

.education .container {
  max-width: 900px;
}

.education-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.75rem, 4vw, 2rem);
  margin-bottom: 1.875rem;
}

.edu-highlight {
  background: var(--gradient-dark);
  color: #fff;
  padding: 1.55rem;
  border-radius: 12px;
  margin-bottom: 2.5rem;
}

.edu-highlight h3 {
  font-size: 1.25rem;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.edu-highlight-meta {
  color: var(--accent-warm);
  font-size: 0.875rem;
}

.edu-highlight-focus {
  font-size: 0.875rem;
  margin: 0.65rem 0;
  color: rgba(255, 255, 255, 0.88);
}

.edu-highlight-year {
  display: inline-block;
  font-size: 0.75rem;
  color: #aaa;
}

.edu-timeline {
  border-left: 2px solid var(--border);
  padding-left: 1.25rem;
}

.edu-item {
  position: relative;
  margin-bottom: 1.55rem;
}

.edu-item:last-child {
  margin-bottom: 0;
}

.edu-dot {
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
  position: absolute;
  left: -26px;
  top: 5px;
}

.edu-content h4 {
  font-size: 1rem;
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.edu-content p {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.edu-content span {
  font-size: 0.75rem;
  color: #888;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.2rem;
}

.card p {
  color: var(--muted);
  margin-top: 0.5rem;
}

.list {
  display: grid;
  gap: 1rem;
}

.timeline-item {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.2rem;
}

.timeline-item .meta {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
}

.timeline-item ul {
  margin-top: 0.55rem;
  padding-left: 1rem;
  color: var(--muted);
}

.experience-timeline {
  position: relative;
  margin-top: 0.5rem;
  padding-left: 1.25rem;
}

.experience-timeline::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.2rem;
  bottom: 0.2rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), #f1a86a, var(--secondary));
}

.experience-timeline .timeline-item {
  position: relative;
  margin-left: 0.7rem;
}

.experience-timeline .timeline-item::before {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  left: -1.35rem;
  top: 1rem;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px rgba(214, 40, 57, 0.15);
}

.experience-heading {
  text-align: center;
  margin-bottom: 2.75rem;
}

.experience-heading .eyebrow {
  margin-left: auto;
  margin-right: auto;
}

.experience-heading h2 {
  margin-bottom: 0;
}

.alt-timeline {
  position: relative;
  padding: 0.6rem 0;
}

.alt-timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: #d9dde8;
}

.exp-row {
  display: grid;
  grid-template-columns: 1fr 70px 1fr;
  gap: 1rem;
  align-items: start;
  margin-bottom: 3rem;
  position: relative;
}

.alt-timeline .exp-row:last-child {
  margin-bottom: 0;
}

.exp-left {
  text-align: right;
  padding-top: 0.1rem;
}

.exp-left h3,
.exp-right h3 {
  font-size: 1.55rem;
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.18rem;
}

.exp-left p {
  color: var(--muted);
}

.exp-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px dashed var(--border);
  background: var(--paper);
  position: relative;
  justify-self: center;
}

.exp-dot::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.exp-right p {
  color: var(--muted);
  max-width: 540px;
}

.two-col {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-box {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.3rem;
}

.contact-page {
  padding-top: 3rem;
}

.contact-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}

.contact-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.2rem;
}

.contact-tags span {
  background: var(--paper);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.38rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 500;
}

.availability-card {
  background: var(--gradient-dark);
  color: #f4f5fa;
  border-radius: 14px;
  padding: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.availability-card h3 {
  margin-bottom: 0.8rem;
  color: var(--accent-warm);
}

.availability-card p {
  margin-bottom: 0.5rem;
  color: #dce3f2;
}

.availability-card .btn {
  margin-top: 0.85rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.2rem;
  align-items: start;
}

.contact-info-grid {
  display: grid;
  gap: 0.9rem;
}

.contact-info-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.1rem;
}

.contact-info-card h3 {
  margin-bottom: 0.25rem;
}

.contact-info-card p {
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.form-box {
  padding: 1.4rem;
}

.form-intro {
  color: var(--muted);
  margin: -0.3rem 0 0.8rem;
}

.contact-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}

form {
  display: grid;
  gap: 0.8rem;
}

label {
  font-size: 0.85rem;
  color: var(--muted);
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem;
  font: inherit;
  background: var(--paper);
}

input:focus,
textarea:focus,
select:focus {
  border-color: #bfc5d3;
  outline: 2px solid #eceef4;
}

textarea {
  min-height: 120px;
}

.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--border);
  padding: 1.1rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 850px) {
  .menu-btn {
    display: inline-block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 4%;
    right: 4%;
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.8rem;
    flex-direction: column;
  }

  .site-nav.open {
    display: flex;
  }

  .hero-grid,
  .two-col,
  .contact-hero,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .alt-timeline::before {
    left: 0.95rem;
    transform: none;
  }

  .exp-row {
    grid-template-columns: 36px 1fr;
    gap: 0.8rem;
    margin-bottom: 2.25rem;
  }

  .experience-heading {
    margin-bottom: 2rem;
  }

  .exp-left,
  .exp-right {
    text-align: left;
  }

  .exp-left {
    grid-column: 2;
  }

  .exp-dot {
    grid-column: 1;
    grid-row: 1 / span 2;
    margin-top: 0.25rem;
  }

  .exp-right {
    grid-column: 2;
    margin-top: -0.15rem;
  }

  .services-hero {
    min-height: calc(100vh - var(--header-height));
    min-height: calc(100dvh - var(--header-height));
    padding: 1.5rem 0 2.5rem;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .about-hero {
    min-height: calc(100vh - var(--header-height));
    min-height: calc(100dvh - var(--header-height));
    padding: 1.5rem 0 2.5rem;
  }

  .about-hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-hero .lead {
    margin-left: auto;
    margin-right: auto;
  }

  .about-hero .actions {
    justify-content: center;
  }

  .about-hero .trust {
    justify-content: center;
  }

  .about-hero .profile-card {
    margin-left: auto;
    margin-right: auto;
  }
}
