:root {
  --bg: #F5F1E8;
  --text: #1C1C1A;
  --muted: #57544D;
  --accent: #8B3A1F;
  --accent-hover: #7A3219;
  --rule: #D9D2C2;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --max: 1240px;
  --prose: 68ch;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }

h1, h2 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 1320px) {
  .container { padding: 0 40px; }
}

/* Top bar */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(245, 241, 232, 0.92);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  transition: background-color 320ms ease, border-color 320ms ease;
}
/* Browsers without backdrop-filter get a more opaque solid */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .topbar { background: var(--bg); }
  body.has-photo-hero .topbar { background: rgba(20, 14, 10, 0.72); }
}
.topbar .brand,
.topbar .brand__name,
.topbar__phone,
.topbar__link {
  transition: color 320ms ease;
}
.topbar__phone { color: var(--accent); }
.topbar__link { color: var(--accent); }

/* Photo-hero pages: header starts as glass over the hero */
body.has-photo-hero .topbar {
  background: rgba(20, 14, 10, 0.32);
  border-bottom-color: rgba(245, 241, 232, 0.14);
}
body.has-photo-hero .topbar .brand,
body.has-photo-hero .topbar .brand__name,
body.has-photo-hero .topbar__phone,
body.has-photo-hero .topbar__link {
  color: var(--bg);
}

/* Once scrolled past the hero, the header reverts to solid cream */
body.has-photo-hero.is-scrolled .topbar {
  background: rgba(245, 241, 232, 0.92);
  border-bottom-color: var(--rule);
}
body.has-photo-hero.is-scrolled .topbar .brand,
body.has-photo-hero.is-scrolled .topbar .brand__name {
  color: var(--text);
}
body.has-photo-hero.is-scrolled .topbar__phone {
  color: var(--accent);
}
body.has-photo-hero.is-scrolled .topbar__link {
  color: var(--accent);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}
.brand__mark {
  height: 48px;
  width: auto;
  object-fit: contain;
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: -0.005em;
}

@media (min-width: 760px) {
  .brand__mark { height: 56px; }
  .brand__name { font-size: 1.25rem; }
}
.topbar__phone {
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  text-decoration: none;
}
.topbar__phone:hover { text-decoration: underline; }

/* Hero */
.hero {
  position: relative;
  padding: 120px 0 88px;
}
.hero__inner { max-width: 36rem; }

/* Photographic hero variant for the home page */
.hero--photo {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-color: #2A1F18;
  color: var(--bg);
}

/* Slides layer */
.hero__slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1100ms ease;
  pointer-events: none;
  user-select: none;
}
.hero__slide.is-active { opacity: 1; }

/* Directional gradient overlay, darker where the text sits */
.hero--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to right,
      rgba(20, 14, 10, 0.66) 0%,
      rgba(20, 14, 10, 0.38) 55%,
      rgba(20, 14, 10, 0.12) 100%),
    linear-gradient(to bottom,
      rgba(20, 14, 10, 0.00) 0%,
      rgba(20, 14, 10, 0.05) 60%,
      rgba(20, 14, 10, 0.36) 100%);
}

/* Overlay is lighter now, so keep hero text crisp over the brighter image */
.hero--photo .hero__content { text-shadow: 0 1px 14px rgba(20, 14, 10, 0.28); }
.hero--photo .cta { text-shadow: none; }

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.hero--photo .eyebrow { color: #E8D9B8; }
.hero--photo .lede { color: var(--bg); opacity: 0.95; }
.hero--photo .availability { color: rgba(245, 241, 232, 0.78); }

@media (min-width: 760px) {
  .hero--photo {
    padding: 168px 0 128px;
    min-height: 640px;
    display: flex;
    align-items: center;
  }
  .hero--photo > .container { width: 100%; }
}

/* Rotating headline stack. Grid sizes to the tallest child automatically,
   so no min-height guessing and no absolute positioning. */
.hero__lines {
  display: grid;
  margin: 0 0 32px;
}
.hero-line {
  grid-area: 1 / 1;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.2rem, 5.6vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--bg);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 700ms ease, transform 700ms ease;
  pointer-events: none;
}
.hero-line.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.hero-line em {
  font-style: italic;
  font-weight: 400;
  color: #F5E0B8;
}

