:root {
  --bg-main: hsl(42 38% 96%);
  --bg-contrast: hsl(42 34% 93%);
  --ink-main: hsl(214 39% 18%);
  --ink-soft: hsl(214 19% 36%);
  --accent: hsl(26 62% 44%);
  --accent-deep: hsl(26 62% 34%);
  --stroke: hsl(34 20% 74%);
  --surface: hsl(0 0% 100%);
  --hero-glow: hsl(33 52% 53% / 0.18);
  --mint-glow: hsl(161 30% 45% / 0.12);
  --shadow: 0 1.1rem 2.2rem -1.2rem hsl(214 39% 18% / 0.18);
  --shadow-soft: 0 0.7rem 1.4rem -1rem hsl(214 39% 18% / 0.14);
  --radius-lg: 1.2rem;
  --radius-md: 0.8rem;
  --radius-pill: 999rem;
  --space-xs: 0.6rem;
  --space-sm: 0.9rem;
  --space-md: 1.4rem;
  --space-lg: 2.2rem;
  --space-xl: 3.4rem;
  --space-2xl: 5.2rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink-main);
  font-family: "Outfit", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  background:
    radial-gradient(100% 60% at 100% 0%, var(--hero-glow), transparent 60%),
    radial-gradient(90% 50% at 0% 20%, var(--mint-glow), transparent 60%),
    var(--bg-main);
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(92%, 70rem);
  margin-inline: auto;
}

.site-header {
  padding: clamp(1rem, 2vw, 1.6rem) 0;
  background: hsl(0 0% 100%);
  border-bottom: 0.08rem solid var(--stroke);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 0.2rem 0.6rem hsl(214 39% 18% / 0.08);
  overflow: visible;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
  backdrop-filter: none;
  position: relative;
  top: auto;
  z-index: auto;
}

.brand {
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: clamp(1.25rem, 1.6vw + 0.9rem, 2rem);
  letter-spacing: 0.01em;
  color: var(--ink-main);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  font-size: 0;
}

.logo-img {
  height: clamp(2rem, 4vw, 3.2rem);
  width: auto;
  max-width: 14rem;
  display: block;
}

.menu-toggle {
  border: none;
  background: transparent;
  border-radius: 0;
  min-height: 2.8rem;
  min-width: 2.8rem;
  padding: 0.4rem;
  font: inherit;
  color: var(--ink-main);
  display: none;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 220ms ease;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  opacity: 0.7;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 1.2rem;
  height: 1.2rem;
}

.line {
  display: block;
  width: 100%;
  height: 0.12rem;
  background: var(--ink-main);
  border-radius: 0.06rem;
  transition: transform 300ms ease, opacity 300ms ease;
  transform-origin: center;
}

.menu-toggle[aria-expanded="true"] .line-1 {
  transform: translateY(0.6rem) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .line-2 {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .line-3 {
  transform: translateY(-0.6rem) rotate(-45deg);
}

.menu-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: clamp(1.4rem, 2.2vw, 2.4rem);
}

.menu-list a {
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding-bottom: 0.3rem;
  font-size: clamp(0.95rem, 0.5vw + 0.9rem, 1.05rem);
  transition: color 220ms ease;
}

.menu-list a:hover,
.menu-list a:focus-visible {
  color: var(--accent);
}

.menu-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 0.12rem;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms ease;
}

.menu-list a:hover::after,
.menu-list a:focus-visible::after {
  transform: scaleX(1);
}

.hero {
  padding-top: clamp(2rem, 8vh, 5.2rem);
  display: grid;
  gap: var(--space-md);
}

.hero-full {
  position: relative;
  height: 80vh;
  min-height: 32rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  z-index: 1;
}

.hero-slider-container {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 800ms ease-in-out;
}

.hero-slide-img.is-active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, hsl(214 39% 18% / 0.58), hsl(26 62% 44% / 0.38));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  gap: var(--space-md);
  max-width: 56rem;
  padding: clamp(2rem, 4vw, 3.2rem);
  margin-inline: 0;
  width: 100%;
}

.hero-text-wrapper {
  position: relative;
  min-height: 7rem;
  margin-bottom: var(--space-md);
}

.hero-slide-text {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 700;
  color: hsl(0 0% 100%);
  line-height: 1.2;
  opacity: 0;
  transition: opacity 800ms ease-in-out;
  position: absolute;
  top: 0;
  left: 0;
}

.hero-slide-text.is-active {
  opacity: 1;
}

.eyebrow {
  margin: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 500;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
}

h1,
h2 {
  font-family: "Fraunces", serif;
}

h1 {
  font-size: clamp(2rem, 5vw, 4.2rem);
  max-width: 12ch;
  text-wrap: balance;
  letter-spacing: 0.01em;
}

.hero-subtitle {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(1.1rem, 0.8vw + 0.95rem, 1.5rem);
  color: hsl(214 28% 24%);
  font-weight: 600;
}

