/* SVG Professional Roofing — landing styles */

:root {
  --bg: #000000;
  --bg-1: #131209;
  --surface: #181818;
  --surface-2: #1f1f1f;
  --surface-3: #272727;
  --surface-4: #313131;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #ffffff;
  --text-2: #cfcfcf;
  --text-3: #9d9d9d;
  --red: #e30613;
  --red-hover: #ff1f2c;
  --red-ink: #ffffff;

  --s-25: 2px; --s-50: 4px; --s-75: 8px; --s-100: 12px; --s-200: 16px; --s-300: 24px;
  --s-400: 32px; --s-500: 40px; --s-600: 48px; --s-700: 64px; --s-800: 80px; --s-900: 96px;

  --r-md: 6px; --r-lg: 8px; --r-xl: 12px; --r-2xl: 16px; --r-3xl: 24px; --r-full: 9999px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1440px;
  --gutter: 24px;
  --header-h: 72px;
  --font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--red); color: #fff; }

.icon { width: 20px; height: 20px; flex: none; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: var(--r-md); }

.skip-link {
  position: fixed; left: var(--s-200); top: var(--s-200); z-index: 200;
  padding: var(--s-75) var(--s-100); background: var(--red); color: #fff; border-radius: var(--r-lg);
  transform: translateY(-200%); transition: transform 300ms var(--ease);
}
.skip-link:focus { transform: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.center { display: flex; justify-content: center; margin-top: var(--s-600); }
.br-lg { display: none; }
@media (min-width: 900px) { .br-lg { display: inline; } }

/* ---------- Text styles ---------- */
.heading-1 { font-size: 36px; line-height: 40px; font-weight: 600; letter-spacing: -0.02em; }
.heading-2 { font-size: 30px; line-height: 36px; font-weight: 600; letter-spacing: -0.02em; }
.heading-5 { font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -0.01em; }
.heading-6 { font-size: 18px; line-height: 28px; font-weight: 600; letter-spacing: -0.01em; }
@media (min-width: 768px) {
  .heading-1 { font-size: 48px; line-height: 48px; }
  .heading-2 { font-size: 36px; line-height: 40px; }
  .heading-5 { font-size: 24px; line-height: 32px; }
  .heading-6 { font-size: 20px; line-height: 28px; }
}
@media (min-width: 1100px) {
  .heading-1 { font-size: 60px; line-height: 60px; }
  .heading-2 { font-size: 48px; line-height: 48px; }
}
.title-1 { font-size: 20px; line-height: 28px; font-weight: 500; }
.title-2 { font-size: 18px; line-height: 28px; font-weight: 500; }
.title-3 { font-size: 16px; line-height: 24px; font-weight: 500; }
.caption-3 { font-size: 12px; line-height: 16px; font-weight: 600; }
.caption-4 { font-size: 12px; line-height: 16px; font-weight: 500; }
.caption-5 { font-size: 12px; line-height: 16px; font-weight: 400; }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-75);
  font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--red);
  margin-bottom: var(--s-200);
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; border-radius: 2px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(227, 6, 19, 0.25); }

