/* ============================================================
   Durden's House Leveling — demo site
   Palette: warm limestone base, soil brown, clay, deep green CTA.
   Earth, not tech. No gradients.
   ============================================================ */

:root {
  --limestone: #f5f0e6;
  --limestone-deep: #ece4d4;
  --soil: #3b2e22;
  --soil-light: #5c4a38;
  --clay: #a5714a;
  --clay-soft: #c4a184;
  --green: #3d5a44;
  --green-dark: #314937;
  --line: #d8cdb9;
  --white: #fdfbf6;

  --font-display: "Zilla Slab", "Rockwell", "Roboto Slab", serif;
  --font-body: Georgia, "Times New Roman", serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--soil);
  background: var(--limestone);
  /* leave room for the mobile sticky bar */
  padding-bottom: 4.25rem;
}

.container {
  max-width: 62rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--soil);
}

h2 { font-size: 1.75rem; margin-bottom: 0.5rem; }

section { padding: 3rem 0; }

a { color: var(--green-dark); }

.section-lede {
  color: var(--soil-light);
  margin-bottom: 2rem;
  max-width: 34rem;
}

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

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  border-radius: 4px;
  padding: 0.65rem 1.4rem;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); }

.btn-secondary {
  background: transparent;
  color: var(--green-dark);
  border-color: var(--green);
}
.btn-secondary:hover { background: var(--green); color: var(--white); }

.btn-outline {
  background: var(--white);
  color: var(--soil);
  border-color: var(--soil-light);
}

.btn-small { padding: 0.45rem 0.9rem; font-size: 0.9rem; }
.btn-large { padding: 0.85rem 1.75rem; font-size: 1.1rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--white);
  border-bottom: 3px solid var(--soil);
  padding: 0.6rem 1.25rem;
}

.wordmark {
  text-decoration: none;
  color: var(--soil);
  line-height: 1.1;
  white-space: nowrap;
}
.wordmark-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
}
.wordmark-sub {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--soil-light);
}

.site-nav {
  display: none;
  gap: 1.1rem;
  margin-left: auto;
}
.site-nav a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--soil);
}
.site-nav a:hover { color: var(--green-dark); }

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.header-phone {
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
  color: var(--soil);
  white-space: nowrap;
}

@media (min-width: 56rem) {
  .site-nav { display: flex; }
  .header-actions { margin-left: 0; }
}
@media (max-width: 30rem) {
  .header-phone { display: none; }
}

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

.hero {
  background: var(--limestone-deep);
  border-bottom: 1px solid var(--line);
  padding: 3.5rem 0 3rem;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 3.1rem);
  margin-bottom: 1rem;
}

.hero-sub {
  max-width: 33rem;
  color: var(--soil-light);
  margin-bottom: 1.75rem;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.hero-phone {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--soil);
  text-decoration: none;
}
.hero-phone:hover { color: var(--green-dark); }

.trust-strip {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  color: var(--soil-light);
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

/* ---------- Trust bar ---------- */

.trust-bar {
  background: var(--soil);
  color: var(--limestone);
  padding: 1.75rem 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 1rem;
  text-align: center;
}
@media (min-width: 44rem) {
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
}

.trust-figure {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.9rem;
  color: var(--clay-soft);
}
.trust-label {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

/* ---------- Level-line divider motif ---------- */

.level-rule {
  display: flex;
  align-items: center;
  max-width: 62rem;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 0;
}
.level-rule::before,
.level-rule::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--line);
}
.level-rule span {
  width: 2.5rem;
  height: 9px;
  margin: 0 0.6rem;
  border: 1px solid var(--clay);
  border-radius: 5px;
  position: relative;
  flex-shrink: 0;
}
/* the "bubble" of the level */
.level-rule span::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 50%;
  transform: translateX(-50%);
  width: 9px;
  height: 5px;
  border-radius: 3px;
  background: var(--clay);
}

/* ---------- Photo placeholders ---------- */

.photo-placeholder {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(
      -45deg,
      var(--limestone-deep) 0px,
      var(--limestone-deep) 14px,
      #e4dac6 14px,
      #e4dac6 15px
    );
  border: 1px dashed var(--clay);
  min-height: 9.5rem;
  padding: 1.5rem 1rem;
  text-align: center;
}

.ph-text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  color: var(--soil-light);
  max-width: 15rem;
}

.ph-tag {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
}
.ph-before { background: var(--clay); color: var(--white); }
.ph-after  { background: var(--green); color: var(--white); }

