﻿/* ================= CRITICAL FIXES (PREPENDED v5) ================= */
.contact-header,
.contact-header .pill {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

@media (max-width: 1024px) {
  body .header .brand .brand-text {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ================= END FIXES ================= */
:root {
  /* Modern Premium Theme - Refined Palette */
  --bg: #f3f6f9;
  /* Subtle cool gray background for depth */
  --surface: #ffffff;
  /* Pure white for cards/modals to pop */
  --surface-2: #eef2f6;
  /* Slightly deeper cool gray for sections */
  --surface-3: #e2e8f0;
  /* Borders/Dividers match Slate-200 */
  /* Deeper contrast */

  --text: #1e293b;
  /* Slate 800 */
  --text-muted: #64748b;
  /* Slate 500 */
  --border: #cbd5e1;
  /* Increased border contrast (Slate 300) for white-on-white separation */
  /* Slate 300 */

  /* Brand Colors - Fresh & Trustworthy */
  --brand-primary: #0284c7;
  /* Sky 600 - Trustworthy Blue */
  --brand-primary-hover: #0369a1;

  --brand-secondary: #0ea5e9;
  /* Sky 500 */
  --brand-accent: #38bdf8;
  /* Sky 400 */

  --success: #10b981;
  /* Emerald 500 */
  --warning: #f59e0b;
  /* Amber 500 */

  --font-heading: 'Outfit', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --radius: 12px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  --max-w: 1400px;
  --header-height: 80px;

  /* Hero Theme Variables (Light Mode Default) */
  /* Stronger overlay for image background to ensure text pops */
  --hero-overlay: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4));

  /* Glass Card Variables */
  --hero-card-bg: rgba(255, 255, 255, 0.1);
  --hero-card-border: rgba(255, 255, 255, 0.3);
  --hero-card-blur: blur(20px);

  --hero-text-color: #ffffff;
  --hero-text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Dark Theme (applied via JS class 'dark-theme') */
body.dark-theme {
  --bg: #0f172a;
  /* Slate 900 */
  --surface: #1e293b;
  /* Slate 800 */
  --surface-2: #020617;
  /* Slate 950 - Deeper contrast */
  --surface-3: #334155;
  /* Slate 700 */

  --text: #f1f5f9;
  /* Slate 100 */
  --text-muted: #94a3b8;
  /* Slate 400 */
  --border: #334155;
  /* Slate 700 */

  /* Adjusted for Dark Mode Contrast */
  --brand-primary: #38bdf8;
  /* Sky 400 (Ligher/Brighter) instead of Sky 600 */
  --brand-primary-hover: #7dd3fc;
  /* Sky 300 */

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4);

  /* Hero Theme Variables (Dark Mode) - Keep Consistent */
  --hero-overlay: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
  --hero-card-bg: rgba(0, 0, 0, 0.2);
  /* Slightly darker glass in dark mode */
  --hero-card-border: rgba(255, 255, 255, 0.15);

  --hero-text-bg: rgba(15, 23, 42, 0.65);
  --hero-text-color: #ffffff;
  --hero-text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* Auto-apply dark theme if system prefers it AND no manual override */
/* Auto-apply dark theme DISABLED - Default is Light */
/*
@media (prefers-color-scheme: dark) {
  body:not(.light-theme) {
    --bg: #0f172a;
    --surface: #1e293b;
    --surface-2: #020617;
    --surface-3: #334155;

    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --border: #334155;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4);

    --hero-overlay: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
    --hero-card-bg: rgba(0, 0, 0, 0.2);
    --hero-card-border: rgba(255, 255, 255, 0.15);

    --hero-text-bg: rgba(15, 23, 42, 0.65);
    --hero-text-color: #ffffff;
    --hero-text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  }
}
*/

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.muted {
  color: var(--text-muted);
}

.hidden {
  display: none;
}

/* Focus Styles */
:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skip Link */
.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 9999;
  padding: 1rem;
  background: var(--surface);
  color: var(--brand-primary);
  border: 2px solid var(--brand-primary);
  opacity: 0;
}

.skip-link:focus {
  left: 30px;
  top: 30px;
  opacity: 1;
}

/* Gradient Strip - Refined */
.rgb-strip {
  height: 4px;
  /* Red, Orange, Green, Blue, Red - Seamless Loop */
  background: linear-gradient(90deg, #ef4444, #f97316, #10b981, #3b82f6, #ef4444);
  background-size: 200% 100%;
  width: 100%;
  animation: rgb-flow 3s linear infinite;
}

@keyframes rgb-flow {
  0% {
    background-position: 0% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.rgb-strip--thin {
  height: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ================= HEADER & NAV ================= */

/* Header Background Logic */
.header {
  /* Default (Light) */
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: background 0.3s, border-color 0.3s;
}

/* System Dark Preference (No class = system) */
@media (prefers-color-scheme: dark) {
  body:not(.light-theme) .header {
    background: rgba(15, 23, 42, 0.85) !important;
  }
}

/* Explicit Dark Mode */
body.dark-theme .header {
  background: rgba(15, 23, 42, 0.85);
}

/* Explicit Light Mode */
body.light-theme .header {
  background: rgba(255, 255, 255, 0.85);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text);
  z-index: 1002;
  /* Above mobile menu */
}

.brand-logo {
  height: 40px;
  width: auto;
}

/* Desktop Nav - Floating Pill Style */
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--surface-2);
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.nav a {
  text-decoration: none;
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  background: var(--bg);
  box-shadow: var(--shadow-sm);
}

/* Toggles & Actions */
.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.toggles {
  display: flex;
  gap: 8px;
  align-items: center;
}

.toggles button,
.nav-toggle {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.toggles button:hover,
.nav-toggle:hover {
  color: var(--brand-primary);
  border-color: var(--brand-primary);
  background: var(--surface-2);
}

.nav-toggle {
  display: none;
  z-index: 1002;
}

/* Call Button in Header */
.contact-header {
  display: none;
}

@media (min-width: 1024px) {
  .contact-header {
    display: inline-flex;
  }
}

/* ================= COMPONENT: PILLS & BUTTONS ================= */

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.pill-strong {
  background: var(--brand-primary);
  color: white;
  box-shadow: var(--shadow-sm);
}

.pill-strong:hover {
  background: var(--brand-primary-hover);
  transform: translateY(-1px);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 50px;
  /* Pill shape */
  font-weight: 600;
  text-decoration: none;
  color: white;
  background: var(--brand-primary);
  border: none;
  box-shadow: var(--shadow-md);
  transition: all 0.2s ease;
  font-size: 1rem;
}

.btn-primary:hover {
  background: var(--brand-primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  background: transparent;
  /* Changed from white to transparent to handle dark mode specifically */
  border: 1px solid var(--border);
  transition: all 0.2s ease;
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
  background-color: var(--surface);
  /* Fallback */
}

/* Specific fix for Dark Mode buttons to ensure visibility */
body.dark-theme .btn-secondary {
  background-color: rgba(255, 255, 255, 0.05);
  /* Slight tint */
  color: white;
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  background: var(--surface-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ================= HERO ================= */

.hero {
  padding: 100px 0;
  background: var(--hero-overlay), url('images/HeroSectionImg.png');
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease;
  /* Smooth transition for theme switch */
}

/* Decorative background elements & RGB Effect */
/* Decorative background elements & RGB Effect */
/* Decorative background elements & RGB Effect */
/* Aurora effect disabled for image background */
/* 
.hero::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150%;
  height: 150%;
  background: linear-gradient(120deg,
      rgba(239, 68, 68, 0.12),
      rgba(249, 115, 22, 0.12),
      rgba(16, 185, 129, 0.12),
      rgba(59, 130, 246, 0.12),
      rgba(239, 68, 68, 0.12));
  background-size: 300% 300%;
  animation: rgb-fluid 15s ease infinite alternate;
  z-index: 0;
  border-radius: 50%;
  filter: blur(80px);
}

.hero::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 30%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background-image: url('images/AgnesLogo.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.12;
  z-index: 0;
  animation: float-logo 20s ease-in-out infinite;
} 
*/

@keyframes rgb-fluid {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes float-logo {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  50% {
    transform: translate(-50%, -60%) rotate(2deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.hero-copy {
  background: var(--hero-card-bg);
  backdrop-filter: var(--hero-card-blur);
  -webkit-backdrop-filter: var(--hero-card-blur);
  padding: 60px;
  border-radius: 32px;
  border: 1px solid var(--hero-card-border);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: var(--hero-text-color);
  text-shadow: var(--hero-text-shadow);
  transition: color 0.3s;
}

.hero p {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--hero-text-color);
  margin-bottom: 40px;
  max-width: 800px;
  text-shadow: var(--hero-text-shadow);
  opacity: 0.95;
  font-weight: 400;
  transition: color 0.3s;
}

.cta-row {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* Glassmorphism Buttons Specific to Hero */
.hero .btn-primary {
  background-color: #2563EB;
  /* Strong Blue */
  color: white;
  border: none;
  font-weight: 600;
  padding: 16px 32px;
  box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

.hero .btn-primary:hover {
  background-color: #1d4ed8;
  transform: translateY(-2px);
}

.hero .btn-secondary {
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.8);
  font-weight: 600;
  padding: 16px 32px;
  box-shadow: none;
}

.hero .btn-secondary:hover {
  background: rgba(255, 255, 255, 1);
  color: #0f172a;
  border-color: white;
  transform: translateY(-2px);
}


.hero-points {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px 32px;
  justify-content: center;
  color: var(--hero-text-color);
  font-size: 0.95rem;
  font-weight: 500;
  text-shadow: var(--hero-text-shadow);
  text-align: left;
  max-width: 800px;
  margin: 0 auto;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-points li::before {
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%234ade80'%3E%3Cpath d='M9 16.17L4.83 12 3.41 13.41 9 19 21 7 19.59 5.59z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 20px;
  height: 20px;
  display: inline-block;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-xl);
  padding: 32px;
  position: relative;
}

.hero-card h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.hero-card-actions {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-card-actions .pill {
  width: 100%;
  justify-content: flex-start;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 1rem;
}

.section-sep {
  display: none;
}

/* Removed RGB separator */


/* ================= SECTIONS ================= */

.renovation-feature {
  padding: 100px 24px;
  background-color: var(--surface-2);
  /* Distinct light gray background */
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.renovation-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.renovation-image img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: var(--shadow-xl);
  object-fit: cover;
  aspect-ratio: 4/3;
  transform: rotate(-1deg);
  /* Slight playful tilt */
  transition: transform 0.3s ease;
}

.renovation-image img:hover {
  transform: rotate(0deg) scale(1.02);
}

.renovation-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.renovation-content h2 {
  font-size: 2.5rem;
  margin-bottom: 8px;
  color: var(--text);
}

.renovation-content .lead-text {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 16px;
}

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  font-size: 1.1rem;
}

.check-list li::before {
  content: "";
  background-color: var(--brand-primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12 3.41 13.41 9 19 21 7 19.59 5.59z'/%3E%3C/svg%3E");
  background-size: 60%;
  background-repeat: no-repeat;
  background-position: center;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.renovation-actions {
  margin-top: 12px;
}

@media (max-width: 900px) {
  .renovation-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .renovation-image {
    order: -1;
    /* Image on top on mobile */
  }
}

@media (max-width: 768px) {
  .renovation-feature {
    padding: 60px 20px;
  }

  .renovation-content h2 {
    font-size: 2rem;
  }
}

.services,
.trust,
.about,
.testimonials {
  padding: 80px 24px;
}

.section-head {
  margin-bottom: 48px;
  max-width: 700px;
}

.section-head--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.services h2,
.trust h2,
.contact-section h2,
.about h2,
.testimonials h2 {
  font-size: 2.25rem;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

/* Service Cards */
/* Improved grid layout for 5 items */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  /* Removed flex properties */
}

.service-card {
  /* Let Grid handle width */
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--brand-accent);
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s;
}

.service-card:hover img {
  transform: scale(1.05);
}

.service-card-content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  /* Pushes content to fill the card */
  justify-content: space-between;
  /* Ensures button sticks to bottom */
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
  /* Space between text and button */
  flex-grow: 1;
}

.service-card .btn-text {
  align-self: flex-start;
  margin-top: auto;
  /* Double insurance for bottom alignment */
}

/* Callout */
.callout {
  margin-top: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 40px;
  border-radius: 24px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.callout::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(2, 132, 199, 0.05), transparent);
  pointer-events: none;
}

.callout-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ================= TRUST ================= */

.trust {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.trust-grid li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s;
}

.trust-grid li:hover {
  transform: translateY(-2px);
}

.trust-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--brand-primary);
  font-size: 1.1rem;
}

.trust-grid span {
  color: var(--text-muted);
}

/* ================= ABOUT ================= */

.about {
  background: var(--bg);
}

.about-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-text p {
  margin-bottom: 20px;
  line-height: 1.8;
  color: var(--text-muted);
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.stat {
  text-align: center;
  padding: 24px;
  background: var(--surface-2);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stat strong {
  display: block;
  font-size: 2.5rem;
  color: var(--brand-primary);
  line-height: 1;
  margin-bottom: 4px;
}

.stat span {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

/* ================= TESTIMONIALS ================= */

.testimonials {
  background: var(--surface-2);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.testimonial-card {
  background: var(--surface);
  border: none;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-md);
  position: relative;
}

.testimonial-card::before {
  content: "\201C";
  position: absolute;
  top: 16px;
  right: 24px;
  font-size: 4rem;
  color: var(--brand-primary);
  opacity: 0.1;
  font-family: serif;
}

.testimonial-card p {
  font-style: italic;
  margin-bottom: 16px;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.6;
}

.testimonial-card cite {
  font-weight: 600;
  color: var(--brand-primary);
  font-style: normal;
}

/* ================= CONTACT ================= */

.contact-section {
  padding: 80px 0;
  background: var(--bg);
}

.contact-inner {
  max-width: 100%;
  margin: 0 auto;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

@media (max-width: 768px) {
  .contact-content {
    grid-template-columns: 1fr;
  }
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-row .label {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.contact-row a,
.contact-row span {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
}

.contact-row a:hover {
  color: var(--brand-primary);
}

/* Form */
.contact-form {
  background: var(--surface-2);
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.contact-form h3 {
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

/* ================= FOOTER ================= */

.footer {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  padding-top: 64px;
  padding-bottom: 32px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-title {
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--brand-primary);
}

.footer-contact {
  display: flex;
  gap: 12px;
}

.footer-contact .pill {
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.9rem;
}

.footer-contact .pill:hover {
  border-color: var(--brand-primary);
  transform: translateY(-2px);
}

/* ================= CHAT WIDGET ================= */
/* Simple chat widget styles */
#chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: var(--font-body);
}

#chat-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: white;
  border: none;
  box-shadow: var(--shadow-lg);
  font-size: 24px;
  cursor: pointer;
  transition: transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

#chat-toggle:hover {
  transform: scale(1.1);
  background: var(--brand-primary-hover);
}

#chat-panel {
  width: 320px;
  max-width: calc(100vw - 48px);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  transition: opacity 0.3s, transform 0.3s;
  opacity: 1;
  transform: translateY(0);
}

#chat-panel.hidden {
  display: none;
  opacity: 0;
  transform: translateY(20px);
}

.chat-header {
  background: var(--brand-primary);
  color: white;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header h3 {
  color: white;
  font-size: 1rem;
  margin: 0;
}

#chat-close {
  background: transparent;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

#chat-messages {
  height: 300px;
  overflow-y: auto;
  padding: 16px;
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-msg {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.chat-msg.bot {
  background: var(--surface);
  border: 1px solid var(--border);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.chat-msg.user {
  background: var(--brand-primary);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.chat-chips {
  padding: 10px 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.chip {
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--brand-primary);
}

.chip:hover {
  background: var(--brand-primary);
  color: white;
  border-color: var(--brand-primary);
}

.chat-input {
  display: flex;
  padding: 12px;
  border-top: 1px solid var(--border);
  gap: 8px;
}

#chat-input {
  flex-grow: 1;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.9rem;
  background: var(--surface-2);
}

#chat-send {
  background: var(--brand-primary);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
}

#chat-send:hover {
  background: var(--brand-primary-hover);
}

/* ================= MEDIA QUERIES ================= */

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cta-row {
    justify-content: center;
  }

  .hero p {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  .header-actions {
    gap: 8px;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 24px;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 9999;
    /* Hidden by default on mobile */
  }

  .nav.nav-open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .nav a {
    width: 100%;
    text-align: center;
    padding: 12px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ================= CHAT WIDGET ================= */

#chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
  font-family: var(--font-body);
}

/* Toggle Button */
#chat-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: white;
  border: none;
  box-shadow: var(--shadow-xl);
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

#chat-toggle:hover {
  transform: scale(1.1) rotate(5deg);
  background: var(--brand-primary-hover);
  box-shadow: 0 0 20px rgba(2, 132, 199, 0.4);
}

/* Chat Panel */
#chat-panel {
  width: 380px;
  max-width: calc(100vw - 48px);
  height: 600px;
  max-height: calc(100vh - 120px);
  background: rgba(255, 255, 255, 0.9);
  /* More opaque for readability */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-2xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform-origin: bottom right;
  animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

body.dark-theme #chat-panel {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(255, 255, 255, 0.1);
}

#chat-panel.hidden {
  display: none;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Header */
.chat-header {
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

body.dark-theme .chat-header {
  background: rgba(15, 23, 42, 0.5);
}

.chat-header h3 {
  font-size: 1rem;
  margin: 0;
  color: var(--text);
  font-weight: 600;
}

#chat-close {
  background: transparent;
  border: none;
  font-size: 24px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  border-radius: 50%;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

#chat-close:hover {
  background: var(--surface-2);
  color: var(--text);
}

/* Messages */
#chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}

.message {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 0.95rem;
  line-height: 1.5;
  position: relative;
  word-wrap: break-word;
  animation: messagePop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes messagePop {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(10px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.message.bot {
  background: var(--surface-2);
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  border: 1px solid var(--border);
}

body.dark-theme .message.bot {
  background: rgba(255, 255, 255, 0.05);
}

.message.user {
  background: var(--brand-primary);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  box-shadow: var(--shadow-sm);
}

/* Chips */
.chat-chips {
  padding: 12px 20px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-top: 1px solid transparent;
}

.chat-chips::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: 0 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

body.dark-theme .chip {
  background: rgba(255, 255, 255, 0.05);
}

.chip:hover {
  background: var(--brand-primary);
  color: white;
  border-color: var(--brand-primary);
  transform: translateY(-1px);
}

/* Input */
.chat-input {
  padding: 16px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  align-items: center;
}

body.dark-theme .chat-input {
  background: rgba(15, 23, 42, 0.9);
}

#chat-input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

body.dark-theme #chat-input {
  background: rgba(255, 255, 255, 0.05);
}

#chat-input:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2);
}

#chat-send {
  background: var(--brand-primary);
  color: white;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  transition: all 0.2s;
  padding: 0;
  font-size: 0.8rem;
}

#chat-send:hover {
  background: var(--brand-primary-hover);
  transform: scale(1.05);
}

/* Mobile */
@media (max-width: 480px) {
  #chat-widget {
    bottom: 16px;
    right: 16px;
  }

  #chat-panel {
    position: fixed;
    bottom: 80px;
    right: 16px;
    left: 16px;
    width: auto;
    max-width: none;
    height: calc(100vh - 100px);
  }
}

/* ================= MODAL STYLES (v6) ================= */

dialog {
  display: block;
  /* Ensure it's not hidden by default if polyfilled */
  visibility: hidden;
  /* Hide until open */
  opacity: 0;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -45%);
  padding: 0;
  border: none;
  border-radius: 24px;
  box-shadow: var(--shadow-xl);
  max-width: 800px;
  /* Increased from 500px as requested */
  width: 90%;
  background: var(--surface);
  color: var(--text);
  z-index: 10000;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ... existing styles ... */

/* Detailed Service Grid Layout (Modified to Single Column) */
.service-detail-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  /* Increased vertical spacing */
  align-items: stretch;
  margin-top: 16px;
}

dialog[open] {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, -50%);
}

dialog::backdrop {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

dialog[open]::backdrop {
  opacity: 1;
}

.modal-content {
  display: flex;
  flex-direction: column;
  max-height: 85vh;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 24px 0 24px;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.5rem;
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

#modal-close {
  background: var(--surface-2);
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

#modal-close:hover {
  background: var(--text-muted);
  color: white;
  transform: rotate(90deg);
}

.modal-body {
  padding: 24px;
  line-height: 1.6;
  font-size: 1.05rem;
  color: var(--text-muted);
  overflow-y: auto;
}

/* Enhancing lists within modal from chatbot data */
.modal-body ul {
  padding-left: 20px;
  margin: 10px 0;
}

.modal-body li {
  margin-bottom: 8px;
}

/* Detailed Service Grid Layout (Single Column with spacing) */
.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  /* Force single column */
  gap: 32px;
  align-items: start;
  margin-top: 20px;
}

.detail-section h4 {
  color: var(--brand-primary);
  font-size: 1.15rem;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--surface-2);
  padding-bottom: 8px;
}

.detail-section ul {
  list-style: none;
  padding-left: 0;
}

.detail-section li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  line-height: 1.7;
  color: var(--text);
  font-size: 1rem;
}

.detail-section li::before {
  content: "•";
  color: var(--brand-secondary);
  position: absolute;
  left: 6px;
  font-size: 1.2em;
  line-height: 1;
  top: 4px;
}

.modal-footer {
  padding: 20px 24px;
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  display: flex;
  justify-content: flex-end;
}

/* Dark theme specific adjustments */
body.dark-theme dialog {
  background: var(--surface);
  border: 1px solid var(--border);
}

body.dark-theme .modal-footer {
  background: var(--bg);
}

/* ================= RESPONSIVE FIXES ================= */

@media (max-width: 900px) {
  .hero-copy {
    padding: 32px;
    margin: 0 16px;
    width: auto;
  }

  .hero h1 {
    font-size: clamp(1.75rem, 4vw, 3rem);
    word-break: break-word;
    hyphens: auto;
  }

  .hero p {
    font-size: 1.1rem;
  }
}

@media (max-width: 600px) {

  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .hero-copy {
    padding: 20px 16px;
    border-radius: 20px;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
  }

  .hero h1 {
    font-size: 1.75rem !important;
    /* Smaller to fit 375px */
    line-height: 1.25;
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin-bottom: 20px;
  }

  .hero p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 24px;
    opacity: 0.95;
  }

  .cta-row {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .hero .btn-primary,
  .hero .btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 0.95rem;
  }

  .hero-points {
    grid-template-columns: 1fr;
    gap: 12px;
    text-align: left;
    padding-left: 4px;
    /* Align slightly */
  }

  .hero-points li {
    font-size: 0.9rem;
    align-items: flex-start;
    /* checks align top if text wraps */
  }

  .hero-points li::before {
    margin-top: 3px;
    /* visual alignment */
    flex-shrink: 0;
  }

  /* Fix Header on Mobile */
  .header-inner {
    padding: 0 16px;
  }

  .brand {
    font-size: 1.1rem;
  }
}

/* Fix Reco Widget Overflow */
.reco-widget {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 24px;
  display: block;
}

/* ================= TESTIMONIALS CAROUSEL ANIMATIONS ================= */
.testimonial-card {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

.testimonial-card.fade-in {
  opacity: 1;
  transform: scale(1);
}

.testimonial-card.fade-out {
  opacity: 0;
  transform: scale(0.95);
}

/* ================= CHATBOT UI ================= */
#chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  font-family: var(--font-body);
}

#chat-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: white;
  border: none;
  box-shadow: var(--shadow-lg);
  font-size: 1.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#chat-toggle:hover {
  transform: scale(1.1);
  background: var(--brand-primary-hover);
}

#chat-panel {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 380px;
  height: 600px;
  max-height: calc(100vh - 120px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform-origin: bottom right;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 1;
  transform: scale(1);
}

#chat-panel.hidden {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
  display: flex !important;
  /* Override display:none to allow transition */
  visibility: hidden;
}

.chat-header {
  background: var(--brand-primary);
  color: white;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header h3 {
  color: white;
  font-size: 1.1rem;
  margin: 0;
  font-weight: 600;
}

#chat-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: background 0.2s;
}

#chat-close:hover {
  background: rgba(255, 255, 255, 0.4);
}

#chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--surface-2);
}

