/* ============================================
   BASEMENT CONVERSION COST - STYLE.CSS
   Pixel-perfect match to index.tsx Tailwind classes
   ============================================ */

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

/* ===== CSS VARIABLES (Design System) ===== */
:root {
  --radius: 0.875rem;
  --background: oklch(1 0 0);
  --foreground: oklch(0.24 0.035 245);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.24 0.035 245);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.24 0.035 245);
  --primary: oklch(0.34 0.075 245.2);
  --primary-foreground: oklch(0.99 0.005 245);
  --primary-deep: oklch(0.283 0.06 244.8);
  --primary-soft: oklch(0.955 0.014 245);
  --secondary: oklch(0.975 0.005 258.3);
  --secondary-foreground: oklch(0.34 0.075 245.2);
  --muted: oklch(0.975 0.005 258.3);
  --muted-foreground: oklch(0.53 0.025 250);
  --accent: oklch(0.686 0.126 173.9);
  --accent-foreground: oklch(0.19 0.04 200);
  --accent-soft: oklch(0.955 0.035 174);
  --destructive: oklch(0.577 0.245 27.325);
  --destructive-foreground: oklch(0.984 0.003 247.858);
  --border: oklch(0.918 0.008 250);
  --input: oklch(0.918 0.008 250);
  --ring: oklch(0.686 0.126 173.9);
  --star: oklch(0.82 0.16 85);
  --gradient-deep: linear-gradient(140deg, oklch(0.283 0.06 244.8), oklch(0.38 0.08 240));
  --gradient-accent: linear-gradient(120deg, oklch(0.686 0.126 173.9), oklch(0.75 0.12 165));
  --shadow-soft: 0 1px 2px oklch(0.34 0.075 245.2 / 0.06), 0 8px 24px oklch(0.34 0.075 245.2 / 0.07);
  --shadow-lift: 0 2px 6px oklch(0.34 0.075 245.2 / 0.08), 0 22px 50px oklch(0.34 0.075 245.2 / 0.14);
  --font-display: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Manrope", ui-sans-serif, system-ui, sans-serif;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-color: var(--border);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== UTILITY CLASSES (Tailwind equivalents) ===== */

/* Container */
.container-page {
  width: 100% !important;
  margin-inline: auto !important;
  max-width: 80rem !important;
  padding-inline: 1.25rem !important;
}

/* Display */
.hidden { display: none !important; }
.block { display: block !important; }
.inline-block { display: inline-block !important; }
.inline-flex { display: inline-flex !important; }
.flex { display: flex !important; }
.grid { display: grid !important; }
.place-items-center { place-items: center !important; }

/* Position */
.fixed { position: fixed !important; }
.sticky { position: sticky !important; }
.absolute { position: absolute !important; }
.relative { position: relative !important; }
.inset-0 { inset: 0; }
.inset-x-0 { left: 0; right: 0; }
.bottom-0 { bottom: 0; }
.top-24 { top: 6rem; }
.z-50 { z-index: 50 !important; }

/* Overflow */
.overflow-hidden { overflow: hidden !important; }
.overflow-x-auto { overflow-x: auto !important; }
.overflow-y-auto { overflow-y: auto; }

/* Sizing */
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-10 { height: 2.5rem; }
.h-44 { height: 11rem; }
.h-56 { height: 14rem; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-10 { width: 2.5rem; }
.w-80 { width: 20rem; }
.w-full { width: 100% !important; }
.w-auto { width: auto !important; }
.max-w-xl { max-width: 36rem !important; }
.max-w-2xl { max-width: 42rem !important; }
.max-w-3xl { max-width: 48rem !important; }
.max-h-\[80vh\] { max-height: 80vh; }
.min-w-0 { min-width: 0 !important; }
.shrink-0 { flex-shrink: 0 !important; }

/* Flexbox */
.items-start { align-items: flex-start !important; }
.items-center { align-items: center !important; }
.justify-between { justify-content: space-between !important; }
.justify-center { justify-content: center !important; }
.gap-0\.5 { gap: 0.125rem; }
.gap-1 { gap: 0.25rem !important; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 0.75rem !important; }
.gap-4 { gap: 1rem !important; }
.gap-6 { gap: 1.5rem !important; }
.gap-8 { gap: 2rem !important; }
.gap-12 { gap: 3rem !important; }
.flex-wrap { flex-wrap: wrap !important; }

/* Grid */
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }

/* Spacing */
.p-3 { padding: 0.75rem !important; }
.p-4 { padding: 1rem !important; }
.p-5 { padding: 1.25rem !important; }
.p-6 { padding: 1.5rem !important; }
.p-8 { padding: 2rem !important; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-3\.5 { padding-left: 0.875rem; padding-right: 0.875rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-7 { padding-left: 1.75rem; padding-right: 1.75rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-14 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.pt-5 { padding-top: 1.25rem; }
.pb-4 { padding-bottom: 1rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-7 { margin-top: 1.75rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-12 { margin-bottom: 3rem; }
.mr-auto { margin-right: auto; }
.ml-auto { margin-left: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Typography */
.text-xs { font-size: 0.75rem !important; }
.text-sm { font-size: 0.875rem !important; }
.text-base { font-size: 1rem !important; }
.text-lg { font-size: 1.125rem !important; }
.text-xl { font-size: 1.25rem !important; }
.text-3xl { font-size: 1.875rem !important; }
.font-medium { font-weight: 500 !important; }
.font-semibold { font-weight: 600 !important; }
.font-bold { font-weight: 700 !important; }
.font-extrabold { font-weight: 800 !important; }
.leading-relaxed { line-height: 1.625 !important; }
.tracking-wide { letter-spacing: 0.025em !important; }
.tracking-widest { letter-spacing: 0.15em !important; }
.uppercase { text-transform: uppercase !important; }
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }
.text-balance { text-wrap: balance !important; }
.truncate { overflow: hidden !important; text-overflow: ellipsis !important; white-space: nowrap !important; }

/* Colors */
.text-accent { color: var(--accent) !important; }
.text-accent-foreground { color: var(--accent-foreground) !important; }
.text-primary { color: var(--primary) !important; }
.text-primary-foreground { color: var(--primary-foreground) !important; }
.text-muted-foreground { color: var(--muted-foreground) !important; }
.text-foreground { color: var(--foreground) !important; }
.text-border { color: var(--border); }
.fill-star { fill: var(--star) !important; }
.text-star { color: var(--star) !important; }
.text-muted { color: var(--muted) !important; }

/* Backgrounds */
.bg-background { background-color: var(--background) !important; }
.bg-secondary { background-color: var(--secondary) !important; }
.bg-accent { background-color: var(--accent) !important;
border:none !important;}
.bg-accent-soft { background-color: var(--accent-soft) !important; }
.bg-primary { background-color: var(--primary) !important; }
.bg-primary\/80 { background-color: oklch(0.34 0.075 245.2 / 0.8); }
.bg-primary\/90 { background-color: oklch(0.34 0.075 245.2 / 0.9); }

/* Borders */
.border { border-width: 1px !important; }
.border-border { border-color: var(--border) !important; }
.border-primary-foreground\/15 { border-color: oklch(0.99 0.005 245 / 0.15); }
.border-t { border-top-width: 1px !important; }
.border-b { border-bottom-width: 1px !important; }

/* Border Radius */
.rounded-full { border-radius: 9999px !important; }
.rounded-lg { border-radius: var(--radius) !important; }
.rounded-xl { border-radius: calc(var(--radius) + 4px) !important; }
.rounded-2xl { border-radius: calc(var(--radius) + 8px) !important; }
.rounded-3xl { border-radius: calc(var(--radius) + 12px) !important; }

/* Shadows */
.shadow-soft { box-shadow: var(--shadow-soft) !important; }
.shadow-lift { box-shadow: var(--shadow-lift) !important; }

/* Transitions */
.transition { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter !important; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important; transition-duration: 150ms !important; }
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke !important; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important; transition-duration: 150ms !important; }
.transition-transform { transition-property: transform !important; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important; transition-duration: 150ms !important; }
.transition-opacity { transition-property: opacity !important; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important; transition-duration: 150ms !important; }
.duration-500 { transition-duration: 500ms !important; }

/* Hover */
.hover\:scale-\[1\.01\]:hover { transform: scale(1.01) !important; }
.hover\:scale-\[1\.03\]:hover { transform: scale(1.03) !important; }
.hover\:scale-105:hover { transform: scale(1.05) !important; }
.hover\:bg-primary:hover { background-color: var(--primary) !important; }
.hover\:text-accent:hover { color: var(--accent) !important; }
.hover\:text-primary-foreground:hover { color: var(--primary-foreground) !important; }
.hover\:opacity-100:hover { opacity: 1 !important; }
.group:hover .group-hover\:scale-105 { transform: scale(1.05) !important; }
.group:hover .group-hover\:opacity-100 { opacity: 1 !important; }

/* Focus */
.focus\:border-accent:focus { border-color: var(--accent) !important; }

/* Accent color for range input */
.accent-accent { accent-color: var(--accent) !important; }

/* Outline */
.outline-none { outline: 2px solid transparent !important; outline-offset: 2px !important; }

/* Cursor */
.cursor-pointer { cursor: pointer !important; }

/* Snap scrolling */
.snap-x { scroll-snap-type: x mandatory !important; }
.snap-start { scroll-snap-align: start !important; }
.btn-secondary { text-decoration: none !important;}
/* Aspect ratio */
[style*="aspect-ratio"] { aspect-ratio: attr(style aspect-ratio); }

/* ===== CARD SOFT ===== */
.card-soft {
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  box-shadow: var(--shadow-soft) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

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

/* ===== SURFACE DEEP ===== */
.surface-deep {
  background: var(--gradient-deep) !important;
  color: var(--primary-foreground) !important;
}



/* ===== HERO GRID ===== */
.lg\:grid-cols-hero {
  grid-template-columns: 1fr !important;
	
}

@media (min-width: 1024px) {
  .lg\:grid-cols-hero {
    grid-template-columns: 1.05fr 0.95fr !important;
  }
}

/* ===== CALCULATOR GRID ===== */
.lg\:grid-cols-calc {
  grid-template-columns: 1fr !important;
}

@media (min-width: 1024px) {
  .lg\:grid-cols-calc {
    grid-template-columns: 1fr 1.1fr 1fr !important;
  }
}

/* ===== ARTICLE + SIDEBAR GRID ===== */
.lg\:grid-cols-article {
  grid-template-columns: 1fr !important;
  align-items: start !important;
}

@media (min-width: 1024px) {
  .lg\:grid-cols-article {
    grid-template-columns: 1.5fr 1fr !important;
    align-items: start !important;
  }
}


/* ===== RESPONSIVE UTILITIES ===== */
@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .sm\:py-20 { padding-top: 5rem; padding-bottom: 5rem; }
  .sm\:py-24 { padding-top: 6rem; padding-bottom: 6rem; }
  .sm\:text-4xl { font-size: 2.25rem; }
  .sm\:p-8 { padding: 2rem; }
  .sm\:block { display: block; }
  .sm\:inline-flex { display: inline-flex; }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  .lg\:sticky { position: sticky; }
  .lg\:top-24 { top: 6rem; }
  .lg\:block { display: block; }
}

/* ===== SR-ONLY ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ===== STICKY SIDEBAR ===== */
@media (min-width: 1024px) {
  .sidebar-sticky {
    position: sticky !important;
    top: 7rem !important;
    align-self: start !important;
  }
}

/* ===== CIRCLE SAFETY ===== */
.rounded-full {
  overflow: hidden !important;
}

/* Ensure flex centering works in all browsers */
.flex.items-center.justify-center,
.flex.items-start.gap-3 > .flex:first-child {
  flex-shrink: 0 !important;
}
/* ===== FAQ ACCORDION ===== */
.faq-item {
  border-bottom: 1px solid var(--border) !important;
  overflow: hidden !important;
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--foreground);
  transition: color 0.15s ease;
}

.faq-trigger:hover {
  color: var(--accent) !important;
}

.faq-trigger svg {
  transition: transform 0.2s ease;
}

.faq-content {
  padding-bottom: 1.25rem !important;
  animation: faqSlide 0.2s ease !important;
}

@keyframes faqSlide {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}


/* ===== GALLERY LIGHTBOX ===== */
#galleryLightbox {
  cursor: pointer;
}

#galleryLightbox img {
  cursor: default;
}

/* ===== FORM STYLES ===== */
input[type="range"] {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 2px solid var(--background);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 2px solid var(--background);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

select, input[type="text"], input[type="email"], input[type="tel"] {
  -webkit-appearance: none;
  appearance: none;
}

/* ===== SCROLLBAR STYLING ===== */
.flex.snap-x::-webkit-scrollbar {
  height: 6px;
}

.flex.snap-x::-webkit-scrollbar-track {
  background: var(--secondary);
  border-radius: 3px;
}

.flex.snap-x::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.flex.snap-x::-webkit-scrollbar-thumb:hover {
  background: var(--muted-foreground);
}

/* ===== HEADER (existing styles preserved) ===== */
.site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 1030 !important;
  background: rgba(255,255,255,.96) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border-bottom: 1px solid var(--border) !important;
}

.header-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  min-height: 72px !important;
  gap: 2rem !important;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--foreground);
  white-space: nowrap;
}

