/* ============================================================
   HD PAINTING & ROOFING - SHARED STYLESHEET
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:      #FF1A1A;
  --red-dk:   #CC0000;
  --black:    #000000;
  --dark:     #0A0A0A;
  --charcoal: #1A1A1A;
  --white:    #FFFFFF;
  --gray:     #F8F8F8;
  --border:   #E0E0E0;
  --text:     #111111;
  --muted:    #555555;
  --nav-h:    70px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Open Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Oswald', 'Barlow Condensed', sans-serif;
  line-height: 1.1;
  font-weight: 700;
}

a  { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul  { list-style: none; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── NAVIGATION ─────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  background: var(--black);
  border-bottom: 3px solid var(--red);
}

.site-nav.scrolled { box-shadow: 0 2px 18px rgba(0,0,0,.55); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.nav-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo-img {
  height: 52px;
  width: auto;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-menu a {
  color: rgba(255,255,255,.78);
  font-size: .88rem;
  font-weight: 500;
  padding: 8px 13px;
  border-radius: 3px;
  transition: color .18s, background .18s;
  letter-spacing: .1px;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--white);
  background: rgba(255,255,255,.06);
}

.nav-menu a.nav-cta {
  background: var(--red);
  color: var(--white);
  font-weight: 600;
  margin-left: 10px;
  padding: 9px 18px;
}

.nav-menu a.nav-cta:hover { background: var(--red-dk); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 23px;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
  transition: all .26s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  background: #141414;
  border-top: 1px solid rgba(255,255,255,.06);
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  color: rgba(255,255,255,.8);
  padding: 14px 24px;
  font-size: .93rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: background .15s;
}

.mobile-menu a:hover { background: rgba(255,255,255,.04); }

.mobile-menu .mob-cta {
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  text-align: center;
  margin: 14px 20px;
  border-radius: 3px;
  border: none;
  padding: 13px 20px;
}

/* ── FOOTER ─────────────────────────────────────────── */
.site-footer {
  background: var(--black);
  border-top: 3px solid var(--red);
  padding: 48px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.footer-brand-name {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-brand-name .hd { color: var(--red); }

.footer-brand p {
  font-size: .83rem;
  color: rgba(255,255,255,.4);
  line-height: 1.65;
  max-width: 220px;
}

.footer-col h4 {
  font-family: 'Oswald', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  margin-bottom: 14px;
}

.footer-col li { margin-bottom: 8px; }

.footer-col a {
  font-size: .85rem;
  color: rgba(255,255,255,.55);
  transition: color .18s;
}

.footer-col a:hover { color: var(--white); }

.footer-contact-line {
  margin-bottom: 8px;
  font-size: .85rem;
  color: rgba(255,255,255,.55);
}

.footer-contact-line a { color: rgba(255,255,255,.55); transition: color .18s; }
.footer-contact-line a:hover { color: var(--white); }
.footer-contact-line small { color: rgba(255,255,255,.28); font-size: .78rem; margin-left: 4px; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
}

.footer-bottom p { font-size: .78rem; color: rgba(255,255,255,.28); }

/* ── BUTTONS ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 3px;
  font-family: 'Oswald', sans-serif;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  transition: background .18s, border-color .18s, transform .15s;
  border: 2px solid transparent;
  cursor: pointer;
  line-height: 1;
  white-space: nowrap;
}

.btn-red   { background: var(--red);  color: var(--white); border-color: var(--red);  }
.btn-red:hover { background: var(--red-dk); border-color: var(--red-dk); }

.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.4); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.05); }

.btn-dark { background: var(--dark); color: var(--white); border-color: var(--dark); }
.btn-dark:hover { background: var(--charcoal); border-color: var(--charcoal); }

/* ── SECTION SYSTEM ─────────────────────────────────── */
.section { padding: 80px 0; }
.section-sm { padding: 56px 0; }
.section-dark { background: var(--dark); }
.section-black { background: var(--black); }
.section-gray { background: var(--gray); }
.section-red { background: var(--red); }

.eyebrow {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}

.eyebrow-light { color: rgba(255,255,255,.5); }

.section-title {
  font-size: clamp(1.9rem, 3.5vw, 2.7rem);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--dark);
  letter-spacing: .3px;
  margin-bottom: 12px;
}

.section-title-light { color: var(--white); }

.section-sub {
  font-size: .96rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 500px;
}

.section-sub-light { color: rgba(255,255,255,.6); }

.section-hd { margin-bottom: 44px; }

/* ── TRUST BAR ──────────────────────────────────────── */
.trust-bar {
  background: var(--dark);
  border-bottom: 2px solid var(--red);
  padding: 15px 0;
}

.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 28px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,.78);
  font-size: .83rem;
  font-weight: 500;
  white-space: nowrap;
}

.trust-dot {
  width: 17px; height: 17px;
  background: var(--red);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.trust-dot svg {
  width: 9px; height: 9px;
  stroke: white; fill: none;
  stroke-width: 2.5;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ── PAGE HERO (inner pages) ────────────────────────── */
.page-hero {
  margin-top: var(--nav-h);
  background: var(--dark);
  padding: 72px 0 52px;
  border-bottom: 3px solid var(--red);
}

.page-hero-eyebrow {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}

.page-hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: .3px;
  margin-bottom: 12px;
}

.page-hero p {
  font-size: .96rem;
  color: rgba(255,255,255,.6);
  max-width: 520px;
  line-height: 1.72;
}

/* ── BEFORE / AFTER SLIDER ──────────────────────────── */
.ba-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  cursor: col-resize;
  user-select: none;
  -webkit-user-select: none;
  background: var(--dark);
}

