/* Base resets */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--mh-cream);
  color: var(--mh-charcoal-900);
  line-height: 1.6;
}

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

a {
  color: var(--mh-accent);
  text-decoration: none;
  transition: color 0.3s ease, opacity 0.3s ease;
}

a:hover,
a:focus {
  color: #2a4e3e;
  color: color-mix(in srgb, var(--mh-accent) 80%, black 20%);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #86a094;
  outline: 3px solid color-mix(in srgb, var(--mh-accent) 60%, white 40%);
  outline-offset: 2px;
}

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

.section {
  padding: clamp(64px, 8vw, 96px) 0;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--mh-charcoal);
}

.breadcrumb .container {
  display: flex;
  align-items: center;
  padding: 16px 0;
}

.breadcrumb ol {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.breadcrumb li {
  display: flex;
  align-items: center;
}

.breadcrumb li + li::before {
  content: "/";
  margin: 0 6px;
  color: var(--mh-sage-700);
}

.breadcrumb a {
  color: var(--mh-charcoal-900);
}

.breadcrumb a:hover,
.breadcrumb a:focus {
  color: var(--mh-accent);
}

.section-header {
  max-width: 720px;
  margin-bottom: clamp(36px, 6vw, 52px);
}

.section-header .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.78rem;
  color: var(--mh-accent);
  margin-bottom: 12px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  margin: 0 0 16px;
}

.section-header p {
  color: var(--mh-charcoal);
  margin: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--mh-sage);
  backdrop-filter: blur(12px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 24px;
}

.brand-group {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.brand { display: none; } /* replaced by logo mark */

.site-tagline { display: none; } /* remove extra words under brand */

/* Header mark sizing: roughly “two stacked letters” */
.brand-mark {
  height: 75px; /* adjust if needed; keeps mark crisp across pages */
  width: auto;
  display: block;
}

.site-header .site-tagline {
  display: none;
}

.page-hero .hero-tagline,
.hero .eyebrow {
  display: block;
}

/*
 * This CSS makes the logo and text sit side-by-side
 * and styles the text itself.
*/

/* Target the link that holds everything */
.brand-group a {
  display: flex;           /* Use Flexbox to align items horizontally */
  align-items: center;     /* Vertically center the logo and text block */
  text-decoration: none;   /* Removes the default blue underline from the link */
  color: #333;             /* Sets a default text color (change as needed) */
}

/* This is the container for the two lines of text */
.brand-text {
  display: flex;
  flex-direction: column;  /* Stack the text lines vertically */
}

/* Style the top line of text */
.brand-line-1 {
  font-weight: bold;       /* Makes "Monthaven" bold */
  font-size: 1.1em;        /* Makes it slightly larger */
}

/* Style the bottom line of text */
.brand-line-2 {
  font-size: 1em;          /* Normal size */
  line-height: 1;          /* Reduces the space between the two lines */
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.8vw, 28px);
  font-size: 0.95rem;
  color: var(--mh-charcoal);
}

.nav a[aria-current="page"] {
  color: var(--mh-accent);
  font-weight: 600;
  position: relative;
}

.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 3px;
  border-radius: 999px;
  background: #537968;
  background: color-mix(in srgb, var(--mh-accent) 85%, white 15%);
}

.nav .btn-primary[aria-current="page"] {
  color: var(--mh-cream);
}

.nav .btn {
  font-size: 0.9rem;
}

.nav-controls {
  display: flex;
  gap: 12px;
}

.mobile-nav-toggle {
  display: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease, border-color 0.3s ease;
}

.btn-primary {
  background: var(--mh-accent);
  color: #fff; /* ensure white text for Request Access */
}

.btn-primary:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
}

.btn-outline {
  background: var(--mh-cream);
  color: var(--mh-charcoal-900);
  border: 1px solid var(--mh-sage);
}

.btn-outline:hover {
  border-color: var(--mh-sage-700);
  transform: translateY(-2px);
}

/* Hero */
.hero {
  padding: clamp(120px, 16vw, 160px) 0 clamp(72px, 12vw, 96px);
  background: var(--mh-cream-100);
  border-bottom: 1px solid var(--mh-sage);
}

