/* =========================================================
   MKKL FAMILY HOLDINGS LLC — style.css
   Dark warm-black theme with wine-berry accents
   ========================================================= */

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: #140D0F;
  color: #F2E8E8;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.home-page {
  background-color: #140D0F;
}

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", "Palatino Linotype", serif;
  font-weight: 600;
  line-height: 1.2;
  color: #F2E8E8;
}

a {
  color: #D9A0A0;
  text-decoration: none;
}

a:hover {
  color: #F2E8E8;
}

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

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

.btn {
  display: inline-block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 13px 26px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn-primary {
  background-color: #8E2437;
  color: #F2E8E8;
}

.btn-primary:hover {
  background-color: #6E1C2B;
  color: #F2E8E8;
}

.btn-outline {
  background-color: transparent;
  color: #D9A0A0;
  border-color: #D9A0A0;
}

.btn-outline:hover {
  background-color: #1E1316;
  color: #F2E8E8;
  border-color: #F2E8E8;
}

.btn-light {
  background-color: #F2E8E8;
  color: #8E2437;
}

.btn-light:hover {
  background-color: #D9C9A3;
  color: #140D0F;
}

/* ---------- Crest Shield Nav ---------- */

.crest-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #140D0F;
  border-bottom: 1px solid #8E2437;
}

.crest-nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.crest-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #F2E8E8;
}

.crest-brand:hover {
  color: #F2E8E8;
}

.shield-badge {
  width: 36px;
  height: 40px;
  background-color: #8E2437;
  color: #F2E8E8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: 5px 5px 2px 2px;
  position: relative;
  flex-shrink: 0;
}

.shield-badge::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0;
  height: 0;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-top: 8px solid #8E2437;
}

.crest-wordmark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: #F2E8E8;
}

.crest-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.crest-link {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.4px;
  color: #C9B4B4;
  padding: 6px 0;
  position: relative;
}

.crest-link:hover {
  color: #F2E8E8;
}

.crest-link.is-active {
  color: #F2E8E8;
}

.crest-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background-color: #8E2437;
}

.crest-cta {
  display: inline-block;
  background-color: #8E2437;
  color: #F2E8E8;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}

.crest-cta:hover {
  background-color: #6E1C2B;
  color: #F2E8E8;
}

.crest-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 44px;
  height: 44px;
}

.crest-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #F2E8E8;
  margin: 5px auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */

.pyramid-hero {
  background-color: #140D0F;
  padding: 84px 0 96px;
  border-bottom: 1px solid #2A1B20;
}

.pyramid-hero-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}

.eyebrow-chip {
  display: inline-block;
  background-color: #8E2437;
  color: #D9A0A0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 4px;
  margin-bottom: 22px;
}

.hero-title {
  font-size: 52px;
  line-height: 1.08;
  letter-spacing: -0.5px;
  margin-bottom: 22px;
  color: #F2E8E8;
}

.hero-sub {
  font-size: 17px;
  line-height: 1.7;
  color: #C9B4B4;
  max-width: 520px;
  margin-bottom: 30px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Pyramid */

.pyramid-stage {
  display: flex;
  justify-content: center;
}

.pyramid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 460px;
}

.pyramid-layer {
  position: relative;
  height: 52px;
  display: flex;
  align-items: center;
  padding-left: 20px;
  border-radius: 3px;
  overflow: visible;
}

.layer-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.layer-label {
  position: absolute;
  top: 50%;
  left: calc(100% + 16px);
  transform: translateY(-50%);
  background-color: #1E1316;
  color: #D9C9A3;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 3px;
  white-space: nowrap;
}

.layer-1 {
  width: 100%;
  background-color: #2A1B20;
  color: #F2E8E8;
}

.layer-2 {
  width: 78%;
  background-color: #D9A0A0;
  color: #140D0F;
}

.layer-3 {
  width: 56%;
  background-color: #D9C9A3;
  color: #140D0F;
}

.layer-4 {
  width: 34%;
  background-color: #8E2437;
  color: #F2E8E8;
}

/* ---------- Section scaffolding ---------- */

.section-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-heading {
  margin-bottom: 46px;
}

.eyebrow-label {
  display: inline-block;
  color: #D9C9A3;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-title {
  font-size: 38px;
  letter-spacing: -0.3px;
  color: #F2E8E8;
}

/* ---------- Statement row ---------- */

.statement-row {
  background-color: #1E1316;
  border-bottom: 1px solid #2A1B20;
  padding: 72px 0;
}

.statement-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
}

.statement-text {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  line-height: 1.5;
  color: #F2E8E8;
  text-align: center;
}

.statement-accent {
  color: #D9A0A0;
}

/* ---------- Tenet rows ---------- */

.tenet-rows {
  background-color: #140D0F;
  padding: 88px 0;
}

.tenet-row {
  display: grid;
  grid-template-columns: 120px 240px 1fr;
  gap: 32px;
  align-items: start;
  padding: 40px 0;
  border-bottom: 1px solid #2A1B20;
}

