/* =================================================================
   Leon Yoder — design system
   Ported from a Next.js + Tailwind + shadcn/ui build.
   Plain CSS so it works on FrontPress with no build step.
   ================================================================= */

:root {
  --background:          #f8f5ee;
  --foreground:          #291f18;
  --card:                #fefbf6;
  --card-foreground:     #291f18;
  --primary:             #30271f;
  --primary-foreground:  #f8f5ee;
  --secondary:           #eae4da;
  --secondary-foreground:#30271f;
  --muted:               #efebe4;
  --muted-foreground:    #6c6158;
  --accent:              #720022;
  --accent-foreground:   #fbf8f1;
  --border:              #ded6c9;
  --ring:                #720022;

  --radius-sm: 0.375rem;
  --radius:    0.5rem;
  --radius-lg: 0.75rem;

  --container-max: 80rem;       /* max-w-7xl */
  --container-pad: 1.5rem;      /* px-6 */
  --section-pad-y: 6rem;        /* py-24 */
  --header-h:      5rem;        /* h-20 */

  --font-sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Playfair Display", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
}

@media (min-width: 1024px) {
  :root {
    --container-pad: 2rem;
    --section-pad-y: 8rem;
  }
}

/* ---------- reset / base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }

a { color: inherit; }

h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--font-serif); font-weight: 400; line-height: 1.15; letter-spacing: -0.015em; }
p { margin: 0; }

::selection { background: var(--accent); color: var(--accent-foreground); }

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--foreground);
  color: var(--background);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  z-index: 100;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ---------- layout helpers ---------- */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}
.container--narrow { max-width: 48rem; }

.section { padding-block: var(--section-pad-y); }
.section--tinted { background: color-mix(in srgb, var(--secondary) 50%, var(--background) 50%); }
.section--solo { padding-top: calc(var(--section-pad-y) + var(--header-h)); }

.section-head { margin-bottom: 4rem; }
.section-head__title {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 4.5vw, 3rem);     /* text-4xl → 5xl */
  color: var(--foreground);
  letter-spacing: -0.02em;
}
.section-head__rule {
  display: block;
  margin-top: 1rem;
  width: 4rem;
  height: 2px;
  background: var(--accent);
}
.section-head--centered { text-align: center; }
.section-head--centered .section-head__rule { margin-inline: auto; }
.section-head__lead {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 38rem;
}
.section-head__cta { margin-top: 2rem; }

/* ---------- prose ---------- */

.prose { max-width: none; }
.prose p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: color-mix(in srgb, var(--foreground) 90%, transparent);
}
.prose p + p { margin-top: 1.5rem; }
.prose--page p:first-of-type { margin-top: 0; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease, transform 120ms ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--accent);
  color: var(--accent-foreground);
}
.btn--primary:hover {
  background: color-mix(in srgb, var(--accent) 90%, black 10%);
}

.btn--outline {
  background: var(--background);
  color: var(--foreground);
  border-color: color-mix(in srgb, var(--foreground) 20%, transparent);
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}
.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--block { width: 100%; padding-block: 1rem; }

.btn svg { flex-shrink: 0; }


/* =================================================================
   HEADER
   ================================================================= */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: transparent;
  transition: background-color 250ms ease, backdrop-filter 250ms ease, box-shadow 250ms ease;
}
.site-header--scrolled {
  background: color-mix(in srgb, var(--background) 85%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--border) 70%, transparent);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.site-header__brand { display: flex; align-items: center; text-decoration: none; }
.site-header__logo { height: 3.5rem; width: auto; }

.site-nav { display: none; align-items: center; gap: 2rem; }
@media (min-width: 768px) { .site-nav { display: flex; } }

.site-nav > a {
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--foreground) 80%, transparent);
  text-decoration: none;
  transition: color 150ms ease;
}
.site-nav > a:hover { color: var(--foreground); }

.site-nav__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.875rem;
  color: color-mix(in srgb, var(--foreground) 80%, transparent);
}
.site-nav__phone:hover { color: var(--foreground); }

