/* Paradise Rock Works. Single stylesheet, no build step.
   Palette: warm sandstone background with a grit texture, dark loam ink,
   machine-orange accent. */

:root {
  --sand: #e0d3ba;
  --sand-deep: #d2c2a2;
  --ink: #241f18;
  --ink-soft: #4d3a23;
  --stone: #7c6d58;
  --orange: #d4691e;
  --orange-bright: #e8802e;
  --line: rgba(36, 31, 24, 0.14);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background-color: var(--sand);
  /* The real rock texture is the fixed .grain overlay built by texture.js.
     This faint SVG grit is only the no-JS fallback. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.29 0 0 0 0 0.23 0 0 0 0 0.15 0 0 0 0.1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* Sticky footer: short pages (services, about) keep the footer at the bottom. */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* On short pages the body section absorbs the slack, so the contact band and
   footer always sit at the bottom. */
.page-body { flex: 1; }

a { color: var(--orange); }

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 2.5rem);
  background: var(--ink);
  color: #f4eee2;
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
}

.mark { width: 38px; height: 38px; flex: none; }

.brand-name {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.brand-name em {
  font-style: normal;
  color: var(--orange-bright);
}

.site-nav {
  display: flex;
  gap: clamp(0.8rem, 2.5vw, 1.6rem);
  margin-left: auto;
  margin-right: 1.2rem;
}

.site-nav a {
  color: #f4eee2;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

.site-nav a:hover { color: var(--orange-bright); }

.header-phone {
  font-weight: 700;
  color: var(--orange-bright);
  text-decoration: none;
  white-space: nowrap;
  border: 2px solid var(--orange-bright);
  border-radius: 6px;
  padding: 0.4rem 0.9rem;
  transition: background 0.15s, color 0.15s;
}

.header-phone:hover { background: var(--orange-bright); color: var(--ink); }

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

.hero {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(2.2rem, 5vw, 4rem) 1.25rem clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--stone);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.7rem, 9vw, 5rem);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.lede {
  max-width: 560px;
  margin: 1.4rem auto 2rem;
  font-size: 1.1rem;
  color: var(--ink-soft);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  border-radius: 8px;
  border: 2px solid transparent;
  transition: transform 0.1s, background 0.15s;
}

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

.btn svg { width: 20px; height: 20px; }

.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-bright); }

.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--sand); }

