/* Biggs Electric — shared styles (Tailwind handles most layout) */
:root {
  --navy: #102a56;
  --navy-deep: #0a1c3a;
  --navy-ink: #071427;
  --gold: #c9922a;
  --gold-soft: #e8c56b;
  --cream: #f8f6f1;
  --cream-dark: #efe8d8;
}

html { scroll-behavior: smooth; }

body {
  font-family: Outfit, system-ui, sans-serif;
  background: var(--cream);
  color: #2c3340;
}

h1, h2, h3, h4, .font-serif {
  font-family: Newsreader, Georgia, serif;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: #102a56;
  color: #fff;
}
.skip-link:focus { left: 0.75rem; top: 0.75rem; }

/* Card hover */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(16, 42, 86, 0.12);
  border-color: #e8c56b;
}

/* Hero */
.hero-gradient {
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(232, 197, 107, 0.28), transparent 50%),
    radial-gradient(900px 400px at 100% 0%, rgba(16, 42, 86, 0.10), transparent 45%),
    linear-gradient(160deg, #fbfaf6 0%, #eef2f8 45%, #f6edd6 100%);
}

.pattern-grid {
  background-image:
    linear-gradient(rgba(16, 42, 86, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 42, 86, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
}

.icon-tile {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: linear-gradient(135deg, #102a56 0%, #1d4a8c 100%);
  color: #e8c56b;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15);
}

.icon-tile.gold {
  background: linear-gradient(135deg, #c9922a 0%, #e0b14a 100%);
  color: #102a56;
}

/* Services dropdown */
.nav-drop { position: relative; }
.nav-drop-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 50%;
  transform: translateX(-50%);
  min-width: 17rem;
  background: #fff;
  border: 1px solid #e6e0d4;
  border-radius: 0.9rem;
  box-shadow: 0 16px 40px rgba(16, 42, 86, 0.12);
  padding: 0.5rem;
  z-index: 60;
}
.nav-drop:hover .nav-drop-menu,
.nav-drop:focus-within .nav-drop-menu { display: block; }
.nav-drop-menu a {
  display: block;
  padding: 0.55rem 0.8rem;
  border-radius: 0.55rem;
  color: #102a56;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-drop-menu a:hover,
.nav-drop-menu a:focus { background: #f8f6f1; color: #102a56; }

/* Mobile drawer */
.mobile-panel {
  display: none;
  border-top: 1px solid #e6e0d4;
  background: #fff;
}
.mobile-panel.open { display: block; }

/* FAQ chevron */
details.faq > summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
}
details.faq > summary::-webkit-details-marker { display: none; }
details.faq > summary::after {
  content: "\f078";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: #c9922a;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
details.faq[open] > summary::after { transform: rotate(180deg); }

/* Process line */
.process-line {
  position: relative;
}
@media (min-width: 768px) {
  .process-line::before {
    content: "";
    position: absolute;
    top: 2rem;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4c4a0, transparent);
    z-index: 0;
  }
}

/* Sticky mobile call */
.sticky-call {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: #102a56;
  color: #fff;
  font-weight: 650;
  letter-spacing: 0.01em;
  padding: 0.9rem 1rem;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(16, 42, 86, 0.35);
  text-decoration: none;
}
.sticky-call:hover { background: #1a3c73; color: #fff; }
@media (min-width: 768px) {
  .sticky-call { display: none; }
}

/* Keep page content clear of the sticky button */
@media (max-width: 767px) {
  body { padding-bottom: 5.5rem; }
}

/* Form focus */
input:focus, select:focus, textarea:focus {
  outline: 2px solid #c9922a;
  outline-offset: 1px;
  border-color: #c9922a;
}

/* Gold rule */
.gold-rule {
  width: 3.5rem;
  height: 3px;
  background: linear-gradient(90deg, #c9922a, #e8c56b);
  border-radius: 99px;
}

.service-hero-art {
  background:
    radial-gradient(circle at 80% 20%, rgba(232, 197, 107, 0.45), transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(16, 42, 86, 0.18), transparent 45%),
    linear-gradient(145deg, #102a56 0%, #1a3c73 55%, #16325f 100%);
}

/* Placeholder review block is visually reserved but clearly unfinished */
.review-placeholder {
  border: 1px dashed #c8b896;
  background: repeating-linear-gradient(
    -45deg,
    #fbfaf6,
    #fbfaf6 8px,
    #f3eedf 8px,
    #f3eedf 16px
  );
}

/* Sister company referral — slim, tasteful, every page */
.sister-banner {
  background: #0a1c3a;
  color: #efe8d8;
  border-top: 1px solid rgba(232, 197, 107, 0.35);
}
.sister-banner a.sister-link {
  color: #e8c56b;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 197, 107, 0.45);
}
.sister-banner a.sister-link:hover,
.sister-banner a.sister-link:focus {
  color: #fff;
  border-bottom-color: #fff;
}
.sister-star {
  color: #e8c56b;
}

/* Remodel Bundle callout */
.bundle-callout {
  background:
    radial-gradient(800px 280px at 100% 0%, rgba(232, 197, 107, 0.22), transparent 55%),
    linear-gradient(135deg, #102a56 0%, #16325f 100%);
  color: #f8f6f1;
  border-radius: 1.25rem;
  box-shadow: 0 16px 40px rgba(16, 42, 86, 0.18);
}
.bundle-callout h2,
.bundle-callout h3 { color: #fff; }

/* Breadcrumb */
.crumbs a { color: #1a3c73; }
.crumbs a:hover { color: #c9922a; }

/* Home services picture menu */
.svc-tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 1rem;
  aspect-ratio: 3 / 4;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 8px 24px rgba(16, 42, 86, 0.12);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.svc-tile:focus-visible {
  outline: 3px solid #c9922a;
  outline-offset: 3px;
}
.svc-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.55s ease;
}
.svc-tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 20, 39, 0.9) 0%, rgba(7, 20, 39, 0.48) 42%, rgba(7, 20, 39, 0.08) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.7rem 0.75rem 0.8rem;
  pointer-events: none;
}
.svc-tile h3 {
  font-family: Newsreader, Georgia, serif;
  font-size: 0.98rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin: 0 0 0.2rem;
}
.svc-tile p {
  margin: 0;
  font-size: 0.75rem;
  color: rgba(248, 246, 241, 0.92);
  line-height: 1.35;
}
@media (min-width: 768px) {
  .svc-tile {
    border-radius: 1.15rem;
    aspect-ratio: 4 / 3;
  }
  .svc-tile-overlay { padding: 1.15rem 1.2rem 1.25rem; }
  .svc-tile h3 { font-size: 1.3rem; }
  .svc-tile p { font-size: 0.875rem; }
  .svc-tile:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(16, 42, 86, 0.2);
  }
  .svc-tile:hover img { transform: scale(1.08); }
}

/* Big Caulk sister-company badge — top-right, just below the fixed header */
.sister-badge {
  position: fixed;
  top: calc(4.25rem + 0.55rem);
  right: 0.85rem;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: calc(100vw - 1.7rem);
  padding: 0.38rem 0.7rem 0.38rem 0.55rem;
  border-radius: 999px;
  background: #fff;
  color: #102a56;
  border: 1px solid #e8c56b;
  box-shadow: 0 6px 18px rgba(16, 42, 86, 0.16);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.01em;
  line-height: 1.2;
  overflow: hidden;
  isolation: isolate;
  animation: sister-pulse 1.15s ease-out 0.35s 1 both;
}
.sister-badge:hover,
.sister-badge:focus-visible {
  background: #fbf6ea;
  color: #102a56;
  border-color: #c9922a;
}
.sister-badge:focus-visible {
  outline: 3px solid #c9922a;
  outline-offset: 2px;
}
.sister-badge .sister-badge-star {
  color: #c9922a;
  font-size: 0.8rem;
  flex-shrink: 0;
}
.sister-badge-full { display: none; }
.sister-badge-short { display: inline; }
.sister-badge-ext { display: none; font-size: 0.65rem; color: #a6761f; }
.sister-badge::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: sister-shine 1.05s ease-out 0.55s 1 both;
  pointer-events: none;
}
@keyframes sister-pulse {
  0% { transform: scale(0.96); box-shadow: 0 4px 12px rgba(16, 42, 86, 0.12); }
  50% { transform: scale(1.045); box-shadow: 0 8px 24px rgba(201, 146, 42, 0.38); }
  100% { transform: scale(1); box-shadow: 0 6px 18px rgba(16, 42, 86, 0.16); }
}
@keyframes sister-shine {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}
@media (min-width: 768px) {
  .sister-badge {
    right: 1.15rem;
    top: calc(4.25rem + 0.65rem);
    padding: 0.45rem 0.9rem 0.45rem 0.7rem;
    font-size: 0.8125rem;
    gap: 0.45rem;
  }
  .sister-badge-full { display: inline; }
  .sister-badge-short { display: none; }
  .sister-badge-ext { display: inline; }
}
@media (prefers-reduced-motion: reduce) {
  .sister-badge,
  .sister-badge::after { animation: none; }
}
