/* Static Roofie homepage. No legacy template sections or loading layers. */

:root {
  --roofie-base: var(--site-accent);
  --roofie-third-color: var(--site-accent);
  --roofie-third-color-rgb: var(--site-accent-rgb);
  --roofie-fourteen-color: var(--site-accent);
  --roofie-fourteen-color-rgb: var(--site-accent-rgb);
}

html { scroll-behavior: smooth; }

body { background: #fff; }

.roofie-home,
.roofie-home * { box-sizing: border-box; }

.roofie-home {
  color: var(--site-ink);
  background: #fff;
  font-family: 'Kumbh Sans', sans-serif;
}

.roofie-home-shell {
  width: min(1170px, calc(100% - 30px));
  margin: 0 auto;
}

.roofie-home h1,
.roofie-home h2,
.roofie-home h3,
.roofie-home-footer {
  font-family: 'Catamaran', sans-serif;
}

.main-menu__navigation > li.roofie-nav-quote > a,
.main-menu__navigation > li.roofie-nav-quote.current > a {
  background: var(--site-accent) !important;
  color: #fff !important;
  border-radius: 4px;
  padding: 12px 18px !important;
  line-height: 1 !important;
  margin-left: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.main-menu__navigation > li.roofie-nav-quote > a::before,
.main-menu__navigation > li.roofie-nav-quote > a::after {
  display: none !important;
}

.main-menu__navigation > li.roofie-nav-quote > a:hover,
.main-menu__navigation > li.roofie-nav-quote > a:focus-visible {
  background: var(--site-ink) !important;
  color: #fff !important;
}

.roofie-home-hero {
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(var(--site-ink-rgb),.85) 0%, rgba(var(--site-ink-rgb),.68) 52%, rgba(var(--site-ink-rgb),.46) 100%),
    var(--site-ink);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  color: #fff;
}

.roofie-home-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(var(--site-ink-rgb),.04), rgba(var(--site-ink-rgb),.2));
}

.roofie-home-hero .roofie-home-shell {
  position: relative;
  z-index: 1;
}

.roofie-home-hero__content {
  max-width: 830px;
  padding: 112px 0 104px;
}

.roofie-home-hero h1 {
  max-width: 820px;
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(58px, 6vw, 84px);
  font-weight: 800;
  line-height: .96;
  letter-spacing: -.025em;
}

.roofie-home-hero p {
  max-width: 670px;
  margin: 0;
  color: rgba(255,255,255,.88);
  font-size: 19px;
  line-height: 1.55;
}

.roofie-home-btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
  padding: 12px 24px;
  border: 2px solid var(--site-accent);
  border-radius: 4px;
  background: var(--site-accent);
  color: #fff !important;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.roofie-home-btn:hover,
.roofie-home-btn:focus-visible {
  background: var(--site-ink);
  border-color: var(--site-ink);
  color: #fff !important;
}

.roofie-home-hero__services {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.roofie-home-hero__services a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 13px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 999px;
  background: rgba(var(--site-ink-rgb),.14);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.roofie-home-hero__services a:hover,
.roofie-home-hero__services a:focus-visible {
  border-color: #fff;
  background: rgba(255,255,255,.12);
  color: #fff;
}

.roofie-home-trust {
  background: var(--site-ink);
  color: #fff;
  border-top: 1px solid rgba(255,255,255,.08);
}

.roofie-home-trust__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
}