/* ---------- Gallery ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 44rem) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 62rem) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

.pair-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.pair-frames {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
}

.pair-caption {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.65rem 0.9rem;
  background: var(--soil);
  color: var(--limestone);
}

/* ---------- How it works ---------- */

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin-top: 1.5rem;
}
@media (min-width: 44rem) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--clay);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.step h3 { margin-bottom: 0.35rem; font-size: 1.15rem; }
.step p { color: var(--soil-light); }

.pricing-note {
  margin-top: 0.9rem;
  padding: 0.9rem 1rem;
  background: var(--white);
  border-left: 4px solid var(--green);
  border-radius: 0 4px 4px 0;
}
.pricing-note p { color: var(--soil); font-size: 0.95rem; }

/* ---------- Warranty ---------- */

.warranty { padding-top: 1rem; }

.warranty-placeholder {
  margin-top: 1rem;
  padding: 1.75rem 1.5rem;
  background: var(--white);
  border: 2px dashed var(--clay);
  border-radius: 6px;
  max-width: 36rem;
}

.ph-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--clay);
  margin-bottom: 0.4rem;
}
.ph-body { color: var(--soil-light); font-size: 0.95rem; }

/* ---------- Reviews ---------- */

.review-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}
@media (min-width: 44rem) {
  .review-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 62rem) {
  .review-grid { grid-template-columns: repeat(3, 1fr); }
}

.review-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.4rem 1.3rem;
}

blockquote.review-card p {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  margin-bottom: 0.7rem;
}
blockquote.review-card cite {
  font-style: normal;
  font-size: 0.88rem;
  color: var(--soil-light);
}
blockquote.review-card cite::before { content: "— "; }

.review-slot { border-style: dashed; border-color: var(--clay); background: transparent; }

.review-pending {
  border: 2px solid var(--green);
  background: #eef2ec;
}
.review-pending .ph-heading { color: var(--green-dark); }

.reviews-cta { margin-top: 1.75rem; }

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

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}
@media (min-width: 44rem) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-lead { grid-column: span 1; }
}
@media (min-width: 62rem) {
  .service-grid { grid-template-columns: repeat(4, 1fr); }
  .service-lead { grid-column: span 2; }
}

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--clay);
  border-radius: 4px;
  padding: 1.2rem 1.2rem;
}
.service-lead { border-top-color: var(--green); }
.service-card h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.service-card p { font-size: 0.95rem; color: var(--soil-light); }

/* ---------- About ---------- */

.about { background: var(--limestone-deep); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: center;
}
@media (min-width: 44rem) {
  .about-grid { grid-template-columns: 3fr 2fr; }
}

.about-text p { max-width: 34rem; color: var(--soil); margin-top: 0.75rem; }

.photo-about { min-height: 13rem; border-radius: 6px; }

/* ---------- Service area ---------- */

.area-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}
.area-list li {
  font-family: var(--font-display);
  font-weight: 600;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.45rem 0.95rem;
}

.area-note {
  margin-top: 1.1rem;
  color: var(--soil-light);
  font-style: italic;
}

/* ---------- Inspection form ---------- */

.inspection {
  background: var(--soil);
  color: var(--limestone);
}
.inspection h2 { color: var(--limestone); }
.inspection .section-lede { color: var(--clay-soft); }

#inspection-form { max-width: 26rem; }

.field { margin-bottom: 1.1rem; }

.field label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}
.field .optional { font-weight: 400; color: var(--clay-soft); }

.field input,
.field select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--soil);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.7rem 0.8rem;
}
.field input:focus,
.field select:focus {
  outline: 2px solid var(--clay);
  outline-offset: 1px;
}

.form-promise {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--clay-soft);
  margin-bottom: 0.9rem;
}

.field input.field-error { outline: 2px solid var(--clay); }

.form-confirmation {
  max-width: 26rem;
  background: var(--green);
  border-radius: 6px;
  padding: 1.5rem 1.4rem;
}
.form-confirmation .confirm-head {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}
.form-confirmation a { color: var(--limestone); font-weight: bold; }

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

.site-footer {
  background: var(--soil);
  border-top: 1px solid var(--soil-light);
  color: var(--clay-soft);
  padding: 2.25rem 0 2.5rem;
  font-size: 0.95rem;
}
.site-footer .footer-name {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--limestone);
  margin-bottom: 0.4rem;
}
.site-footer a { color: var(--limestone); }
.site-footer .footer-credit {
  margin-top: 1.25rem;
  font-size: 0.85rem;
}

/* ---------- Mobile sticky bar ---------- */

.mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  padding: 0.6rem 0.9rem;
  background: var(--white);
  border-top: 2px solid var(--soil);
}
.mobile-bar .btn { padding: 0.7rem 0.5rem; }

@media (min-width: 56rem) {
  .mobile-bar { display: none; }
  body { padding-bottom: 0; }
}