.hero .eyebrow {
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--mh-accent);
  margin-bottom: 18px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.6vw, 3.8rem);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 20px;
  max-width: 860px;
}

.hero p {
  margin: 0 0 28px;
  max-width: 720px;
  color: var(--mh-charcoal);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.cta-section {
  background: var(--mh-cream-100);
  padding: clamp(32px, 6vw, 48px) 0;
  border-top: 1px solid var(--mh-sage);
  border-bottom: 1px solid var(--mh-sage);
}

.cta-section .cta-row {
  justify-content: center;
  align-items: center;
}

.page-hero {
  padding: clamp(96px, 14vw, 140px) 0 clamp(52px, 10vw, 80px);
  background: var(--mh-cream-100);
  border-bottom: 1px solid var(--mh-sage);
}

.hero-tagline {
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--mh-accent);
  margin: 0 0 18px;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 18px;
}

.page-hero p {
  color: var(--mh-charcoal);
  margin: 0;
  max-width: 720px;
}

/* Cards & panels */
.panel {
  background: #fff;
  border: 1px solid var(--mh-sage);
  border: 1px solid color-mix(in oklab, var(--mh-sage) 48%, transparent);
  border-radius: var(--mh-radius);
  padding: clamp(20px, 2.6vw, 32px);
  box-shadow: var(--mh-shadow);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.panel:hover {
  transform: translateY(-6px);
  border-color: var(--mh-sage-700);
}

.panel h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-top: 0;
  margin-bottom: 12px;
}

.panel p {
  margin: 0;
  color: var(--mh-charcoal);
}

.cards {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.cards.three {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.cards.cards-3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin-top: clamp(28px, 5vw, 42px);
}

.stat {
  text-align: center;
  padding: 22px;
  border: 1px solid var(--mh-sage);
  border-radius: 16px;
  background: var(--mh-cream);
  transition: transform 0.5s ease, border-color 0.3s ease;
}

.stat:hover {
  transform: translateY(-4px);
  border-color: var(--mh-sage-700);
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2rem);
  color: var(--mh-charcoal-900);
  margin-bottom: 6px;
}

.stat-label {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--mh-charcoal);
  color: color-mix(in srgb, var(--mh-charcoal) 70%, black 0%);
}

/* Stepper */
.stepper {
  counter-reset: step;
  display: grid;
  gap: 24px;
}

.step {
  counter-increment: step;
}

.step::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--mh-accent);
  color: var(--mh-cream);
  font-weight: 600;
  margin-right: 10px;
}

.step-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--mh-charcoal-900);
  margin: 0 0 8px;
}

.step-body {
  color: var(--mh-charcoal);
  margin: 0;
}

/* Intel cards */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  color: var(--mh-charcoal);
  margin-bottom: 12px;
}

.panel .eyebrow {
  color: var(--mh-accent);
}

.panel a.btn {
  margin-top: 18px;
}

/* Team */
.team-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.team-card img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  aspect-ratio: 4 / 5;
  margin-bottom: 16px;
}

.team-card h3 {
  margin-bottom: 4px;
}

.team-card span {
  color: var(--mh-charcoal);
  font-size: 0.95rem;
}

.team-card p {
  margin-top: 12px;
  color: var(--mh-charcoal);
}

.section-divider {
  border: 0;
  border-top: 1px solid var(--mh-sage);
  margin: 48px auto;
  max-width: 780px;
}

/* Forms */
form {
  display: grid;
  gap: 18px;
}

label {
  font-weight: 600;
  font-size: 0.9rem;
}

input,
textarea,
select {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--mh-sage);
  font: inherit;
  background: #fff;
  color: var(--mh-charcoal-900);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--mh-accent);
  box-shadow: 0 0 0 4px rgba(53, 97, 77, 0.2);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--mh-accent) 20%, transparent 80%);
}

textarea {
  min-height: 160px;
  resize: vertical;
}

/* Footer */
.site-footer {
  padding: 32px 0;
  background: #fff;
  border-top: 1px solid var(--mh-sage);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  color: var(--mh-charcoal);
  font-size: 0.9rem;
}

.site-footer a {
  color: inherit;
}

.site-footer a:hover {
  color: var(--mh-accent);
}

