@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&family=DM+Serif+Display:ital@0;1&display=swap');

:root {
  --premium-sky-1: #f5faff;
  --premium-sky-2: #e7f2ff;
  --premium-sky-3: #d3e8ff;
  --premium-blue-1: #4f8ef7;
  --premium-blue-2: #2a63d6;
  --premium-blue-3: #1949a2;
  --premium-navy-1: #102d5b;
  --premium-navy-2: #0a1f43;
  --premium-ink: #122d52;
  --premium-card-line: rgba(63, 124, 228, 0.24);
  --premium-card-glow: 0 22px 46px rgba(16, 49, 105, 0.14);
}

html, body {
  overflow-x: clip;
}

body {
  font-family: 'Manrope', sans-serif !important;
  color: var(--premium-ink);
  background:
    radial-gradient(880px 460px at 5% -4%, rgba(145, 202, 255, 0.32), transparent 62%),
    radial-gradient(760px 420px at 98% 0%, rgba(53, 108, 224, 0.26), transparent 58%),
    linear-gradient(180deg, var(--premium-sky-1) 0%, var(--premium-sky-2) 48%, var(--premium-sky-3) 100%) !important;
}

body::before {
  content: "";
  position: fixed;
  inset: auto -28% -38% -28%;
  height: 56vh;
  background:
    radial-gradient(circle at 28% 50%, rgba(132, 186, 255, 0.34), transparent 58%),
    radial-gradient(circle at 72% 62%, rgba(38, 94, 211, 0.22), transparent 60%);
  filter: blur(42px);
  pointer-events: none;
  z-index: -1;
  animation: premiumFloat 14s ease-in-out infinite alternate;
}

@keyframes premiumFloat {
  from { transform: translateY(0) scale(1); }
  to { transform: translateY(-18px) scale(1.04); }
}

h1,
h2,
h3,
h4,
.logo-text {
  font-family: 'DM Serif Display', serif !important;
  letter-spacing: -0.01em;
}

.topbar {
  background:
    linear-gradient(120deg, rgba(16, 45, 91, 0.96), rgba(31, 78, 161, 0.95)) !important;
  border-bottom: 1px solid rgba(145, 194, 255, 0.26) !important;
  box-shadow: 0 10px 22px rgba(10, 28, 62, 0.22);
}

nav {
  background:
    linear-gradient(125deg, rgba(8, 24, 52, 0.92), rgba(19, 55, 114, 0.9)) !important;
  border-bottom: 1px solid rgba(144, 195, 255, 0.22) !important;
  backdrop-filter: blur(14px);
  transition: background .28s ease, box-shadow .28s ease, border-color .28s ease;
}

nav.is-scrolled {
  background:
    linear-gradient(125deg, rgba(8, 24, 52, 0.98), rgba(16, 49, 103, 0.95)) !important;
  box-shadow: 0 14px 28px rgba(6, 20, 47, 0.36);
  border-bottom-color: rgba(126, 180, 250, 0.42) !important;
}

.logo img {
  border-color: rgba(151, 199, 255, 0.55) !important;
  box-shadow: 0 10px 22px rgba(11, 33, 71, 0.3);
}

.logo-text {
  color: #f4f8ff !important;
}

.logo-text span {
  color: #97ccff !important;
}

.menu a {
  color: #deebff !important;
  font-weight: 700;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}

.menu a::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(106, 165, 255, 0.2), rgba(62, 120, 234, 0.3));
  opacity: 0;
  transition: opacity .2s ease;
}

.menu a:hover::before,
.menu a.active::before,
.menu a[aria-current="page"]::before {
  opacity: 1;
}

.menu a:hover,
.menu a.active,
.menu a[aria-current="page"] {
  color: #ffffff !important;
  transform: translateY(-1px);
}

.menu-item-services > a::after {
  color: #a8d1ff;
}

.services-dropdown {
  background: linear-gradient(180deg, #f7fbff 0%, #eef6ff 100%) !important;
  border-color: #cee2ff !important;
  box-shadow: 0 20px 42px rgba(10, 36, 80, 0.25) !important;
}

.services-dropdown a {
  background: #ffffff !important;
  border: 1px solid #d9e9ff !important;
  color: #1a4a97 !important;
  box-shadow: 0 8px 18px rgba(16, 58, 126, 0.08);
}

.services-dropdown a:hover,
.services-dropdown a.active {
  background: #eaf3ff !important;
  border-color: #b8d4ff !important;
  color: #123a7a !important;
}

.hero,
.location-hero,
main .hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 22px !important;
  box-shadow: 0 24px 52px rgba(8, 31, 73, 0.22);
}

.hero::before,
.location-hero::before,
main .hero::before {
  content: "";
  position: absolute;
  inset: -30% -6% auto -6%;
  height: 70%;
  background:
    radial-gradient(circle at 20% 45%, rgba(151, 209, 255, 0.38), transparent 58%),
    radial-gradient(circle at 70% 20%, rgba(81, 138, 247, 0.22), transparent 52%);
  pointer-events: none;
  z-index: -1;
}

