/* Canyon Crest Roofing — fictional contractor concept by Inland Web Services. */
:root {
  --charcoal: #222426;
  --charcoal-deep: #17191a;
  --charcoal-soft: #313437;
  --paper: #f4efe6;
  --paper-deep: #e7ded1;
  --white: #fffdf8;
  --copper: #b75c32;
  --copper-dark: #8f3f21;
  --slate: #62676a;
  --line: #c9c0b4;
  --line-dark: #474b4e;
  --max: 1240px;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--charcoal);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }

h1, h2, h3, h4, p, figure, dl, dd { margin-top: 0; }

h1, h2, h3, h4 {
  color: var(--charcoal-deep);
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.02em;
}

h1 {
  max-width: 9ch;
  margin-bottom: 24px;
  font-size: clamp(3.4rem, 10vw, 6.2rem);
}

h2 {
  max-width: 13ch;
  margin-bottom: 22px;
  font-size: clamp(2.5rem, 7vw, 4.4rem);
}

h3 { margin-bottom: 10px; font-size: 1.8rem; }
h4 { margin-bottom: 8px; font-size: 1.35rem; line-height: 1.1; }

p { margin-bottom: 18px; }

.shell {
  width: min(calc(100% - 36px), var(--max));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 14px;
  color: var(--white);
  background: var(--charcoal);
  transform: translateY(-150%);
}

.skip-link:focus { transform: none; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 3px;
}

.concept-bar {
  color: #eee7de;
  background: var(--charcoal-deep);
  border-bottom: 1px solid var(--line-dark);
  font-size: 0.78rem;
}

.concept-bar__inner {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.concept-bar p { margin: 0; color: #c4bbb0; font-size: 0.7rem; text-align: center; }
.concept-detail { display: none; }
.concept-bar a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 600; text-decoration: none; }
.concept-bar a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.concept-back { gap: 7px; }
.concept-back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(244, 239, 230, 0.97);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--charcoal-deep);
  text-decoration: none;
}

.brand img { width: 44px; height: 44px; flex: 0 0 44px; }
.brand span { display: flex; flex-direction: column; line-height: 1; }
.brand strong { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; letter-spacing: 0.01em; text-transform: uppercase; }
.brand small { margin-top: 4px; color: var(--copper-dark); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }

.nav-toggle {
  width: 48px;
  height: 48px;
  display: grid;
  place-content: center;
  gap: 5px;
  padding: 0;
  color: var(--charcoal-deep);
  background: transparent;
  border: 1px solid var(--charcoal);
  border-radius: 0;
  cursor: pointer;
}

.nav-toggle span { width: 22px; height: 2px; display: block; background: currentColor; }

.primary-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 0;
  overflow: hidden;
  padding-inline: 18px;
  background: var(--paper);
  border-bottom: 0 solid var(--line);
  opacity: 0;
  visibility: hidden;
  transition: opacity 150ms ease, visibility 150ms ease;
}

.primary-nav.is-open {
  max-height: calc(100vh - 116px);
  overflow-y: auto;
  padding-block: 12px 24px;
  border-bottom-width: 1px;
  opacity: 1;
  visibility: visible;
}

