:root {
  --bg: #f3f9ff;
  --text: #0f172a;
  --muted: #475569;
  --primary: #1d4ed8;
  --primary-dark: #1e40af;
  --primary-light: #60a5fa;
  --line: #bfdbfe;
  --card: #ffffff;
  --font: "Manrope", Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(243, 249, 255, 0.85);
  backdrop-filter: blur(10px);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text .brand-name { font-size: 17px; font-weight: 800; color: var(--text); }
.brand-text .brand-sub { font-size: 10px; font-weight: 700; color: var(--primary); letter-spacing: 0.6px; }

.nav {
  min-height: 76px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand img { height: 44px; display: block; }

.menu {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.menu a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.menu a:hover { color: var(--primary); }

.menu .dropdown {
  position: relative;
}

.menu .dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.menu .dropdown .caret {
  width: 9px;
  height: 9px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.15s ease;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
  padding: 10px;
  min-width: 250px;
  display: grid;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
  z-index: 30;
}

/* Hover-driven dropdown is desktop-only: a touchscreen can get "stuck" in a
   hover state after the first tap, which is what made the mobile menu feel
   like it needed two taps to open. Keyboard focus still works on touch. */
@media (hover: hover) and (pointer: fine) {
  .menu .dropdown:hover .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }

  .menu .dropdown:hover .caret {
    transform: rotate(180deg);
  }
}

.menu .dropdown:focus-within .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.menu .dropdown:focus-within .caret {
  transform: rotate(180deg);
}

.dropdown-panel a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}

.dropdown-panel a:hover {
  background: var(--bg);
  color: var(--primary);
}

.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  font-size: 15px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

.icon {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.15em;
  flex-shrink: 0;
}

.badge .icon, .nav-phone .icon, .call-strip a .icon { width: 15px; height: 15px; }
footer a .icon { width: 14px; height: 14px; margin-right: 4px; }

.hero {
  position: relative;
  padding: 70px 0 56px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -160px;
  right: -120px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(29, 78, 216, 0.16), rgba(29, 78, 216, 0) 70%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -200px;
  left: -160px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.14), rgba(96, 165, 250, 0) 70%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
  align-items: center;
}

h1 {
  margin: 0 0 14px;
  line-height: 1.08;
  font-size: clamp(30px, 4.6vw, 48px);
}

h1 .accent { color: var(--primary); }

.lead {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.hero-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.badge {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.cta {
  margin-top: 26px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  padding: 13px 20px;
  display: inline-block;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 10px 24px rgba(29, 78, 216, 0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(29, 78, 216, 0.34); }

.btn-light {
  color: var(--text);
  background: #fff;
  border-color: var(--line);
}
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08); }

.hero-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.hero-card h3 { margin-top: 0; }

.hero-card ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.hero-card li {
  margin-bottom: 12px;
  padding-left: 26px;
  position: relative;
  color: #1e293b;
}

.hero-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

section { padding: 54px 0; }

.section-title { margin: 0 0 8px; font-size: 30px; }
.section-subtitle { margin: 0 0 28px; color: var(--muted); }

/* Service tiles */
.tiles {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tile {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  text-decoration: none;
  color: var(--text);
  display: block;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.tile::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1);
  border-color: var(--primary-light);
}

.tile:hover::before { transform: scaleX(1); }

.tile-icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: #fff;
  box-shadow: 0 8px 18px rgba(29, 78, 216, 0.25);
}

.tile-icon .icon { width: 22px; height: 22px; stroke-width: 1.6; }

.tile h4 { margin: 0 0 8px; font-size: 18px; }
.tile p { margin: 0; color: #334155; font-size: 14.5px; line-height: 1.5; }
.tile .tile-link { display: inline-block; margin-top: 12px; color: var(--primary); font-weight: 700; font-size: 13.5px; }

/* CTA call strip */
.call-strip {
  position: relative;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 18px;
  padding: 28px 30px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(29, 78, 216, 0.22);
}

.call-strip::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.16), rgba(255,255,255,0) 70%);
  border-radius: 50%;
}

.call-strip h3 { margin: 0 0 6px; font-size: 22px; position: relative; z-index: 1; }
.call-strip p { margin: 0; opacity: 0.92; font-size: 14.5px; position: relative; z-index: 1; }
.call-strip > a { position: relative; z-index: 1; }

