/* Ridgeline Plumbing & Drain — sample site styles. Fictional business. */
:root {
  --ink: #10212c;
  --navy: #163142;
  --navy-deep: #0c1b24;
  --copper: #c56a2d;
  --copper-dark: #9a4f1e;
  --copper-soft: #f3e0d0;
  --cream: #f6f0e6;
  --paper: #fffaf3;
  --sand: #e8dfd0;
  --muted: #5d6d76;
  --line: #d9cfc0;
  --white: #ffffff;
  --ok: #2c6b4a;
  --radius: 16px;
  --shadow: 0 18px 40px -24px rgba(16, 33, 44, 0.45);
  --header-h: 76px;
  --sample-h: 38px;
  --font: "Instrument Sans", "Segoe UI", sans-serif;
  --display: "Fraunces", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  padding-bottom: 76px;
}
@media (min-width: 800px) { body { padding-bottom: 0; } }

img, svg { max-width: 100%; display: block; }
a { color: var(--copper-dark); }
button, input, select, textarea { font: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--copper);
  color: #fff;
  padding: 8px 12px;
  z-index: 100;
  border-radius: 8px;
}
.skip:focus { top: 12px; }

.sample-banner {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #3a2414;
  color: #f6e7d4;
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.55rem 1rem;
  font-weight: 600;
}

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: var(--sample-h);
  z-index: 30;
  background: rgba(255, 250, 243, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}
.logo-mark {
  width: 42px;
  height: 42px;
  flex: none;
}
.logo-name { font-weight: 700; font-size: 1.02rem; letter-spacing: -0.02em; }
.logo-tag { display: block; font-size: 0.72rem; color: var(--muted); font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }

.nav { display: flex; gap: 1.25rem; align-items: center; }
.nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav a:hover { color: var(--copper-dark); }
.header-call { display: none; }

@media (min-width: 860px) {
  .header-call { display: inline-flex; }
  .nav-toggle { display: none; }
}
@media (max-width: 859px) {
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: calc(var(--sample-h) + var(--header-h));
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.25rem 1.25rem;
    gap: 0.85rem;
  }
  .nav.open { display: flex; }
}

.nav-toggle {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  font-weight: 600;
  color: var(--ink);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--copper); color: #fff; }
.btn-primary:hover { background: var(--copper-dark); }
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-deep); }
.btn-lg { padding: 1rem 1.4rem; font-size: 1.05rem; }

/* Hero */
.hero {
  position: relative;
  background:
    radial-gradient(circle at 80% 10%, rgba(197, 106, 45, 0.22), transparent 36%),
    linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 55%, #1b4454 100%);
  color: var(--cream);
  overflow: hidden;
  padding: 3.2rem 0 3.6rem;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
  pointer-events: none;
}
.ridge {
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  width: 100%;
  height: 90px;
  color: var(--paper);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.2rem;
}
@media (min-width: 900px) {
  .hero { padding: 5rem 0 5.5rem; }
  .hero-grid { grid-template-columns: 1.2fr 0.8fr; align-items: center; }
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--copper-soft);
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  color: #fff;
  margin-bottom: 0.7rem;
  max-width: 12ch;
}
.hero .lede {
  font-size: 1.12rem;
  color: #d8e0e5;
  max-width: 36rem;
  margin-bottom: 1.6rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.6rem; }
.hero-phone { font-size: 0.95rem; color: #c9d4da; }
.hero-phone a { color: #fff; font-weight: 700; text-decoration: none; }

.hero-panel {
  background: rgba(255,250,243,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 24px;
  padding: 1.4rem 1.4rem 1.2rem;
  backdrop-filter: blur(10px);
}
.hero-panel h2 {
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 1rem;
}
.hours-list { list-style: none; margin: 0; padding: 0; }
.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.95rem;
}
.hours-list li:first-child { border-top: 0; }
.hours-list .open { color: #b7e0c6; font-weight: 600; }

/* Trust */
.trust {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.6rem;
  justify-content: space-between;
  align-items: center;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--copper);
  flex: none;
}

/* Sections */
.section { padding: 4rem 0; }
.section h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.section-lead { color: var(--muted); max-width: 40rem; margin-bottom: 2rem; }
.kicker {
  color: var(--copper-dark);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 0.55rem;
}

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem 1.25rem;
  box-shadow: var(--shadow);
}
.card h3 { font-size: 1.25rem; margin-bottom: 0.35rem; }
.card p { color: var(--muted); margin: 0; font-size: 0.98rem; }
.icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--copper-soft);
  color: var(--copper-dark);
  display: grid;
  place-items: center;
  margin-bottom: 0.9rem;
}

/* Reviews */
.reviews { background: var(--cream); }
.review-note {
  display: inline-block;
  background: #3a2414;
  color: #f6e7d4;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.55rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}
.stars { color: var(--copper); letter-spacing: 0.1em; margin-bottom: 0.55rem; }
.card blockquote { margin: 0 0 1rem; font-size: 1.05rem; }
.byline { font-size: 0.88rem; color: var(--muted); font-weight: 600; }

/* Contact / hours / map */
.contact-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

.map-panel {
  background: var(--navy);
  color: var(--cream);
  border-radius: 24px;
  padding: 1.5rem;
  min-height: 100%;
  position: relative;
  overflow: hidden;
}
.map-panel h3 { color: #fff; }
.map-panel p, .map-panel li { color: #c9d4da; }
.map-panel ul { margin: 0.4rem 0 1.2rem; padding-left: 1.1rem; }
.address {
  font-style: normal;
  color: #fff;
  font-weight: 650;
  margin-bottom: 0.4rem;
}
.map-art {
  margin-top: 1rem;
  background: #0c1b24;
  border-radius: 16px;
  padding: 1rem;
  border: 1px solid rgba(255,255,255,0.08);
}
.map-caption {
  font-size: 0.8rem;
  color: #9aafb8;
  margin: 0.7rem 0 0;
}

.form {
  display: grid;
  gap: 0.75rem;
}
.form label { font-weight: 600; font-size: 0.9rem; }
.form input, .form select, .form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  color: var(--ink);
}
.form textarea { min-height: 120px; resize: vertical; }
.form-help { font-size: 0.85rem; color: var(--muted); margin: 0; }
.form .btn { justify-self: start; }

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: #c9d4da;
  padding: 2.4rem 0 2.6rem;
  font-size: 0.92rem;
}
.site-footer strong { color: #fff; }
.disclaimer {
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #e7c9a6;
  max-width: 58rem;
}

/* Mobile click-to-call bar */
.callbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  background: var(--copper);
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  font-weight: 750;
  font-size: 1.05rem;
  box-shadow: 0 -8px 24px rgba(16, 33, 44, 0.2);
}
@media (min-width: 800px) { .callbar { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}
