/* --- RESET & VARIABLES --- */
:root {
  --bg-dark: #050505; 
  --card-bg: #111111; 
  --border-color: #222222;
  --text-main: #e5e5e5;
  --text-muted: #9ca3af;
  
  --accent-blue: #3b82f6;
  --accent-blue-dark: #1d4ed8;
  --accent-red: #ef4444; 
  
  --font-heading: 'General Sans', sans-serif;
  --font-body: 'Satoshi', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- TYPOGRAPHY --- */
.heading-sans { font-family: var(--font-heading); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
.section-title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 20px; }
.text-gradient { background: linear-gradient(to right, #93c5fd, #3b82f6); -webkit-background-clip: text; color: transparent; }
.italic-serif { font-style: italic; font-weight: 500; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.relative { position: relative; }

/* --- BUTTONS --- */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
  color: white; text-decoration: none; font-weight: 600; border-radius: 8px;
  transition: all 0.3s ease; border: 1px solid rgba(255,255,255,0.1);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4); }
.btn-small { padding: 10px 20px; font-size: 0.9rem; }
.btn-large { padding: 16px 32px; font-size: 1.1rem; }

/* --- NAVBAR --- */
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 20px 5%;}
.logo { display: flex; align-items: center; }
.brand-logo { height: 40px; width: auto; } /* Keeps the image logo sized perfectly */
.menu-toggle { display: none; background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; }

/* --- HERO (UPDATED MOBILE SIZING) --- */
.hero { max-width: 900px; margin: 30px auto 40px; text-align: center; padding: 0 20px; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.badge { display: inline-block; background-color: rgba(91, 137, 235, 0.27); padding: 6px 16px; border: 1px solid rgba(30, 92, 227, 0.79); border-radius: 8px; font-size: 0.75rem; font-weight: 700; letter-spacing: 1px; color: white; }
/* The clamp function shrinks text elegantly on mobile */
.hero h1 { font-size: clamp(1.5rem, 4vw, 3.6rem); line-height: 1.15; }
.hero-subtext { font-size: 1.1rem; color: var(--text-muted); max-width: 700px; }
.social-proof { margin-top: 30px; display: flex; flex-direction: column; align-items: center; gap: 10px;}
.avatars { display: flex; }
.avatars img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--bg-dark); margin-left: -10px; object-fit: cover;}
.avatars img:first-child { margin-left: 0; }
.social-proof p { font-size: 0.85rem; color: var(--text-muted); }

/* --- GLOBAL SECTIONS --- */
section { padding: 60px 8%; max-width: 1600px; margin: 0 auto; }
.section-subtext { max-width: 700px; margin: 0 auto; color: var(--text-muted); }

/* --- CASE STUDIES --- */
.case-card { display: grid; grid-template-columns: 1fr; gap: 30px; background-color: var(--card-bg); border: 1.3px solid #666262; border-radius: 20px; padding: 40px; margin-bottom: 40px; }
.case-content h3 { font-family: var(--font-heading); font-size: 1.4rem; margin-bottom: 15px; }
.case-content p { color: var(--text-muted); margin-bottom: 15px; font-size: 1.2rem; }
.case-media img, .inline-image { width: 100%; border-radius: 12px; border: 1px solid var(--border-color); }

/* --- CAROUSELS (Videos & Text Reviews) --- */
.carousel-section { padding: 0 5%; max-width: 1200px; margin: 0 auto; position: relative; }
.scroll-container { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 20px; scrollbar-width: none; scroll-behavior: smooth; }
.scroll-container::-webkit-scrollbar { display: none; }

/* Carousel Arrows */
.carousel-arrow {
  position: absolute; top: 40%; transform: translateY(-50%);
  background: #3b82f6; color: white; border: none;
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; cursor: pointer; z-index: 10;
  transition: background 0.3s, transform 0.2s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}
.carousel-arrow:hover { background: #2563eb; transform: translateY(-50%) scale(1.05); }
.prev-arrow { left: 0%; }
.next-arrow { right: 0%; }

/* Video Cards & Wistia */
.video-card { 
  flex: 0 0 85%; 
  min-width: 85%; /* Forces it to stay wide on mobile */
  scroll-snap-align: center; 
  border-radius: 16px; 
  overflow: hidden; 
  border: 1px solid var(--border-color); 
  background: #000; 
}

/* Text Review Cards */
.review-card { flex: 0 0 85%; scroll-snap-align: center; background: var(--card-bg); border: 1px solid var(--border-color); padding: 30px; border-radius: 16px; }
.stars { color: white; margin-bottom: 15px; font-size: 0.9rem; } /* Matched your design stars */
.review-card p { font-size: 1rem; color: var(--text-main); margin-bottom: 20px; }
.reviewer { display: flex; align-items: center; gap: 12px; }
.reviewer img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover;}
.reviewer div { display: flex; flex-direction: column; }
.reviewer span { font-size: 0.8rem; color: var(--text-muted); }
/* Pagination Dots */
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.dot { width: 8px; height: 8px; background: #333; border-radius: 50%; transition: 0.3s; }
.dot.active { background: #3b82f6; }

/* --- GRIDS (Leaks & Services) --- */
.grid-container { display: grid; gap: 20px; grid-template-columns: 1fr; }
.border-card { background-color: var(--card-bg); border: 1px solid var(--border-color); padding: 30px; border-radius: 16px; transition: border-color 0.3s ease; }
.border-card:hover { border-color: #3b82f6; }
.border-card h4 { font-family: var(--font-heading); font-size: 1.2rem; margin: 15px 0 10px; }
.border-card p { color: var(--text-muted); font-size: 1.2rem; }
.icon-red { color: var(--accent-red); font-size: 2rem; }
.icon-blue { color: var(--accent-blue); font-size: 2rem; }

/* --- FAQ ACCORDION --- */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border-color); background: var(--card-bg); margin-bottom: 10px; border-radius: 8px; overflow: hidden;}
.faq-question { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 20px; background: none; border: none; color: white; font-size: 1.1rem; font-family: var(--font-body); font-weight: 500; cursor: pointer; text-align: left; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; padding: 0 20px; color: var(--text-muted); }
.faq-item.active .faq-answer { max-height: 200px; padding: 0 20px 20px 20px; }

/* --- BOTTOM CTA GLOW --- */
.bottom-cta { text-align: center; padding: 120px 20px; position: relative; overflow: hidden;}
.glow-bg { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 60%; height: 200px; background: var(--accent-blue); filter: blur(120px); opacity: 0.15; z-index: -1; pointer-events: none;}

/* --- RESPONSIVE QUERIES --- */
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .nav-links { display: none; }
  /* Make arrows smaller and hug the edges on mobile */
  .carousel-arrow { width: 32px; height: 32px; font-size: 1rem; }
  .prev-arrow { left: 0px; }
  .next-arrow { right: 0px; }
  .badge {font-size: 11px}
}
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  /* Show 2 per slide on tablet */
  .video-card, .review-card { flex: 0 0 45%; min-width: 45%; scroll-snap-align: start;} 
  .prev-arrow { left: -20px; }
  .next-arrow { right: -20px; }
}
@media (min-width: 1024px) {
  .case-card { grid-template-columns: 1fr 1fr; align-items: center; }
  /* Show 3 per slide on desktop */
  .video-card, .review-card { flex: 0 0 31%; min-width: 31%; scroll-snap-align: start;} 
}