.ba-img {
  position: absolute;
  inset: 0;
}

.ba-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.ba-before { z-index: 1; }

.ba-after {
  z-index: 2;
  clip-path: inset(0 50% 0 0);
}

.ba-tag {
  position: absolute;
  bottom: 12px;
  font-family: 'Oswald', sans-serif;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(0,0,0,.58);
  padding: 4px 10px;
  border-radius: 2px;
  pointer-events: none;
}

.ba-before .ba-tag { right: 12px; }
.ba-after  .ba-tag { left:  12px; }

.ba-line {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--white);
  transform: translateX(-50%);
  z-index: 3;
  pointer-events: none;
}

.ba-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42px; height: 42px;
  background: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.28);
  z-index: 4;
  pointer-events: none;
  color: var(--charcoal);
}

/* ── SERVICE CARDS ──────────────────────────────────── */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.svc-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 30px 24px;
  position: relative;
  overflow: hidden;
  transition: transform .22s, box-shadow .22s;
}

.svc-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .26s;
}

.svc-card:hover { transform: translateY(-5px); box-shadow: 0 14px 36px rgba(0,0,0,.09); }
.svc-card:hover::before { transform: scaleX(1); }

.svc-icon {
  width: 48px; height: 48px;
  background: rgba(192,57,43,.09);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}

.svc-icon svg { width: 24px; height: 24px; }

.svc-card h3 {
  font-size: 1.15rem;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 8px;
}

.svc-card p {
  font-size: .87rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 14px;
}

.svc-link {
  font-size: .82rem;
  font-weight: 600;
  color: var(--red);
  letter-spacing: .3px;
  text-transform: uppercase;
  transition: opacity .18s;
}

.svc-link:hover { opacity: .7; }

/* ── FADE ANIMATIONS ─────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease;
}

.fade-up.visible { opacity: 1; transform: translateY(0); }

.d1 { transition-delay: .08s; }
.d2 { transition-delay: .16s; }
.d3 { transition-delay: .24s; }
.d4 { transition-delay: .32s; }
.d5 { transition-delay: .40s; }
.d6 { transition-delay: .48s; }

/* ── CONTACT FORM ────────────────────────────────────── */
.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 5px;
  letter-spacing: .2px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  font-size: .92rem;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  transition: border-color .18s, box-shadow .18s;
  outline: none;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(192,57,43,.1);
}

.form-group textarea { min-height: 120px; resize: vertical; }

.form-submit {
  width: 100%;
  padding: 14px;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-family: 'Oswald', sans-serif;
  font-size: .98rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  cursor: pointer;
  transition: background .18s;
}

.form-submit:hover { background: var(--red-dk); }

.form-msg {
  display: none;
  background: #27ae60;
  color: var(--white);
  padding: 12px 16px;
  border-radius: 4px;
  font-size: .88rem;
  font-weight: 500;
  margin-top: 12px;
  text-align: center;
}

.form-note {
  font-size: .74rem;
  color: var(--muted);
  margin-top: 10px;
  text-align: center;
  line-height: 1.5;
}

/* ── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 920px) {
  .nav-menu   { display: none; }
  .hamburger  { display: flex; }
  .svc-grid   { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 600px) {
  .section    { padding: 56px 0; }
  .section-sm { padding: 40px 0; }
  .svc-grid   { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 6px; align-items: flex-start; }
  .btn        { width: 100%; justify-content: center; }
}

/* ==========================================================================
   Refine Revenue portfolio demonstration notice
   Fixed bottom bar. Deliberately placed at the bottom so it does not disturb
   the fixed .site-nav at top:0 or any of the var(--nav-h) offsets.
   ========================================================================== */
.rr-demo-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1200;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 18px;
  padding: 10px 20px;
  background: #13223a;
  border-top: 2px solid #4983ca;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, .28);
  font-family: 'Inter', 'Open Sans', sans-serif;
}

.rr-demo-text {
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

.rr-demo-text strong {
  color: #ffffff;
  font-weight: 600;
}

.rr-demo-link {
  flex-shrink: 0;
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 6px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s ease, border-color .2s ease;
}

.rr-demo-link:hover,
.rr-demo-link:focus-visible {
  background: #366195;
  border-color: #4983ca;
}

.rr-demo-link:focus-visible {
  outline: 2px solid #4983ca;
  outline-offset: 2px;
}

/* Keep the bar from covering the end of the page content. */
body { padding-bottom: 84px; }

@media (max-width: 640px) {
  .rr-demo-bar { padding: 9px 14px; gap: 5px 12px; }
  .rr-demo-text { font-size: 12px; }
  .rr-demo-link { font-size: 12px; padding: 5px 12px; }
  body { padding-bottom: 108px; }
}

/* The demo estimate form is inactive; make that unmistakable. */
.rr-demo-formnote {
  margin: 0 0 18px;
  padding: 12px 14px;
  background: #f4f7fc;
  border: 1px solid #cfdcef;
  border-left: 4px solid #366195;
  border-radius: 6px;
  color: #13223a;
  font-size: 14px;
  line-height: 1.5;
}

#contactForm[data-demo="true"] .form-submit {
  opacity: .55;
  cursor: not-allowed;
}