/* ---------- Buttons ---------- */
.btn {
  --pad-y: var(--s-75); --pad-x: var(--s-100);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-75);
  padding: var(--pad-y) var(--pad-x);
  border-radius: var(--r-full);
  font-weight: 600; white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color 300ms var(--ease), color 300ms var(--ease), border-color 300ms var(--ease), transform 300ms var(--ease);
}
.btn .icon { width: 18px; height: 18px; transition: transform 500ms var(--ease); }
.btn:hover .icon[class] { transform: translateX(2px); }
.btn:active { transform: scale(0.98); }
.btn--sm { font-size: 14px; line-height: 20px; --pad-x: var(--s-200); }
.btn--md { font-size: 16px; line-height: 24px; --pad-y: var(--s-100); --pad-x: var(--s-300); }
.btn--lg { font-size: 16px; line-height: 24px; --pad-y: var(--s-200); --pad-x: var(--s-400); }
.btn--block { width: 100%; }
.btn--primary { background: var(--red); color: var(--red-ink); }
.btn--primary:hover { background: var(--red-hover); }
.btn--glass { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2); color: #fff; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn--glass:hover { background: rgba(255, 255, 255, 0.18); }
.btn--ghost { border-color: var(--line-2); color: #fff; }
.btn--ghost:hover { background: var(--surface-2); border-color: rgba(255, 255, 255, 0.24); }
.btn--outline { border-color: var(--line-2); color: #fff; }
.btn--outline:hover { border-color: var(--red); background: rgba(227, 6, 19, 0.08); }
.btn--dark { background: #000; color: #fff; }
.btn--dark:hover { background: var(--surface-2); }
.btn--light { background: #fff; color: #000; }
.btn--light:hover { background: #ececec; }
.btn--ghost-light { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.btn--ghost-light:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: var(--s-100) 0 auto; z-index: 100;
  padding: 0 var(--s-100);
  pointer-events: none;
}
.header__bar {
  pointer-events: auto;
  max-width: var(--container); margin: 0 auto;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-300);
  padding: 0 var(--s-100) 0 var(--s-300);
  border-radius: var(--r-full);
  border: 1px solid transparent;
  transition: background-color 500ms var(--ease), border-color 500ms var(--ease), transform 500ms var(--ease);
}
.header.is-scrolled .header__bar {
  background: rgba(19, 19, 19, 0.72);
  border-color: var(--line);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.header__logo img { width: 110px; height: auto; }
.header__nav { display: none; gap: var(--s-50); }
.header__nav a {
  position: relative; padding: var(--s-75) var(--s-100); border-radius: var(--r-full);
  font-size: 14px; line-height: 20px; font-weight: 500; color: var(--text-2);
  transition: color 300ms var(--ease), background-color 300ms var(--ease);
}
.header__nav a:hover { color: #fff; }
.header__nav a.is-current { color: #fff; background: rgba(255, 255, 255, 0.08); }
.header__actions { display: flex; align-items: center; gap: var(--s-100); }
.header__phone { display: none; align-items: center; gap: var(--s-75); font-size: 14px; line-height: 20px; font-weight: 600; padding: var(--s-75) var(--s-100); border-radius: var(--r-full); transition: background-color 300ms var(--ease); }
.header__phone:hover { background: rgba(255, 255, 255, 0.08); }
.header__phone .icon { width: 18px; height: 18px; color: var(--red); }
.header__actions .btn--sm { display: none; }

.burger { position: relative; width: 48px; height: 48px; border-radius: var(--r-full); background: rgba(255, 255, 255, 0.08); }
.burger span { position: absolute; left: 15px; width: 18px; height: 2px; border-radius: 2px; background: #fff; transition: transform 500ms var(--ease); }
.burger span:first-child { top: 19px; }
.burger span:last-child { top: 27px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (min-width: 640px) {
  .header__actions .btn--sm { display: inline-flex; }
}
@media (min-width: 1100px) {
  .header__nav { display: flex; }
  .header__phone { display: inline-flex; }
  .burger { display: none; }
}

.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + var(--s-600)) var(--gutter) var(--s-400);
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  opacity: 0; visibility: hidden;
  transition: opacity 500ms var(--ease), visibility 0s linear 500ms;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transition: opacity 500ms var(--ease); }
.mobile-menu__nav { display: flex; flex-direction: column; }
.mobile-menu__nav a {
  font-size: 30px; line-height: 36px; font-weight: 600; letter-spacing: -0.02em;
  padding: var(--s-100) 0; border-bottom: 1px solid var(--line);
}
.mobile-menu__nav a, .mobile-menu__foot { opacity: 0; transform: translateY(24px); transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
.mobile-menu.is-open .mobile-menu__nav a, .mobile-menu.is-open .mobile-menu__foot { opacity: 1; transform: none; }
.mobile-menu__foot { display: grid; gap: var(--s-100); }
.mobile-menu__foot p { color: var(--text-3); text-align: center; margin-top: var(--s-75); }

/* ---------- Sections ---------- */
.section { padding: var(--s-800) 0; }
.section--alt { background: var(--surface); }
@media (min-width: 900px) { .section { padding: var(--s-900) 0 calc(var(--s-900) + var(--s-200)); } }
.section__head { max-width: 680px; margin-bottom: var(--s-600); }
.section__head--row { max-width: none; display: flex; flex-direction: column; gap: var(--s-300); }
@media (min-width: 900px) { .section__head--row { flex-direction: row; align-items: flex-end; justify-content: space-between; } .section__head--row > div:first-child { max-width: 560px; } }
.section__sub { margin-top: var(--s-200); font-size: 18px; line-height: 28px; color: var(--text-2); }
.section__sub a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--red); }
/* ---------- Footer ---------- */
.footer { padding: var(--s-800) 0 var(--s-400); border-top: 1px solid var(--line); background: var(--bg); }
.footer__top { display: grid; gap: var(--s-500); }
@media (min-width: 768px) { .footer__top { grid-template-columns: 1.4fr 1fr 1.4fr 1fr; gap: var(--s-400); } }
.footer__brand img { width: 160px; }
.footer__brand p { margin-top: var(--s-200); color: var(--text-2); max-width: 260px; }
.footer__nav, .footer__contact, .footer__cta { display: grid; align-content: start; gap: var(--s-100); font-size: 14px; line-height: 20px; color: var(--text-2); }
.footer .caption-3 { color: #fff; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: var(--s-75); }
.footer__nav a, .footer__contact a { transition: color 300ms var(--ease); width: fit-content; }
.footer__nav a:hover, .footer__contact a:hover { color: #fff; }
.footer__cta .btn { width: fit-content; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-200); margin-top: var(--s-700); padding-top: var(--s-300); border-top: 1px solid var(--line); font-size: 14px; line-height: 20px; color: var(--text-3); }
.footer__bottom a:hover { color: #fff; }

/* ---------- Mobile action bar ---------- */
.action-bar {
  position: fixed; left: var(--s-100); right: var(--s-100); bottom: calc(var(--s-100) + env(safe-area-inset-bottom)); z-index: 80;
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-75);
  padding: var(--s-75); border-radius: var(--r-full);
  background: rgba(19, 19, 19, 0.8); border: 1px solid var(--line);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  transform: translateY(160%); transition: transform 500ms var(--ease);
}
.action-bar.is-visible { transform: none; }
@media (min-width: 900px) { .action-bar { display: none; } }
@media (max-width: 899px) { .footer { padding-bottom: calc(var(--s-900) + env(safe-area-inset-bottom)); } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; }
  .reveal, .hero__inner > *, .mobile-menu__nav a, .mobile-menu__foot { transform: none !important; }
  .hero__media img { transform: none; animation: none; }
  .tagline__text .w { color: #fff; }
  .map__city .map__pulse, .map__sweep { display: none; }
  .svc:hover, .svc:hover .svc__media img, .work:hover img { transform: none; }
}
/* ---------- Mobile polish ---------- */
@media (max-width: 767px) {
  :root { --gutter: 16px; }
  /* Emergency strip is hidden on phones: the bottom action bar already offers Call Now */
  .emergency { display: none; }
}
/* ---------- Floating call button ---------- */
.call-fab {
  position: fixed; right: var(--s-400); bottom: var(--s-400); z-index: 85;
  display: none; place-items: center; width: 128px; height: 128px; border-radius: 50%;
  background: var(--red); color: #fff;
  box-shadow: 0 0 0 0 rgba(227, 6, 19, 0.5), 0 16px 48px rgba(227, 6, 19, 0.45);
  opacity: 0; transform: translateY(24px) scale(0.9); pointer-events: none;
  transition: opacity 500ms var(--ease), transform 500ms var(--ease), background-color 300ms var(--ease);
  animation: fabGlow 2600ms var(--ease) infinite;
}
@media (min-width: 900px) { .call-fab { display: grid; } }
.call-fab.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.call-fab:hover { background: var(--red-hover); }
.call-fab:active { transform: scale(0.96); }
.call-fab__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: fabSpin 18s linear infinite; }
.call-fab__ring text { fill: #fff; font-family: var(--font); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; }
.call-fab__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(0, 0, 0, 0.18); transition: transform 500ms var(--ease); }
.call-fab:hover .call-fab__icon { transform: rotate(-12deg) scale(1.08); }
.call-fab__icon .icon { width: 26px; height: 26px; }
@keyframes fabSpin { to { transform: rotate(360deg); } }
@keyframes fabGlow {
  0% { box-shadow: 0 0 0 0 rgba(227, 6, 19, 0.5), 0 16px 48px rgba(227, 6, 19, 0.45); }
  70% { box-shadow: 0 0 0 18px rgba(227, 6, 19, 0), 0 16px 48px rgba(227, 6, 19, 0.45); }
  100% { box-shadow: 0 0 0 0 rgba(227, 6, 19, 0), 0 16px 48px rgba(227, 6, 19, 0.45); }
}
@media (prefers-reduced-motion: reduce) { .call-fab, .call-fab__ring { animation: none; } }
.footer__dev a { text-decoration: underline; text-underline-offset: 3px; transition: color 300ms var(--ease); }
.footer__dev a:hover { color: #fff; }

/* ---------- WordPress ---------- */
.admin-bar .header { top: calc(32px + var(--s-100)); }
@media (max-width: 782px) { .admin-bar .header { top: calc(46px + var(--s-100)); } }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* Default page (page.php) */
.default-page { padding: calc(var(--header-h) + var(--s-800)) 0 var(--s-800); }
.default-page__box { max-width: 820px; color: var(--text-2); }
.default-page__box > * + * { margin-top: var(--s-200); }
.default-page__box h1 { color: #fff; margin-bottom: var(--s-400); }
.default-page__box h2, .default-page__box h3 { color: #fff; margin-top: var(--s-500); }
.default-page__box h2 { font-size: 24px; line-height: 32px; font-weight: 600; }
.default-page__box h3 { font-size: 20px; line-height: 28px; font-weight: 600; }
.default-page__box ul { list-style: disc; padding-left: var(--s-300); }
.default-page__box ol { list-style: decimal; padding-left: var(--s-300); }
.default-page__box a { color: #fff; text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; }

/* 404 */
.nf { min-height: 100svh; display: grid; place-content: center; justify-items: center; gap: 24px; text-align: center; padding: calc(var(--header-h) + 48px) 24px 48px; }
.nf img { width: 180px; }
.nf p { color: var(--text-2); max-width: 420px; }
.nf__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