.hero-copy,
.lead {
  max-width: 56ch;
  color: var(--ink-soft);
  margin: 0;
  font-size: clamp(1rem, 0.35vw + 0.92rem, 1.14rem);
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.3rem;
  border-radius: 0;
  border: 0.08rem solid transparent;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 220ms ease, background-color 220ms ease, color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
  cursor: pointer;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-0.08rem);
  box-shadow: var(--shadow-soft);
}

.btn-solid {
  background: var(--accent);
  color: var(--surface);
}

.btn-solid:hover,
.btn-solid:focus-visible {
  background: var(--accent-deep);
}

.btn-outline {
  border-color: var(--ink-main);
  background: var(--surface);
  color: var(--ink-main);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--bg-main);
  border-color: var(--ink-soft);
}

.hero-metrics {
  list-style: none;
  margin: var(--space-md) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-sm);
}

.hero-metrics li {
  background: hsl(0 0% 100% / 0.14);
  border: 0.08rem solid hsl(0 0% 100% / 0.28);
  border-radius: 0;
  padding: var(--space-sm);
  box-shadow: none;
  display: grid;
  gap: 0.2rem;
  backdrop-filter: blur(0.4rem);
}

.hero-metrics strong {
  font-size: clamp(1.1rem, 1.2vw + 0.8rem, 1.7rem);
  color: hsl(0 0% 100%);
}

.hero-metrics span {
  color: hsl(0 0% 88%);
  font-size: 0.92rem;
}

.section {
  padding: clamp(3.2rem, 9vh, 5.2rem) 0;
  position: relative;
}

.section-contrast {
  background: var(--bg-contrast);
}

.section-contrast::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, hsl(34 20% 92% / 0.75), transparent 45%);
  pointer-events: none;
}

.section .container {
  position: relative;
  z-index: 1;
}

h2 {
  font-size: clamp(1.5rem, 2.2vw, 2.5rem);
  max-width: 24ch;
}

h2::after {
  content: "";
  display: block;
  width: 3.2rem;
  height: 0.14rem;
  margin-top: 0.75rem;
  background: var(--accent);
}

.grid {
  display: grid;
  gap: clamp(0.9rem, 1.4vw, 1.4rem);
  margin-top: var(--space-lg);
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  background: var(--surface);
  border: 0.08rem solid var(--stroke);
  border-radius: 0;
  padding: clamp(1rem, 1.6vw, 1.4rem);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0.18rem;
  background: linear-gradient(90deg, hsl(26 62% 44%), hsl(161 30% 45%));
  opacity: 0.82;
}

.card:hover {
  transform: translateY(-0.12rem);
  box-shadow: 0 1.3rem 2.6rem -1.4rem hsl(214 39% 18% / 0.24);
}

.card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink-soft);
}

.card p {
  margin-bottom: 0;
}

.card p + ul {
  margin-top: 0.8rem;
}

.card-closing-text {
  margin-top: 1rem !important;
}

.opportunity-context {
  margin: var(--space-lg) 0;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  background: hsl(42 35% 97% / 0.6);
  border-left: 0.3rem solid hsl(19 82% 52%);
  border-radius: 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink-main);
}

.opportunity-context p {
  margin: 0;
}

.opportunity-closing {
  margin-top: var(--space-lg);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  background: hsl(205 42% 16% / 0.06);
  border-radius: 0;
  border: 0.08rem solid var(--stroke);
}

.opportunity-closing p {
  margin: 0 0 1rem 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink-main);
}

.opportunity-closing p:last-child {
  margin-bottom: 0;
}

.service-card h3,
.flow-card h3,
.quote-card footer strong {
  font-size: 1.05rem;
}

.subsection-title {
  margin-top: var(--space-xl);
  font-family: "Fraunces", serif;
  font-size: clamp(1.2rem, 1.1vw + 0.9rem, 1.8rem);
}

.subsection-title::after {
  content: "";
  display: block;
  width: 2.4rem;
  height: 0.1rem;
  margin-top: 0.55rem;
  background: hsl(26 62% 44% / 0.78);
}

.quote-card {
  display: grid;
  gap: var(--space-sm);
}

.quote-card p {
  margin: 0;
  color: var(--ink-soft);
}

.quote-card footer {
  display: grid;
  gap: 0.2rem;
}

