/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --bg: #fbf8f3;
  --bg-alt: #f4ede1;
  --ink: #2a2520;
  --ink-soft: #5a524a;
  --accent: #8a5a3b;
  --accent-dark: #6b4328;
  --accent-soft: #d9c4aa;
  --gold: #b88a4a;
  --line: #e6ddcb;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(42, 37, 32, 0.06), 0 1px 2px rgba(42, 37, 32, 0.04);
  --shadow-md: 0 4px 16px rgba(42, 37, 32, 0.08), 0 2px 6px rgba(42, 37, 32, 0.04);
  --shadow-lg: 0 20px 60px rgba(42, 37, 32, 0.12);
  --radius: 14px;
  --radius-sm: 8px;
  --max: 1180px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 500; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.35rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent-dark); }

a { color: var(--accent-dark); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--accent); }

em { font-style: italic; color: var(--ink); }

/* ---- NAV ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 243, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-weight: 500;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  background: var(--accent);
  color: var(--white);
  font-family: 'Fraunces', serif;
  font-weight: 600;
  border-radius: 50%;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.brand-text {
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  color: var(--ink);
}

.nav nav {
  display: flex;
  gap: 1.8rem;
  align-items: center;
}

.nav nav a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav nav a:hover { color: var(--accent-dark); }

.nav-cta {
  background: var(--ink);
  color: var(--white) !important;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-size: 0.9rem !important;
}
.nav-cta:hover { background: var(--accent-dark); color: var(--white) !important; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent-dark);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--ink);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--accent-soft);
}
.btn-ghost:hover {
  background: var(--bg-alt);
  color: var(--accent-dark);
}

/* ---- SHARED ---- */
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 1.1rem;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 6rem 1.5rem;
}

.section-head {
  margin-bottom: 3rem;
}
.section-head.centered {
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.section-head h2 {
  max-width: 640px;
}
.section-head.centered h2 { margin-left: auto; margin-right: auto; }

.section-lede {
  margin-top: 1.2rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 620px;
}
.section-head.centered .section-lede { margin-left: auto; margin-right: auto; }

/* ---- HERO ---- */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 5rem 1.5rem 4.5rem;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text .lede {
  margin-top: 1.5rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.7;
  max-width: 560px;
}

.hero-cta {
  margin-top: 2.2rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  background: var(--bg-alt);
}
.hero-image::before {
  content: "";
  position: absolute;
  inset: -14px -14px auto auto;
  width: 60%; height: 60%;
  background: var(--accent-soft);
  border-radius: var(--radius);
  z-index: -1;
}
.hero-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

/* ---- ABOUT ---- */
.about { background: transparent; }
.section-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}
.section-body p + p { margin-top: 1.1rem; color: var(--ink-soft); }
.section-body p:first-child { color: var(--ink); font-size: 1.1rem; }

/* ---- TRAINING / COURSES ---- */
.training {
  background: var(--bg-alt);
  max-width: none;
  width: 100%;
  padding: 6rem 1.5rem;
  margin: 0;
}
.training .section-head,
.training .course-grid,
.training .training-cta {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.course-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  transition: all 0.25s ease;
}
.course-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-soft);
}
.course-card.highlight {
  border-color: var(--accent);
  background: #fffdf9;
}
.course-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.course-length {
  font-size: 0.82rem;
  color: var(--accent-dark);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.course-card p:last-child {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}

.training-cta {
  margin-top: 3rem;
  text-align: center;
}
.training-cta p {
  color: var(--ink-soft);
  margin-bottom: 1rem;
  font-size: 0.98rem;
}

/* ---- SERVICES / PRACTICE ---- */
.services .service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.service-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-alt);
}
.service-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.service-card:hover .service-image img { transform: scale(1.04); }

.service-body { padding: 1.6rem 1.5rem 1.8rem; }
.service-body h3 { margin-bottom: 0.4rem; font-size: 1.25rem; }
.service-tag {
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.service-body > p:not(.service-tag) {
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.65;
}

/* ---- COMMUNITY ---- */
.community-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(280px, auto);
  gap: 1.25rem;
}

.community-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
  min-height: 340px;
}
.community-item.feature {
  grid-column: span 2;
  grid-row: span 2;
}
.community-item img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.community-item:hover img { transform: scale(1.05); }

.community-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(to top, rgba(20, 15, 10, 0.92) 20%, rgba(20, 15, 10, 0.0) 100%);
  padding: 2.5rem 1.5rem 1.5rem;
  color: #f7eddc;
}
.community-item.feature figcaption { padding: 3.5rem 2rem 2rem; }

.community-item figcaption h3 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.community-item.feature figcaption h3 { font-size: 1.6rem; }
.community-item figcaption p {
  color: #e4d6bf;
  font-size: 0.9rem;
  line-height: 1.55;
}
.community-item.feature figcaption p { font-size: 1rem; max-width: 540px; }

/* ---- CONTACT ---- */
.contact {
  background: var(--ink);
  color: #f4ede1;
  max-width: none;
  width: 100%;
  padding: 6rem 1.5rem;
  margin: 0;
}
.contact-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.contact h2 { color: #fff; margin-bottom: 1rem; }
.contact .eyebrow { color: var(--gold); }
.contact-lede {
  color: #cdb996;
  font-size: 1.08rem;
  margin-bottom: 2.5rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
  margin-bottom: 2rem;
}

.contact-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(184, 138, 74, 0.25);
  padding: 1.25rem 1rem;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  color: #f4ede1;
  transition: all 0.2s ease;
}
.contact-card:hover {
  background: rgba(184, 138, 74, 0.12);
  border-color: var(--gold);
  color: #fff;
  transform: translateY(-2px);
}

.contact-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.contact-value {
  font-size: 1rem;
  font-weight: 500;
}

.contact-location {
  color: #a89676;
  font-size: 0.92rem;
  margin-top: 1rem;
}

/* ---- FOOTER ---- */
.footer {
  background: #1d1814;
  color: #8b7d68;
  padding: 2rem 1.5rem;
  font-size: 0.88rem;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer a { color: var(--gold); }
.footer a:hover { color: #e4c38a; }

/* ---- RESPONSIVE ---- */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-top: 3rem;
  }
  .section-grid { grid-template-columns: 1fr; gap: 2rem; }
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .services .service-grid { grid-template-columns: 1fr; }
  .community-grid { grid-template-columns: repeat(2, 1fr); }
  .community-item.feature { grid-column: span 2; grid-row: span 1; }
  .contact-methods { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .section { padding: 4rem 1.25rem; }
  .training, .contact { padding: 4rem 1.25rem; }
  .nav-inner { padding: 0.85rem 1.25rem; }
  .nav nav { gap: 1rem; }
  .nav nav a:not(.nav-cta) { display: none; }
  .brand-text { font-size: 0.95rem; }
  .course-grid { grid-template-columns: 1fr; }
  .community-grid { grid-template-columns: 1fr; }
  .community-item.feature { grid-column: span 1; }
  .contact-methods { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { text-align: center; }
}