.roofie-home-trust__item {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 14px;
  border-right: 1px solid rgba(255,255,255,.1);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.roofie-home-trust__item:last-child { border-right: 0; }

.roofie-home-trust__item b {
  width: 23px;
  height: 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 23px;
  border-radius: 50%;
  background: var(--site-accent);
  color: #fff;
  font-size: 12px;
}

.roofie-home-section { padding: 96px 0; }

.roofie-home-section--soft { background: var(--site-soft); }

.roofie-home-section--dark {
  background: var(--site-ink);
  color: #fff;
}

.roofie-home-split {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(380px,.92fr);
  gap: 72px;
  align-items: center;
}

.roofie-home-split--wide {
  grid-template-columns: minmax(0,1.15fr) minmax(350px,.85fr);
}

.roofie-home-eyebrow {
  margin-bottom: 14px;
  color: var(--site-accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.roofie-home h2 {
  max-width: 820px;
  margin: 0 0 24px;
  color: var(--site-ink);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.06;
}

.roofie-home-section p {
  max-width: 700px;
  margin: 0 0 16px;
  color: var(--site-muted);
  font-size: 16px;
  line-height: 1.75;
}

.roofie-home-section p:last-child { margin-bottom: 0; }

.roofie-home-help__image {
  min-height: 430px;
  border-radius: 7px;
  background:
    linear-gradient(rgba(var(--site-ink-rgb),.12), rgba(var(--site-ink-rgb),.12)),
    var(--site-border);
  background-size: cover;
  background-position: 32% center;
  box-shadow: 0 18px 40px rgba(var(--site-ink-rgb),.08);
}

.roofie-home-section-head {
  max-width: 900px;
  margin-bottom: 38px;
}

.roofie-home-section-head--light h2 { color: #fff; }

.roofie-home-services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 20px;
}

.roofie-home-service-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--site-border);
  border-radius: 7px;
  background: #fff;
}

.roofie-home-image-placeholder {
  min-height: 165px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  padding: 20px;
  border: 1px dashed var(--site-edge);
  border-radius: 5px;
  background: linear-gradient(135deg,var(--site-soft),var(--site-border));
  color: var(--site-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .07em;
  text-align: center;
  text-transform: uppercase;
}

.roofie-home-image-placeholder--large {
  min-height: 430px;
  margin: 0;
}

.roofie-home-service-card h3,
.roofie-home-roof-types h3,
.roofie-home-step h3 {
  margin: 0 0 10px;
  color: var(--site-ink);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.15;
}

.roofie-home-service-card p {
  margin: 0 0 18px;
  color: var(--site-muted);
  font-size: 14px;
  line-height: 1.65;
}

.roofie-home-service-card > a {
  margin-top: auto;
  color: var(--site-accent);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.roofie-home-service-card > a::after {
  content: '→';
  margin-left: 7px;
}

.roofie-home-roofs { background: var(--site-warm); }

.roofie-home-roof-types {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 16px;
  margin-top: 30px;
}

.roofie-home-roof-types > div {
  padding: 21px 22px;
  border: 1px solid var(--site-border);
  border-radius: 6px;
  background: #fff;
}

.roofie-home-roof-types h3 {
  margin-bottom: 6px;
  font-size: 20px;
}

.roofie-home-roof-types p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.roofie-home-process {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 18px;
}

.roofie-home-step {
  min-height: 160px;
  padding: 28px 24px;
  border-top: 3px solid var(--site-accent);
  background: #fff;
}

.roofie-home-step strong {
  display: block;
  margin-bottom: 24px;
  color: var(--site-accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
}

.roofie-home-step h3 {
  margin: 0;
  font-size: 22px;
}

.roofie-home-faq-shell { max-width: 940px; }

.roofie-home-faq {
  border-top: 1px solid var(--site-border);
}

.roofie-home-faq details {
  border-bottom: 1px solid var(--site-border);
}

.roofie-home-faq summary {
  position: relative;
  padding: 23px 52px 23px 0;
  list-style: none;
  cursor: pointer;
  color: var(--site-ink);
  font-size: 18px;
  font-weight: 800;
}

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

.roofie-home-faq summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 18px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--site-edge);
  border-radius: 50%;
  color: var(--site-accent);
  font-size: 20px;
}

.roofie-home-faq details[open] summary::after { content: '−'; }

.roofie-home-faq details p {
  max-width: 760px;
  padding: 0 52px 22px 0;
  margin: 0;
  color: var(--site-muted);
  font-size: 15px;
  line-height: 1.7;
}

.roofie-home-cta {
  padding: 72px 0;
  background: var(--site-accent);
  color: #fff;
}

.roofie-home-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.roofie-home-cta h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(36px,4vw,50px);
}

.roofie-home-cta p {
  margin: 0;
  color: rgba(255,255,255,.9);
}

.roofie-home-btn--white {
  flex: 0 0 auto;
  margin: 0;
  border-color: #fff;
  background: #fff;
  color: var(--site-ink) !important;
}

.roofie-home-btn--white:hover,
.roofie-home-btn--white:focus-visible {
  border-color: var(--site-ink);
  background: var(--site-ink);
  color: #fff !important;
}

.roofie-home-footer {
  padding: 54px 0 0;
  background: var(--site-ink);
  color: var(--site-onDark);
}

.roofie-home-footer__grid {
  display: grid;
  grid-template-columns: 1.7fr .8fr .8fr 1fr;
  gap: 42px;
  padding-bottom: 42px;
}

.roofie-home-footer__logo {
  display: inline-block;
}

.roofie-home-footer__logo img {
  max-width: 145px;
  height: auto;
}

.roofie-home-footer__brand p {
  max-width: 390px;
  margin: 16px 0 0;
  color: var(--site-onDark);
  line-height: 1.7;
}

.roofie-home-footer__label {
  padding-top: 4px;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}

.roofie-home-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: 14px;
}

