/* =========================================================
   SPACE EDGE DESIGN — Exact High-Fidelity Livspace Styles
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Roboto:wght@300;400;500;700&display=swap');

:root {
  --primary:        #C1272D;       /* Real Livspace Crimson Red */
  --primary-hover:  #9E1E22;
  --primary-light:  #FFF5F5;
  --secondary:      #222222;
  --text-dark:      #222222;       /* Slate/Charcoal */
  --text-body:      #4A4A4A;
  --text-muted:     #777777;
  --bg-white:       #FFFFFF;
  --bg-light:       #F9F9F9;
  --border:         #EAEAEA;
  --border-light:   #F5F5F5;
  
  --font-display:   'Poppins', system-ui, -apple-system, sans-serif;
  --font-body:      'Roboto', system-ui, -apple-system, sans-serif;

  --radius-sm:      4px;
  --radius-md:      8px;
  --radius-lg:      16px;

  --shadow-sm:      0 1px 3px rgba(0,0,0,0.06);
  --shadow-md:      0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg:      0 10px 25px rgba(0,0,0,0.1);

  --transition:     0.2s ease-in-out;
}

/* --- Base Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* --- Container Layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container-sm {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4.5rem 0;
}
.section-sm {
  padding: 2.5rem 0;
}

/* --- Header / Main Navigation --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 72px;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: var(--transition);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.nav-logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.nav-logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.nav-logo-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
}
.nav-logo-tagline {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-left: 0.5rem;
  padding-left: 0.5rem;
  border-left: 1px solid var(--border);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  height: 100%;
}
.nav-links > li {
  display: flex;
  align-items: center;
  height: 72px;
}
.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: color var(--transition);
  cursor: pointer;
}
.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

/* Red CTA matching Livspace primary buttons */
.nav-cta {
  background: var(--primary);
  color: var(--bg-white) !important;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem !important;
  text-transform: uppercase;
  transition: background var(--transition);
}
.nav-cta:hover {
  background: var(--primary-hover);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-dark);
}

/* Mobile Nav Modal */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg-white);
  z-index: 2000;
  flex-direction: column;
  padding: 2rem;
  gap: 1.5rem;
}
.nav-mobile.open {
  display: flex;
}
.nav-mobile .nav-link {
  font-size: 1.2rem;
  font-weight: 600;
}
.nav-mobile-close {
  align-self: flex-end;
  font-size: 2rem;
  color: var(--text-dark);
}

/* --- Secondary Navigation Bar --- */
.secondary-nav {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  padding: 0.8rem 0;
  position: sticky;
  top: 72px;
  z-index: 990;
}
.secondary-nav-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.secondary-nav-link {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-body);
  transition: color var(--transition);
}
.secondary-nav-link:hover {
  color: var(--primary);
}

/* --- Dropdown Menus --- */
.dropdown-menu {
  position: absolute;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: 1.5rem;
  display: none;
  grid-template-columns: repeat(2, 180px);
  gap: 0.5rem 1rem;
  z-index: 1000;
}
.nav-links > li:hover .dropdown-menu {
  display: grid;
}
.dropdown-link {
  font-size: 0.82rem;
  color: var(--text-body);
  padding: 0.3rem 0;
  transition: color var(--transition);
}
.dropdown-link:hover {
  color: var(--primary);
}

/* --- High-Fidelity Livspace Carousel Slider --- */
.liv-carousel {
  position: relative;
  width: 100%;
  min-height: 520px;
  margin-top: 72px; /* Top offset matching fixed navbar height (72px) */
  overflow: hidden;
  background: #b81d24;
}
.liv-slides {
  display: flex;
  width: 300%;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.liv-slide,
.hero-slide {
  position: relative;
  width: 33.3333%;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}
.liv-slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
}
.liv-slide-content {
  position: relative;
  z-index: 10;
  color: var(--bg-white);
  text-align: center;
  max-width: 800px;
  padding: 0 1.5rem;
}
.liv-slide-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--bg-white);
  line-height: 1.25;
  margin-bottom: 1.75rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.liv-carousel-prev,
.liv-carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  color: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  z-index: 20;
  transition: var(--transition);
  user-select: none;
}
.liv-carousel-prev:hover,
.liv-carousel-next:hover {
  background: var(--primary);
}
.liv-carousel-prev { left: 1.5rem; }
.liv-carousel-next { right: 1.5rem; }