.message {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.95rem;
  line-height: 1.5;
  animation: fade-in-up 0.3s ease-out;
}

.message.user {
  align-self: flex-end;
  background: var(--brand-primary);
  color: white;
  border-bottom-right-radius: 4px;
}

.message.bot {
  align-self: flex-start;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow-sm);
}

.chat-chips {
  padding: 12px 20px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  background: var(--surface);
  border-top: 1px solid var(--border);
  scrollbar-width: none;
}

.chip {
  white-space: nowrap;
  padding: 8px 16px;
  border-radius: 99px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
}

.chip:hover {
  background: var(--brand-primary);
  color: white;
  border-color: var(--brand-primary);
}

.chat-input {
  padding: 16px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
}

#chat-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 99px;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  background: var(--surface-2);
  color: var(--text);
}

#chat-input:focus {
  border-color: var(--brand-primary);
  background: var(--surface);
}

#chat-send {
  background: var(--brand-primary);
  color: white;
  border: none;
  padding: 0 20px;
  border-radius: 99px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

#chat-send:hover {
  background: var(--brand-primary-hover);
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- MOBILE OPTIMIZATION --- */
@media (max-width: 800px) {
  body {
    overflow-x: hidden;
    /* Prevent horizontal scrollbars from hero content */
  }

  #chat-panel {
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    top: 0;
    width: 100%;
    max-width: 100% !important;
    /* Force full width */
    height: 100%;
    max-height: 100%;
    /* Full screen */
    border-radius: 0;
    z-index: 10000;
  }

  #chat-toggle {
    bottom: 20px;
    right: 20px;
  }

  .chat-header {
    padding-top: max(16px, env(safe-area-inset-top));
    /* Header padding for notches */
  }
}