.footer-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-contacts {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Utilities */
.center {
  text-align: center;
}

.fineprint {
  font-size: 0.8rem;
  color: var(--mh-charcoal);
  margin-top: 18px;
}

.split-layout {
  display: grid;
  gap: clamp(32px, 6vw, 48px);
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: start;
}

.highlight {
  background: var(--mh-cream-100);
  border-radius: var(--mh-radius);
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--mh-sage);
  border: 1px solid color-mix(in oklab, var(--mh-sage) 40%, transparent);
}

blockquote {
  margin: 0;
  padding: 0 0 0 18px;
  border-left: 3px solid var(--mh-accent);
  color: var(--mh-charcoal);
}

@media (max-width: 880px) {
  .nav {
    display: none;
  }

  .site-header {
    padding: 12px 0;
  }

  .site-header .container {
    justify-content: space-between;
  }

  .site-tagline {
    font-size: 0.64rem;
    letter-spacing: 0.22em;
  }

  .hero-tagline {
    letter-spacing: 0.22em;
    font-size: 0.68rem;
  }

  .mobile-nav-toggle {
    display: inline-flex;
    background: none;
    border: 1px solid var(--mh-sage);
    padding: 8px 12px;
    border-radius: 12px;
    color: var(--mh-charcoal-900);
    font-weight: 600;
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open .site-header .nav {
    position: fixed;
    inset: 72px 20px auto 20px;
    background: #fff;
    padding: 28px;
    display: grid;
    gap: 18px;
    box-shadow: var(--mh-shadow);
    border: 1px solid var(--mh-sage);
    border: 1px solid color-mix(in oklab, var(--mh-sage) 40%, transparent);
    border-radius: var(--mh-radius);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }

  body.nav-open .site-header .nav .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .site-footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* Intel page CTA */
.full-width-cta {
  margin-top: clamp(32px, 6vw, 48px);
}

.full-width-cta .btn {
  display: flex;
  width: 100%;
  justify-content: center;
  padding: clamp(16px, 2.6vw, 20px);
  font-size: 1.05rem;
  border-radius: 18px;
  box-shadow: var(--mh-shadow);
}

.full-width-cta .btn:hover {
  transform: translateY(-3px);
}

/* Button utility */
.btn-compact {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: 10px;
}

/* Visibility helpers */
.hidden {
  display: none !important;
}

/* LOI generator */
.loi-page {
  background: var(--mh-cream);
}

.loi-page main {
  padding-bottom: clamp(64px, 10vw, 96px);
}

.loi-page .page-hero {
  padding-bottom: clamp(48px, 8vw, 72px);
}

.loi-layout {
  display: grid;
  gap: clamp(24px, 4vw, 40px);
}

@media (min-width: 1100px) {
  .loi-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .loi-layout.with-preview {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  }
}

.loi-panel {
  background: #fff;
  border-radius: var(--mh-radius);
  box-shadow: var(--mh-shadow);
  padding: clamp(24px, 3.4vw, 32px);
  border: 1px solid color-mix(in oklab, var(--mh-sage) 50%, transparent);
}

.loi-panel-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(16px, 2.4vw, 20px);
}

.loi-panel-header h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--mh-charcoal-900);
}

.loi-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.loi-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--mh-charcoal);
}

.loi-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--mh-accent);
  border-radius: 4px;
}

.loi-form {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3vw, 32px);
}

.loi-fieldset {
  border: none;
  margin: 0;
  padding: 0;
}

.loi-fieldset + .loi-fieldset {
  margin-top: clamp(24px, 3vw, 32px);
}

.loi-fieldset legend {
  margin-bottom: 16px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--mh-charcoal-900);
}

.loi-grid {
  display: grid;
  gap: 16px;
}

.loi-grid.two {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.loi-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.loi-label-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.loi-hint {
  font-size: 0.75rem;
  color: var(--mh-charcoal);
}

.loi-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--mh-charcoal-900);
  display: block;
  margin-bottom: 6px;
}

.loi-input,
.loi-textarea,
.loi-file {
  width: 100%;
  border: 1px solid var(--mh-sage);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  background: #fff;
  color: var(--mh-charcoal-900);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.loi-textarea {
  min-height: 140px;
  resize: vertical;
}

.loi-input:focus,
.loi-textarea:focus,
.loi-file:focus {
  border-color: var(--mh-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--mh-accent) 18%, transparent 82%);
  outline: none;
}