/* Visually hidden utility */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .hero__slide,
  .hero-line { transition: none !important; }
}

/* Plain hero (e.g. 404) needs extra top padding to clear the fixed header */
body:not(.has-photo-hero) .hero { padding-top: 160px; }
@media (min-width: 760px) {
  body:not(.has-photo-hero) .hero { padding-top: 180px; }
}
.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
  font-weight: 500;
}
.hero__title {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  margin: 0 0 24px;
  max-width: 18ch;
}
.hero__title em {
  font-style: italic;
  font-weight: 400;
  color: #F5E0B8;
}
.lede {
  font-size: 1.1rem;
  max-width: var(--prose);
  color: var(--text);
  margin: 0 0 32px;
}

/* CTA */
.cta {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 2px;
  transition: background-color 120ms ease, transform 120ms ease;
  will-change: transform;
}
.cta:hover {
  background: var(--accent-hover);
  color: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(28, 16, 8, 0.18);
}
.cta:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(28, 16, 8, 0.12);
}
.cta__label { font-weight: 500; font-size: 1rem; letter-spacing: 0.01em; }
.cta__sub { font-size: 0.85rem; opacity: 0.85; font-variant-numeric: tabular-nums; }

.availability {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* Sections */
.section { padding: 64px 0; border-top: 1px solid var(--rule); }
.section--alt { background: transparent; }
@media (min-width: 900px) {
  .section { padding: 96px 0; }
}

/* Dark beat section */
.section--dark {
  background: var(--accent);
  color: var(--bg);
  border-top: 0;
}
.approach__inner { max-width: 60rem; }
.approach__line {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--bg);
  margin: 0;
  max-width: 34ch;
}
.approach__line em {
  font-style: italic;
  color: #F5E0B8;
  display: block;
  margin-top: 0.35em;
}

@media (min-width: 760px) {
  .section--dark { padding: 80px 0; }
}

.prose { max-width: var(--prose); }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.prose .kicker {
  margin-top: 1.4em;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--accent);
}

.plain-list {
  list-style: none;
  padding: 0;
  margin: 0.5em 0 0;
}
.plain-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--text);
}
.plain-list li:last-child { border-bottom: 0; }

/* (two-column helper removed; superseded by .split) */

/* Bio with portrait */
.bio { display: grid; grid-template-columns: 1fr; gap: 32px; }
.bio__text { max-width: var(--prose); }
.bio__text h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.bio__text .kicker {
  margin-top: 1.4em;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--accent);
}
.bio__portrait { margin: 0; max-width: 320px; }
.bio__portrait img {
  width: 100%;
  height: auto;
  border-radius: 2px;
  display: block;
}
.bio__portrait figcaption {
  margin-top: 12px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--muted);
}

@media (min-width: 760px) {
  .bio {
    grid-template-columns: minmax(0, 60ch) 300px;
    gap: 64px;
    align-items: start;
    justify-content: start;
  }
  .bio__portrait { max-width: 300px; }
}

/* Closing */
.closing { padding-bottom: 80px; }
.phone-display {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 500;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.phone-display:hover { text-decoration: underline; }

/* Footer */
.footer {
  border-top: 1px solid var(--rule);
  padding: 40px 0 56px;
  color: var(--muted);
}
.footer__inner { display: flex; flex-direction: column; gap: 8px; }
.footer__brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); }
.footer__brand .brand__mark { height: 44px; }
.footer__brand .brand__name { font-size: 1.1rem; font-family: var(--font-display); font-weight: 500; }
.footer__tagline { margin: 4px 0 0; max-width: var(--prose); }
.footer__phone {
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  font-weight: 500;
  margin-top: 4px;
  align-self: flex-start;
}
.footer__phone:hover { text-decoration: underline; }
.footer__meta { font-size: 0.88rem; color: var(--muted); margin-top: 12px; }