/* --- SERVICE MODAL & BUTTONS --- */
.btn-text {
  background: none;
  border: none;
  color: var(--brand-primary);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin-top: 1rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.btn-text:hover {
  color: var(--brand-primary-hover);
}

/* Conflicting grid styles removed */

/* --- REFINED SERVICE UI --- */

/* Clickable Card Interactions */
.service-card {
  position: relative;
  /* Context for button positioning if needed */
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.service-card:hover .btn-text {
  color: var(--brand-primary-hover);
  text-decoration-color: var(--brand-primary-hover);
}

/* Modal Price Styling */
.modal-price-badge {
  background-color: var(--brand-primary-light);
  color: var(--brand-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  display: inline-block;
  border: 1px solid var(--brand-primary);
}

.modal-content-wrapper {
  margin-top: 1rem;
}

/* Reco Badge Widget */
.hero-badge {
  margin-top: 1.5rem;
  display: flex;
  justify-content: flex-start;
  /* Left align on desktop matches text */
}

@media (max-width: 768px) {
  .hero-badge {
    justify-content: center;
    /* Center on mobile to match hero text */
    margin-top: 2rem;
  }
}/ *   T e s t i m o n i a l   A n i m a t i o n s   * / 
 
 . t e s t i m o n i a l - c a r d   { 
 
     o p a c i t y :   0 ; 
 
     t r a n s i t i o n :   o p a c i t y   0 . 8 s   e a s e - i n - o u t ; 
 
 } 
 
 
 
 . t e s t i m o n i a l - c a r d . f a d e - i n   { 
 
     o p a c i t y :   1 ; 
 
 } 
 
 
 
 . t e s t i m o n i a l - c a r d . f a d e - o u t   { 
 
     o p a c i t y :   0 ; 
 
 } 
 
 