@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600&display=swap');

:root {
  --bg: #0c1726;
  --surface: #0f1f33;
  --surface-2: #142943;
  --text: #eaf4ff;
  --muted: #b6c8e2;
  --accent: #4bb3ff;
  --accent-2: #2a8ddc;
  --border: rgba(255, 255, 255, 0.14);
  --shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
  --radius: 14px;
  --max-width: 1180px;
  --section-space: 72px;
  --card-padding: 22px;
  --grid-gap: 24px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Manrope', 'Space Grotesk', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background:
    radial-gradient(rgba(43, 127, 195, 0.42) 2.6px, transparent 6px) 12px 18px / 90px 90px,
    radial-gradient(rgba(26, 91, 148, 0.38) 2.6px, transparent 6px) 70px 90px / 130px 130px,
    radial-gradient(rgba(35, 209, 165, 0.32) 2.6px, transparent 6px) 42px 170px / 170px 170px,
    radial-gradient(rgba(43, 127, 195, 0.24) 1.6px, transparent 4.5px) 30px 40px / 70px 70px,
    radial-gradient(rgba(26, 91, 148, 0.20) 1.6px, transparent 4.5px) 90px 140px / 110px 110px,
    radial-gradient(circle at 12% 18%, rgba(43, 127, 195, 0.18), transparent 42%),
    radial-gradient(circle at 78% 0%, rgba(26, 91, 148, 0.18), transparent 38%),
    var(--bg);
  background-repeat: repeat;
  animation: bodyParticles 14s ease-in-out infinite alternate;
  line-height: 1.6;
  min-height: 100vh;
}

@keyframes bodyParticles {
  0% {
    background-position:
      12px 18px,
      70px 90px,
      42px 170px,
      0 0,
      0 0,
      0 0;
  }
  25% {
    background-position:
      48px 6px,
      10px 160px,
      120px 120px,
      6% 4%,
      -4% 3%,
      0 0;
  }
  50% {
    background-position:
      -20px 44px,
      120px 40px,
      -30px 240px,
      -5% -3%,
      8% 6%,
      0 0;
  }
  75% {
    background-position:
      36px -18px,
      140px 180px,
      80px 60px,
      10% -6%,
      -6% 8%,
      0 0;
  }
  100% {
    background-position:
      -14px 58px,
      -30px 20px,
      140px 260px,
      -8% 9%,
      12% -10%,
      0 0;
  }
}

a {
  color: var(--text);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius);
}

.container {
  width: min(96%, var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  background: rgba(12, 23, 38, 0.9);
  border-bottom: 1px solid var(--border);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  text-decoration: none;
}

.brand-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  background: #0b1d22;
  padding: 6px;
  object-fit: contain;
}

.brand-title {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 0.9rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links.is-open {
  display: flex;
}

.nav-item {
  position: relative;
}

.nav-parent {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  border: 1px solid #d8e6f5;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: none;
  min-width: 240px;
  overflow: hidden;
  z-index: 20;
}

.dropdown a {
  display: block;
  padding: 14px 16px;
  color: #0b1a2b;
  border-bottom: 1px solid #e8f1fa;
  font-weight: 600;
}

.dropdown a:last-child {
  border-bottom: none;
}

.dropdown a:hover {
  background: #e8f4ff;
  color: #1a5b94;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  display: block;
}

.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--text);
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a.active,
.nav-links a:hover {
  background: rgba(35, 209, 165, 0.12);
  color: var(--accent);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
  gap: 28px;
  padding: 80px 0 50px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--accent);
  background: rgba(35, 209, 165, 0.08);
  border: 1px solid rgba(35, 209, 165, 0.25);
  padding: 8px 14px;
  border-radius: 999px;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); }

.lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 680px;
}

.badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.badge {
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.area-badges .badge::before {
  content: '📍';
  margin-right: 6px;
}

.btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.btn {
  border: none;
  cursor: pointer;
  border-radius: 12px;
  padding: 14px 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

/* Accessible focus states for interactive elements */
.btn:focus-visible,
.nav-links a:focus-visible,
.dropdown a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent), #1aa07a);
  color: #0b141a;
  box-shadow: var(--shadow);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn:hover {
  transform: translateY(-2px);
}


.section {
  padding: var(--section-space) 0; /* normalize vertical rhythm */
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 32px; /* clearer separation from content */
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--grid-gap);
  align-items: stretch; /* keep card rows aligned */
  grid-auto-rows: 1fr; /* balance heights within rows */
  justify-content: center; /* center partial rows */
}

.service-descriptions {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--card-padding);
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}

.service-descriptions h3 {
  margin: 0 0 6px;
}

.service-detail h4 {
  margin: 8px 0 4px;
}

.service-detail p {
  margin: 0;
  color: var(--muted);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--card-padding);
  box-shadow: var(--shadow);
  height: 100%;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 12px; /* consistent spacing between card elements */
}

.card img {
  border-radius: calc(var(--radius) - 4px);
  height: 180px;
  width: 100%;
  object-fit: cover;
  margin: 0;
}

.card p {
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

.card h3 {
  margin: 0;
  line-height: 1.3;
}

.card > * + * {
  margin-top: 4px;
}

.list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  padding: 8px 0;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.list li:last-child { border-bottom: none; }

.list .dot {
  color: var(--accent);
  font-weight: 800;
}

.testimonial-slider {
  display: grid;
  gap: 14px;
}

.slider-window {
  overflow: hidden;
}

.testimonials {
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  transition: transform 0.5s ease;
}

.slider-track {
  will-change: transform;
}

.quote {
  flex: 0 0 100%;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-2);
  box-shadow: var(--shadow);
}

.quote strong {
  color: var(--accent);
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.slider-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.slider-btn:hover {
  background: rgba(35, 209, 165, 0.14);
  transform: translateY(-1px);
}

.slider-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.15s ease;
}

.slider-dot.is-active {
  background: var(--accent);
  transform: scale(1.05);
}

.kicker {
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
}

.postcode-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--card-padding);
  box-shadow: var(--shadow);
}

.postcode-form {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
}

.input {
  width: 100%;
  padding: 14px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 1rem;
}

.message {
  margin-top: 10px;
  color: #f8c851;
  font-weight: 600;
}

.footer {
  background: #f2f6fb;
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.footer p {
  color: var(--muted);
  margin: 6px 0;
}

.contact-card {
  display: grid;
  gap: 8px;
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--card-padding);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.map-embed {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.callout {
  background: linear-gradient(120deg, rgba(35, 209, 165, 0.15), rgba(109, 211, 255, 0.15));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--card-padding);
  display: grid;
  gap: 12px;
  align-items: center;
}

.callout strong { color: var(--accent); }

.mono { font-family: 'Space Grotesk', monospace; }

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.whatsapp-float img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 76px;
    left: 12px;
    right: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    flex-direction: column;
    align-items: flex-start;
    display: none;
    box-shadow: var(--shadow);
    gap: 6px;
    max-height: 70vh;
    overflow-y: auto;
    z-index: 15;
  }

  .nav-item { width: 100%; }

  .nav-links a { width: 100%; }

  .nav-toggle { display: inline-flex; }

  .dropdown {
    position: static;
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0 0 0 8px;
    display: none;
    background: transparent;
    min-width: auto;
  }

  .nav-item.is-open .dropdown {
    display: grid;
  }

  .dropdown a {
    border: none;
    padding: 10px 10px 10px 6px;
  }

  .postcode-form {
    grid-template-columns: 1fr;
  }

  .cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--grid-gap);
    justify-items: stretch; /* avoid awkward short rows */
  }
}

@media (max-width: 720px) {
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding: 60px 0 40px;
  }

  .callout {
    padding: 20px;
  }

  .card img {
    height: 160px;
  }
}

@media (max-width: 540px) {
  .hero { padding-top: 48px; }
  .section { padding: 50px 0; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; text-align: center; }
  .whatsapp-float { width: 52px; height: 52px; bottom: 14px; right: 14px; }
}