.hero h1,
.location-hero h1,
main .hero h1 {
  text-wrap: balance;
  letter-spacing: -0.015em;
  text-shadow: 0 12px 30px rgba(11, 31, 65, 0.36);
}

.section-title h2,
h1 {
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.section-title p,
.lead,
.hero p,
.card p,
.panel p,
.step p,
.location-card p,
.quote-card p {
  line-height: 1.75;
}

.card,
.panel,
.stat,
.step,
.location-card,
.video-card,
.quote-card,
.contact-info,
.form-wrap,
.cta,
.solar-calc-panel,
.solar-result-card,
article[class*="card"] {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 252, 255, 0.98)) !important;
  border: 1px solid var(--premium-card-line) !important;
  box-shadow: var(--premium-card-glow) !important;
  border-radius: 18px !important;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.card:hover,
.panel:hover,
.stat:hover,
.step:hover,
.location-card:hover,
.video-card:hover,
.quote-card:hover,
.contact-info:hover,
.form-wrap:hover,
.cta:hover,
.solar-calc-panel:hover,
.solar-result-card:hover,
article[class*="card"]:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 54px rgba(10, 39, 88, 0.2) !important;
  border-color: rgba(67, 132, 236, 0.36) !important;
}

.btn,
.btn-primary,
button,
input[type="submit"],
.location-book-btn,
a[class*="btn"],
.up-city-tile {
  border: 1px solid rgba(138, 186, 255, 0.45) !important;
  background: linear-gradient(135deg, var(--premium-blue-1), var(--premium-blue-2) 60%, var(--premium-blue-3)) !important;
  color: #ffffff !important;
  box-shadow: 0 14px 30px rgba(24, 71, 149, 0.32);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.btn:hover,
.btn-primary:hover,
button:hover,
input[type="submit"]:hover,
.location-book-btn:hover,
a[class*="btn"]:hover,
.up-city-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 36px rgba(16, 50, 112, 0.38);
  filter: saturate(1.06);
}

.location-chip,
.up-city-pill,
.up-city-subtitle {
  border-color: rgba(92, 152, 245, 0.34) !important;
  background: linear-gradient(145deg, #f7fbff, #e9f3ff) !important;
  color: #1d4f9f !important;
}

input,
select,
textarea {
  background: #fcfeff !important;
  border: 1px solid rgba(117, 166, 242, 0.34) !important;
  color: #133a73;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(65, 133, 234, 0.75) !important;
  box-shadow: 0 0 0 4px rgba(72, 140, 239, 0.18) !important;
  background: #ffffff !important;
}

footer,
.footer {
  position: relative;
  overflow: hidden;
}

footer::before,
.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(95, 156, 255, 0.14), transparent 42%);
  pointer-events: none;
}

@media (max-width: 860px) {
  body::before {
    filter: blur(34px);
    height: 44vh;
  }

  .menu a {
    padding: 0.5rem 0.72rem;
  }

  .hero,
  .location-hero,
  main .hero {
    border-radius: 16px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before {
    animation: none !important;
  }

  .card,
  .panel,
  .stat,
  .step,
  .location-card,
  .video-card,
  .quote-card,
  .contact-info,
  .form-wrap,
  .cta,
  .solar-calc-panel,
  .solar-result-card,
  article[class*="card"],
  .btn,
  .btn-primary,
  button,
  input[type="submit"],
  .location-book-btn,
  a[class*="btn"],
  .up-city-tile {
    transition: none !important;
  }
}

.mobile-drawer-panel {
  background:
    linear-gradient(180deg, #ffffff 0%, #eef6ff 100%) !important;
  border-left: 1px solid #cfe3ff !important;
  box-shadow: -14px 0 34px rgba(10, 37, 82, 0.24);
}

.mobile-drawer-head {
  background: #f7fbff !important;
  border-bottom: 1px solid #d8e8ff !important;
}

.mobile-drawer-menu a,
.mobile-services-toggle {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(183, 211, 251, 0.58);
  border-radius: 12px;
  margin: 0.25rem 0;
}

.mobile-drawer-menu a:hover,
.mobile-services-toggle:hover {
  background: #e9f3ff;
  color: #12407e;
}

.mobile-services-submenu {
  border-left: 2px solid rgba(80, 140, 240, 0.28);
}

.about-strip,
.location-cta,
.solar-calc-wrap,
.testimonial {
  border-color: rgba(109, 166, 245, 0.28) !important;
  box-shadow: 0 24px 46px rgba(12, 43, 93, 0.2) !important;
}

.location-card h3,
.card h3,
.step h3,
.panel h2,
.hero h2,
.hero h3 {
  color: #15458f !important;
}

.fact-label,
.section-title p,
.muted,
small,
label,
.contact-label {
  color: #335f99 !important;
}

.motion-progress {
  background: linear-gradient(90deg, #7ab8ff, #2a63d6 45%, #1949a2) !important;
  box-shadow: 0 6px 14px rgba(30, 87, 182, 0.35);
}

a {
  text-decoration-thickness: .08em;
  text-underline-offset: 0.14em;
}

a:hover {
  text-decoration-color: rgba(49, 119, 233, 0.66);
}