/* Playful bubbly variant for the contact CTA */
.call-strip.bubbly .bubble {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  animation: bubble-float 7s ease-in-out infinite;
  pointer-events: none;
}

.call-strip.bubbly .bubble:nth-child(1) { width: 70px; height: 70px; left: 6%; bottom: -20px; animation-delay: 0s; }
.call-strip.bubbly .bubble:nth-child(2) { width: 36px; height: 36px; left: 22%; bottom: -10px; animation-delay: 1.2s; animation-duration: 5.5s; }
.call-strip.bubbly .bubble:nth-child(3) { width: 22px; height: 22px; left: 38%; bottom: -16px; animation-delay: 2.4s; animation-duration: 6.5s; }
.call-strip.bubbly .bubble:nth-child(4) { width: 50px; height: 50px; left: 58%; bottom: -24px; animation-delay: 0.6s; animation-duration: 8s; }
.call-strip.bubbly .bubble:nth-child(5) { width: 28px; height: 28px; left: 74%; bottom: -12px; animation-delay: 3s; animation-duration: 6s; }
.call-strip.bubbly .bubble:nth-child(6) { width: 16px; height: 16px; left: 88%; bottom: -8px; animation-delay: 1.8s; animation-duration: 5s; }
.call-strip.bubbly .bubble:nth-child(7) { width: 44px; height: 44px; left: 96%; bottom: -18px; animation-delay: 2.6s; animation-duration: 7.2s; }

@keyframes bubble-float {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  12% { opacity: 0.9; }
  85% { opacity: 0.5; }
  100% { transform: translateY(-160px) scale(1.15); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .call-strip.bubbly .bubble { animation: none; opacity: 0.35; }
}

/* Map card (Google Maps embed) */
.map-card {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
}

.map-card iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
}

@media (max-width: 600px) {
  .map-card iframe { height: 300px; }
}

/* Contact form */
.contact-form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.form-row {
  margin-bottom: 18px;
}

.form-row label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
}

.form-row input,
.form-row textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 14px;
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15);
}

.form-banner {
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.form-banner--success {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
  font-weight: 600;
}

.form-banner--error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

.form-banner--error a { color: #991b1b; font-weight: 700; }

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.call-strip .btn-light {
  background: #fff;
  color: var(--primary-dark);
  font-size: 17px;
  padding: 14px 24px;
  white-space: nowrap;
}

/* Blog */
.blog-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.blog-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  display: block;
}

.blog-card .blog-tag {
  display: inline-block;
  margin: 16px 0 0 18px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.blog-card h4 { margin: 8px 18px 0; font-size: 17px; }
.blog-card p { margin: 8px 18px 18px; color: #334155; font-size: 14px; line-height: 1.5; }

/* Local area */
.area-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.area-list span {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--muted);
}

/* Footer */
footer {
  padding: 48px 0 28px;
  background: #0f172a;
  color: #cbd5e1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
}

footer h5 { margin: 0 0 12px; font-size: 14px; color: #fff; }
footer a { color: #94a3b8; text-decoration: none; font-size: 14px; display: block; margin-bottom: 8px; }
footer a:hover { color: var(--primary-light); }
footer .copyright { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.08); font-size: 13px; color: #64748b; }

.footer-logo {
  display: inline-flex;
  background: #fff;
  border-radius: 12px;
  padding: 8px 14px;
  margin-bottom: 14px;
}

footer p { color: #94a3b8; }

@media (max-width: 860px) {
  .hero { padding: 28px 0 32px; }
  .hero-grid { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .cta { flex-direction: column; }
  .cta .btn { width: 100%; text-align: center; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }

  .hamburger { display: flex; }

  .nav-phone { display: none; }

  .menu {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 0 18px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1);
    transition: max-height 0.28s ease, opacity 0.22s ease, padding 0.28s ease;
  }

  .menu.open {
    max-height: 70vh;
    opacity: 1;
    overflow-y: auto;
    pointer-events: auto;
    padding: 12px 18px 18px;
  }

  .menu a { padding: 11px 0; }

  .menu .dropdown { position: static; }

  .menu .dropdown > a {
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
  }

  .dropdown-panel {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    transition: none;
    box-shadow: none;
    border: none;
    padding: 4px 0 4px 14px;
    min-width: 0;
  }

  .dropdown-panel a { padding: 8px 0; }
}

@media (max-width: 600px) {
  .tiles { grid-template-columns: 1fr; }
}