.site-header__toggle {
  display: inline-flex;
  background: transparent;
  border: 0;
  padding: 0.5rem;
  color: var(--foreground);
  cursor: pointer;
  border-radius: var(--radius-sm);
}
.site-header__toggle .icon-close { display: none; }
@media (min-width: 768px) { .site-header__toggle { display: none; } }

.site-header--menu-open .icon-menu { display: none; }
.site-header--menu-open .icon-close { display: block; }

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 1rem var(--container-pad) 1.5rem;
  background: color-mix(in srgb, var(--background) 96%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-top: 1px solid var(--border);
}
.mobile-nav > a {
  padding: 0.875rem 0;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--foreground);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.mobile-nav > a:last-child { border-bottom: 0; text-transform: none; letter-spacing: 0; }
.site-header--menu-open .mobile-nav { display: flex; }


/* =================================================================
   HERO
   ================================================================= */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding-top: var(--header-h);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  padding-block: 6rem;
}
@media (min-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding-block: 8rem;
  }
}

.hero__text { order: 2; }
.hero__media { order: 1; }
@media (min-width: 1024px) {
  .hero__text { order: 1; }
  .hero__media { order: 2; }
}

.hero__heading {
  font-family: var(--font-serif);
  font-size: clamp(2.75rem, 6.5vw, 4.5rem);   /* 5xl → 7xl */
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
  color: var(--foreground);
}
.hero__subhead {
  margin-top: 1.5rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.375rem, 3vw, 1.875rem);  /* 2xl → 3xl */
  color: color-mix(in srgb, var(--foreground) 90%, transparent);
}
.hero__lead {
  margin-top: 2rem;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--muted-foreground);
  max-width: 32rem;
}
.hero__cta { margin-top: 2.5rem; }

.hero__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius);
}
@media (min-width: 1024px) {
  .hero__media img { aspect-ratio: 4 / 3; }
}


/* =================================================================
   CONSULTING
   ================================================================= */

.consulting {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .consulting {
    grid-template-columns: auto 1fr;
    gap: 4rem;
  }
}

.consulting__portrait {
  width: 100%;
  max-width: 280px;
  margin-inline: auto;
}
.consulting__portrait img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}
@media (min-width: 1024px) {
  .consulting__portrait { max-width: 240px; margin-inline: 0; }
}

.consulting__cta { margin-top: 2.5rem; }

/* Cert badges */
.certs {
  margin-top: 5rem;
  padding-top: 4rem;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
@media (min-width: 768px) {
  .certs { grid-template-columns: repeat(4, 1fr); }
}
.cert { display: flex; flex-direction: column; align-items: center; text-align: center; }
.cert__badge {
  width: 12rem;
  height: 12rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}
.cert__badge img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cert__name {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  color: var(--foreground);
}


/* =================================================================
   TESTIMONIALS
   ================================================================= */

.testimonials {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .testimonials { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

.testimonial {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 0;
}
@media (min-width: 1024px) {
  .testimonial { padding: 2.5rem; }
}

.testimonial__mark {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  width: 2rem; height: 2rem;
  color: color-mix(in srgb, var(--accent) 30%, transparent);
}
.testimonial blockquote {
  position: relative;
  z-index: 1;
  padding-top: 2rem;
  margin: 0;
}
.testimonial blockquote p {
  font-size: 1.125rem;
  line-height: 1.7;
  font-style: italic;
  color: color-mix(in srgb, var(--foreground) 90%, transparent);
}
.testimonial figcaption {
  margin-top: 1.5rem;
  font-weight: 600;
  color: var(--foreground);
}


/* =================================================================
   WORKSHOPS
   ================================================================= */

.workshops {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .workshops { grid-template-columns: repeat(3, 1fr); }
}

.workshop {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.workshop__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem; height: 3rem;
  border-radius: 9999px;
  background: var(--secondary);
  color: color-mix(in srgb, var(--foreground) 70%, transparent);
  margin-bottom: 1.5rem;
}
.workshop__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--foreground);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.workshop__bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.workshop__bullets li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--muted-foreground);
  line-height: 1.6;
}
.workshop__bullets .dot {
  flex-shrink: 0;
  width: 6px; height: 6px;
  border-radius: 9999px;
  background: var(--accent);
  margin-top: 0.55rem;
}
.workshop__format {
  margin-top: auto;
  padding-top: 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  border-top: 1px solid var(--border);
}