.logo-subtitle {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
}

.desktop-nav {
  display: none;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: .35rem;
}

@media(min-width:992px) {
  .desktop-nav { display: flex; }
}

.desktop-nav .dropdown { position: relative; }

.nav-link-custom {
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: .6rem .9rem;
  background: transparent;
  border: 0;
  border-radius: 12px;
  text-decoration: none;
  color: var(--foreground);
  font-size: 14px;
  font-weight: 600;
  transition: .2s;
  cursor: pointer;
  white-space: nowrap;
}

.nav-link-custom:hover {
  background: var(--secondary);
  color: var(--foreground);
}

.dropdown-menu {
  min-width: 280px;
  padding: .75rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  margin-top: .55rem;
}

/* ===== HOVER DROPDOWN ===== */
.desktop-nav .dropdown {
  position: relative;
}

.desktop-nav .dropdown .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  display: none;
  float: left;
  min-width: 280px;
  padding: .75rem;
  margin: .10rem 0 0;
  font-size: 14px;
  text-align: left;
  list-style: none;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.desktop-nav .dropdown:hover > .dropdown-menu {
  display: block;
  animation: dropdownFade 0.15s ease;
}

.desktop-nav .dropdown:hover .dropdown-trigger .bi-chevron-down {
  transform: rotate(180deg);
}

.desktop-nav .dropdown-trigger .bi-chevron-down {
  transition: transform 0.2s ease;
}

@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
  padding: .65rem .9rem;
  border-radius: 10px;
  font-size: 14px;
  color: var(--muted-foreground);
  transition: .2s;
}

.dropdown-item:hover {
  background: var(--secondary);
  color: var(--foreground);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}

.btn-cta {
  display: none;
  align-items: center;
  justify-content: center;
  padding: .75rem 1.4rem;
  border-radius: 16px;
  background: var(--accent);
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: .2s;
}

.btn-cta:hover { transform: translateY(-1px); color: var(--accent-foreground); }

@media(min-width:576px) { .btn-cta { display: inline-flex; } }

.mobile-toggle {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 22px;
  color: var(--foreground);
}

.mobile-toggle:focus { box-shadow: none; outline: none; }

@media(min-width:992px) { .mobile-toggle { display: none; } }

#mobileNav {
  border-top: 1px solid var(--border);
  background: #fff;
}

#mobileNav .accordion-item {
  border: 0;
  border-bottom: 1px solid var(--border);
}

#mobileNav .accordion-item:last-child { border-bottom: 0; }

#mobileNav .accordion-button {
  background: transparent;
  padding: 1rem 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--foreground);
  box-shadow: none;
}

#mobileNav .accordion-button:not(.collapsed) {
  background: transparent;
  color: var(--foreground);
}

#mobileNav .accordion-button:focus { box-shadow: none; }

#mobileNav .accordion-body { padding: 0 0 .75rem; }

#mobileNav .accordion-body a {
  display: block;
  padding: .6rem .75rem;
  border-radius: 10px;
  text-decoration: none;
  color: var(--muted-foreground);
  font-size: 14px;
}

