/* Carefree1 Construction & Remodeling */

@font-face { font-family: "Big Shoulders Display"; font-weight: 800; font-display: swap;
  src: url("../fonts/big-shoulders-display-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Big Shoulders Display"; font-weight: 900; font-display: swap;
  src: url("../fonts/big-shoulders-display-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 400; font-display: swap;
  src: url("../fonts/public-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 600; font-display: swap;
  src: url("../fonts/public-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 700; font-display: swap;
  src: url("../fonts/public-sans-latin-700-normal.woff2") format("woff2"); }

:root {
  --ink: #1E2A31;
  --ink-deep: #152026;
  --steel: #4A5A63;
  --mist: #C9D2D6;
  --plaster: #F3F4F2;
  --white: #FFFFFF;
  --orange: #E8731C;
  --orange-text: #A9500F;   /* orange that passes contrast as text on light */
  --rule: #D9DEDF;

  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 5vw, 48px);
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--plaster); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }

h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: .95; margin: 0; letter-spacing: .005em; }
h2 { font-size: clamp(2.6rem, 6vw, 4rem); }
h3 { font-size: 1.85rem; }
p { margin: 0 0 1em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: .7em 1.4em; border: 2px solid transparent; border-radius: 4px;
  font: 700 1.05rem/1 var(--body); text-decoration: none; cursor: pointer;
}
.btn-orange { background: var(--orange); color: var(--ink); }
.btn-orange:hover { background: #F2842F; }
.btn-line { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--white); border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand img { height: 46px; width: auto; }
.nav { display: none; gap: 28px; font-weight: 600; font-size: .98rem; }
.nav a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--orange); }
.header-call { min-height: 44px; padding: .55em 1em; font-size: .98rem; }
.header-call .num { display: none; }
@media (min-width: 900px) {
  .nav { display: flex; }
  .header-call .num { display: inline; }
  .header-call .word { display: none; }
}

/* Hero */
.hero { background: var(--white); padding: 40px 0 0; overflow: hidden; }
.hero-grid { display: grid; gap: 32px; }
.hero h1 { font-size: clamp(3.3rem, 11vw, 6.4rem); font-weight: 900; max-width: 9ch; }
.hero .lede { font-size: 1.15rem; color: var(--steel); max-width: 34em; margin: 22px 0 28px; }
.phone-big {
  display: inline-block; font: 900 clamp(3rem, 13vw, 5.6rem)/.9 var(--display);
  color: var(--ink); text-decoration: none; letter-spacing: .01em;
  border-bottom: 8px solid var(--orange); padding-bottom: 6px;
}
.phone-big:hover { color: var(--orange-text); }
.phone-note { display: block; font-size: .95rem; color: var(--steel); margin: 12px 0 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-photo { margin: 0 calc(var(--gutter) * -1); }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 900px) {
  .hero { padding: 64px 0 72px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 56px; }
  .hero-photo { margin: 0 calc((100vw - min(100vw, var(--max))) / -2 - var(--gutter)) 0 0; }
  .hero-photo img { aspect-ratio: 5 / 4; border-radius: 4px 0 0 4px; }
}

/* Section rhythm */
.section { padding: 72px 0; }
.section-head { max-width: 40em; margin-bottom: 40px; }
.section-head p { color: var(--steel); margin-top: 16px; font-size: 1.1rem; }

/* Services: ruled list */
.services { list-style: none; margin: 0; padding: 0; display: grid; border-top: 2px solid var(--ink); }
.services li { padding: 22px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 6px; }
.services h3 { font-size: 2rem; }
.services p { margin: 0; color: var(--steel); }
@media (min-width: 760px) {
  .services { grid-template-columns: 1fr 1fr; column-gap: 56px; }
  .services li { grid-template-columns: 9.5rem 1fr; align-items: baseline; gap: 20px; }
}

/* Work */
.work { background: var(--white); }
.work-grid { display: grid; gap: 14px; }
.work-grid figure { margin: 0; }
.work-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; aspect-ratio: 16 / 10; }
.work-grid figcaption { font-size: .95rem; color: var(--steel); padding-top: 8px; }
@media (min-width: 760px) {
  .work-grid { grid-template-columns: 1.6fr 1fr; grid-template-rows: auto auto; }
  .work-grid .feature { grid-row: span 2; display: flex; flex-direction: column; }
  .work-grid .feature picture { flex: 1; }
  .work-grid .feature img { aspect-ratio: auto; }
}
.work-more { margin-top: 28px; color: var(--steel); }