.loi-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.loi-actions .btn {
  flex-shrink: 0;
}

.loi-actions .btn-primary {
  min-width: 170px;
}

.loi-preview {
  display: none;
  gap: 20px;
}

.loi-preview.show-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

@media (min-width: 1100px) {
  .loi-preview.show-preview {
    align-items: stretch;
  }
}

.loi-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

@media (min-width: 1100px) {
  .loi-preview-actions {
    justify-content: flex-end;
  }
}

.loi-preview-actions .btn {
  min-width: 160px;
}

.loi-document-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.loi-document {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--mh-shadow);
  padding: clamp(32px, 4vw, 48px);
  max-width: 780px;
  width: 100%;
  font-family: 'Georgia', 'Times New Roman', serif;
  color: var(--mh-charcoal-900);
  line-height: 1.7;
}

.loi-document header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(28px, 4vw, 40px);
}

.loi-sender {
  font-size: 0.95rem;
}

.loi-sender-company {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.loi-sender-address,
.loi-sender-email {
  color: var(--mh-charcoal);
}

.loi-logo {
  max-height: 70px;
  max-width: 180px;
  object-fit: contain;
}

.loi-document p {
  margin: 0 0 1em;
}

.loi-document ol {
  margin: 0 0 1.2em;
  padding-left: 1.25em;
}

.loi-document li {
  margin-bottom: 0.75em;
}

.loi-recipient-block {
  margin-bottom: clamp(24px, 3.4vw, 40px);
}

.loi-date {
  margin-bottom: 1.5em;
}

.loi-recipient-name {
  font-weight: 600;
}

.loi-recipient-detail {
  color: var(--mh-charcoal);
  font-size: 0.95rem;
}

.loi-subject {
  font-weight: 700;
  margin: clamp(24px, 3vw, 36px) 0 clamp(18px, 2.8vw, 28px);
}

.loi-subject span {
  font-weight: 400;
}

.loi-body {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.loi-expiry {
  font-style: italic;
  color: var(--mh-charcoal);
}

.loi-signatures {
  margin-top: clamp(32px, 5vw, 48px);
  display: grid;
  gap: clamp(24px, 3vw, 36px);
}

@media (min-width: 900px) {
  .loi-signatures {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.loi-signature-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.signature-heading {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
}

.signature-line-group {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 8px;
}

.loi-signature-note {
  font-size: 0.85rem;
  color: var(--mh-charcoal);
}

.loi-signature-block .signature-line {
  display: inline-flex;
  align-items: center;
  border-bottom: 1px solid var(--mh-sage-700);
  min-height: 28px;
  padding: 2px 4px;
}

.signature-line--wide {
  min-width: 240px;
}

.signature-line--medium {
  min-width: 200px;
}

.signature-line--short {
  min-width: 160px;
}

.print-header,
.print-footer {
  display: none;
}

.print-header-inner,
.print-footer-inner {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  padding: 0 32px;
  font-size: 10pt;
  color: var(--mh-charcoal);
}

.print-footer-inner {
  align-items: flex-end;
}

.print-body {
  position: relative;
}

.watermark::before {
  content: "DRAFT";
  position: fixed;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-24deg);
  font-size: 120px;
  color: rgba(0, 0, 0, 0.06);
  pointer-events: none;
  z-index: 0;
  white-space: nowrap;
}

.print-hidden {
  display: block;
}

@media print {
  body {
    background: #fff !important;
  }

  .print-hidden {
    display: none !important;
  }

  .loi-panel,
  .site-header,
  .site-footer {
    display: none !important;
  }

  .loi-preview,
  .loi-preview.show-preview {
    display: block;
  }

  #loiLayout,
  .loi-layout.with-preview {
    display: block;
  }

  #loiOutput {
    box-shadow: none;
    border-radius: 0;
    max-width: 100%;
    margin: 0 auto;
  }

  .print-header,
  .print-footer {
    position: fixed;
    left: 0;
    right: 0;
    display: block !important;
  }

  .print-header {
    top: 0;
  }

  .print-footer {
    bottom: 0;
  }

  .print-body {
    margin-top: 70px;
    margin-bottom: 50px;
  }
}
