/* =========================================================
   Bray Property Care Roofing — design system
   Brand: black / white with signature red (from logo & fleet livery)
   ========================================================= */

:root {
  --font-heading: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;

  --brand-red: #e2231a;
  --brand-red-dark: #b91b13;
  --brand-red-rgb: 226, 35, 26;
  --ink: #14161a;
  --ink-2: #1e2127;
  --paper: #ffffff;
  --offwhite: #f7f6f3;
  --muted: #5c6068;
  --muted-2: #8a8d93;
  --line: #e8e6e1;
  --gold: #f5a623;

  --heading-color: var(--ink);
  --default-color: #33363c;
  --background-color: #ffffff;
  --surface-color: #ffffff;
  --accent-color: var(--brand-red);
  --contrast-color: #ffffff;

  --nav-color: rgba(255, 255, 255, 0.92);
  --nav-hover-color: var(--brand-red);
  --nav-mobile-background-color: #ffffff;
  --nav-dropdown-background-color: #ffffff;
  --nav-dropdown-color: #212529;
  --nav-dropdown-hover-color: var(--brand-red);

  --radius-lg: 1rem;
  --radius-md: 0.65rem;
  --shadow-soft: 0 10px 30px -12px rgba(20, 22, 26, 0.18);
  --shadow-hover: 0 18px 40px -14px rgba(20, 22, 26, 0.28);

  scroll-behavior: smooth;
}

/* ===== Base ===== */
* { box-sizing: border-box; }

body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-red); text-decoration: none; transition: 0.25s; }
a:hover { color: var(--brand-red-dark); }

h1, h2, h3, h4, h5, h6 {
  color: var(--heading-color);
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.01em;
}

::selection { background: var(--brand-red); color: #fff; }

img { max-width: 100%; }

.text-red { color: var(--brand-red) !important; }
.text-accent { color: var(--brand-red) !important; }
.bg-brand { background-color: var(--brand-red) !important; }
.mt-0 { margin: 0; }

/* ===== Buttons ===== */
.btn { border-radius: 999px; font-weight: 600; padding: 0.7rem 1.5rem; transition: all 0.25s ease; }

.btn-danger,
.btn-brand {
  background-color: var(--brand-red);
  border-color: var(--brand-red);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(var(--brand-red-rgb), 0.6);
}
.btn-danger:hover,
.btn-brand:hover {
  background-color: var(--brand-red-dark);
  border-color: var(--brand-red-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -8px rgba(var(--brand-red-rgb), 0.65);
}

.btn-outline-dark {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}
.btn-outline-dark:hover { background: var(--ink); border-color: var(--ink); color: #fff; transform: translateY(-2px); }

.btn-outline-light { border-width: 2px; }
.btn-outline-light:hover { background: #fff; color: var(--ink); transform: translateY(-2px); }

.btn-lg { padding: 0.9rem 2rem; font-size: 1.05rem; }

/* ===== Top utility bar ===== */
.topbar {
  background: var(--ink);
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  padding: 7px 0;
}
.topbar a { color: #fff; }
.topbar a:hover { color: var(--brand-red); }
.topbar .topbar-sep { color: rgba(255,255,255,0.25); margin: 0 .6rem; }
.topbar i { color: var(--brand-red); margin-right: 4px; }

/* ===== Header ===== */
.header {
  --background-color: #ffffff;
  --heading-color: #ffffff;
  --contrast-color: #ffffff;
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 10px 0;
  transition: all 0.3s;
  z-index: 997;
  position: sticky;
  top: 0;
}

.header .logo { line-height: 1; }
.header .logo img { max-height: 60px !important; margin-right: 8px; }

.logo-img { width: 14em; height: auto; max-width: 100%; }

.header .logo h1 { font-size: 32px; margin: 0; font-weight: 700; color: var(--heading-color); }
.header .logo span { color: var(--accent-color); font-size: 32px; }

.scrolled .header { box-shadow: 0 4px 24px rgba(0,0,0,0.08); }

.index-page .header { --background-color: #ffffff; }

.header {
  position: sticky;
  z-index: 99999;
}
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.96);
  z-index: -1;
  border-bottom: 1px solid var(--line);
}

.navbar-nav .nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink) !important;
  padding: 0.6rem 1rem !important;
  transition: 0.2s;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: var(--brand-red) !important; }

.dropdown-menu {
  z-index: 99999 !important;
  border: none;
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius-md);
  padding: 0.5rem;
}
.dropdown-item { border-radius: 0.5rem; padding: 0.55rem 0.9rem; font-weight: 500; }
.dropdown-item:hover, .dropdown-item.active { background: var(--offwhite); color: var(--brand-red) !important; }

.header-cta { display: flex; align-items: center; gap: 0.6rem; }
.header-cta .btn { white-space: nowrap; }
.header-phone {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.header-phone i { color: var(--brand-red); font-size: 1.2rem; }
.header-phone:hover { color: var(--brand-red); }

/* ===== Mobile sticky CTA bar ===== */
.mobile-cta-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 99998;
  display: none;
  background: var(--ink);
  box-shadow: 0 -6px 24px rgba(0,0,0,0.25);
}
.mobile-cta-bar .row { --bs-gutter-x: 0; }
.mobile-cta-bar a {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
}
.mobile-cta-bar a.call { background: var(--brand-red); }
.mobile-cta-bar a.quote { background: var(--ink-2); }
.mobile-cta-bar i { font-size: 1.1rem; }

@media (max-width: 767px) {
  .mobile-cta-bar { display: block; }
  body { padding-bottom: 58px; }
}

/* ===== Hero (homepage) ===== */
.hero-home {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: clip;
}
.hero-home .hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-home .hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,11,13,0.75) 0%, rgba(10,11,13,0.72) 40%, rgba(10,11,13,0.92) 100%);
}
.hero-home .container { position: relative; z-index: 2; }

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(var(--brand-red-rgb), 0.16);
  border: 1px solid rgba(var(--brand-red-rgb), 0.5);
  color: #ffb3ae;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.hero-kicker i { color: var(--brand-red); }