/* Slide 1 - Logo Banner specific styles (Desktop & default) */
.liv-slide-hero {
  background-color: #b81d24;
  justify-content: center;
  align-items: center;
  padding: 24px 44px;
}
.liv-slide-hero .liv-slide-hero-img {
  position: relative;
  width: 100%;
  height: auto;
  max-height: 440px;
  aspect-ratio: 1774 / 887;
  object-fit: contain;
  opacity: 1;
  background-color: #b81d24;
  display: block;
}
.liv-slide-hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 12px 1.5rem 0;
  background-color: #b81d24;
}
.liv-slide-hero .liv-slide-title:empty {
  display: none;
  margin: 0;
}
.liv-slide-hero-btn {
  display: inline-block;
  padding: 0.85rem 2.25rem;
  font-size: 0.95rem;
}

/* Slides 2 and 3 padding and centering */
.hero-slide:not(.liv-slide-hero) {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px 44px;
  box-sizing: border-box;
}
.hero-slide:not(.liv-slide-hero) .liv-slide-content {
  max-width: 720px;
  padding: 0;
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  color: var(--text-dark);
}
.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  line-height: 1.6;
}

/* --- Services / One-Stop-Shop Cards --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.service-img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background-color: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}
.service-info-block {
  padding: 1.25rem;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.service-title-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}
.service-subtitle-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 1.25rem;
}
.service-card-chevron {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  font-weight: bold;
}
.service-card:hover .service-card-chevron {
  background: var(--primary);
  color: var(--bg-white);
}

/* --- Consultation Booking Card --- */
.hero-form-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
}
.hero-form-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-dark);
}
.hero-form-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* --- Forms & Inputs --- */
.form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dark);
}
.form-group input,
.form-group select,
.form-group textarea {
  font-family: inherit;
  font-size: 0.88rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  background: var(--bg-white);
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
}
.hp-field {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.btn-primary {
  background: var(--primary);
  color: var(--bg-white);
}
.btn-primary:hover {
  background: var(--primary-hover);
}
.btn-outline {
  border: 1px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary-light);
}
.btn-secondary {
  background: var(--bg-white);
  color: var(--primary);
}

.form-submit-message {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  display: none;
}
.form-submit-message.success {
  background: #E6F4EA;
  color: #137333;
  border: 1px solid #C4E7D0;
  display: block;
}

/* --- Testimonials --- */
.testimonials-carousel {
  position: relative;
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
}
.testimonials-track {
  display: flex;
  transition: transform 0.4s ease-in-out;
}
.testimonial-card {
  flex: 0 0 100%;
  padding: 1rem;
  text-align: center;
}
.testimonial-stars {
  display: flex;
  justify-content: center;
  gap: 3px;
  margin-bottom: 1rem;
}
.star {
  color: #FFB800;
  font-size: 1.25rem;
}
.testimonial-text {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-dark);
  font-weight: 400;
  margin-bottom: 1.5rem;
}
.testimonial-author {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
}
.testimonial-project {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 2rem;
}
.carousel-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-white);
  transition: var(--transition);
}
.carousel-btn:hover {
  background: var(--primary);
  color: var(--bg-white);
}
.carousel-dots {
  display: flex;
  gap: 6px;
}
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
}
.carousel-dot.active {
  background: var(--primary);
}

/* --- FAQ Accordion --- */
.faq-wrapper {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.faq-item {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-question::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: transform var(--transition);
}
.faq-item.active .faq-question::after {
  content: "−";
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.5rem;
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.6;
}
.faq-item.active .faq-answer {
  padding-bottom: 1.25rem;
}

/* --- Footer --- */
.footer {
  background: var(--text-dark);
  color: var(--bg-white);
  padding: 4.5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}
.footer-brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--primary-light);
  margin-bottom: 0.75rem;
}
.footer-brand-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
}
.footer-col-title {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1.25rem;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-link {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
}
.footer-link:hover {
  color: var(--bg-white);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}
.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.social-link {
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
}
.social-link:hover {
  background: var(--primary);
  color: var(--bg-white);
}

/* --- Page Hero --- */
.page-hero {
  background: var(--bg-light);
  padding: 6.5rem 0 3.5rem;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-dark);
}
.page-hero p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  max-width: 600px;
}

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox.open {
  display: flex;
}
.lightbox img {
  max-width: 90%;
  max-height: 80vh;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}
.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  color: var(--bg-white);
  font-size: 3rem;
  cursor: pointer;
}

/* --- Before/After --- */
.before-after {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: 16/9;
  cursor: col-resize;
  border: 1px solid var(--border);
}
.before-after-before,
.before-after-after {
  position: absolute;
  inset: 0;
}
.before-after-before img,
.before-after-after img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.before-after-after {
  clip-path: inset(0 50% 0 0);
}
.before-after-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.before-after-handle-circle {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.before-after-label {
  position: absolute;
  bottom: 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--bg-white);
  background: rgba(0,0,0,0.6);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}