#mobileNav .accordion-body a:hover {
  background: var(--secondary);
  color: var(--foreground);
}

.sticky-mobile-cta {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 1020 !important;
  background: rgba(255,255,255,.96) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border-top: 1px solid var(--border) !important;
  padding: .75rem !important;
}

@media(min-width:576px) { .sticky-mobile-cta { display: none; } }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--gradient-deep) !important;
  color: var(--primary-foreground) !important;
  padding-bottom: 5rem !important;
  padding-top: 4rem !important;
}

.site-footer a,
.site-footer a:link,
.site-footer a:visited {
    font-size: 0.875rem !important;
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus {
  color: var(--accent) !important;
  text-decoration: none !important;
}

@media (min-width: 640px) {
  .site-footer { padding-bottom: 4rem !important; }
}

.footer-row {
  display: grid;
  gap: 2.5rem;
}

.footer-row-main { grid-template-columns: 1fr !important; }

@media (min-width: 1024px) {
  .footer-row-main { grid-template-columns: 1.3fr repeat(3, 1fr) !important; }
}

.footer-row-sub { grid-template-columns: 1fr; }

@media (min-width: 640px) {
  .footer-row-sub { grid-template-columns: repeat(3, 1fr); }
}

.footer-brand-name {
  font-size: 1.125rem !important;
  font-weight: 800 !important;
  color: var(--primary-foreground) !important;
  margin-bottom: 0 !important;
}

.footer-brand-text {
  margin-top: 0.75rem !important;
  max-width: 24rem !important;
  font-size: 0.875rem !important;
  line-height: 1.625 !important;
  color: oklch(0.99 0.005 245 / 0.7) !important;
  margin-bottom: 0 !important;
}

.footer-brand-contact {
  margin-top: 1rem !important;
  font-size: 0.875rem !important;
  line-height: 1.625 !important;
  color: oklch(0.99 0.005 245 / 0.7) !important;
  margin-bottom: 0 !important;
}

.site-footer .footer-brand-contact a,
.site-footer .footer-brand-contact a:link,
.site-footer .footer-brand-contact a:visited {
  color: oklch(0.99 0.005 245 / 0.7) !important;
  text-decoration: none !important;
}

.site-footer .footer-brand-contact a:hover {
  color: var(--accent) !important;
  text-decoration: none !important;
}

.footer-col-title {
  font-size: 0.875rem !important;
  font-weight: 700 !important;
  color: var(--primary-foreground) !important;
  margin-bottom: 0 !important;
}

.footer-col-links {
  margin-top: 1rem !important;
  padding-left: 0 !important;
  list-style: none !important;
  margin-bottom: 0 !important;
}

.footer-col-links li { margin-bottom: 0.5rem !important; }
.footer-col-links li:last-child { margin-bottom: 0; }

.footer-col-links a {
  font-size: 0.875rem !important;
  color: oklch(0.99 0.005 245 / 0.7) !important;
  text-decoration: none !important;
  transition: color 0.15s ease !important;
}

.footer-col-links a:hover { color: var(--accent); }

.footer-divider {
  margin-top: 2.5rem !important;
  margin-bottom: 2.5rem !important;
  border: 0 !important;
  border-top: 1px solid oklch(0.99 0.005 245 / 0.15) !important;
}

.footer-bottom {
  margin-top: 2.5rem !important;
  padding-top: 1.5rem !important;
  border-top: 1px solid oklch(0.99 0.005 245 / 0.15) !important;
  color: oklch(0.99 0.005 245 / 0.6) !important;
}

.footer-copyright {
  font-size: 0.75rem !important;
  color: oklch(0.99 0.005 245 / 0.6) !important;
  margin-bottom: 0 !important;
}

/* ===== PROSE UK ===== */
.prose-uk h2 {
  font-size: 1.65rem !important;
  line-height: 1.25 !important;
  margin-top: 2.5rem !important;
  margin-bottom: 0.85rem !important;
}

.prose-uk h3 {
  font-size: 1.2rem !important;
  margin-top: 1.75rem !important;
  margin-bottom: 0.5rem !important;
}

.prose-uk p {
  margin-bottom: 1rem !important;
  line-height: 1.75 !important;
  color: var(--muted-foreground) !important;
}

.prose-uk ul {
  margin-bottom: 1.25rem !important;
  padding-left: 1.1rem !important;
  list-style: disc !important;
  color: var(--muted-foreground) !important;
}

.prose-uk li {
  margin-bottom: 0.4rem !important;
  line-height: 1.7 !important;
}

.prose-uk strong { color: var(--foreground) !important; }

/* ===== BLOG PAGE FIXES ===== */

/* No underline for card links */
a.no-underline,
a.no-underline:hover {
  text-decoration: none !important;
}

/* Flex-1 for card stretch */
.flex-1 {
  flex: 1 1 0% !important;
}

/* mb-10 */
.mb-10 {
  margin-bottom: 2.5rem !important;
}

/* py-1.5 */
.py-1\.5 {
  padding-top: 0.375rem !important;
  padding-bottom: 0.375rem !important;
}

/* text-2xl */
.text-2xl {
  font-size: 1.5rem !important;
  line-height: 2rem !important;
}

/* hover:scale-[1.02] */
.hover\:scale-\[1\.02\]:hover {
  transform: scale(1.02) !important;
}

/* ===== BLOG PAGE ROBUST FIXES ===== */

/* Force inline-flex to work even with Bootstrap */
.inline-flex,
span.inline-flex,
p .inline-flex,
.card-soft .inline-flex {
  display: inline-flex !important;
  align-items: center !important;
}

/* Force gap to work */
.gap-1,
span.gap-1,
.inline-flex.gap-1 {
  gap: 0.25rem !important;
}

/* SVG inside inline-flex must be inline */
.inline-flex svg,
span.inline-flex svg {
  display: inline-block !important;
  vertical-align: middle !important;
  flex-shrink: 0 !important;
}

/* Ensure card links are block and clickable */
a.card-soft,
.card-soft a {
  display: block !important;
  text-decoration: none !important;
}

/* Featured label styling */
.text-accent.uppercase {
  letter-spacing: 0.05em !important;
}

/* Ensure card shadow and border show */
.card-soft {
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  box-shadow: var(--shadow-soft) !important;
}

/* ===== BOOTSTRAP ICONS SIZING ===== */
.bi {
  display: inline-block !important;
  vertical-align: middle !important;
  line-height: 1 !important;
}

.h-3\.5 { font-size: 0.875rem !important; }
.h-4 { font-size: 1rem !important; }
.h-5 { font-size: 1.25rem !important; }
.w-3\.5 { width: 0.875rem !important; }
.w-4 { width: 1rem !important; }
.w-5 { width: 1.25rem !important; }

/* ===== CONTACT PAGE UTILITIES ===== */

/* Contact grid: 0.9fr / 1.1fr */
.lg\:grid-cols-contact {
  grid-template-columns: 1fr !important;
}

@media (min-width: 1024px) {
  .lg\:grid-cols-contact {
    grid-template-columns: 0.9fr 1.1fr !important;
  }
}

/* Icon circle sizing */
.h-11 { height: 2.75rem !important; }
.w-11 { width: 2.75rem !important; }

/* Gap 10 */
.gap-10 { gap: 2.5rem !important; }

/* Items start */
.items-start { align-items: flex-start !important; }

/* Shrink 0 */
.shrink-0 { flex-shrink: 0 !important; }

/* ===== CONTACT PAGE LINK FIX ===== */
/* Override Bootstrap blue link color in contact cards */
.card-soft a,
.card-soft a:link,
.card-soft a:visited,
.card-soft a:hover,
.card-soft a:focus,
.card-soft a:active {
  color: var(--foreground) !important;
  text-decoration: none !important;
}

.card-soft a:hover {
  color: var(--accent) !important;
}

/* Prevent cards from stretching in grid */
.grid > .card-soft {
  height: auto !important;
  min-height: unset !important;
}

/* Remove extra margin from last child in cards */
.card-soft > *:last-child {
  margin-bottom: 0 !important;
}

/* Tighten card padding for small content cards */
.card-soft.p-5 {
  padding: 1.25rem !important;
}

/* Remove default paragraph margin inside cards */
.card-soft p {
  margin-bottom: 0 !important;
}

/* If card has h3 + p, add small gap between them */
.card-soft h3 + p {
  margin-top: 0.5rem !important;
}

/* Alternative: target specific grid layouts */
.grid.gap-4:has(> .card-soft),
.grid.gap-6:has(> .card-soft) {
  align-items: start !important;
}

/* Force card-soft to not stretch */
.grid > .card-soft {
  align-self: start !important;
  height: auto !important;
}

/* Ensure all direct children of grid don't stretch */
.grid > * {
  align-self: start !important;
}

/* Specific fix for cost breakdown cards */
.grid.gap-4 > .card-soft,
.grid.gap-6 > .card-soft {
  align-self: start !important;
  height: auto !important;
  min-height: 0 !important;
}

/* Individual card should not stretch */
.grid > .card-soft {
  align-self: start !important;
  height: auto !important;
  min-height: 0 !important;
}

/* Ensure card content doesn't add extra space */
.card-soft > *:last-child {
  margin-bottom: 0 !important;
}

.card-soft p:last-child {
  margin-bottom: 0 !important;
}

/* ===== CARD STRETCH FIX — FINAL ===== */
/* Grid items stretch by default. Force them to align to start */
.grid {
  align-items: start !important;
	padding-left: 0rem !important;
}

/* Exception: step numbers and explicit centering should still work */
.grid.place-items-center {
  align-items: center !important;
  justify-items: center !important;
}

/* Individual card should not stretch */
.grid > .card-soft {
  align-self: start !important;
  height: auto !important;
  min-height: 0 !important;
}

/* Ensure card content doesn't add extra space */
.card-soft > *:last-child {
  margin-bottom: 0 !important;
}

.card-soft p:last-child {
  margin-bottom: 0 !important;
}

/* ===== CTA BANNER (Reference Style) ===== */
.cta-banner {
  background: var(--gradient-deep) !important;
  color: var(--primary-foreground) !important;
}

.cta-banner-inner {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1.5rem !important;
  padding: 1.5rem 0 !important;  /* vertical padding only, no horizontal */
}

@media (max-width: 768px) {
  .cta-banner-inner {
    flex-direction: column !important;
    text-align: center !important;
    padding: 2rem 1.5rem !important;
  }
}

.cta-banner-text {
  display: flex !important;
  align-items: center !important;
  gap: 1rem !important;
  flex: 1 1 0% !important;
}

@media (max-width: 768px) {
  .cta-banner-text {
    flex-direction: column !important;
    text-align: center !important;
  }
}

.cta-banner-heading {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  margin: 0 !important;
  color: var(--primary-foreground) !important;
}

@media (min-width: 640px) {
  .cta-banner-heading {
    font-size: 1.5rem !important;
  }
}

/* Feature Icon */
.feature-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 3rem !important;
  height: 3rem !important;
  border-radius: 0.75rem !important;
  flex-shrink: 0 !important;
}

