/* ==========================================================================
   MGH Company — Brand tokens
   ========================================================================== */
:root {
  --maroon-900: #4d0414;   /* icon badges, footer, solid buttons */
  --maroon-800: #5a0415;   /* CTA band, callout bars */
  --maroon-heading: #53171e; /* headings, outline buttons */
  --maroon-border: #7d2230;  /* footer divider */
  --gold: #d1a662;          /* icon lines, checks */
  --gold-muted: #a97b3a;    /* eyebrow labels */
  --cream: #fffdf9;         /* page / card background */
  --cream-alt: #f4ece0;     /* services section background */
  --cream-soft: #fbf6ee;    /* hero icon cards, pills */
  --border-soft: #e7dccb;   /* hairline borders */
  --text-body: #241414;     /* near-black body copy */
  --text-muted: #8a7a7c;    /* muted labels */
  --text-muted-warm: #6b5658; /* hero icon-card labels only */
  --text-soft: #4a3a3c;     /* secondary paragraph copy */
  --text-on-dark-muted: #d9b9be;

  --font-display: 'Cinzel', serif;
  --font-body: 'Libre Franklin', Helvetica, Arial, sans-serif;

  --max-width: 1440px;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--text-body);
  font-family: var(--font-body);
}

h1, h2 {
  font-family: var(--font-display);
  color: var(--maroon-heading);
  margin: 0;
}

h3 {
  color: var(--maroon-heading);
  margin: 0;
}

a {
  color: var(--maroon-border);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold-muted);
  outline-offset: 2px;
}

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

i[data-lucide],
.lucide {
  width: 1em;
  height: 1em;
}

.page-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  background: var(--cream);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 15px 28px;
  border-radius: 3px;
  text-decoration: none;
  text-transform: uppercase;
  border: 1.5px solid transparent;
  white-space: nowrap;
}

.btn i[data-lucide],
.btn svg {
  width: 16px;
  height: 16px;
}

.btn-solid {
  background: var(--maroon-900);
  color: var(--cream);
}
.btn-solid i[data-lucide],
.btn-solid svg { color: var(--gold); }

.btn-outline {
  border-color: var(--maroon-heading);
  color: var(--maroon-heading);
  background: transparent;
}

.btn-inverse {
  background: var(--cream);
  color: var(--maroon-900);
  padding: 14px 26px;
}
.btn-inverse i[data-lucide],
.btn-inverse svg { color: var(--maroon-900); }

.btn-small {
  padding: 11px 22px;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.btn-small i[data-lucide],
.btn-small svg { width: 15px; height: 15px; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 64px;
  border-bottom: 1px solid var(--border-soft);
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.brand-mark {
  width: 129px;
  height: 129px;
  border-radius: 999px;
  clip-path: circle(50%);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 600;
  color: var(--maroon-heading);
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
}

.brand-tagline {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--gold-muted);
  margin-top: 5px;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 36px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.site-nav > a:not(.btn) {
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-body);
  white-space: nowrap;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  display: flex;
  align-items: center;
  gap: 64px;
  padding: 88px 64px;
}

.hero-copy {
  flex: 1.1;
  min-width: 280px;
}

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gold-muted);
  text-transform: uppercase;
  margin: 0 0 18px;
}

.eyebrow-center { text-align: center; margin-bottom: 10px; }

.hero-copy h1 {
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 22px;
}

.hero-desc {
  font-size: 16.5px;
  color: var(--text-soft);
  line-height: 1.7;
  max-width: 480px;
  margin: 0 0 32px;
}

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

.hero-icons {
  flex: 0.9;
  min-width: 280px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.hero-icon-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: var(--cream-soft);
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  padding: 22px 10px;
}

.icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--maroon-900);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(209, 166, 98, 0.25);
}

.icon-badge i[data-lucide],
.icon-badge svg {
  width: 26px;
  height: 26px;
  color: var(--gold);
  stroke-width: 1.75;
}

.icon-badge-lg {
  width: 64px;
  height: 64px;
}
.icon-badge-lg i[data-lucide],
.icon-badge-lg svg {
  width: 29px;
  height: 29px;
}

.icon-badge-doc {
  width: 66px;
  height: 66px;
}
.icon-badge-doc i[data-lucide],
.icon-badge-doc svg {
  width: 30px;
  height: 30px;
}

.icon-label {
  font-size: 11.5px;
  color: var(--text-muted-warm);
  text-align: center;
  font-weight: 600;
}

/* ==========================================================================
   Services
   ========================================================================== */
.services {
  background: var(--cream-alt);
  padding: 72px 64px;
}

