/* MB Murphy Electrical: brand layer on top of Tailwind (Play CDN) */
:root {
  --navy: #000033;
  --ink: #000021;
  --royal: #283792;
  --lime: #7DBA41;
}
body { font-family: 'Inter', system-ui, sans-serif; }
.font-display { font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif; }
html { scroll-padding-top: 6rem; }

/* Fluid type scale */
.text-fluid-hero { font-size: clamp(3rem, 7.2vw + 0.5rem, 7rem); }
.text-fluid-xl { font-size: clamp(2.75rem, 5.5vw + 0.5rem, 5.5rem); }
.text-fluid-lg { font-size: clamp(2.4rem, 3.6vw + 0.75rem, 4.25rem); }
.text-fluid-md { font-size: clamp(1.75rem, 2.2vw + 0.75rem, 3rem); }

.eyebrow {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 0.75rem;
}
.eyebrow::before { content: ''; width: 2rem; height: 3px; background: currentColor; }

/* Logo-derived shapes: quarter circle like the green "MB" panel */
.arc { border-top-left-radius: 100%; }
.arc-r { border-top-right-radius: 100%; border-bottom-left-radius: 100%; }

/* Header */
#site-header { background: rgba(0, 0, 33, 0.35); }
#site-header.is-scrolled, body.overflow-hidden #site-header {
  background: rgba(0, 0, 33, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.6);
}
.nav-link {
  position: relative; padding: 0.5rem 0.85rem; color: rgba(255, 255, 255, 0.85);
  font-weight: 500; font-size: 0.95rem; border-radius: 9999px; transition: color .2s;
}
.nav-link::after {
  content: ''; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.2rem; height: 2px;
  background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav-link:hover, .nav-link[aria-current="page"] { color: #fff; }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }

/* Buttons */
.btn-primary, .btn-dark, .btn-ghost, .btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  border-radius: 9999px; font-weight: 600; padding: 1rem 1.75rem; min-height: 3.25rem;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn-primary { background: var(--lime); color: var(--navy); box-shadow: 0 12px 30px -12px rgba(125, 186, 65, .8); }
.btn-primary:hover { transform: translateY(-2px); background: #8fcb52; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { transform: translateY(-2px); background: var(--royal); }
.btn-ghost { border: 1px solid rgba(255, 255, 255, .35); color: #fff; backdrop-filter: blur(6px); }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-outline { border: 1.5px solid rgba(40, 55, 146, .3); color: var(--navy); }
.btn-outline:hover { border-color: var(--royal); background: var(--royal); color: #fff; }

.chip {
  display: inline-flex; padding: 0.3rem 0.8rem; border-radius: 9999px; font-size: 0.8rem; font-weight: 500;
  background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .85); border: 1px solid rgba(255, 255, 255, .15);
}
.card-hover { transition: transform .35s ease, box-shadow .35s ease, background-color .3s ease; }
.card-hover:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -24px rgba(0, 0, 51, .45); }

/* Forms */
.field { display: block; }
.field > span { display: block; font-size: .875rem; font-weight: 600; color: var(--navy); margin-bottom: .4rem; }
.field input, .field textarea, .field select {
  width: 100%; border-radius: .8rem; border: 1.5px solid #d5dae8; background: #fff;
  padding: .85rem 1rem; font-size: 1rem; color: #0b1030; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--royal); box-shadow: 0 0 0 4px rgba(40, 55, 146, .15);
}
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.grecaptcha-badge { visibility: hidden; }

/* Carousel */
[data-carousel] .slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease, visibility .6s; }
[data-carousel] .slide.is-active { opacity: 1; visibility: visible; transform: none; }
.dot { width: .65rem; height: .65rem; border-radius: 9999px; background: rgba(255, 255, 255, .3); transition: all .3s; }
.dot[aria-current="true"] { width: 2rem; background: var(--lime); }

/* Motion */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-visible { opacity: 1; transform: none; }
.hero-zoom { animation: heroZoom 18s ease-out both; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.pulse-dot { animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(125, 186, 65, .7); } 70% { box-shadow: 0 0 0 10px rgba(125, 186, 65, 0); } 100% { box-shadow: 0 0 0 0 rgba(125, 186, 65, 0); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
