/* ============================================================
   MD CONSTRUCTION & PRESERVATION — Landing Page Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;600;700&family=Work+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@500&display=swap');

:root {
  /* Color tokens */
  --bg: #191B10;
  --bg-soft: #1F2214;
  --surface: #262A19;
  --surface-2: #2E331E;
  --border: #454A2C;
  --border-soft: #363A22;
  --text: #FAF8ED;
  --text-muted: #CBC9B4;
  --text-faint: #9C9A82;
  --amber: #E0AB4C;
  --amber-bright: #F4C769;
  --amber-dim: #8C6A2A;
  --teal: #6E9682;
  --teal-bright: #8FC0A3;
  --teal-dim: #3E5A4A;
  --overlay: rgba(12, 13, 7, 0.88);

  /* Type */
  --font-display: 'Oswald', sans-serif;
  --font-body: 'Work Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout */
  --radius-sm: 3px;
  --radius: 6px;
  --container: 1180px;
  --nav-h: 84px;
}

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

html { scroll-behavior: smooth; }

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

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

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-weight: 500;
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: currentColor;
  display: inline-block;
}

.eyebrow.amber { color: var(--amber); }
.eyebrow.teal { color: var(--teal-bright); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.08;
}

h2 { font-size: clamp(30px, 3.8vw, 44px); }
h3 { font-size: 24px; }

p { color: var(--text-muted); font-size: 1rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 15px 28px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn-amber {
  background: var(--amber);
  color: #191A0E;
}
.btn-amber:hover { background: var(--amber-bright); }

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--amber); color: var(--amber-bright); }

.btn-teal {
  background: var(--teal);
  color: #0F1610;
}
.btn-teal:hover { background: var(--teal-bright); }

.btn-block { width: 100%; }

/* ============================================================
   LOADER
   ============================================================ */

#loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content { text-align: center; padding: 0 24px; }

.loader-line {
  overflow: hidden;
}

.loader-line span {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 7.2vw, 88px);
  line-height: 1.08;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--text);
  clip-path: inset(0 100% 0 0);
  animation: text-wipe-in 0.85s cubic-bezier(.65,.05,.36,1) forwards;
}

.loader-line.line1 span { animation-delay: 0.1s; }
.loader-line.line2 span { animation-delay: 0.4s; color: var(--amber); }

@keyframes text-wipe-in {
  to { clip-path: inset(0 0 0 0); }
}

.loader-rule {
  width: 0;
  height: 2px;
  background: var(--amber);
  margin: 22px auto 0;
  animation: rule-grow 0.5s ease 0.8s forwards;
}

@keyframes rule-grow { to { width: 120px; } }

.loader-sub {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-faint);
  opacity: 0;
  transform: translateY(6px);
  animation: fade-up 0.6s ease 1s forwards;
}

@keyframes fade-up {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   NAV
   ============================================================ */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 0;
  display: flex;
  align-items: center;
  background: rgba(25, 27, 16, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

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

.brand img {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  object-fit: contain;
  background: #0D0E07;
  border: 1px solid var(--border);
  padding: 3px;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-name span {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--amber);
  font-weight: 500;
  margin-top: 4px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-links a:not(.btn) {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.nav-links a:not(.btn):hover { color: var(--amber-bright); }

.nav-cta { display: flex; align-items: center; gap: 20px; }

.nav-phone {
  font-family: var(--font-mono);
  font-size: 14.5px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-phone svg { width: 14px; height: 14px; color: var(--amber); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: var(--text);
  cursor: pointer;
}

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

.hero {
  padding: 76px 0 90px;
  background:
    radial-gradient(ellipse 900px 500px at 85% -10%, rgba(217,164,65,0.09), transparent 60%),
    radial-gradient(ellipse 700px 500px at -5% 60%, rgba(95,132,113,0.10), transparent 60%);
  border-bottom: 1px solid var(--border-soft);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: start;
}

.hero-copy { padding-top: 14px; }

.hero h1 {
  margin-top: 18px;
  font-size: clamp(36px, 4.6vw, 58px);
}

.hero h1 .amber { color: var(--amber); }
.hero h1 .teal { color: var(--teal-bright); }

.hero-sub {
  margin-top: 22px;
  font-size: 18.5px;
  max-width: 500px;
  color: var(--text-muted);
}

.hero-facts {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 16px 40px;
}

.hero-fact {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text);
}

.hero-fact svg {
  width: 16px;
  height: 16px;
  color: var(--amber);
  flex-shrink: 0;
  margin-top: 2px;
}

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

/* Quote card / property-tag signature element */

.tag-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  padding-top: 30px;
}

.tag-card::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -13px;
  transform: translateX(-50%);
  width: 26px;
  height: 26px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50%;
}

.tag-card::after {
  content: '';
  position: absolute;
  left: 50%;
  top: -6px;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 50%;
}

.tag-perf {
  position: absolute;
  top: 12px;
  left: 24px;
  right: 24px;
  height: 0;
  border-top: 1px dashed var(--border);
}

.quote-card {
  padding: 40px 34px 34px;
}

.quote-card-head { margin-bottom: 22px; }

.quote-card-head h3 {
  margin-top: 10px;
  font-size: 24px;
}

.quote-card-head p {
  margin-top: 8px;
  font-size: 13.5px;
}

/* ============================================================
   FORM
   ============================================================ */

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.field { margin-bottom: 14px; }

.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 7px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14.5px;
  padding: 12px 13px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--amber);
  background: var(--surface);
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23A7A691' stroke-width='1.5' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 34px;
}