/* Process: a real sequence, so it is numbered */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; padding-top: 18px; border-top: 2px solid var(--ink); }
.steps li::before {
  content: counter(step); display: block; font: 900 3rem/1 var(--display); color: var(--orange); margin-bottom: 10px;
}
.steps h3 { font-size: 1.6rem; margin-bottom: 8px; }
.steps p { margin: 0; color: var(--steel); }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 32px; } }

/* About */
.about-grid { display: grid; gap: 32px; }
.about-grid .body { max-width: 38em; font-size: 1.1rem; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; align-content: start; border-top: 2px solid var(--ink); }
.facts li { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.facts strong { display: block; font: 800 1.9rem/1 var(--display); }
.facts span { color: var(--steel); font-size: .98rem; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.4fr 1fr; gap: 72px; } }

/* Quote */
.quote { background: var(--ink); color: var(--white); }
.quote h2 { color: var(--white); }
.quote .section-head p { color: var(--mist); }
.quote-grid { display: grid; gap: 48px; }
@media (min-width: 900px) { .quote-grid { grid-template-columns: 1fr 1.5fr; gap: 72px; } }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.contact-list li:first-child { border-top: 1px solid rgba(255,255,255,.14); }
.contact-list .label { display: block; color: var(--mist); font-size: .92rem; margin-bottom: 2px; }
.contact-list a { font-weight: 700; font-size: 1.2rem; text-decoration: none; color: var(--white); word-break: break-word; }
.contact-list a:hover { color: var(--orange); }
.contact-list .phone { font: 900 2.4rem/1 var(--display); color: var(--orange); }

.form { background: var(--white); color: var(--ink); border-radius: 6px; padding: clamp(20px, 4vw, 36px); display: grid; gap: 18px; }
.form .row { display: grid; gap: 18px; }
@media (min-width: 620px) { .form .row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 600; font-size: .98rem; }
.field .opt { font-weight: 400; color: var(--steel); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--white);
  border: 1.5px solid #9AA6AC; border-radius: 4px; padding: 12px 12px; min-height: 50px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(232,115,28,.45); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #B3261E; }
.field .err { color: #B3261E; font-size: .9rem; min-height: 0; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choices label { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; border: 1.5px solid #9AA6AC; border-radius: 4px; padding: 10px 14px; cursor: pointer; }
.choices input { width: 18px; height: 18px; min-height: 0; accent-color: var(--ink); margin: 0; }
.choices label:has(input:checked) { border-color: var(--ink); background: var(--plaster); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .submit { justify-self: start; min-width: 240px; }
.form .fine { font-size: .9rem; color: var(--steel); margin: 0; }
.form-status { border-radius: 4px; padding: 14px 16px; font-weight: 600; }
.form-status[hidden] { display: none; }
.form-status.error { background: #FCEBEA; color: #8C1D18; }
.form-status.notice { background: #FFF3E6; color: #7A3A0A; }

/* Careers strip */
.careers { padding: 40px 0; border-top: 1px solid var(--rule); }
.careers .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.careers p { margin: 0; font-size: 1.1rem; }
.careers strong { font: 800 1.7rem/1 var(--display); display: block; margin-bottom: 4px; }

/* Footer */
.site-footer { background: var(--ink-deep); color: var(--mist); padding: 48px 0 120px; font-size: .95rem; }
.site-footer .wrap { display: grid; gap: 28px; }
.site-footer img { height: 54px; width: auto; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.foot-cols { display: grid; gap: 20px; }
.foot-cols p { margin: 0; }
@media (min-width: 760px) {
  .site-footer { padding-bottom: 48px; }
  .site-footer .wrap { grid-template-columns: auto 1fr; align-items: start; gap: 56px; }
  .foot-cols { grid-template-columns: repeat(3, auto); justify-content: end; gap: 48px; }
}

/* Mobile action bar */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: var(--white);
  border-top: 1px solid var(--rule); box-shadow: 0 -4px 16px rgba(21,32,38,.12);
}
.action-bar .btn { min-height: 50px; }
@media (min-width: 760px) { .action-bar { display: none; } }

/* Simple pages (thanks, 404) */
.simple { min-height: 60vh; padding: 80px 0; background: var(--white); }
.simple h1 { font-size: clamp(3rem, 9vw, 5rem); font-weight: 900; margin-bottom: 20px; }
.simple p { font-size: 1.15rem; color: var(--steel); max-width: 34em; }
.simple .hero-actions { margin-top: 28px; }