.feature-icon-cta {
  background: var(--accent) !important;
  color: var(--accent-foreground) !important;
}

.feature-icon-cta-light {
  background: rgba(255, 255, 255, 0.15) !important;
  color: var(--primary-foreground) !important;
}

.feature-icon i {
  font-size: 1.25rem !important;
}

/* CTA Button */
.btn-cta {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  background: var(--accent) !important;
  color: var(--muted) !important;
  padding: 0.875rem 2rem !important;
  border-radius: 0.75rem !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.btn-cta:hover {
  transform: scale(1.03) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
  text-decoration: none !important;
}

.btn-cta i {
  font-size: 1.125rem !important;
}

/* ===== CALCULATOR STYLES ===== */
/* ===== CALCULATOR INPUTS / RESULTS ===== */
.calc-inputs {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}
@media (min-width: 768px) {
    .calc-inputs {
        border-bottom: none;
        border-right: 1px solid var(--border);
    }
}

.calc-group {
    margin-bottom: 1.25rem;
}
.calc-group:last-child {
    margin-bottom: 0;
}


.calc-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.calc-label-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.calc-value {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
}

.calc-select {
    width: 100%;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    background: var(--background);
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    color: var(--foreground);
    outline: none;
    transition: border-color 0.15s ease;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.25rem;
}
.calc-select:focus {
    border-color: var(--accent);
}

.calc-range {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--border);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}
.calc-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: 2px solid var(--background);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.calc-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: 2px solid var(--background);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.calc-range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.25rem;
}
.calc-range-labels span {
    font-size: 0.65rem;
    color: var(--muted-foreground);
}