.hero-home h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 1.1rem;
}
.hero-home h1 span { color: var(--brand-red); }

.hero-home .lead {
  color: rgba(255,255,255,0.85);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  max-width: 640px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  margin-top: 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-trust .item { display: flex; align-items: center; gap: 0.6rem; color: rgba(255,255,255,0.9); font-size: 0.92rem; font-weight: 500; }
.hero-trust .item i { color: var(--brand-red); font-size: 1.35rem; }

/* ===== Inner page banner ===== */
.page-banner {
  position: relative;
  padding: 130px 0 70px;
  color: #fff;
  overflow: clip;
}
.page-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.page-banner .overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(10,11,13,0.78) 0%, rgba(10,11,13,0.68) 60%, rgba(10,11,13,0.88) 100%);
}
.page-banner .container { position: relative; z-index: 2; }
.page-banner .breadcrumb { justify-content: center; margin-bottom: 0.75rem; }
.page-banner .breadcrumb a { color: rgba(255,255,255,0.75); }
.page-banner .breadcrumb .active { color: #fff; }
.page-banner .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.45); }
.page-banner h1 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 800; }
.page-banner p { color: rgba(255,255,255,0.82); font-size: 1.05rem; }

/* ===== Section framing ===== */
section, .section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 5.5rem 0;
  scroll-margin-top: 90px;
  overflow: clip;
}
.section-alt { background-color: var(--offwhite); }
.section-dark { background-color: var(--ink); color: rgba(255,255,255,0.85); }
.section-dark h2, .section-dark h3 { color: #fff; }

@media (max-width: 991px) {
  section, .section { padding: 3.75rem 0; }
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-red);
  margin-bottom: 0.6rem;
}
.kicker::before { content: ""; width: 26px; height: 3px; background: var(--brand-red); display: inline-block; border-radius: 2px; }

