/* Meridian Home Services -- demo site stylesheet.
   Deliberately its own visual identity (warm stone/amber, not Ryvora's navy/
   blue) since the whole point of this page is to look like an arbitrary
   real client's own website, with the Ryvora widget embedded on top of it. */

:root {
  --ink: #1c1917;
  --ink-2: #292524;
  --amber: #d97706;
  --amber-dark: #b45309;
  --green: #15803d;

  --bg: #fafaf9;
  --bg-alt: #f5f5f4;
  --card-bg: #ffffff;
  --text: #292524;
  --text-muted: #78716c;
  --border: #e7e5e4;
}

:root[data-theme="dark"] {
  --bg: #1c1917;
  --bg-alt: #211d1a;
  --card-bg: #292524;
  --text: #f5f5f4;
  --text-muted: #a8a29e;
  --border: #3f3a36;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1c1917;
    --bg-alt: #211d1a;
    --card-bg: #292524;
    --text: #f5f5f4;
    --text-muted: #a8a29e;
    --border: #3f3a36;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
section { padding: 64px 0; }
h1, h2, h3 { line-height: 1.2; margin: 0; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 6px; font-weight: 600; font-size: 15px;
  border: none; cursor: pointer; font-family: inherit;
}
.btn-primary { background: var(--amber); color: #fff; }
.btn-primary:hover { background: var(--amber-dark); }
.btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.35); }
.btn-outline-dark { background: transparent; color: var(--text); border: 1px solid var(--border); }

header { background: var(--ink); padding: 16px 0; }
nav.wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: #fff; }
.brand .mark { font-size: 22px; }
.nav-links { display: flex; gap: 26px; color: rgba(255, 255, 255, 0.8); font-size: 15px; flex-wrap: wrap; }
.nav-links a.active { color: var(--amber); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.theme-toggle {
  background: transparent; border: 1px solid rgba(255, 255, 255, 0.25); color: #fff;
  width: 34px; height: 34px; border-radius: 6px; cursor: pointer; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}

.hero { background: linear-gradient(160deg, var(--ink) 0%, #2b2420 100%); color: #fff; padding: 64px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: 40px; margin-bottom: 16px; }
.hero p.lead { color: rgba(255, 255, 255, 0.75); font-size: 16px; max-width: 460px; margin-bottom: 24px; }
.hero-badges { display: flex; gap: 16px; flex-wrap: wrap; color: rgba(255, 255, 255, 0.6); font-size: 13px; margin-top: 20px; }
.hero-badges span { display: flex; align-items: center; gap: 6px; }
.hero-panel {
  background: var(--card-bg); border-radius: 10px; padding: 24px; border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.hero-panel h3 { font-size: 15px; margin-bottom: 14px; color: var(--text); }
.hero-panel ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--text); }
.hero-panel li { display: flex; gap: 8px; }

.page-hero { background: linear-gradient(160deg, var(--ink) 0%, #2b2420 100%); color: #fff; padding: 56px 0; text-align: center; }
.page-hero h1 { font-size: 34px; margin-bottom: 10px; }
.page-hero p { color: rgba(255, 255, 255, 0.75); font-size: 15px; max-width: 560px; margin: 0 auto; }

.section-title { font-size: 28px; margin-bottom: 8px; }
.section-sub { color: var(--text-muted); font-size: 15px; margin-bottom: 36px; max-width: 560px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.service-card { border: 1px solid var(--border); border-radius: 10px; padding: 24px; background: var(--card-bg); }
.service-card .icon { font-size: 26px; margin-bottom: 12px; }
.service-card h4 { font-size: 17px; margin-bottom: 8px; }
.service-card p { font-size: 14px; color: var(--text-muted); margin: 0 0 12px; }
.service-card ul { margin: 0; padding-left: 18px; font-size: 13px; color: var(--text-muted); display: flex; flex-direction: column; gap: 4px; }

.badges-row { display: flex; gap: 12px; flex-wrap: wrap; }
.info-badge { border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; font-size: 13px; background: var(--card-bg); }

table.pricing-table { width: 100%; border-collapse: collapse; background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
table.pricing-table th, table.pricing-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--border); font-size: 14px; }
table.pricing-table th { background: var(--bg-alt); font-size: 13px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-muted); }
table.pricing-table tr:last-child td { border-bottom: none; }
.pricing-note { background: var(--bg-alt); border: 1px dashed var(--border); border-radius: 10px; padding: 18px 22px; margin-top: 20px; font-size: 14px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-card { border: 1px solid var(--border); border-radius: 10px; padding: 24px; background: var(--card-bg); }
.contact-card h4 { font-size: 15px; margin-bottom: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.03em; }
.contact-card p { font-size: 16px; margin: 0; }
.contact-card.emergency { border-color: var(--amber); }
.contact-card.emergency h4 { color: var(--amber-dark); }

.cta-box {
  background: var(--ink); color: #fff; border-radius: 12px; padding: 40px; text-align: center;
}
.cta-box h2 { font-size: 24px; margin-bottom: 10px; }
.cta-box p { color: rgba(255, 255, 255, 0.7); margin-bottom: 20px; }

footer { background: var(--ink); color: rgba(255, 255, 255, 0.6); padding: 28px 0; text-align: center; font-size: 13px; }
footer a { color: rgba(255, 255, 255, 0.85); }

@media (max-width: 820px) {
  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hero h1 { font-size: 30px; }
}