.btn-light { background: #f4eee2; color: var(--ink); }
.btn-light:hover { background: #fff; }

.hero-alt {
  margin-top: 1.4rem;
  font-size: 0.95rem;
  color: var(--stone);
}

/* ---------- Strata divider ---------- */

.strata { line-height: 0; }
.strata svg { width: 100%; height: clamp(60px, 8vw, 110px); display: block; }

/* ---------- Sections ---------- */

section h2 {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: clamp(1.7rem, 4.5vw, 2.4rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 1.6rem;
}

.kicker {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--orange);
}

/* Light speckle for the dark sections: same trick as the body grit. */
.rock-dark {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='d'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.96 0 0 0 0 0.93 0 0 0 0 0.86 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23d)'/%3E%3C/svg%3E");
}

/* Services sits directly under the dark strata band. */
.services {
  background-color: var(--ink-soft);
  color: #f4eee2;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 5vw, 3rem) clamp(3rem, 7vw, 5rem);
}

.services h2 { color: #fff; }
.services .kicker { color: var(--orange-bright); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  max-width: 1100px;
}

/* Six cards split 3+3 on wide screens instead of an uneven 4+2. */
@media (min-width: 1024px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
}

.services .card-grid { margin: 0 auto; }
.services h2, .services-note { max-width: 1100px; margin-left: auto; margin-right: auto; }
.services h2 { margin-bottom: 1.6rem; }

.card {
  display: block;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(244, 238, 226, 0.14);
  border-radius: 10px;
  padding: 1.4rem 1.3rem;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s, transform 0.1s, background 0.15s;
}

a.card:hover {
  border-color: var(--orange-bright);
  background: rgba(0, 0, 0, 0.32);
  transform: translateY(-2px);
}

.card-more {
  display: inline-block;
  margin-top: 0.7rem;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--orange-bright);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.card .icon {
  width: 34px;
  height: 34px;
  color: var(--orange-bright);
  margin-bottom: 0.7rem;
}

.card h3 { font-size: 1.12rem; margin-bottom: 0.4rem; }

.card p { font-size: 0.95rem; color: #d9d0bf; }

.services-note {
  margin-top: 1.6rem;
  color: #d9d0bf;
  font-size: 0.98rem;
}

/* ---------- Why ---------- */

.why { padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 5vw, 3rem); }

.why-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.why-item h3 {
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 3px solid var(--orange);
  display: inline-block;
  padding-bottom: 0.3rem;
  margin-bottom: 0.6rem;
}

.why-item p { color: var(--ink-soft); }

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

.area {
  background: var(--sand-deep);
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.25rem, 5vw, 3rem);
}

.area > * { max-width: 1100px; margin-left: auto; margin-right: auto; }

.area h2 { margin-bottom: 1rem; }

.towns {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem auto 1.2rem;
}

.towns li {
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.95rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.area-note { color: var(--stone); font-size: 0.95rem; }

/* ---------- Contact ---------- */

.contact {
  background-color: var(--ink);
  color: #f4eee2;
  text-align: center;
  padding: clamp(3rem, 7vw, 5rem) 1.25rem;
}

.contact h2 {
  color: #fff;
  display: block;
  margin-bottom: 0.4rem;
}

.contact-lede { color: #c9bfab; margin-bottom: 1.5rem; }

.big-phone {
  display: inline-block;
  font-size: clamp(1.9rem, 6vw, 3rem);
  font-weight: 900;
  color: var(--orange-bright);
  text-decoration: none;
  letter-spacing: 0.01em;
  margin-bottom: 1.5rem;
}

.big-phone:hover { color: #fff; }

.contact address {
  font-style: normal;
  margin-top: 1.8rem;
  color: #c9bfab;
  line-height: 1.9;
}

.contact address a { color: var(--orange-bright); }

/* ---------- Subpages (services, about) ---------- */

.page-head {
  width: 100%;
  box-sizing: border-box;
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) 1.25rem 0.5rem;
}

.crumb {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
  text-decoration: none;
  margin-bottom: 1.1rem;
}

.crumb:hover { color: var(--orange); }

.page-head h1 {
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  line-height: 1.05;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.page-lede {
  max-width: 640px;
  margin-top: 1.1rem;
  font-size: 1.12rem;
  color: var(--ink-soft);
}

.page-body {
  width: 100%;
  box-sizing: border-box;
  max-width: 820px;
  margin: 0 auto;
  padding: 1.4rem 1.25rem clamp(2.5rem, 6vw, 4rem);
}

.page-body h2 {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
  margin: 1.6rem 0 0.9rem;
}

.page-body p { max-width: 640px; color: var(--ink-soft); margin-bottom: 1rem; }

.job-list {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  max-width: 640px;
}

.job-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--ink-soft);
  font-weight: 500;
}

/* Little rock-shard bullet. */
.job-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 11px;
  height: 11px;
  background: var(--orange);
  clip-path: polygon(50% 0, 100% 38%, 82% 100%, 14% 88%, 0 34%);
}

/* The rock overlay: fixed over the whole page, composited onto every section.
   texture.js paints its background (grit tile + stone tile + vignette). */
.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: 0.95;
}

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

.site-footer {
  background: #1a1611;
  color: #8f8371;
  text-align: center;
  font-size: 0.88rem;
  padding: 1.4rem 1rem 2rem;
  line-height: 1.9;
}

.site-footer a { color: #b3a68f; text-decoration: none; }
.site-footer a:hover { color: var(--orange-bright); }

/* ---------- Mobile call bar ---------- */

.call-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  border-top: 1px solid rgba(0, 0, 0, 0.35);
}

.call-bar a {
  flex: 1;
  text-align: center;
  padding: 0.95rem 0;
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
}

