/*
 * City service pages (/shower-glass-installation-<city>).
 *
 * Authored mobile-first, unlike the Webflow export which is desktop-first
 * (109 max-width breakpoints vs 55 min-width). Base rules here are the phone
 * layout; min-width queries add columns upward. Nothing in this file touches a
 * Webflow class, so it cannot regress the exported pages.
 *
 * Colours come from the export's own custom properties, declared on :root in
 * desert-shower-and-glass-llc.shared.*.min.css:
 *   --primary--100 #483721   --primary--50 #916224   --primary--10 #ffdfb5
 *   --secondary--50 #274290  --neutral--70 #535353   --neutral--30 #e7e7e7
 * Fallbacks are inlined so the page still reads correctly if that sheet fails.
 */

.cp {
  --cp-ink: var(--neutral--100, #292929);
  --cp-muted: var(--neutral--70, #535353);
  --cp-line: var(--primary--100, #483721);
  --cp-gold: var(--primary--50, #916224);
  --cp-cream: var(--primary--10, #ffdfb5);
  --cp-rule: var(--neutral--30, #e7e7e7);

  font-family: Inter, "Nj Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  color: var(--cp-ink);
}

.cp-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* Sections own their rhythm so the pages stay consistent without wrappers. */
.cp-section {
  padding: 40px 20px;
}

.cp-section--tint {
  background-color: #faf6f0;
}

.cp-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.cp-section h2 {
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.25;
  color: var(--cp-line);
}

.cp-lede {
  margin: 0 0 24px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--cp-muted);
}

.cp-prose p {
  margin: 0 0 16px;
  font-size: 17px;
  line-height: 1.65;
}

.cp-prose p:last-child {
  margin-bottom: 0;
}

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

/* The exported navbar is position:fixed and sits outside normal flow - 70px tall
   on a phone, 90px once the desktop menu appears. The hero has to clear it
   itself or the first line of the h1 disappears behind the bar. */
.cp-hero {
  padding: 100px 20px 40px;
}

.cp-hero h1 {
  margin: 0 0 14px;
  font-size: 30px;
  line-height: 1.18;
  color: var(--cp-line);
}

.cp-hero__lede {
  margin: 0 0 22px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--cp-muted);
}

/* Stacked full-width buttons on a phone; side by side once there is room. */
.cp-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.cp-btn {
  display: block;
  padding: 15px 26px;
  border: 2px solid var(--cp-gold);
  border-radius: 6px;
  background-color: var(--cp-gold);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.cp-btn:hover,
.cp-btn:focus-visible {
  background-color: var(--cp-line);
  border-color: var(--cp-line);
  color: #fff;
}

.cp-btn--ghost {
  background-color: transparent;
  color: var(--cp-line);
}

.cp-btn--ghost:hover,
.cp-btn--ghost:focus-visible {
  background-color: var(--cp-line);
  border-color: var(--cp-line);
  color: #fff;
}

/* Credential strip. Deliberately no street address - service-area business. */
.cp-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--cp-rule);
  list-style: none;
  font-size: 15px;
  color: var(--cp-muted);
}

.cp-trust li {
  display: flex;
  align-items: center;
  gap: 7px;
}

.cp-trust svg {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  color: var(--cp-gold);
}

/* --- Reason cards -------------------------------------------------------- */

.cp-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cp-card {
  padding: 20px 22px;
  border: 1px solid var(--cp-line);
  border-radius: 12px;
  background-color: #fff;
}

.cp-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.3;
  color: var(--cp-line);
}

.cp-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--cp-muted);
}

/* --- Project photos ------------------------------------------------------ */

.cp-projects {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.cp-shot {
  margin: 0;
  border: 1px solid var(--cp-rule);
  border-radius: 12px;
  overflow: hidden;
  background-color: #fff;
}

.cp-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.cp-shot figcaption {
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--cp-muted);
}

/* --- Service list -------------------------------------------------------- */

.cp-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cp-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 16px;
  line-height: 1.55;
}

.cp-list svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--cp-gold);
}

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

.cp-quotes {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.cp-quote {
  margin: 0;
  padding: 20px 22px;
  border: 1px solid var(--cp-line);
  border-radius: 12px;
  background-color: #fff;
}

.cp-quote blockquote {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.6;
}

.cp-quote figcaption {
  font-size: 14px;
  color: var(--cp-muted);
}

.cp-quote__name {
  display: block;
  font-weight: 600;
  color: var(--cp-ink);
}

.cp-stars {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  letter-spacing: 2px;
  line-height: 1;
  color: #f5a623;
}

/* --- FAQ ----------------------------------------------------------------- */

/* details/summary rather than scripted accordions: the answers stay in the DOM
   for crawlers and work with scripting off. */
.cp-faq {
  border-top: 1px solid var(--cp-rule);
}

.cp-faq details {
  border-bottom: 1px solid var(--cp-rule);
}

.cp-faq summary {
  padding: 16px 34px 16px 0;
  position: relative;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--cp-line);
  cursor: pointer;
  list-style: none;
}

.cp-faq summary::-webkit-details-marker {
  display: none;
}

.cp-faq summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  color: var(--cp-gold);
}

.cp-faq details[open] summary::after {
  content: "\2212";
}

.cp-faq summary:focus-visible {
  outline: 2px solid var(--cp-line);
  outline-offset: 2px;
}

.cp-faq__a {
  margin: 0;
  padding: 0 0 18px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--cp-muted);
}

/* --- Nearby city links --------------------------------------------------- */

.cp-nearby {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cp-nearby a {
  display: block;
  padding: 11px 18px;
  border: 1px solid var(--cp-line);
  border-radius: 999px;
  font-size: 15px;
  text-decoration: none;
  color: var(--cp-line);
}

.cp-nearby a:hover,
.cp-nearby a:focus-visible {
  background-color: var(--cp-line);
  color: #fff;
}

/* --- Closing CTA --------------------------------------------------------- */

.cp-close {
  padding: 36px 22px;
  border-radius: 14px;
  background-color: var(--cp-line);
  color: #fff;
  text-align: center;
}

.cp-close h2 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.25;
  color: #fff;
}

.cp-close p {
  margin: 0 0 22px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--cp-cream);
}

.cp-close .cp-btn--ghost {
  border-color: var(--cp-cream);
  color: var(--cp-cream);
}

.cp-close .cp-btn--ghost:hover,
.cp-close .cp-btn--ghost:focus-visible {
  background-color: var(--cp-cream);
  border-color: var(--cp-cream);
  color: var(--cp-line);
}

/* --- Upward breakpoints -------------------------------------------------- */

@media (min-width: 600px) {
  .cp-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .cp-btn {
    display: inline-block;
  }

  .cp-cards,
  .cp-quotes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cp-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .cp-section {
    padding: 64px 32px;
  }

  .cp-hero {
    padding: 132px 32px 56px;
  }

  .cp-hero h1 {
    font-size: 42px;
  }

  .cp-hero__lede {
    max-width: 62ch;
    font-size: 19px;
  }

  .cp-section h2 {
    font-size: 32px;
  }

  .cp-lede {
    max-width: 70ch;
  }

  .cp-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cp-projects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cp-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cp-close {
    padding: 52px 40px;
  }

  .cp-close h2 {
    font-size: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cp * {
    animation: none !important;
    transition: none !important;
  }
}