.tenet-row:first-of-type {
  border-top: 1px solid #2A1B20;
}

.tenet-numeral {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 56px;
  font-weight: 700;
  color: #8E2437;
  line-height: 1;
}

.tenet-title {
  font-size: 26px;
  color: #F2E8E8;
  padding-top: 6px;
}

.tenet-copy {
  font-size: 16px;
  line-height: 1.75;
  color: #C9B4B4;
  max-width: 620px;
}

/* ---------- Years rail ---------- */

.years-rail {
  background-color: #1E1316;
  border-top: 1px solid #2A1B20;
  border-bottom: 1px solid #2A1B20;
  padding: 72px 0;
}

.years-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.year-block {
  text-align: left;
}

.year-numeral {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  color: #8E2437;
  display: block;
  margin-bottom: 14px;
}

.year-note {
  font-size: 15px;
  color: #C9B4B4;
  line-height: 1.6;
}

/* ---------- Value rows ---------- */

.value-rows {
  background-color: #140D0F;
  padding: 88px 0;
}

.value-row {
  display: grid;
  grid-template-columns: 32px 240px 1fr;
  gap: 32px;
  align-items: center;
  padding: 30px 0;
  border-bottom: 1px solid #2A1B20;
}

.value-row:first-of-type {
  border-top: 1px solid #2A1B20;
}

.value-marker {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #D9A0A0;
  flex-shrink: 0;
}

.value-name {
  font-size: 22px;
  color: #F2E8E8;
}

.value-copy {
  font-size: 16px;
  color: #C9B4B4;
  line-height: 1.6;
}

/* ---------- FAQ accordion ---------- */

.faq-accordion {
  background-color: #1E1316;
  border-top: 1px solid #2A1B20;
  border-bottom: 1px solid #2A1B20;
  padding: 88px 0;
}

.faq-list {
  max-width: 820px;
}

.faq-item {
  border-bottom: 1px solid #2A1B20;
}

.faq-item:first-child {
  border-top: 1px solid #2A1B20;
}

.faq-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 24px 0;
  text-align: left;
}

.faq-question {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 600;
  color: #F2E8E8;
}

.faq-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background-color: #8E2437;
  transition: transform 0.2s ease;
}

.faq-icon::before {
  top: 8px;
  left: 0;
  width: 18px;
  height: 2px;
}

.faq-icon::after {
  top: 0;
  left: 8px;
  width: 2px;
  height: 18px;
}

.faq-toggle[aria-expanded="true"] .faq-icon::after {
  transform: scaleY(0);
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-panel p {
  font-size: 16px;
  line-height: 1.7;
  color: #C9B4B4;
  padding: 0 0 26px 0;
  max-width: 720px;
}

.faq-item.is-open .faq-panel {
  max-height: 400px;
}

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

.cta-band {
  background-color: #8E2437;
  padding: 84px 0;
}

.cta-band-inner {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.cta-title {
  font-size: 40px;
  color: #F2E8E8;
  margin-bottom: 16px;
}

.cta-sub {
  font-size: 17px;
  color: #D9A0A0;
  margin-bottom: 30px;
}

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

.wine-footer {
  background-color: #140D0F;
  border-top: 2px solid #8E2437;
}

.footer-columns {
  max-width: 1160px;
  margin: 0 auto;
  padding: 60px 24px 40px;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1.2fr;
  gap: 48px;
}

.footer-brand {
  display: block;
}

.footer-marker {
  display: inline-block;
  width: 18px;
  height: 18px;
  background-color: #8E2437;
  margin-bottom: 16px;
}

.footer-wordmark {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: #F2E8E8;
  margin-bottom: 14px;
}

.footer-desc {
  font-size: 15px;
  color: #C9B4B4;
  line-height: 1.6;
  max-width: 320px;
}

.footer-col-title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #D9C9A3;
  margin-bottom: 18px;
}

.footer-links a,
.footer-contact a {
  display: block;
  font-size: 15px;
  color: #C9B4B4;
  margin-bottom: 10px;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: #F2E8E8;
}

.footer-address {
  font-size: 15px;
  color: #C9B4B4;
  line-height: 1.6;
  margin-top: 6px;
}

.footer-legal {
  max-width: 1160px;
  margin: 0 auto;
  padding: 22px 24px;
  border-top: 1px solid #2A1B20;
}

.footer-legal p {
  font-size: 13px;
  color: #C9B4B4;
}

.footer-legal a {
  color: #D9A0A0;
}

.footer-legal a:hover {
  color: #F2E8E8;
}

.footer-rule {
  height: 4px;
  background-color: #8E2437;
  width: 100%;
}

/* ---------- Scroll reveal ---------- */

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Secondary page headers (services/contact) ---------- */

.page-hero {
  background-color: #140D0F;
  padding: 72px 0 64px;
  border-bottom: 1px solid #2A1B20;
}

.page-hero-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.page-title {
  font-size: 46px;
  letter-spacing: -0.4px;
  color: #F2E8E8;
  margin-bottom: 18px;
}

.page-lede {
  font-size: 18px;
  line-height: 1.7;
  color: #C9B4B4;
  max-width: 680px;
}

/* ---------- Services page ---------- */

.service-sections {
  background-color: #140D0F;
  padding: 80px 0 40px;
}

.service-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
  padding: 44px 0;
  border-bottom: 1px solid #2A1B20;
}