/* Segmented buttons */
.calc-seg {
    display: flex;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    overflow: hidden;
}
.calc-seg-btn {
    flex: 1;
    padding: 0.625rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border: none;
    background: var(--background);
    color: var(--muted-foreground);
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
}
.calc-seg-btn.active {
    background: var(--primary);
    color: var(--primary-foreground);
}
.calc-seg-btn:not(.active):hover {
    background: var(--secondary);
    color: var(--foreground);
}

/* Checkboxes */
.calc-extras {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}
.calc-check {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    cursor: pointer;
}
.calc-check-box {
    margin-top: 1px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    border-radius: 4px;
    border: 1px solid var(--border);
    background: var(--background);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    position: relative;
}
.calc-check:hover .calc-check-box {
    border-color: var(--accent);
}
.calc-check input:checked + .calc-check-box {
    background: var(--accent);
    border-color: var(--accent);
}
.calc-check input:checked + .calc-check-box::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.calc-check-text {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    line-height: 1.4;
}
.calc-check-note {
    display: block;
    font-size: 0.65rem;
    color: var(--muted-foreground);
    opacity: 0.7;
}

/* Results panel */
.calc-results {
    background: var(--gradient-deep);
    color: #fff;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.calc-results-badge {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    margin-bottom: 0.75rem;
}

.calc-result-block {
    margin-bottom: 0.25rem;
}

.calc-result-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.65);
    margin-bottom: 0.35rem;
}

.calc-result-price {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}
@media (min-width: 1200px) {
    .calc-result-price {
        font-size: 1.6rem;
    }
}

.calc-result-mid {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
    margin-top: 0.5rem;
}
.calc-result-mid span {
    font-weight: 700;
    color: #fff;
}

.calc-results-divider {
    height: 1px;
    background: rgba(255,255,255,0.12);
    margin: 1rem 0;
    flex-shrink: 0;
}

.calc-details {
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}
.calc-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3rem 0;
}
.calc-detail-row dt {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255,255,255,0.55);
    margin: 0;
}
.calc-detail-row dd {
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff !important;
    margin: 0;
}

.calc-cta-wrap {
    margin-top: 15px;
    padding-top: 1.25rem;
    flex-shrink: 0;
}