.section-title { padding-bottom: 2.5rem; }
.section-title h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
  margin: 0 0 0.75rem;
}
.section-title p { color: var(--muted); font-size: 1.05rem; margin: 0; max-width: 720px; }
.section-title.text-center p { margin-inline: auto; }

/* ===== About / intro section ===== */
.trust-tiles .tile {
  padding: 1.75rem 1.25rem;
  border-radius: var(--radius-lg);
  height: 100%;
  background: var(--offwhite);
  border: 1px solid var(--line);
  transition: 0.25s;
}
.trust-tiles .tile:hover { border-color: rgba(var(--brand-red-rgb), 0.4); box-shadow: var(--shadow-soft); transform: translateY(-4px); }
.trust-tiles .tile .icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(var(--brand-red-rgb), 0.1);
  color: var(--brand-red);
  border-radius: 14px;
  font-size: 1.4rem;
  margin-bottom: 0.9rem;
}

/* ===== Process steps ===== */
.process-steps { counter-reset: step; }
.process-steps .step {
  position: relative;
  padding: 1.75rem 1.5rem 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  height: 100%;
}
.process-steps .step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
  background: var(--brand-red);
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.process-steps .step h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.process-steps .step p { font-size: 0.92rem; color: var(--muted); margin: 0; }

/* ===== Service cards ===== */
.svc-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
  transition: 0.3s ease;
  display: flex;
  flex-direction: column;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: transparent; }
.svc-card .svc-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.svc-card .svc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.svc-card:hover .svc-img img { transform: scale(1.06); }
.svc-card .svc-tag {
  position: absolute; top: 0.85rem; left: 0.85rem;
  background: var(--brand-red); color: #fff;
  font-family: var(--font-heading); font-weight: 700; font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.05em;
  padding: 0.3rem 0.7rem; border-radius: 999px;
}
.svc-card .card-body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
.svc-card .card-title { font-size: 1.15rem; margin-bottom: 0.6rem; }
.svc-card .card-text { color: var(--muted); font-size: 0.92rem; flex: 1; }
.svc-card .card-link { margin-top: 1rem; font-family: var(--font-heading); font-weight: 700; color: var(--ink); display: inline-flex; align-items: center; gap: 0.4rem; }
.svc-card .card-link i { transition: transform 0.25s; }
.svc-card:hover .card-link i { transform: translateX(4px); }
.svc-card .card-link:hover { color: var(--brand-red); }

/* ===== Service area chips ===== */
.area-chip-group { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.area-chip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
}
.area-card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  height: 100%;
}
.area-card h3 { font-size: 1.05rem; display: flex; align-items: center; gap: 0.5rem; }
.area-card h3 i { color: var(--brand-red); }