.service-row:first-child {
  border-top: 1px solid #2A1B20;
}

.service-numeral {
  display: inline-block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 700;
  color: #F2E8E8;
  background-color: #8E2437;
  padding: 5px 11px;
  border-radius: 3px;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.service-title {
  font-size: 30px;
  color: #F2E8E8;
  line-height: 1.2;
}

.service-copy {
  font-size: 16px;
  line-height: 1.75;
  color: #C9B4B4;
}

/* ---------- Process overview ---------- */

.process-overview {
  background-color: #1E1316;
  border-top: 1px solid #2A1B20;
  border-bottom: 1px solid #2A1B20;
  padding: 84px 0;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
}

.process-numeral {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 40px;
  font-weight: 700;
  color: #D9C9A3;
  line-height: 1;
  margin-bottom: 14px;
}

.process-title {
  font-size: 20px;
  color: #F2E8E8;
  margin-bottom: 10px;
}

.process-copy {
  font-size: 14px;
  line-height: 1.6;
  color: #C9B4B4;
}

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

.contact-split {
  background-color: #140D0F;
  padding: 80px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 60px;
  align-items: start;
}

.contact-col-title {
  font-size: 28px;
  color: #F2E8E8;
  margin-bottom: 28px;
}

.contact-form {
  max-width: 560px;
}

.form-note {
  font-size: 15px;
  color: #C9B4B4;
  margin-bottom: 24px;
}

.form-field {
  margin-bottom: 22px;
}

.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #D9A0A0;
  margin-bottom: 8px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  background-color: #1E1316;
  border: 1px solid #2A1B20;
  border-radius: 4px;
  color: #F2E8E8;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  padding: 13px 15px;
  transition: border-color 0.18s ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #7A5A5E;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: #8E2437;
}

.form-status {
  margin-top: 14px;
  font-size: 14px;
  color: #D9C9A3;
}

.detail-block {
  padding: 18px 0;
  border-bottom: 1px solid #2A1B20;
}

.detail-block:first-of-type {
  border-top: 1px solid #2A1B20;
}

.detail-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #D9C9A3;
  margin-bottom: 6px;
}

.detail-value {
  font-size: 16px;
  color: #C9B4B4;
  line-height: 1.6;
}

a.detail-value {
  color: #D9A0A0;
}

a.detail-value:hover {
  color: #F2E8E8;
}

.contact-faq {
  background-color: #1E1316;
  border-top: 1px solid #2A1B20;
  border-bottom: 1px solid #2A1B20;
  padding: 80px 0;
}

.contact-faq-list {
  max-width: 820px;
}

.contact-faq-item {
  padding: 26px 0;
  border-bottom: 1px solid #2A1B20;
}

.contact-faq-item:first-child {
  border-top: 1px solid #2A1B20;
}

.contact-faq-q {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  color: #F2E8E8;
  margin-bottom: 10px;
}

.contact-faq-a {
  font-size: 16px;
  line-height: 1.7;
  color: #C9B4B4;
  max-width: 720px;
}

/* ---------- Responsive ---------- */

@media (max-width: 920px) {
  .crest-links,
  .crest-cta {
    display: none;
  }

  .crest-toggle {
    display: block;
  }

  .crest-nav-inner {
    position: relative;
  }

  .crest-links.mobile-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background-color: #140D0F;
    border-bottom: 1px solid #8E2437;
    padding: 16px 24px 24px;
  }

  .crest-links.mobile-open .crest-link {
    padding: 12px 0;
    width: 100%;
  }

  .crest-links.mobile-open .crest-cta-mobile {
    display: inline-block;
    margin-top: 8px;
  }

  .pyramid-hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-title {
    font-size: 42px;
  }

  .tenet-row {
    grid-template-columns: 90px 1fr;
  }

  .tenet-copy {
    grid-column: 2 / -1;
  }

  .value-row {
    grid-template-columns: 32px 1fr;
  }

  .value-copy {
    grid-column: 2 / -1;
  }

  .years-row {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-columns {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .service-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .process-steps {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 520px) {
  .hero-title {
    font-size: 34px;
  }

  .section-title {
    font-size: 30px;
  }

  .statement-text {
    font-size: 22px;
  }

  .tenet-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tenet-copy {
    grid-column: 1;
  }

  .value-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .value-copy {
    grid-column: 1;
  }

  .year-numeral {
    font-size: 48px;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }
}