.form-note {
  margin-top: 14px;
  font-size: 11.5px;
  color: var(--text-faint);
  text-align: center;
}

.form-success {
  display: none;
  text-align: center;
  padding: 30px 10px;
}

.form-success.show { display: block; }
.form-success svg { width: 40px; height: 40px; color: var(--teal-bright); margin: 0 auto 14px; }
.form-success h3 { margin-bottom: 8px; }

/* ============================================================
   SERVICE SECTIONS
   ============================================================ */

.section { padding: 100px 0; }
.section-tight { padding: 70px 0; }

.section-head {
  max-width: 620px;
  margin-bottom: 54px;
}

.section-head h2 { margin-top: 14px; }
.section-head p { margin-top: 16px; font-size: 16px; }

.service-block {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}

.service-block + .service-block { margin-top: 100px; }

.service-block.reverse { grid-template-columns: 1.15fr 0.85fr; }
.service-block.reverse .service-visual { order: 2; }

.service-visual {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  position: relative;
}

.service-visual .tag-perf { left: 30px; right: 30px; top: 46px; }

.service-visual .visual-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  text-transform: uppercase;
}

.visual-list {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.visual-list li {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid var(--border-soft);
  font-size: 14.5px;
  color: var(--text);
}

.visual-list li:first-child { border-top: none; }

.visual-list li svg { width: 15px; height: 15px; flex-shrink: 0; }

.service-block .visual-list li svg { color: var(--amber); }
.service-block.reverse .visual-list li svg { color: var(--teal-bright); }

.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.service-card:hover { transform: translateY(-3px); }

.service-block .service-card:hover { border-color: var(--amber-dim); }
.service-block.reverse .service-card:hover { border-color: var(--teal-dim); }

.service-card svg { width: 22px; height: 22px; }
.service-block .service-card svg { color: var(--amber); }
.service-block.reverse .service-card svg { color: var(--teal-bright); }

.service-card h4 {
  margin-top: 14px;
  font-size: 16px;
  letter-spacing: 0.02em;
}

.service-card p { margin-top: 8px; font-size: 14px; line-height: 1.6; }

/* ============================================================
   PROCESS
   ============================================================ */

.process {
  background: var(--bg-soft);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 50px;
  position: relative;
}

.process-step {
  padding: 0 22px 0 0;
  position: relative;
}

.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 22px;
  right: 0;
  width: 22px;
  height: 1px;
  background: var(--border);
}

.process-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--amber);
  border: 1px solid var(--border);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-step h4 {
  margin-top: 20px;
  font-size: 15.5px;
  letter-spacing: 0.02em;
}

.process-step p { margin-top: 8px; font-size: 13px; }

/* ============================================================
   TRUST BAR
   ============================================================ */

.trust-bar {
  border-top: 1px solid var(--border-soft);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.trust-item svg { width: 22px; height: 22px; color: var(--amber); flex-shrink: 0; margin-top: 2px; }
.trust-item h4 { font-size: 15.5px; letter-spacing: 0.02em; margin-bottom: 5px; }
.trust-item p { font-size: 13.5px; }

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

.contact-band {
  background: var(--surface);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 80px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.contact-info h2 { margin-top: 14px; }
.contact-info p { margin-top: 16px; max-width: 440px; }

.contact-list { margin-top: 30px; display: flex; flex-direction: column; gap: 16px; }

.contact-list a, .contact-list div {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 15.5px;
  color: var(--text);
}

.contact-list svg { width: 17px; height: 17px; color: var(--amber); flex-shrink: 0; }
.contact-list a:hover { color: var(--amber-bright); }

footer { padding: 34px 0; }

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
}

.footer-brand img { width: 26px; height: 26px; border-radius: 50%; }

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

.footer-links a {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
}
.footer-links a:hover { color: var(--amber-bright); }

/* ============================================================
   MODAL
   ============================================================ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.modal-overlay.open {
  display: flex;
}

.modal-overlay.show { opacity: 1; }

.modal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%;
  max-width: 500px;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(14px) scale(0.98);
  opacity: 0;
  transition: transform 0.28s cubic-bezier(.2,.9,.3,1.2), opacity 0.22s ease;
}

.modal-overlay.show .modal-box {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
  z-index: 2;
}
.modal-close:hover { color: var(--amber-bright); border-color: var(--amber-dim); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-facts { grid-template-columns: 1fr; }
  .service-block, .service-block.reverse { grid-template-columns: 1fr; }
  .service-block.reverse .service-visual { order: 0; }
  .process-grid { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .process-step:nth-child(2)::after { display: none; }
  .trust-grid { grid-template-columns: 1fr 1fr; row-gap: 30px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-phone { display: none; }
  .container { padding: 0 20px; }
  .section { padding: 70px 0; }
  .field-row { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .quote-card { padding: 32px 22px 26px; }
}

@media (max-width: 720px) {
  header { position: sticky; }
  .mobile-menu {
    position: fixed;
    top: 86px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    z-index: 90;
    padding: 30px 24px;
    display: none;
    flex-direction: column;
    gap: 4px;
  }
  .mobile-menu.open { display: flex; }
  .mobile-menu a {
    padding: 16px 4px;
    border-bottom: 1px solid var(--border-soft);
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .mobile-menu .btn { margin-top: 20px; }
}