/* =================================================================
   ABOUT
   ================================================================= */

.about {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .about { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

.about__media { display: flex; flex-direction: column; gap: 1rem; }
.about__media-hero img {
  width: 100%; height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}
.about__media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.about__media-grid > div { overflow: hidden; border-radius: var(--radius); }
.about__media-grid img {
  width: 100%; height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.fact-card {
  margin-top: 2.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.fact-card__head {
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--accent);
}
.fact-card__head h3 {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: var(--foreground);
  letter-spacing: -0.005em;
}
.fact-card p {
  color: var(--muted-foreground);
  line-height: 1.7;
}
.fact-card a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 150ms ease;
}
.fact-card a:hover { color: color-mix(in srgb, var(--accent) 80%, black 20%); }


/* =================================================================
   CONTACT
   ================================================================= */

.contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .contact { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

.contact-form { display: flex; flex-direction: column; gap: 1.5rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.field__optional { color: var(--muted-foreground); font-weight: 400; }
.field input,
.field textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  color: var(--foreground);
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: var(--muted-foreground); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring) 25%, transparent);
}

.contact-side {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
@media (min-width: 1024px) { .contact-side { padding-left: 2rem; } }

.contact-side__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.contact-side__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--foreground);
  text-decoration: none;
  transition: color 150ms ease;
}
.contact-side__phone:hover { color: var(--accent); }
.contact-side__phone:hover .contact-side__phone-icon { border-color: var(--accent); }

.contact-side__phone-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem; height: 3rem;
  border: 1px solid var(--border);
  border-radius: 9999px;
  transition: border-color 150ms ease;
}
.contact-side__phone span:not(.contact-side__phone-icon) { font-size: 1.125rem; }

.contact-side__rule {
  height: 1px;
  background: var(--border);
}


/* =================================================================
   FOOTER
   ================================================================= */

.site-footer {
  padding-block: 4rem;
  background: var(--primary);
  color: var(--primary-foreground);
}
.site-footer__inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
}
@media (min-width: 768px) { .site-footer__inner { flex-direction: row; } }

.site-footer__logo { height: 72px; width: auto; }
.site-footer__copyright {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: color-mix(in srgb, var(--primary-foreground) 60%, transparent);
}

.site-footer__meta { text-align: left; }
@media (min-width: 768px) { .site-footer__meta { text-align: right; } }

.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.site-footer__links a {
  font-size: 0.875rem;
  text-decoration: none;
  color: color-mix(in srgb, var(--primary-foreground) 80%, transparent);
  transition: color 150ms ease;
}
.site-footer__links a:hover { color: var(--primary-foreground); }

.site-footer__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid color-mix(in srgb, var(--primary-foreground) 20%, transparent);
  color: color-mix(in srgb, var(--primary-foreground) 80%, transparent);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 150ms ease;
  width: 100%;
  justify-content: flex-start;
}
@media (min-width: 768px) { .site-footer__phone { justify-content: flex-end; } }
.site-footer__phone:hover { color: var(--primary-foreground); }


/* =================================================================
   404
   ================================================================= */

.four-oh-four-eyebrow {
  font-family: var(--font-serif);
  font-size: 4rem;
  color: var(--accent);
  margin-bottom: 1rem;
}


/* =================================================================
   Small responsive tweaks
   ================================================================= */

@media (max-width: 480px) {
  .container { padding-inline: 1.25rem; }
  .btn { padding: 0.875rem 1.5rem; font-size: 0.95rem; }
  .cert__badge { width: 9rem; height: 9rem; }
  .testimonial { padding: 1.5rem; }
  .workshop { padding: 1.5rem; }
  .fact-card { padding: 1.5rem; }
}

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