.primary-nav ul { margin: 0 0 18px; padding: 0; list-style: none; }
.primary-nav li { border-bottom: 1px solid var(--line); }
.primary-nav li a { min-height: 50px; display: flex; align-items: center; text-decoration: none; font-weight: 600; }
.primary-nav li a:hover { color: var(--copper-dark); }

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.button--large { min-height: 52px; padding: 15px 21px; }
.button--primary { color: var(--white); background: var(--copper-dark); border-color: var(--copper-dark); }
.button--primary:hover { color: var(--white); background: #6f2e18; border-color: #6f2e18; }
.button--outline { color: var(--charcoal-deep); background: transparent; border-color: currentColor; }
.button--outline:hover { color: var(--white); background: var(--charcoal-deep); border-color: var(--charcoal-deep); }
.nav-cta { width: 100%; }

.hero {
  overflow: hidden;
  padding: 54px 0 64px;
  background: var(--paper);
}

.hero-grid { display: grid; gap: 42px; }
.hero-copy { align-self: center; }
.hero-lead { max-width: 630px; color: #4f5355; font-size: clamp(1.08rem, 2vw, 1.28rem); line-height: 1.55; }
.hero-actions { display: grid; gap: 12px; margin-top: 30px; }
.hero-note { max-width: 620px; margin: 22px 0 0; padding-top: 17px; color: #606467; border-top: 1px solid var(--line); font-size: 0.9rem; }

.hero-media { position: relative; margin-bottom: 0; }
.hero-image { position: relative; }
.hero-image::before {
  content: "";
  position: absolute;
  inset: -14px 14px 14px -14px;
  z-index: 0;
  border: 1px solid var(--copper);
}
.hero-image img { position: relative; z-index: 1; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.hero-media figcaption {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 20px;
  padding: 12px 0 0;
  color: var(--slate);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hero-media figcaption span { color: var(--copper-dark); font-weight: 700; }

.trust { color: #f2ece3; background: var(--charcoal); border-block: 1px solid var(--line-dark); }
.trust-grid { display: grid; }
.trust-grid div { padding: 22px 0; border-bottom: 1px solid var(--line-dark); }
.trust-grid div:last-child { border-bottom: 0; }
.trust-grid strong { display: block; margin-bottom: 4px; font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; }
.trust-grid span { display: block; color: #bfc0bd; font-size: 0.88rem; line-height: 1.45; }

.section { padding: 80px 0; }
.section-heading { max-width: 760px; margin-bottom: 42px; }
.section-heading p { max-width: 68ch; margin-bottom: 0; color: var(--slate); font-size: 1.05rem; }

.services { background: var(--white); }
.service-columns { display: grid; gap: 44px; }
.service-group { border-top: 3px solid var(--charcoal); }
.service-group > h3 { margin: 0; padding: 18px 0; color: var(--copper-dark); border-bottom: 1px solid var(--line); font-size: 1.55rem; text-transform: uppercase; letter-spacing: 0.04em; }
.service-group article { padding: 22px 0; border-bottom: 1px solid var(--line); }
.service-group article p { max-width: 58ch; margin-bottom: 0; color: var(--slate); }

.projects { color: #eae4da; background: var(--charcoal-deep); }
.projects h2, .projects h3 { color: var(--white); }
.projects .section-heading p { color: #b9b8b4; }
.project-grid { display: grid; gap: 26px; }
.project { margin-bottom: 0; }
.project img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.project figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 13px 0 0; border-top: 1px solid var(--line-dark); }
.project figcaption span { color: #c9805e; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; }
.project figcaption strong { color: var(--white); font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; text-align: right; }

.process { background: var(--paper-deep); }
.process-layout { display: grid; gap: 10px; }
.process-list { margin: 0; padding: 0; border-top: 2px solid var(--charcoal); list-style: none; }
.process-list li { display: grid; grid-template-columns: 46px 1fr; gap: 16px; padding: 23px 0; border-bottom: 1px solid var(--line); }
.process-list > li > span { color: var(--copper-dark); font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; }
.process-list h3 { margin-bottom: 5px; font-size: 1.5rem; }
.process-list p { max-width: 60ch; margin-bottom: 0; color: var(--slate); }

.about { background: var(--white); }
.about-grid { display: grid; gap: 48px; }
.about-copy > p { max-width: 66ch; color: var(--slate); font-size: 1.04rem; }
.text-link { display: inline-flex; align-items: center; gap: 9px; color: var(--copper-dark); font-weight: 700; text-underline-offset: 4px; }
.text-link:hover { color: var(--charcoal-deep); }
.service-area { padding: 30px 24px; color: #eee7dd; background: var(--charcoal); }
.service-area h3 { color: var(--white); font-size: 2rem; }
.service-area > p { color: #c2c1bc; }
.service-area ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 24px 0; padding: 0; border-top: 1px solid var(--line-dark); list-style: none; }
.service-area li { padding: 10px 8px 10px 0; border-bottom: 1px solid var(--line-dark); }
.concept-disclosure { margin: 28px 0 0; padding-top: 18px; border-top: 1px solid var(--line-dark); font-size: 0.86rem; }
.concept-disclosure strong { color: #e59a75; }

.contact { color: #efebe4; background: var(--charcoal); }
.contact-grid { display: grid; gap: 48px; }
.contact-copy h2 { color: var(--white); }
.contact-copy > p { max-width: 58ch; color: #c5c4c0; font-size: 1.06rem; }
.contact-copy dl { margin: 34px 0 0; border-top: 1px solid var(--line-dark); }
.contact-copy dl div { padding: 16px 0; border-bottom: 1px solid var(--line-dark); }
.contact-copy dt { color: #d48a67; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.contact-copy dd { color: var(--white); }

.estimate-card { padding: 28px 20px; color: var(--charcoal); background: var(--white); }
.form-notice { margin-bottom: 24px; padding-bottom: 16px; color: var(--copper-dark); border-bottom: 1px solid var(--line); font-size: 0.88rem; font-weight: 600; }
.form-grid { display: grid; gap: 17px; }
.field { min-width: 0; display: grid; gap: 7px; }
.field label { color: var(--charcoal-deep); font-weight: 600; }
.field label span { color: var(--slate); font-weight: 400; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 49px;
  padding: 11px 12px;
  color: var(--charcoal-deep);
  background: #fbf8f2;
  border: 1px solid #aaa298;
  border-radius: 0;
}
.field textarea { min-height: 124px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--copper-dark); outline: 3px solid rgba(143, 63, 33, 0.22); outline-offset: 0; }
.field textarea::placeholder { color: #77716c; }
.estimate-card .button { width: 100%; margin-top: 22px; }
.form-success { min-height: 180px; padding: 26px; color: #3f2519; background: #f1ddd2; border: 1px solid #c38162; }
.form-success strong { display: block; margin-bottom: 8px; font-family: var(--font-display); font-size: 1.7rem; }
.form-success p { margin-bottom: 0; }

.site-footer { padding: 64px 0 28px; color: #b9b9b5; background: #111314; }
.footer-grid { display: grid; gap: 38px; }
.site-footer .brand { color: var(--white); }
.footer-brand p { margin: 16px 0 0; color: #b9b9b5; }
.site-footer h2 { margin-bottom: 14px; color: var(--white); font-size: 1.12rem; letter-spacing: 0.04em; text-transform: uppercase; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li + li { margin-top: 7px; }
.site-footer a { color: #e2ded7; text-underline-offset: 4px; }
.site-footer a:hover { color: var(--white); }
.footer-bottom { display: grid; gap: 22px; margin-top: 48px; padding-top: 24px; border-top: 1px solid #373a3c; }
.footer-bottom p { max-width: 74ch; margin-bottom: 0; font-size: 0.86rem; }
.footer-bottom .button { justify-self: start; color: var(--white); }
.footer-bottom .button:hover { color: var(--charcoal-deep); background: var(--white); border-color: var(--white); }

@media (min-width: 560px) {
  .concept-detail { display: inline; }
  .hero-actions { grid-template-columns: repeat(2, max-content); }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project--feature { grid-column: 1 / -1; }
  .project--feature img { aspect-ratio: 16 / 8; }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field--wide { grid-column: 1 / -1; }
  .estimate-card { padding: 38px 34px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 760px) {
  .shell { width: min(calc(100% - 64px), var(--max)); }
  .section { padding: 104px 0; }
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-grid div { min-height: 124px; padding: 25px 28px 25px 0; }
  .trust-grid div:nth-child(odd) { border-right: 1px solid var(--line-dark); }
  .trust-grid div:nth-child(even) { padding-left: 28px; }
  .trust-grid div:nth-last-child(-n + 2) { border-bottom: 0; }
  .section-heading--split { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 0.68fr); align-items: end; gap: 60px; }
  .section-heading--split h2, .section-heading--split p { margin-bottom: 0; }
  .service-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; }
  .process-list li { grid-template-columns: 60px 1fr; gap: 24px; }
  .service-area { padding: 42px 38px; }
  .footer-grid { grid-template-columns: 1.4fr repeat(3, minmax(130px, 0.6fr)); }
  .footer-bottom { grid-template-columns: 1fr auto; align-items: center; }
}

@media (min-width: 1080px) {
  .hero { padding: 78px 0 90px; }
  .hero-grid { grid-template-columns: minmax(470px, 1fr) minmax(500px, 1fr); align-items: center; gap: clamp(48px, 5vw, 72px); }
  .hero-copy { padding-block: 24px; }
  .hero h1 { max-width: 12ch; font-size: clamp(4.6rem, 6vw, 5.4rem); }
  .hero-image img { min-height: 520px; aspect-ratio: auto; object-position: 72% center; }
  .project-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 30px 24px; }
  .project--feature { grid-column: span 7; grid-row: span 2; }
  .project--feature img { height: calc(100% - 50px); min-height: 620px; aspect-ratio: auto; }
  .project:not(.project--feature) { grid-column: span 5; }
  .process-layout { grid-template-columns: minmax(320px, 0.75fr) minmax(0, 1.25fr); gap: clamp(70px, 10vw, 140px); align-items: start; }
  .process-layout .section-heading { position: sticky; top: 118px; margin-bottom: 0; }
  .about-grid { grid-template-columns: minmax(0, 1fr) minmax(400px, 0.72fr); align-items: start; gap: clamp(70px, 9vw, 120px); }
  .contact-grid { grid-template-columns: minmax(320px, 0.72fr) minmax(520px, 1.28fr); gap: clamp(70px, 9vw, 120px); align-items: start; }
}

@media (min-width: 1080px) {
  body.menu-open { overflow: visible; }
  .nav-toggle { display: none; }
  .primary-nav {
    position: static;
    max-height: none;
    display: flex;
    align-items: center;
    gap: 18px;
    overflow: visible;
    margin-left: auto;
    padding: 0;
    background: transparent;
    border: 0;
    opacity: 1;
    visibility: visible;
  }
  .primary-nav ul { display: flex; align-items: center; gap: 0; margin: 0; }
  .primary-nav li { border: 0; }
  .primary-nav li a { min-height: 46px; padding: 9px 8px; font-size: 0.86rem; white-space: nowrap; }
  .nav-cta { width: auto; white-space: nowrap; }
}

@media (min-width: 1200px) {
  .trust-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .trust-grid div { min-height: 136px; border-right: 1px solid var(--line-dark); border-bottom: 0; }
  .trust-grid div:not(:first-child) { padding-left: 28px; }
  .trust-grid div:last-child { border-right: 0; }
}

@media (max-width: 419px) {
  .concept-bar__inner > a:last-child { font-size: 0; }
  .concept-bar__inner > a:last-child::after { content: "Build my site"; font-size: 0.78rem; }
  .brand strong { font-size: 1.08rem; }
  .brand img { width: 42px; height: 42px; flex-basis: 42px; }
  .hero-actions .button { width: 100%; }
  .service-area ul { grid-template-columns: 1fr; }
  .project figcaption { display: block; }
  .project figcaption strong { display: block; margin-top: 4px; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