.services h2 {
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 600;
  text-align: center;
  margin: 0 0 48px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.service-card {
  background: var(--cream);
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  padding: 36px 34px;
}

.service-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 20px 0 10px;
}

.service-card > p {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.6;
  margin: 0 0 16px;
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.check-list li {
  display: flex;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-body);
  align-items: flex-start;
  line-height: 1.5;
}

.check-list i[data-lucide],
.check-list svg {
  width: 14px;
  height: 14px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 3px;
}

/* ==========================================================================
   Scope of work
   ========================================================================== */
.scope {
  padding: 72px 64px;
  text-align: center;
}

.scope h2 {
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 600;
  margin: 0 0 8px;
}

.scope-sub {
  font-size: 14.5px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
}

.scope-pills {
  list-style: none;
  margin: 0 auto 40px;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  max-width: 900px;
}

.scope-pills li {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--cream-soft);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--maroon-heading);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.scope-pills i[data-lucide],
.scope-pills svg {
  width: 13px;
  height: 13px;
  color: var(--gold);
  flex-shrink: 0;
}

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--maroon-800);
  padding: 30px 64px;
  flex-wrap: wrap;
}

.cta-band p {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--cream);
  margin: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--maroon-900);
  padding: 40px 64px 28px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-mark {
  width: 80px;
  height: 80px;
  border-radius: 999px;
  clip-path: circle(50%);
  flex-shrink: 0;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--cream);
}

.footer-tagline {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-top: 2px;
  text-transform: uppercase;
}

.footer-contact {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-contact span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--cream);
  font-size: 13.5px;
}

.footer-contact i[data-lucide],
.footer-contact svg {
  width: 15px;
  height: 15px;
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid var(--maroon-border);
  padding-top: 18px;
  text-align: center;
  font-size: 12px;
  color: var(--text-on-dark-muted);
}

/* ==========================================================================
   Request-a-quote page
   ========================================================================== */
.quote-section {
  max-width: 780px;
  margin: 0 auto;
  padding: 72px 64px 96px;
  text-align: center;
}

.quote-title {
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 600;
  margin: 0 0 8px;
}

.quote-sub {
  font-size: 14.5px;
  color: var(--text-muted);
  margin: 0 auto 40px;
}

.quote-form {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-row .form-field {
  flex: 1;
  min-width: 200px;
}

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

.form-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--maroon-heading);
  letter-spacing: 0.02em;
}

.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-body);
  background: var(--cream);
  border: 1px solid var(--border-soft);
  border-radius: 3px;
  padding: 12px 14px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--gold-muted);
  outline-offset: 1px;
  border-color: var(--maroon-heading);
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.quote-form .btn {
  align-self: center;
}

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

.checkbox-fieldset legend {
  font-size: 13px;
  font-weight: 600;
  color: var(--maroon-heading);
  letter-spacing: 0.02em;
  padding: 0;
  margin-bottom: 6px;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--border-soft);
  border-radius: 3px;
  padding: 16px 18px;
  background: var(--cream);
}

.checkbox-option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-body);
  cursor: pointer;
}

.checkbox-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--maroon-heading);
  cursor: pointer;
}

.hp-field {
  display: none;
}

.quote-thanks {
  text-align: center;
}

.thanks-icon {
  margin: 0 auto 24px;
}
.thanks-icon i[data-lucide],
.thanks-icon svg {
  color: var(--gold);
}

/* ==========================================================================
   Scope-of-work document page
   ========================================================================== */
.doc-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 34px 56px;
  flex-wrap: wrap;
}

.doc-header-brand {
  display: flex;
  align-items: center;
  gap: 24px;
  text-decoration: none;
  flex: 1;
  min-width: 260px;
}

.doc-logo {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  clip-path: circle(50%);
  flex-shrink: 0;
}

.doc-wordmark {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  color: var(--maroon-heading);
  letter-spacing: 0.03em;
  line-height: 1.1;
  white-space: nowrap;
}

.doc-tagline {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--gold-muted);
  margin-top: 6px;
}

.doc-header-divider {
  width: 1px;
  align-self: stretch;
  background: var(--border-soft);
  margin: 4px 0;
}

.doc-header-title {
  flex: 1.15;
  min-width: 260px;
  text-align: right;
}

.doc-eyebrow {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gold-muted);
  text-transform: uppercase;
}

.doc-title {
  font-family: var(--font-body);
  font-size: 26px;
  font-weight: 800;
  color: var(--text-body);
  line-height: 1.15;
  margin-top: 4px;
}

.doc-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--maroon-800);
  padding: 18px 56px;
  flex-wrap: wrap;
}