.roofie-home-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.roofie-home-footer a { color: var(--site-onDark); }

.roofie-mobile-contact-bar {
  display: none;
}

@media (min-width: 992px) {
  .main-header__lower .main-header__lower__inner { position: relative; }
  .main-header__lower .nav-outer,
  .main-header__lower .main-menu__menu-box,
  .main-header__lower .navbar-collapse,
  .main-header__lower .main-menu__navigation { position: static !important; }

  .main-header__lower .roofie-nav-quote {
    position: absolute !important;
    right: 38px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 !important;
    z-index: 20;
  }

  .main-menu__navigation > li.roofie-areas-menu { position: static !important; }
  .main-menu__navigation > li.roofie-areas-menu > ul.roofie-areas-grid {
    display: grid !important;
    grid-template-columns: repeat(4,minmax(150px,1fr)) !important;
    grid-template-rows: auto !important;
    grid-auto-flow: row !important;
    gap: 10px !important;
    width: min(760px,calc(100vw - 48px)) !important;
    max-width: 760px !important;
    padding: 20px !important;
    margin: 0 !important;
    left: 50% !important;
    right: auto !important;
    top: 100% !important;
    transform: translateX(-50%) translateY(12px) !important;
    position: absolute !important;
    box-sizing: border-box !important;
  }

  .main-menu__navigation > li.roofie-areas-menu:hover > ul.roofie-areas-grid,
  .main-menu__navigation > li.roofie-areas-menu:focus-within > ul.roofie-areas-grid {
    transform: translateX(-50%) translateY(0) !important;
  }

  .roofie-areas-grid > li {
    width: auto !important;
    float: none !important;
  }

  .roofie-areas-grid > li > a {
    white-space: normal !important;
    padding: 11px 12px !important;
    text-align: center;
  }
}