.calc-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    background: var(--accent);
    color: var(--accent-foreground);
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
    border: none;
    cursor: pointer;
}
.calc-cta:hover {
    transform: scale(1.02);
    text-decoration: none;
    color: var(--accent-foreground);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.calc-cta svg {
    flex-shrink: 0;
}

.calc-disclaimer {
    margin-top: 0.625rem;
    font-size: 0.6rem;
    color: rgba(255,255,255,0.45);
    text-align: center;
    line-height: 1.5;
    margin-bottom: 0;
}

/* Outer grid alignment */
.calc-outer {
    align-items: start;
}

/* Calculator card container */
.calc-card {
    padding: 0;
    overflow: hidden;
}


/* ============================================
   MOBILE RESPONSIVE FIXES
   ============================================ */

/* ===== BASE MOBILE FIXES ===== */
@media (max-width: 639px) {
  /* Typography scale down */
  .text-3xl { font-size: 1.5rem !important; }
  .text-xl { font-size: 1.1rem !important; }

  /* Container padding */
  .container-page {
    padding-inline: 1rem !important;
  }

  /* Hero section */
  .py-14 { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
  .py-16 { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
  .py-20 { padding-top: 3rem !important; padding-bottom: 3rem !important; }

  /* Section spacing */
  .mt-10 { margin-top: 1.5rem !important; }
  .mt-12 { margin-top: 2rem !important; }
  .mb-12 { margin-bottom: 2rem !important; }

  /* Grid gaps */
  .gap-12 { gap: 1.5rem !important; }
  .gap-8 { gap: 1rem !important; }
  .gap-6 { gap: 0.75rem !important; }
}

/* ===== HERO SECTION MOBILE ===== */
@media (max-width: 1023px) {
  .lg\:grid-cols-hero {
    grid-template-columns: 1fr !important;
  }

  .lg\:sticky { position: static !important; }

  /* Hero form should be full width and not sticky */
  .lg\:top-24 { top: auto; }
}

/* ===== CALCULATOR MOBILE ===== */
@media (max-width: 767px) {
  .calc-grid {
    grid-template-columns: 1fr !important;
  }

  .calc-inputs {
    border-right: none !important;
    border-bottom: 1px solid var(--border);
    padding: 1.25rem;
  }

  .calc-results {
    padding: 1.25rem;
  }

  .calc-result-price {
    font-size: 1.5rem !important;
  }

  .calc-seg-btn {
    padding: 0.5rem 0.35rem;
    font-size: 0.7rem;
  }

  .calc-cta {
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
  }
}

/* ===== FAQ ACCORDION MOBILE ===== */
@media (max-width: 639px) {
  .faq-trigger {
    padding: 1rem 0;
    font-size: 0.9rem;
  }

  .faq-body {
    font-size: 0.875rem;
  }
}

/* ===== PROCESS STEPS MOBILE ===== */
@media (max-width: 639px) {
  .grid-cols-4,
  .sm\:grid-cols-2,
  .lg\:grid-cols-4 {
    grid-template-columns: 1fr !important;
  }
}

/* ===== WHY CONVERT CARDS MOBILE ===== */
@media (max-width: 639px) {
  .lg\:grid-cols-3 {
    grid-template-columns: 1fr !important;
  }
}

/* ===== TABLE MOBILE ===== */
@media (max-width: 639px) {
  table {
    font-size: 0.8rem;
  }

  table th,
  table td {
    padding: 0.5rem 0.75rem !important;
  }
}

/* ===== CTA BANNER MOBILE ===== */
@media (max-width: 639px) {
  .cta-banner-inner {
    flex-direction: column !important;
    text-align: center !important;
    padding: 1.5rem !important;
  }

  .cta-banner-text {
    flex-direction: column !important;
    text-align: center !important;
  }

  .cta-banner-heading {
    font-size: 1.1rem !important;
  }

  .feature-icon {
    width: 2.5rem !important;
    height: 2.5rem !important;
  }
}

/* ===== FOOTER MOBILE ===== */
@media (max-width: 639px) {
  .footer-row-main {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .footer-row-sub {
    grid-template-columns: 1fr !important;
    text-align: center;
  }

  .site-footer {
    padding-bottom: 6rem !important;
  }
}

/* ===== CARD SOFT MOBILE ===== */
@media (max-width: 639px) {
  .card-soft {
    padding: 1rem !important;
  }

  .card-soft.p-5 { padding: 1rem !important; }
  .card-soft.p-6 { padding: 1.25rem !important; }
}

/* ===== PROSE UK MOBILE ===== */
@media (max-width: 639px) {
  .prose-uk h2 {
    font-size: 1.35rem !important;
  }

  .prose-uk h3 {
    font-size: 1.1rem !important;
  }

  .prose-uk p {
    font-size: 0.9rem;
  }
}

/* ===== FORM ELEMENTS MOBILE ===== */
@media (max-width: 639px) {
  select,
  input[type="text"],
  input[type="email"],
  input[type="tel"] {
    font-size: 16px !important; /* Prevents iOS zoom */
    padding: 0.75rem !important;
  }

  .btn-cta,
  .calc-cta {
    width: 100%;
  }
}

/* ===== HERO IMAGE MOBILE ===== */
@media (max-width: 1023px) {
  .lg\:block {
    display: none !important;
  }
}

/* ===== HEADER MOBILE ===== */
@media (max-width: 991px) {
  .desktop-nav {
    display: none !important;
  }

  .header-inner {
    min-height: 60px !important;
  }

  .logo-title {
    font-size: 13px !important;
  }

  .logo-subtitle {
    font-size: 10px !important;
  }

  .logo-icon {
    width: 36px !important;
    height: 36px !important;
    font-size: 18px !important;
  }
}

/* ===== ARTICLE GRID MOBILE ===== */
@media (max-width: 1023px) {
  .lg\:grid-cols-article {
    grid-template-columns: 1fr !important;
  }

  .sidebar-sticky {
    position: static !important;
  }
}

/* ===== CONTACT GRID MOBILE ===== */
@media (max-width: 1023px) {
  .lg\:grid-cols-contact {
    grid-template-columns: 1fr !important;
  }
}

/* ===== BLOG CARDS MOBILE ===== */
@media (max-width: 639px) {
  .md\:grid-cols-2,
  .lg\:grid-cols-2 {
    grid-template-columns: 1fr !important;
  }
}

/* ===== GALLERY/LIGHTBOX MOBILE ===== */
@media (max-width: 639px) {
  .snap-x {
    -webkit-overflow-scrolling: touch;
  }
}

/* ===== GENERAL TOUCH FIXES ===== */
@media (hover: none) {
  .card-soft:hover {
    transform: none;
    box-shadow: var(--shadow-soft);
  }

  .btn-cta:hover,
  .calc-cta:hover {
    transform: none;
  }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* ===== HERO SECTION MOBILE FIXES ===== */
@media (max-width: 639px) {
  /* Badge: allow wrapping but keep it neat */
  .bg-secondary .inline-flex.items-center.gap-2.rounded-full {
    font-size: 0.65rem !important;
    padding: 0.35rem 0.75rem !important;
    line-height: 1.3;
    white-space: normal;
    max-width: 100%;
  }

  .bg-secondary .inline-flex.items-center.gap-2.rounded-full svg {
    width: 14px !important;
    height: 14px !important;
    flex-shrink: 0;
  }

  /* Hero heading */
  .bg-secondary h1 {
    font-size: 1.65rem !important;
    line-height: 1.2 !important;
    margin-top: 1rem !important;
  }

  /* Hero paragraph */
  .bg-secondary h1 + p {
    font-size: 0.9rem !important;
    margin-top: 0.75rem !important;
  }

  /* Feature cards (Average Local Costs etc) - stack vertically */
  .bg-secondary ul.grid.sm\:grid-cols-3 {
    grid-template-columns: 1fr !important;
    gap: 0.5rem !important;
    margin-top: 1rem !important;
  }

  .bg-secondary ul.grid.sm\:grid-cols-3 li {
    padding: 0.6rem 0.75rem !important;
    font-size: 0.7rem !important;
  }

  /* Buttons stack full width */
  .bg-secondary .mt-8.flex.flex-wrap.gap-3 {
    flex-direction: column !important;
    gap: 0.5rem !important;
    margin-top: 1.25rem !important;
  }

  .bg-secondary .mt-8.flex.flex-wrap.gap-3 > a {
    width: 100% !important;
    justify-content: center !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.9rem !important;
  }

  /* Secondary button needs visible border */
  .bg-secondary .btn-secondary {
    border: 1px solid var(--border) !important;
    background: var(--background) !important;
  }

  /* Trust badges (1,200+ homeowners matched) */
  .bg-secondary .mt-8.flex.flex-wrap.items-center.gap-6 {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.5rem !important;
    margin-top: 1rem !important;
    font-size: 0.7rem !important;
  }

  .bg-secondary .mt-8.flex.flex-wrap.items-center.gap-6 > span {
    width: 100%;
  }

  /* Hide hero image on mobile */
  .bg-secondary img.rounded-3xl {
    display: none !important;
  }

  /* Hide the sticky form card on mobile (it's below the fold anyway) */
  .bg-secondary .lg\:sticky {
    display: none !important;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  /* Tablet: show form but stack it below */
  .bg-secondary .lg\:sticky {
    position: static !important;
    margin-top: 2rem;
  }

  .bg-secondary .lg\:grid-cols-hero {
    grid-template-columns: 1fr !important;
  }
}


/* ===== MOBILE NAV CTA ===== */
.mobile-nav-cta {
    display: block;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0.5rem;
}

@media (min-width: 992px) {
    .mobile-nav-cta {
        display: none !important;
    }
}

.btn-cta-block {
    display: flex !important;
    width: 100%;
    justify-content: center;
}

/* ===== STICKY MOBILE CTA BAR ===== */
.sticky-mobile-cta-bar {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    padding: 0.75rem 1rem;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}

.sticky-mobile-cta-bar .btn-cta {
    display: flex !important;
    width: 100%;
    justify-content: center;
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
}

@media (min-width: 992px) {
    .sticky-mobile-cta-bar {
        display: none !important;
    }
}

/* Add bottom padding to body so content isn't hidden behind sticky bar */
@media (max-width: 991px) {
    body {
        padding-bottom: 70px !important;
    }

    /* Also adjust footer padding */
    .site-footer {
        padding-bottom: 6rem !important;
    }
}


/* ===== CONTACT CARD ICON FIX ===== */
/* Force centering on icon containers inside cards */
.card-soft .grid.place-items-center,
.card-soft span.grid.place-items-center,
.grid.place-items-center.rounded-xl,
.grid.place-items-center.rounded-full {
  align-items: center !important;
  justify-items: center !important;
  display: grid !important;
  place-items: center !important;
}

/* Alternative: target the specific icon wrapper pattern */
span.grid.h-11.w-11.place-items-center,
span.grid.h-10.w-10.place-items-center {
  align-items: center !important;
  justify-items: center !important;
  place-items: center !important;
}

/* Ensure the icon itself is centered */
span.grid.place-items-center > i,
span.grid.place-items-center > svg {
  display: inline-block !important;
  margin: auto !important;
}

/* ===== CONTACT ICON SIZE ===== */
.contact-icon {
    font-size: 1.25rem !important;
}
@media (max-width: 991.98px) {

    .header-actions .desktop-cta {
        display: none !important;
    }

    .mobile-menu-cta {
        display: block !important;
        padding: 1rem 0 1.5rem;
    }

    .mobile-menu-cta .btn-cta {
        display: flex;
        width: 100%;
        justify-content: center;
    }
}
/* ===== HERO SECTION WITH BACKGROUND IMAGE ===== */
.hero-section {
    position: relative;
    background: linear-gradient(177deg, rgba(255, 255, 255, 0.97) 0%, rgb(217 248 238) 40%, rgba(255, 255, 255, 0.75) 100%), url(assets/images/gallery-1.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Darker overlay option (uncomment if you want more image visible) */
/*
.hero-section {
    background: 
        linear-gradient(135deg, rgba(248,250,252,0.88) 0%, rgba(248,250,252,0.80) 50%, rgba(248,250,252,0.65) 100%),
        url('assets/images/gallery-1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
*/

/* Mobile: remove fixed attachment for performance */
@media (max-width: 767px) {
    .hero-section {
        background-attachment: scroll;
    }
}