.quote-card span {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.program-highlights {
  margin-top: var(--space-lg);
  display: grid;
  gap: var(--space-xs);
  color: var(--ink-soft);
}

.program-highlights p {
  margin: 0;
}

.contact-form {
  margin-top: var(--space-lg);
  display: grid;
  gap: var(--space-sm);
  width: min(100%, 44rem);
  background: hsl(0 0% 100% / 0.74);
  border: 0.08rem solid hsl(34 20% 74% / 0.7);
  border-radius: 0;
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

label {
  font-weight: 500;
}

input,
textarea {
  width: 100%;
  border: 0.08rem solid var(--stroke);
  border-radius: 0;
  background: var(--surface);
  font: inherit;
  color: var(--ink-main);
  padding: 0.7rem 0.8rem;
}

input,
textarea,
button {
  min-height: 2.8rem;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 0.14rem solid hsl(19 82% 52% / 0.4);
  border-color: var(--accent);
}

.form-feedback {
  margin: 0;
  min-height: 1.4em;
  color: var(--ink-soft);
}

.site-footer {
  padding: clamp(3.2rem, 8vh, 5.2rem) 0 clamp(1.6rem, 4vh, 2.4rem);
  border-top: 0.08rem solid var(--stroke);
  background: linear-gradient(180deg, hsl(42 35% 96%), hsl(42 35% 93%));
  margin-top: var(--space-2xl);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: clamp(2.4rem, 5vh, 3.6rem);
  padding-bottom: clamp(2rem, 4vh, 3rem);
  border-bottom: 0.08rem solid var(--stroke);
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-section h4 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink-main);
  letter-spacing: 0.01em;
}

.footer-section p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.footer-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-section ul li {
  margin: 0;
}

.footer-section a {
  color: var(--ink-soft);
  font-weight: 500;
  transition: color 220ms ease;
  text-decoration: none;
}

.footer-section a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: grid;
  gap: 0.6rem;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.reveal {
  opacity: 0;
  transform: translateY(1.2rem);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 60em) {
  .container {
    width: min(94%, 70rem);
  }

  .grid-4,
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
  }
}

@media (max-width: 48em) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero-full {
    height: 55vh;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
  }

  .hero-content {
    max-width: 100%;
    padding: 1rem;
    gap: 1rem;
    text-align: center;
    align-items: center;
    width: 100%;
  }

  .hero-text-wrapper {
    min-height: 2.8rem;
  }

  .hero-slide-text {
    font-size: clamp(1.2rem, 4.2vw, 1.8rem);
    line-height: 1.25;
    font-weight: 700;
  }

  .hero-actions {
    width: 100%;
    gap: 0.8rem;
    flex-direction: column;
    display: flex;
  }

  .hero-actions .btn {
    width: 100%;
    padding: 1rem 1.2rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 0;
    letter-spacing: 0.005em;
  }

  .hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
    margin-top: 1rem;
    width: 100%;
  }

  .hero-metrics li {
    padding: 0.75rem 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .hero-metrics strong {
    font-size: 1rem;
    font-weight: 700;
  }

  .hero-metrics span {
    font-size: 0.72rem;
    font-weight: 500;
  }

  .menu-list {
    width: auto;
    display: none;
    flex-direction: column;
    background: hsl(0 0% 100%);
    border: 0.08rem solid var(--stroke);
    border-radius: 0;
    padding: 0.4rem 0;
    gap: 0;
    position: absolute;
    top: calc(100% + 0.8rem);
    left: auto;
    right: 0;
    margin: 0;
    box-shadow: 0 0.8rem 2rem hsl(214 39% 18% / 0.14);
    z-index: 9999;
    min-width: 10rem;
  }

  .menu-list a {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    border-radius: 0;
    color: var(--ink-main);
    font-size: 0.95rem;
    border-bottom: 0.08rem solid hsl(34 20% 92%);
  }

  .menu-list a:last-child {
    border-bottom: none;
  }

  .menu-list a:hover {
    background: var(--bg-contrast);
    color: var(--accent);
  }

  .menu-list a::after {
    display: none;
  }

  .menu-list.open {
    display: flex;
  }

  .hero-full {
    background-attachment: scroll;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: min(100%, 24rem);
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-copy,
  .lead {
    max-width: 100%;
  }

  .grid-4,
  .grid-3,
  .grid-2,
  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .program-highlights {
    gap: 0.8rem;
  }

  .footer-wrap {
    justify-content: flex-start;
  }
}

@media (max-width: 30em) {
  h1 {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  h2 {
    font-size: clamp(1.35rem, 6vw, 2rem);
  }

  .hero-full {
    height: 55vh;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
    padding: 1rem;
    gap: 0.9rem;
    align-items: center;
    width: 100%;
  }

  .hero-text-wrapper {
    min-height: 2.6rem;
  }

  .hero-slide-text {
    font-size: clamp(1.1rem, 4vw, 1.7rem);
    line-height: 1.25;
    font-weight: 700;
  }

  .hero-actions {
    width: 100%;
    gap: 0.7rem;
    flex-direction: column;
    display: flex;
  }

  .hero-actions .btn {
    width: 100%;
    padding: 0.95rem 1.1rem;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: 0;
    letter-spacing: 0.005em;
  }

  .hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
    margin-top: 0.9rem;
    width: 100%;
  }

  .hero-metrics li {
    padding: 0.7rem 0.4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .hero-metrics strong {
    font-size: 0.98rem;
    font-weight: 700;
  }

  .hero-metrics span {
    font-size: 0.7rem;
    font-weight: 500;
  }

  .contact-form {
    padding: 1rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.6rem;
    margin-bottom: 1.8rem;
    padding-bottom: 1.6rem;
  }

  .footer-section h4 {
    font-size: 1rem;
  }

  .footer-section p {
    font-size: 0.9rem;
  }

  .footer-bottom {
    gap: 0.4rem;
  }

  .footer-bottom p {
    font-size: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .btn,
  .card,
  .menu-list a::after {
    transition: none;
  }
}