/* Motion */
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0ms !important; animation-duration: 0ms !important; }
}

/* Focus styles */
:focus { outline: none; }
a:focus-visible,
.cta:focus-visible,
.topbar__phone:focus-visible,
.footer__phone:focus-visible,
.phone-display:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
.hero--photo a:focus-visible,
.section--dark a:focus-visible {
  outline-color: #F5E0B8;
}

/* Image fade-in for content images (portrait, future media) */
.fade-img {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.fade-img.is-loaded {
  opacity: 1;
  transform: translateY(0);
}

/* Approach section, one-time reveal on entry */
.approach__line {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.approach__line em {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 600ms ease 350ms, transform 600ms ease 350ms;
}
.approach.is-in-view .approach__line {
  opacity: 1;
  transform: translateY(0);
}
.approach.is-in-view .approach__line em {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------------------------------------------------------------------
   Contractor network page + shared nav additions
   --------------------------------------------------------------------------- */

/* Header nav (brand on the left, link + phone grouped on the right) */
.topbar__nav {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}
.topbar__link {
  display: inline-flex;
  align-items: center;
  border: 1px solid currentColor;
  border-radius: 2px;
  padding: 8px 16px;
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1;
  text-decoration: none;
  transition: color 320ms ease, background-color 160ms ease, border-color 320ms ease;
}

/* On small phones the long wordmark hides so the nav link and phone fit cleanly */
@media (max-width: 599px) {
  .brand__name { display: none; }
}
.topbar__link:hover,
body.has-photo-hero .topbar__link:hover,
body.has-photo-hero.is-scrolled .topbar__link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

/* Still photographic hero (single background image, no rotation) */
.hero--still {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Application form area. Holds the Go High Level embed once it is provided. */
.form-embed {
  margin-top: 28px;
  max-width: 640px;
}

/* Editorial arrow link, used for the contractor invite on the home page */
.arrow-link {
  display: inline-block;
  margin-top: 6px;
  font-weight: 500;
  text-decoration: none;
}
.arrow-link::after { content: " \2192"; }
.arrow-link:hover { text-decoration: underline; }

/* ---------------------------------------------------------------------------
   Editorial split layout for larger screens.
   The section heading sits in a left rail, the body content sits to the right
   behind a hairline rule. Collapses to a single column on small screens.
   --------------------------------------------------------------------------- */
.split { display: grid; gap: 24px; }
.split__head h2 {
  margin-top: 0;
  font-size: clamp(1.7rem, 2.4vw, 2.4rem);
  overflow-wrap: break-word;
}
.split__body > :first-child { margin-top: 0; }
.split__body > :last-child { margin-bottom: 0; }
.split__body p,
.split__body .lede { max-width: 64ch; }

/* Small rust signature mark above each section heading */
.split__head::before,
.bio__text::before {
  content: "";
  display: block;
  width: 36px;
  height: 2px;
  background: var(--accent);
  margin: 0 0 20px;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
    gap: 0;
    align-items: start;
  }
  .split__head {
    position: sticky;
    top: 104px;
    padding-right: 48px;
  }
  .split__body {
    border-left: 1px solid var(--rule);
    padding-left: 56px;
  }
}

/* Lists spread into two columns once there is room */
@media (min-width: 680px) {
  .plain-list--cols {
    columns: 2;
    column-gap: 56px;
  }
  .plain-list--cols li { break-inside: avoid; }
}

/* Smooth in-page jumps, and keep anchor targets clear of the fixed header */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
#apply { scroll-margin-top: 100px; }

/* ---------------------------------------------------------------------------
   Photo hero on large screens.
   The hero is not treated like a content section. Instead of a heading rail,
   it grows into an editorial cover: the type scales up, the block widens a
   little, and the stage gets taller so the headline commands the screen
   rather than sitting in a small cluster. Left edge stays on the site grid.
   --------------------------------------------------------------------------- */
@media (min-width: 1200px) {
  .hero--photo { min-height: 720px; }
  .hero--photo .hero__content { max-width: 900px; }
  .hero--photo .hero__title { font-size: clamp(3.4rem, 4.6vw, 5rem); }
  .hero--photo .hero-line { font-size: clamp(3.4rem, 5.4vw, 5rem); }
  .hero--photo .lede { font-size: 1.3rem; max-width: 46ch; }
  .hero--photo .eyebrow { font-size: 0.82rem; margin-bottom: 22px; }
}

@media (min-width: 1600px) {
  .hero--photo { min-height: 800px; }
  .hero--photo .hero__content { max-width: 1000px; }
}

/* ===========================================================================
   Verified Professional page (contractors.html)
   =========================================================================== */

/* Kicker line usable outside .prose contexts */
.kicker {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--accent);
  margin-top: 1.4em;
}

/* Small uppercase label inside a section body */
.label {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin: 0 0 14px;
}

/* Full-width section heading (rust mark + heading) for sections that are not
   split into a rail, e.g. the steps row */
.section-head { max-width: 68ch; margin-bottom: 44px; }
.section-head h2 { margin: 0; font-size: clamp(1.7rem, 2.4vw, 2.4rem); }
.section-head::before,
.designation__text::before {
  content: "";
  display: block;
  width: 36px;
  height: 2px;
  background: var(--accent);
  margin: 0 0 20px;
}

/* Designation showcase: seal beside its description */
.designation { display: grid; gap: 36px; align-items: center; }
.designation__text > :first-child { margin-top: 0; }
.designation__text p { max-width: 58ch; }
@media (min-width: 860px) {
  .designation { grid-template-columns: 300px 1fr; gap: 64px; }
}

/* Verification seal. Placeholder for the designed badge that will be supplied. */
.seal {
  position: relative;
  border: 2px solid var(--accent);
  border-radius: 2px;
  background: var(--bg);
  padding: 32px 26px;
  text-align: center;
  max-width: 300px;
}
.seal::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid var(--accent);
  pointer-events: none;
}
.seal__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--accent);
  margin: 0;
}
.seal__tier {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text);
  margin: 12px 0 0;
}
.seal__rule { width: 42px; height: 1px; background: var(--accent); margin: 14px auto; }
.seal__tag {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
}