.before-after-label-before { left: 1rem; }
.before-after-label-after { right: 1rem; }

/* --- Reveal Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }

/* --- Responsive Layout Breakpoints --- */
@media (max-width: 991px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .secondary-nav { display: none; }
}

@media (max-width: 768px) {
  /* Navigation */
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  
  /* Layout Spacing */
  .section { padding: 2.5rem 0; }
  .section-sm { padding: 1.5rem 0; }
  .section-header { margin-bottom: 2rem; }
  
  /* Typography Scaling */
  h1, .display-lg { font-size: clamp(1.8rem, 6vw, 2.2rem) !important; }
  h2, .display-sm { font-size: clamp(1.4rem, 5vw, 1.8rem) !important; }
  .page-hero { padding: 110px 0 40px; }
  .page-hero h1 { font-size: clamp(1.8rem, 6vw, 2.2rem) !important; }
  
  /* Carousel Slider mobile fixes */
  .liv-carousel {
    margin-top: 72px; /* Top offset matching fixed navbar height (72px) */
    height: auto;
    min-height: 320px;
    background: #b81d24;
  }
  .liv-slides {
    height: auto;
    min-height: 320px;
  }
  .liv-slide,
  .hero-slide {
    height: auto;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 24px 44px;
    box-sizing: border-box;
  }
  .liv-slide-hero {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #b81d24;
    padding: 16px 20px 24px;
    height: auto;
    min-height: 320px;
  }
  .liv-slide-hero .liv-slide-hero-img {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 1774 / 887;
    object-fit: contain;
    background-color: #b81d24;
    opacity: 1;
    display: block;
  }
  .liv-slide-hero-content {
    position: relative;
    width: 100%;
    padding: 12px 1rem 0;
    margin: 0;
    text-align: center;
    background-color: #b81d24;
    z-index: 10;
  }
  .liv-slide-hero-btn {
    padding: 0.6rem 1.5rem !important;
    font-size: 0.85rem !important;
  }
  .hero-slide:not(.liv-slide-hero) {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 24px 44px;
    box-sizing: border-box;
  }
  .hero-slide:not(.liv-slide-hero) .liv-slide-content {
    padding: 0;
    width: 100%;
    max-width: 100%;
  }
  .hero-slide:not(.liv-slide-hero) .btn,
  .liv-slide-content .btn {
    padding: 0.6rem 1.5rem !important;
    font-size: 0.85rem !important;
  }
  .liv-slide-title { font-size: clamp(1.15rem, 4.5vw, 1.5rem); margin-bottom: 1rem; padding: 0; line-height: 1.3; }
  .liv-carousel-prev, .liv-carousel-next { width: 36px; height: 36px; font-size: 1.2rem; }
  .liv-carousel-prev { left: 0.5rem; }
  .liv-carousel-next { right: 0.5rem; }
  
  /* Forms */
  .form-row { grid-template-columns: 1fr; gap: 1.25rem; }
  .hero-form-card { padding: 1.25rem; border-radius: var(--radius-md); }
  .hero-form-title { font-size: 1.25rem; }
  
  /* Footer */
  .footer { padding: 3rem 0 1.5rem; }
  .footer-grid { grid-template-columns: 1fr !important; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  
  /* Testimonials */
  .testimonial-text { font-size: 1rem; }
  
  /* General mobile spacing */
  .container, .container-sm { padding: 0 1rem; }
  
  /* Page specific dynamic grids */
  .reviews-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
  .review-card { padding: 1.25rem; border-radius: var(--radius-md); border: 1px solid var(--border); box-shadow: var(--shadow-sm); background: var(--bg-white); }
  
  .contact-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-info { padding: 0; }
  
  /* Average rating badge responsiveness */
  .avg-rating-badge { margin-top: 1rem; align-self: flex-start; }

  /* Override minmax(320px, 1fr) for grid containers on mobile to prevent overflow */
  section .container[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  /* Stack the 2-column services/about page list on mobile */
  section ul[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
}

@media (max-width: 480px) {
  /* Ultra-small mobile fixes (320px, 375px) */
  .nav-logo-name { font-size: 1.05rem !important; }
  .nav-logo-tagline { display: none !important; }
  .nav-logo-img { width: 44px; height: 44px; }
  .nav-logo { gap: 6px; }
  
  .wa-fab { bottom: 18px; right: 18px; width: 52px; height: 52px; }
  .wa-fab svg { width: 24px; height: 24px; }
}
