/* ==========================================================================
   Mitchell Home Services — shared stylesheet
   ========================================================================== */

:root {
  --navy: #1b2a3a;
  --navy-light: #24374b;
  --orange: #b3492b;
  --orange-dark: #8f371f;
  --teal: #2f6f68;
  --teal-dark: #234f4a;
  --cream: #f7f4ef;
  --gray: #6b7280;
  --gray-light: #e5e7eb;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(27, 42, 58, 0.08);
  --shadow-lg: 0 20px 50px rgba(27, 42, 58, 0.15);
  --max-width: 1140px;
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--navy);
  background: var(--cream);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--navy);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { padding: 0; margin: 0; list-style: none; }

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

.section {
  padding: 80px 0;
}
.section--tight { padding: 56px 0; }
.section--navy {
  background: var(--navy);
  color: var(--cream);
}
.section--navy h2, .section--navy h3, .section--navy p { color: var(--cream); }
.section--cream-alt { background: var(--white); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 10px;
  display: block;
}

.lede {
  font-size: 1.15rem;
  color: var(--gray);
  max-width: 640px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(232, 99, 44, 0.35);
}
.btn--primary:hover { background: var(--orange-dark); }
.btn--outline {
  background: transparent;
  border-color: var(--teal);
  color: var(--white);
}
.btn--outline:hover { background: var(--teal); border-color: var(--teal); }
.btn--dark {
  background: var(--navy);
  color: var(--white);
}
.btn--dark:hover { background: var(--navy-light); }
.btn--block { display: block; width: 100%; text-align: center; }

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 244, 239, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--gray-light);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy);
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  border: 2px solid var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--orange-dark);
  border-color: var(--orange);
}
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-cta .btn { padding: 10px 20px; font-size: 0.9rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--navy);
  border-radius: 2px;
}

@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    border-bottom: 1px solid var(--gray-light);
  }
  .nav-links.open {
    max-height: 400px;
    padding: 12px 24px 20px;
  }
  .nav-links a { padding: 10px 0; width: 100%; border-bottom: 1px solid var(--gray-light); }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, #2c4256 100%);
  color: var(--white);
  padding: 100px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -80px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,99,44,0.35), transparent 70%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero h1 { font-size: 2.75rem; color: var(--white); margin-bottom: 18px; }
.hero p.lede { color: #d7dde3; }
.hero-actions { display: flex; gap: 16px; margin-top: 28px; flex-wrap: wrap; }
.hero-badges {
  display: flex;
  gap: 24px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero-badge { font-size: 0.85rem; color: #b9c2cb; display: flex; align-items: center; gap: 8px; }
.hero-badge strong { color: var(--white); }

.hero-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 28px;
}
.hero-card h3 { color: var(--white); font-size: 1.1rem; }
.hero-card ul li {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  color: #d7dde3;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.hero-card ul li:last-child { border-bottom: none; }
.hero-card .tag {
  color: var(--orange);
  font-weight: 700;
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.1rem; }
}

/* Cards / grids */
.grid {
  display: grid;
  gap: 24px;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(27,42,58,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(179, 73, 43, 0.1);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-family: Georgia, serif;
  margin-bottom: 16px;
  border: 1.5px solid rgba(179, 73, 43, 0.25);
}
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { color: var(--gray); margin: 0; font-size: 0.95rem; }
.card .quote-link {
  display: inline-block;
  margin-top: 14px;
  font-weight: 700;
  color: var(--teal-dark);
  font-size: 0.9rem;
  border-bottom: 1px solid transparent;
}
.card .quote-link:hover { border-color: var(--teal-dark); }

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 48px;
}
.section-head .lede { margin: 0 auto; }

/* Placeholder image blocks (swap for real photos) */
.placeholder-img {
  background: linear-gradient(135deg, var(--gray-light), #cfd6dc);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 0.85rem;
  font-weight: 600;
  min-height: 200px;
  text-align: center;
  padding: 12px;
}

/* Reviews */
.review-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.stars { color: var(--orange); font-size: 1.1rem; margin-bottom: 10px; letter-spacing: 2px; }
.review-card p { color: var(--navy); font-style: italic; }
.review-name { margin-top: 14px; font-weight: 700; font-size: 0.9rem; color: var(--gray); font-style: normal; }

/* Forms */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 6px;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--cream);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--orange);
  background: var(--white);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

.form-note {
  font-size: 0.85rem;
  color: var(--gray);
  margin-top: 14px;
}

/* Contact quick links */
.contact-strip {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.contact-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border-radius: 999px;
  padding: 12px 22px;
  box-shadow: var(--shadow);
  font-weight: 700;
}
.contact-pill .icon-sm {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(232,99,44,0.12); color: var(--orange);
  display: flex; align-items: center; justify-content: center;
}

/* CTA band */
.cta-band {
  background: var(--orange);
  color: var(--white);
  text-align: center;
  padding: 56px 0;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.9); }
.cta-band .btn--dark:hover { background: #10202f; }

/* Footer */
.site-footer {
  background: var(--navy);
  color: #b9c2cb;
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-grid h4 { color: var(--white); font-size: 1rem; }
.footer-grid a { color: #b9c2cb; display: block; padding: 4px 0; font-size: 0.9rem; }
.footer-grid a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  font-size: 0.8rem;
  text-align: center;
  color: #7f8a94;
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Category label */
.category-label {
  font-size: 1.3rem;
  margin: 48px 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gray-light);
}
.category-label:first-of-type { margin-top: 0; }

/* Badge list (about page) */
.value-list li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-light);
}
.value-list li:last-child { border-bottom: none; }
.value-list .icon-sm {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(232,99,44,0.12); color: var(--orange);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 0.85rem; font-weight: 700;
}