/* Credential and standard chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
.chip {
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 7px 13px;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg);
}

/* How it works, numbered steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 34px;
}
@media (min-width: 680px) {
  .steps { grid-template-columns: repeat(2, 1fr); gap: 44px 48px; }
}
@media (min-width: 1080px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 48px 44px; }
}
.steps__num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 14px;
}
.steps__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.2rem;
  margin: 0 0 8px;
}
.steps li p { margin: 0; color: var(--muted); }

/* Membership plan card */
.plan {
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: #FBF8F1;
  padding: 32px;
  max-width: 620px;
}
.plan__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.2rem;
  margin: 0;
}
.plan__price {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 3.2rem;
  line-height: 1;
  color: var(--accent);
  margin: 14px 0 0;
}
.plan__cycle { color: var(--muted); margin: 6px 0 22px; }
.plan__list { list-style: none; margin: 0; padding: 0; }
.plan__list li {
  position: relative;
  padding: 10px 0 10px 28px;
  border-bottom: 1px solid var(--rule);
}
.plan__list li:last-child { border-bottom: 0; }
.plan__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 15px;
  height: 1px;
  background: var(--accent);
}

/* Verification badge image (supplied artwork, replaces the placeholder seal) */
.seal-img {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
}

/* Quiet cross-link between the consumer and contractor footers */
.footer__link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  align-self: flex-start;
}
.footer__link:hover { color: var(--accent); text-decoration: underline; }