.call-bar a:first-child { background: var(--orange); color: #fff; }
.call-bar a:last-child { background: var(--ink); color: var(--orange-bright); }

@media (max-width: 640px) {
  .call-bar { display: flex; }
  .site-footer { padding-bottom: 5rem; } /* keep footer text above the fixed bar */
  .header-phone { display: none; }       /* the call bar covers it on phones */
  .brand-name { display: none; }         /* mark only; makes room for the nav */
  .site-nav { margin-right: 0; }
}

/* ---------- Pay invoice (demo) ---------- */

.demo-strip {
  background: rgba(212, 105, 30, 0.12);
  border: 1px solid rgba(212, 105, 30, 0.45);
  color: var(--ink-soft);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  max-width: 640px;
  margin-bottom: 1.6rem;
}

.lookup-toggle { display: flex; gap: 0.5rem; margin-bottom: 1.1rem; }

.lookup-toggle button {
  padding: 0.5rem 1.1rem;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
}

.lookup-toggle button.active { background: var(--ink); color: var(--sand); }

.pay-form { display: grid; gap: 0.9rem; max-width: 460px; margin-bottom: 1rem; }
.pay-form[hidden] { display: none; }

.field label {
  display: block;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 0.3rem;
}

.field input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #f7f1e3;
  font-size: 1rem;
  color: var(--ink);
  font-family: inherit;
}

.field input:focus { outline: none; border-color: var(--orange); }

.field input[readonly] { background: #ece2cb; color: var(--stone); }

.lookup-error { color: #a33a1c; font-weight: 600; max-width: 460px; }

.demo-hint { color: var(--stone); font-size: 0.92rem; margin-top: 1rem; }

.invoice {
  background: #f7f1e3;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem;
  max-width: 640px;
  margin-top: 1.4rem;
}

.invoice-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}

.invoice-head h3 { font-size: 1.25rem; }

.invoice-meta { color: var(--stone); font-size: 0.92rem; margin-top: 0.2rem; }

.badge {
  display: inline-block;
  padding: 0.22rem 0.8rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge.due { background: rgba(212, 105, 30, 0.15); color: #a34d10; border: 1px solid rgba(212, 105, 30, 0.5); }
.badge.paid { background: rgba(74, 124, 58, 0.15); color: #3d6b2e; border: 1px solid rgba(74, 124, 58, 0.45); }

.invoice table { width: 100%; border-collapse: collapse; margin: 1.1rem 0 0.4rem; }

.invoice th {
  text-align: left;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone);
  padding: 0 0 0.45rem;
  border-bottom: 2px solid var(--line);
}

.invoice td { padding: 0.55rem 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); }

.invoice th:last-child, .invoice td:last-child { text-align: right; white-space: nowrap; }

.invoice tr.total td { border-bottom: none; font-weight: 800; color: var(--ink); font-size: 1.05rem; }

.pay-panel { margin-top: 1.2rem; border-top: 2px dashed var(--line); padding-top: 1.2rem; }

.card-fields { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 0.7rem; margin: 0.9rem 0; }

@media (max-width: 480px) {
  .card-fields { grid-template-columns: 1fr 1fr; }
  .card-fields .field:first-child { grid-column: 1 / -1; }
  .site-nav { gap: 0.7rem; }
  .site-nav a { font-size: 0.88rem; }
}

.card-note { color: var(--stone); font-size: 0.88rem; margin-bottom: 0.9rem; }

.pay-success {
  background: rgba(74, 124, 58, 0.12);
  border: 1px solid rgba(74, 124, 58, 0.45);
  color: #3d6b2e;
  padding: 0.9rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  margin-top: 1rem;
}

/* ---------- Logo ---------- */

img.mark { width: 46px; height: 46px; object-fit: contain; }

.hero-logo {
  display: block;
  width: clamp(210px, 30vw, 310px);
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 10px 22px rgba(40, 24, 6, 0.3));
}

@media (max-width: 640px) {
  .nav-xtra { display: none; } /* "Pay Invoice" -> "Pay" so the nav never wraps */
}
