@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  --primary: #0284c7;
  --primary-dark: #0369a1;
  --primary-deep: #0c4a6e;
  --primary-light: #e0f2fe;
  --secondary: #10b981;
  --secondary-dark: #059669;
  --secondary-light: #d1fae5;
  --accent-gold: #f59e0b;
  --eco-slate: #f8fafc;
  --slate-dark: #0f172a;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border-light: #e2e8f0;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-soft: 0 10px 30px -5px rgba(2, 132, 199, 0.08), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-hover: 0 20px 40px -10px rgba(2, 132, 199, 0.16), 0 8px 16px rgba(0,0,0,0.06);
  --shadow-glow: 0 0 25px rgba(16, 185, 129, 0.35);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: #ffffff;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  color: inherit;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #93c5fd;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #0284c7;
}

/* Top Bar & Sticky Nav Fix */
.top-announcement-bar {
  background: linear-gradient(90deg, #0c4a6e 0%, #0369a1 50%, #0284c7 100%);
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 500;
  position: relative;
  z-index: 50;
}

.main-sticky-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: all 0.3s ease;
}

.main-sticky-header.scrolled {
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
}

/* Badges & Trust Accreditations */
.ncca-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(2, 132, 199, 0.08);
  color: #0369a1;
  border: 1px solid rgba(2, 132, 199, 0.2);
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
}

/* Glassmorphism Cards */
.glass-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.glass-card-dark {
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-radius: var(--radius-lg);
}

/* Gradient Hero Backgrounds */
.hero-gradient-overlay {
  background: linear-gradient(135deg, rgba(12, 74, 110, 0.92) 0%, rgba(2, 132, 199, 0.82) 60%, rgba(16, 185, 129, 0.75) 100%);
}

.subtle-mesh-bg {
  background-color: #f8fafc;
  background-image: 
    radial-gradient(at 10% 20%, rgba(2, 132, 199, 0.06) 0px, transparent 50%),
    radial-gradient(at 90% 80%, rgba(16, 185, 129, 0.06) 0px, transparent 50%);
}

/* Before / After Slider Component */
.before-after-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.2);
  user-select: none;
  aspect-ratio: 16 / 9;
  background: #0f172a;
}

.before-after-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.before-image-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  z-index: 10;
  border-right: 3px solid #ffffff;
  box-shadow: 4px 0 15px rgba(0,0,0,0.3);
}

.before-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.before-after-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35), 0 0 0 4px rgba(2, 132, 199, 0.4);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: ew-resize;
  color: #0284c7;
  font-size: 1.1rem;
  transition: transform 0.1s ease, box-shadow 0.2s ease;
}

.before-after-handle:hover,
.before-after-handle:active {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.45), 0 0 0 6px rgba(16, 185, 129, 0.5);
  background: #ffffff;
  color: #10b981;
}

.slider-label {
  position: absolute;
  bottom: 16px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 15;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.label-before {
  left: 16px;
  background: rgba(239, 68, 68, 0.9);
  color: #ffffff;
}

.label-after {
  right: 16px;
  background: rgba(16, 185, 129, 0.92);
  color: #ffffff;
}

/* UK Pricing Estimator Interactive Elements */
.calc-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid #e2e8f0;
  box-shadow: 0 25px 50px -12px rgba(2, 132, 199, 0.12);
}

.calc-step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #0284c7;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.calc-option-btn {
  border: 2px solid #e2e8f0;
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
}

.calc-option-btn:hover {
  border-color: #93c5fd;
  background: #f0fdf4;
}

.calc-option-btn.selected {
  border-color: #0284c7;
  background: #f0f9ff;
  box-shadow: 0 0 0 1px #0284c7;
}

.calc-counter-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.15s ease;
}

.calc-counter-btn:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-weight: 700;
  padding: 0.85rem 1.75rem;
  border-radius: 12px;
  box-shadow: 0 8px 20px -4px rgba(16, 185, 129, 0.45);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 12px 25px -4px rgba(16, 185, 129, 0.6);
  transform: translateY(-2px);
}

.btn-secondary {
  background: #0284c7;
  color: #ffffff;
  font-weight: 700;
  padding: 0.85rem 1.75rem;
  border-radius: 12px;
  box-shadow: 0 8px 20px -4px rgba(2, 132, 199, 0.35);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-secondary:hover {
  background: #0369a1;
  transform: translateY(-2px);
  box-shadow: 0 12px 25px -4px rgba(2, 132, 199, 0.5);
}

.btn-outline-white {
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  color: #ffffff;
  font-weight: 700;
  padding: 0.85rem 1.75rem;
  border-radius: 12px;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-outline-white:hover {
  background: #ffffff;
  color: #0c4a6e;
}

/* Keyframe Animations */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 15px rgba(16, 185, 129, 0.3); }
  50% { box-shadow: 0 0 30px rgba(16, 185, 129, 0.7); }
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

.animate-pulse-glow {
  animation: pulse-glow 2.5s infinite;
}

/* Postcode Live Checker */
.postcode-input-group {
  position: relative;
}

.postcode-badge {
  transition: all 0.3s ease;
}

/* Modal styles */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #ffffff;
  border-radius: var(--radius-xl);
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px -15px rgba(0,0,0,0.4);
  transform: translateY(20px) scale(0.97);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active .modal-content {
  transform: translateY(0) scale(1);
}

/* FAQ Accordion Styling */
.faq-item {
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  background: #ffffff;
  transition: all 0.2s ease;
}

.faq-item.active {
  border-color: #0284c7;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.08);
}

.faq-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--slate-dark);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease;
  padding: 0 1.5rem;
  color: var(--text-muted);
}

.faq-item.active .faq-content {
  padding-bottom: 1.25rem;
}

.faq-icon {
  transition: transform 0.3s ease;
  color: #0284c7;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: #10b981;
}

/* Toast Notification */
.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0f172a;
  color: #ffffff;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 15px 35px -5px rgba(0,0,0,0.3);
  z-index: 150;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   Mobile Drawer Navigation (Solid Pure White, High-Contrast, Zero bleed-through)
   ========================================================================== */
#mobile-menu {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  z-index: 999999 !important;
  background-color: rgba(11, 19, 43, 0.8) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
}

#mobile-menu.hidden {
  display: none !important;
}

#mobile-menu:not(.hidden) {
  display: flex !important;
}

#mobile-menu .mobile-drawer-content {
  background: #ffffff !important;
  background-color: #ffffff !important;
  opacity: 1 !important;
  width: 85% !important;
  max-width: 320px !important;
  height: 100% !important;
  height: 100dvh !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 10px 0 30px rgba(0, 0, 0, 0.25) !important;
  position: relative !important;
  z-index: 1000000 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}

#mobile-menu .mobile-drawer-content a {
  opacity: 1 !important;
  text-decoration: none !important;
}

#mobile-menu .mobile-drawer-content a:hover {
  color: var(--primary) !important;
}