.doc-callout-label {
  font-size: 19px;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.02em;
}

.doc-callout-note {
  font-size: 13.5px;
  color: #f0dfc9;
  text-align: right;
  line-height: 1.4;
}

.doc-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 44px;
  padding: 38px 56px 6px;
}

.doc-section {
  display: flex;
  gap: 16px;
  margin-bottom: 30px;
}

.doc-section-body {
  flex: 1;
}

.doc-section-head {
  display: flex;
  align-items: flex-start;
  padding-bottom: 9px;
  border-bottom: 1.5px solid var(--gold);
  min-height: 28px;
}

.doc-section-title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--maroon-heading);
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.doc-section-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 12px;
}

.doc-section-items li {
  display: flex;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-body);
  align-items: flex-start;
  line-height: 1.5;
  list-style: none;
}

.doc-section-items i[data-lucide],
.doc-section-items svg {
  width: 13px;
  height: 13px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 3px;
}

.doc-addons {
  margin: 0 56px 36px;
  border: 1px solid var(--gold);
  border-radius: 4px;
  padding: 22px 28px;
}

.doc-addons-label {
  text-align: center;
  background: var(--maroon-heading);
  color: var(--cream);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 9px;
  border-radius: 2px;
  margin: -22px -28px 20px;
}

.doc-addons-grid {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
}

.doc-addon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 130px;
}

.doc-addon i[data-lucide],
.doc-addon svg {
  width: 26px;
  height: 26px;
  color: var(--maroon-heading);
  stroke-width: 1.6;
}

.doc-addon span {
  font-size: 12.5px;
  color: var(--text-body);
  text-align: center;
  line-height: 1.3;
}

.doc-addons-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin: 20px 0 0;
}

.doc-addons-note strong {
  font-weight: 700;
  color: var(--text-body);
}

.doc-addons-cta {
  text-align: center;
  margin-top: 16px;
}

.btn-addons-cta {
  padding: 9px 42px;
  font-size: 12px;
}
.btn-addons-cta i[data-lucide],
.btn-addons-cta svg {
  width: 14px;
  height: 14px;
}

.doc-footer {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: var(--maroon-900);
  padding: 18px 28px;
  color: var(--cream);
  font-size: 13.5px;
  flex-wrap: wrap;
  gap: 16px;
}

.doc-footer span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.doc-footer i[data-lucide],
.doc-footer svg {
  width: 15px;
  height: 15px;
  color: var(--gold);
}

.doc-footer .divider {
  width: 1px;
  height: 16px;
  background: var(--maroon-border);
}

.doc-back {
  text-align: center;
  padding: 28px 56px;
}

.doc-back a {
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .site-header,
  .hero,
  .services,
  .scope,
  .cta-band,
  .site-footer,
  .quote-section,
  .doc-header,
  .doc-callout,
  .doc-sections,
  .doc-addons,
  .doc-back {
    padding-left: 32px;
    padding-right: 32px;
  }
  .doc-addons {
    margin-left: 32px;
    margin-right: 32px;
  }
}

@media (max-width: 860px) {
  .hero {
    flex-direction: column;
    padding-top: 48px;
    padding-bottom: 48px;
  }
  .hero-copy, .hero-icons {
    width: 100%;
  }
  .hero-desc {
    max-width: none;
  }
  .cta-band {
    flex-direction: column;
    text-align: center;
  }
  .doc-sections {
    grid-template-columns: 1fr;
  }
  .doc-header-title {
    text-align: left;
  }
  .doc-header-divider {
    display: none;
  }
}

@media (max-width: 560px) {
  .site-header {
    justify-content: center;
    text-align: center;
  }
  .site-nav {
    justify-content: center;
    width: 100%;
  }
  .hero-icons {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-inner {
    justify-content: center;
    text-align: center;
  }
  .footer-contact {
    justify-content: center;
  }
  .doc-callout {
    flex-direction: column;
    text-align: center;
  }
  .doc-callout-note {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .brand-mark {
    width: 64px;
    height: 64px;
  }
  .brand-name {
    font-size: 19px;
  }
  .brand-tagline {
    font-size: 9.5px;
    white-space: normal;
  }
  .footer-mark {
    width: 56px;
    height: 56px;
  }
  .footer-name {
    font-size: 15px;
  }
  .doc-header-brand {
    min-width: 0;
  }
  .doc-logo {
    width: 64px;
    height: 64px;
  }
  .doc-wordmark {
    font-size: 20px;
  }
  .doc-tagline {
    font-size: 10px;
  }
  .doc-footer {
    justify-content: center;
  }
  .doc-footer .divider {
    display: none;
  }
}
