/* Ridge Line Roofing Co. */
.brand-ridge-line {
  --ridge-navy: #152740;
  --ridge-amber: #f4bb54;
  --ridge-link: #194b77;
  --demo-heading: Arial, Helvetica, sans-serif;
  --demo-display-weight: 800;
  --demo-display-spacing: -.045em;
  --demo-neutral: #fffefa;
  --demo-muted: #44515d;
  --demo-rule: #ccd0d1;
  --demo-radius: 0;
  background: #f5f4ef;
  color: var(--ridge-navy);
}

.brand-ridge-line .demo-catalog-bar { background: #101d2e; }
.brand-ridge-line .demo-header { border-bottom: 3px solid var(--ridge-amber); background: #fffefa; }
.brand-ridge-line .demo-brand { color: var(--ridge-navy); letter-spacing: -.037em; }
.brand-ridge-line .demo-brand-mark {
  border-radius: 0;
  background: linear-gradient(135deg, var(--ridge-amber) 10px, var(--ridge-navy) 10px);
}
.brand-ridge-line .demo-header nav > a:not(.demo-button):is(:hover, [aria-current="page"]),
.brand-ridge-line .demo-link,
.brand-ridge-line .demo-eyebrow { color: var(--ridge-link); }
.brand-ridge-line .demo-button {
  border-color: var(--ridge-navy);
  background: var(--ridge-navy);
  color: #fffefa;
}
.brand-ridge-line .demo-button:hover { border-color: var(--ridge-link); background: var(--ridge-link); }
.brand-ridge-line .demo-button.demo-button--outline { background: transparent; color: var(--ridge-navy); }
.brand-ridge-line .demo-button.demo-button--outline:hover { background: var(--ridge-navy); color: #fffefa; }

.brand-ridge-line .brand-hero {
  background: var(--ridge-navy);
  color: #fffefa;
}
.brand-ridge-line .brand-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(1.9rem, 5.2vw, 5.35rem);
  padding-block: clamp(2.65rem, 6vw, 5rem);
}
.brand-ridge-line .brand-hero h1 {
  max-width: 13ch;
  font-size: clamp(3rem, 6.6vw, 6.3rem);
  line-height: .95;
  text-wrap: balance;
}
.brand-ridge-line .demo-hero__message > p:not(.demo-eyebrow) { color: #e0e7ec; }
.brand-ridge-line .brand-hero :is(.demo-eyebrow, .demo-link) { color: var(--ridge-amber); }
.brand-ridge-line .brand-hero .demo-eyebrow {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: 1rem;
}
.brand-ridge-line .brand-hero .demo-eyebrow::before {
  display: inline-block;
  width: 1.55rem;
  height: 2px;
  background: currentColor;
  content: '';
}
.brand-ridge-line .brand-hero .demo-button {
  border-color: var(--ridge-amber);
  background: var(--ridge-amber);
  color: #172331;
}
.brand-ridge-line .brand-hero .demo-button:hover { border-color: #ffe3a9; background: #ffe3a9; }
.brand-ridge-line .brand-hero__media {
  margin: 0;
  border: 1px solid #748292;
  border-bottom: 3px solid var(--ridge-amber);
  background: #101d2e;
}
.brand-ridge-line .brand-hero__media img {
  aspect-ratio: 1.28;
  height: auto;
  object-fit: cover;
  object-position: 54% 45%;
}
.brand-ridge-line .brand-hero__media figcaption {
  padding: .7rem .9rem;
  color: #f8f1e3;
  font-size: .875rem;
  line-height: 1.45;
}

.brand-ridge-line .demo-intro {
  border-block: 1px solid #d8dedf;
  background: #e4eaee;
  color: var(--ridge-navy);
}
.brand-ridge-line .demo-intro .demo-eyebrow { color: var(--ridge-link); }
.brand-ridge-line .demo-block h2,
.brand-ridge-line .brand-planning h2 { letter-spacing: -.045em; }
.brand-ridge-line .demo-services:not(.demo-services--with-photos) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
  border: 0;
}
.brand-ridge-line .demo-services:not(.demo-services--with-photos) > li {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: .65rem;
  padding: clamp(1.15rem, 2.7vw, 1.9rem);
  border: 1px solid var(--demo-rule);
  border-top: 3px solid #d99528;
  border-radius: 0;
  background: var(--demo-neutral);
}
.brand-ridge-line .demo-services:not(.demo-services--with-photos) > li :is(h2, h3) {
  font-size: clamp(1.45rem, 2.25vw, 2rem);
}
.brand-ridge-line .demo-services:not(.demo-services--with-photos) > li p { flex: 1; margin-top: 0; }
.brand-ridge-line .demo-projects { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.brand-ridge-line .demo-projects article { border-top: 3px solid var(--ridge-navy); }
.brand-ridge-line .demo-projects img { aspect-ratio: 14 / 9; }
.brand-ridge-line .demo-form-panel { border-top: 3px solid #d99528; }
.brand-ridge-line .brand-planning,
.brand-ridge-line .demo-prompt { background: #e4eaee; }
.brand-ridge-line .demo-footer { border-top: 3px solid var(--ridge-amber); background: var(--ridge-navy); color: #fffefa; }
.brand-ridge-line .demo-footer p + p { color: #e0e7ec; }
.brand-ridge-line :focus-visible { outline-color: #9b5f06; }
.brand-ridge-line :is(.brand-hero, .demo-catalog-bar, .demo-footer) :focus-visible { outline-color: var(--ridge-amber); }

/* Mesa Roof Studio */
.brand-mesa-roof {
  color-scheme: dark;
  --mesa-charcoal: #201b19;
  --mesa-cream: #f3e8db;
  --mesa-copper: #dca47e;
  --demo-heading: Georgia, 'Times New Roman', serif;
  --demo-display-weight: 400;
  --demo-display-spacing: -.045em;
  --demo-neutral: #2b2421;
  --demo-muted: #d1c4b7;
  --demo-rule: #68584d;
  --demo-radius: 0;
  background: var(--mesa-charcoal);
  color: var(--mesa-cream);
}

.brand-mesa-roof .demo-catalog-bar { background: #151211; color: var(--mesa-cream); }
.brand-mesa-roof .demo-header { border-block: 1px solid #51443c; background: #241e1b; }
.brand-mesa-roof .demo-brand { color: var(--mesa-cream); }
.brand-mesa-roof .demo-brand-mark {
  border: 1px solid var(--mesa-copper);
  border-radius: 0;
  background: transparent;
  color: var(--mesa-copper);
  font-family: var(--demo-heading);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0;
}
.brand-mesa-roof .demo-header nav > a:not(.demo-button):is(:hover, [aria-current="page"]),
.brand-mesa-roof :is(.demo-eyebrow, .demo-link) { color: var(--mesa-copper); }
.brand-mesa-roof .demo-button {
  border-color: var(--mesa-copper);
  background: var(--mesa-copper);
  color: #281b15;
}
.brand-mesa-roof .demo-button:hover { border-color: #f2ccad; background: #f2ccad; }
.brand-mesa-roof .demo-button.demo-button--outline { background: transparent; color: var(--mesa-copper); }
.brand-mesa-roof .demo-button.demo-button--outline:hover { background: var(--mesa-copper); color: #281b15; }

.brand-mesa-roof .brand-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: clamp(1.6rem, 3.9vw, 3.4rem);
  padding-block: clamp(3.3rem, 7vw, 6.1rem) clamp(1.75rem, 4.2vw, 3.5rem);
}
.brand-mesa-roof .demo-hero__message {
  display: grid;
  width: 100%;
  justify-items: center;
  margin-inline: auto;
  text-align: center;
}
.brand-mesa-roof .brand-hero .demo-eyebrow { margin-bottom: .9rem; letter-spacing: .21em; }
.brand-mesa-roof .brand-hero h1 {
  max-width: 19ch;
  margin-inline: auto;
  font-size: clamp(3.1rem, 7.9vw, 6.8rem);
  line-height: .95;
  text-wrap: balance;
}
.brand-mesa-roof .demo-hero__message > p:not(.demo-eyebrow) { max-width: 39rem; color: var(--demo-muted); }
.brand-mesa-roof .brand-hero .demo-actions { justify-content: center; }
.brand-mesa-roof .brand-hero__media {
  width: 100%;
  margin: 0;
  padding-bottom: .65rem;
  border-bottom: 1px solid var(--demo-rule);
}
.brand-mesa-roof .brand-hero__media img {
  aspect-ratio: 2.5;
  height: auto;
  object-fit: cover;
  object-position: center 43%;
}
.brand-mesa-roof .brand-hero__media figcaption {
  margin-top: .62rem;
  color: var(--demo-muted);
  font-size: .875rem;
  line-height: 1.45;
}

.brand-mesa-roof .demo-intro {
  border-block: 1px solid var(--demo-rule);
  background: #2a211d;
}
.brand-mesa-roof .demo-intro .demo-shell { display: grid; justify-items: center; text-align: center; }
.brand-mesa-roof .demo-intro h1 { text-wrap: balance; }
.brand-mesa-roof .demo-intro__copy { color: var(--demo-muted); }
.brand-mesa-roof .demo-services:not(.demo-services--with-photos) {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  border-top: 1px solid var(--demo-rule);
}
.brand-mesa-roof .demo-services:not(.demo-services--with-photos) > li {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: .4rem clamp(1rem, 6vw, 5rem);
  padding: clamp(1.25rem, 3vw, 2rem) 0;
  border: 0;
  border-bottom: 1px solid var(--demo-rule);
  border-radius: 0;
  background: transparent;
}
.brand-mesa-roof .demo-services:not(.demo-services--with-photos) > li p { margin: 0; }
.brand-mesa-roof .demo-services:not(.demo-services--with-photos) > li > a { grid-column: 2; }
.brand-mesa-roof .demo-services:not(.demo-services--with-photos) > li :is(h2, h3) {
  font-size: clamp(1.6rem, 3.1vw, 2.6rem);
}
.brand-mesa-roof .demo-projects { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
.brand-mesa-roof .demo-projects article {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
  align-items: center;
  border: 0;
  background: #2b2421;
}
.brand-mesa-roof .demo-projects article:nth-child(even) { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); }
.brand-mesa-roof .demo-projects article:nth-child(even) img { order: 1; }
.brand-mesa-roof .demo-projects img { aspect-ratio: 16 / 9; }
.brand-mesa-roof .demo-projects__copy { padding: clamp(1.2rem, 3.5vw, 3.3rem); }

.brand-mesa-roof :is(.brand-planning, .demo-prompt) { border-color: var(--demo-rule); background: #2b2421; }
.brand-mesa-roof .demo-form-panel { border-color: var(--demo-rule); }
.brand-mesa-roof .demo-form label :is(input, select, textarea) { border-color: #a48b79; background-color: #1c1715; color: var(--mesa-cream); }
.brand-mesa-roof .demo-form select {
  background-image: linear-gradient(45deg, transparent 50%, var(--mesa-copper) 50%), linear-gradient(135deg, var(--mesa-copper) 50%, transparent 50%);
}
.brand-mesa-roof .demo-form-notice { border-color: var(--mesa-copper); }
.brand-mesa-roof .demo-footer { background: #181514; }
.brand-mesa-roof :focus-visible { outline-color: #f4c5a5; }

@media (max-width: 48rem) {
  .brand-ridge-line .brand-hero__layout,
  .brand-ridge-line .demo-projects,
  .brand-ridge-line .demo-services:not(.demo-services--with-photos),
  .brand-mesa-roof .demo-projects article,
  .brand-mesa-roof .demo-projects article:nth-child(even) { grid-template-columns: minmax(0, 1fr); }
  .brand-ridge-line .brand-hero h1 { max-width: 16ch; }
  .brand-ridge-line .brand-hero__media img { aspect-ratio: 3 / 2; }
  .brand-mesa-roof .brand-hero__media img { aspect-ratio: 16 / 10; }
  .brand-mesa-roof .demo-projects article:nth-child(even) img { order: 0; }
  .brand-mesa-roof .demo-services:not(.demo-services--with-photos) > li { grid-template-columns: minmax(0, 1fr); }
  .brand-mesa-roof .demo-services:not(.demo-services--with-photos) > li > a { grid-column: 1; }
}