@media (max-width: 991px) {
  .roofie-home-split,
  .roofie-home-split--wide {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .roofie-home-services,
  .roofie-home-process {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .roofie-home-footer__grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .roofie-home-help__image,
  .roofie-home-image-placeholder--large {
    min-height: 330px;
  }

  .mobile-menu .roofie-areas-grid {
    display: block !important;
    width: auto !important;
    max-width: none !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .roofie-mobile-contact-bar {
    position: fixed;
    z-index: 99999;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 9px max(10px, env(safe-area-inset-left)) calc(9px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-right));
    background: var(--site-ink);
    box-shadow: 0 -5px 18px rgba(var(--site-ink-rgb),.24);
    transform: translateY(110%);
    opacity: 0;
    pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
  }

  .roofie-mobile-contact-bar.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .roofie-mobile-contact-bar a {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 10px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 800;
    text-align: center;
    line-height: 1.15;
  }

  .roofie-mobile-contact-bar__phone {
    background: #fff;
    color: var(--site-ink);
  }

  .roofie-mobile-contact-bar__quote {
    background: var(--site-accent);
    color: #fff;
  }

  body.roofie-mobile-contact-visible { padding-bottom: 76px; }
}

@media (max-width: 767px) {
  .roofie-home-hero {
    min-height: min(520px,calc(100svh - 84px));
    background:
      linear-gradient(90deg,rgba(var(--site-ink-rgb),.86) 0%,rgba(var(--site-ink-rgb),.74) 62%,rgba(var(--site-ink-rgb),.58) 100%),
      var(--site-ink);
    background-size: cover;
    background-position: 28% center;
  }

  .roofie-home-hero__content {
    max-width: 355px;
    padding: 48px 0 42px;
  }

  .roofie-home-hero h1 {
    max-width: 350px;
    margin-bottom: 14px;
    font-size: clamp(45px,13vw,54px);
    line-height: .98;
  }

  .roofie-home-hero p {
    max-width: 335px;
    font-size: 15px;
    line-height: 1.45;
  }

  .roofie-home-btn {
    min-height: 44px;
    margin-top: 20px;
    padding: 9px 18px;
    font-size: 14px;
  }

  .roofie-home-hero__services {
    width: 100%;
    max-width: 330px;
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 7px;
    margin-top: 18px;
  }

  .roofie-home-hero__services a {
    width: 100%;
    min-height: 30px;
    justify-content: center;
    padding: 5px 9px;
    font-size: 12px;
    text-align: center;
  }

  .roofie-home-trust__grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .roofie-home-trust__item {
    min-height: 56px;
    justify-content: flex-start;
    padding: 11px 14px;
    border-right: 1px solid rgba(255,255,255,.1);
    border-bottom: 1px solid rgba(255,255,255,.1);
    font-size: 13px;
    text-align: left;
  }

  .roofie-home-trust__item:nth-child(2n) { border-right: 0; }
  .roofie-home-trust__item:nth-last-child(-n+2) { border-bottom: 0; }

  .roofie-home-section { padding: 68px 0; }

  .roofie-home h2 { font-size: 34px; }

  .roofie-home-services,
  .roofie-home-process,
  .roofie-home-footer__grid,
  .roofie-home-roof-types {
    grid-template-columns: 1fr;
  }

  .roofie-home-service-card { padding: 22px; }

  .roofie-home-image-placeholder { min-height: 180px; }

  .roofie-home-help__image,
  .roofie-home-image-placeholder--large {
    min-height: 260px;
  }

  .roofie-home-step {
    min-height: 0;
    padding: 23px 21px;
  }

  .roofie-home-faq summary {
    padding-right: 46px;
    font-size: 16px;
  }

  .roofie-home-faq details p {
    padding-right: 40px;
  }

  .roofie-home-cta { padding: 54px 0; }

  .roofie-home-cta__inner,
  .roofie-home-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .roofie-home-btn--white {
    margin-top: 8px;
  }

  .roofie-home-footer { padding-top: 38px; }

  .roofie-home-footer__grid {
    gap: 24px;
    padding-bottom: 30px;
  }
}

@media (max-width: 420px) {
  .roofie-home-hero {
    min-height: min(500px,calc(100svh - 76px));
  }

  .roofie-home-hero h1 { font-size: 43px; }

  .roofie-mobile-contact-bar a { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .roofie-mobile-contact-bar { transition: none; }
}