/* ===== Guarantee / CORC highlight ===== */
.guarantee-box {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.guarantee-box i { font-size: 2rem; color: var(--brand-red); flex-shrink: 0; }
.guarantee-box strong { color: #fff; }

/* ===== FAQ ===== */
.faq-accordion .accordion-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md) !important;
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.faq-accordion .accordion-button {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  padding: 1.1rem 1.4rem;
}
.faq-accordion .accordion-button:not(.collapsed) {
  background: var(--offwhite);
  color: var(--brand-red);
  box-shadow: none;
}
.faq-accordion .accordion-button:focus { box-shadow: none; border-color: var(--line); }
.faq-accordion .accordion-button::after { filter: none; }
.faq-accordion .accordion-body { padding: 0 1.4rem 1.25rem; color: var(--muted); }

/* ===== Contact section ===== */
.contact-card {
  background: #fff;
  color: var(--default-color);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  height: 100%;
}
.contact-card h2, .contact-card h3 { margin-bottom: 1rem; color: var(--ink); }
.contact-info-item { display: flex; gap: 0.9rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.contact-info-item:last-child { border-bottom: none; }
.contact-info-item i {
  width: 42px; height: 42px; flex-shrink: 0;
  background: rgba(var(--brand-red-rgb), 0.1); color: var(--brand-red);
  border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.15rem;
}
.contact-map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.contact-map iframe { display: block; width: 100%; height: 280px; border: 0; }

/* ===== Reviews ===== */
.reviews-summary { display: flex; align-items: center; gap: 0.75rem; justify-content: center; margin-bottom: 0.5rem; }
.reviews-summary .stars { color: var(--gold); font-size: 1.3rem; letter-spacing: 2px; }

/* ===== Legacy component compatibility ===== */
.about .content h3 { font-size: 1.75rem; font-weight: 700; }
.about .content .fst-italic { color: var(--muted); }
.about .content ul { list-style: none; padding: 0; }
.about .content ul li { padding: 10px 0 0 0; display: flex; }
.about .content ul i { color: var(--brand-red); margin-right: 0.5rem; line-height: 1.2; font-size: 1.25rem; }
.about .content p:last-child { margin-bottom: 0; }

.service-details .service-box {
  background-color: var(--surface-color);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.service-details h1 { font-size: 2rem; }
.service-details h2 { font-size: 1.7rem; }
.service-details h3 { font-size: 1.25rem; font-weight: 700; margin-top: 1.5rem; }
.service-details p { font-size: 1rem; color: var(--default-color); }

.icon-list { list-style: none; padding: 0; margin: 0; }
.icon-list li { display: flex; align-items: flex-start; gap: 0.6rem; padding: 0.4rem 0; }
.icon-list li i { color: var(--brand-red); margin-top: 0.2rem; }

/* ===== Footer ===== */
.footer {
  color: rgba(255,255,255,0.75);
  background-color: var(--ink);
  font-size: 15px;
  position: relative;
}
.footer .footer-top { padding: 4.5rem 0 2.5rem; }
.footer .footer-about .logo { line-height: 1; margin-bottom: 1rem; font-size: 1.6rem; }
.footer .footer-about .logo span.sitename { font-size: 26px; font-weight: 700; letter-spacing: 0.5px; font-family: var(--font-heading); color: #fff; }
.footer .footer-about p { font-size: 14px; color: rgba(255,255,255,0.65); }
.footer .footer-tagline { color: rgba(255,255,255,0.6); margin-top: 0.75rem; max-width: 320px; }

.footer h2.h4, .footer h4 {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  margin-bottom: 1.1rem;
}

.footer .footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer .footer-links ul li { padding: 8px 0; display: flex; align-items: center; }
.footer .footer-links ul i { margin-right: 8px; font-size: 12px; color: var(--brand-red); }
.footer .footer-links ul a { color: rgba(255,255,255,0.75); }
.footer .footer-links ul a:hover { color: var(--brand-red); }

.footer .footer-contact p { margin-bottom: 8px; color: rgba(255,255,255,0.75); }
.footer .footer-contact a { color: rgba(255,255,255,0.9); }
.footer .footer-contact a:hover { color: var(--brand-red); }
.footer .footer-contact strong { color: #fff; }

.footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.25rem 0;
  font-size: 13.5px;
  color: rgba(255,255,255,0.55);
}
.footer .footer-bottom a { color: rgba(255,255,255,0.75); }
.footer .footer-bottom a:hover { color: var(--brand-red); }

/* ===== Misc / carried over ===== */
.hero-services { height: 50vh !important; min-height: 50vh !important; }
.icon-box { color: #fff; }

/* thank-you */
.thankyou-icon {
  width: 84px; height: 84px; border-radius: 50%;
  background: rgba(var(--brand-red-rgb), 0.1); color: var(--brand-red);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem; margin: 0 auto 1.25rem;
}

@media (max-width: 768px) {
  .hero-home { min-height: 100svh; }
}
