/* EveryKnot Massage - Main Stylesheet */

:root {
  /* Color Palette from Logo */
  --primary-purple: #9B7EBD;
  --light-purple: #C8B6E2;
  --pale-lavender: #E8DFF5;
  --soft-pink: #F5E6F1;
  --cream: #FFF9F5;
  --white: #FFFFFF;
  --text-dark: #4A4A4A;
  --text-medium: #6B6B6B;
  --text-light: #8B8B8B;
  --accent-gold: #D4AF37;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  
  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Montserrat', sans-serif;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  line-height: 1.7;
  background-color: var(--cream);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  color: var(--primary-purple);
}

h1 {
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  margin-bottom: var(--spacing-md);
}

h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  margin-bottom: var(--spacing-md);
}

h3 {
  font-size: clamp(1.65rem, 3.3vw, 2.2rem);
  margin-bottom: var(--spacing-sm);
}

p {
  margin-bottom: var(--spacing-sm);
  color: var(--text-medium);
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* Sparkle Animation */
@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(0); }
  50% { opacity: 1; transform: scale(1); }
}

.sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: radial-gradient(circle, var(--accent-gold) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: sparkle 2s infinite;
}

/* Floating Animation */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

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

/* Fade In Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

/* Shimmer Effect */
@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

.shimmer {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%
  );
  background-size: 1000px 100%;
  animation: shimmer 3s infinite;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 5%;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(155, 126, 189, 0.1);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  padding: 0.5rem 5%;
  box-shadow: 0 2px 30px rgba(155, 126, 189, 0.2);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 60px;
  transition: all 0.3s ease;
}

.navbar.scrolled .logo {
  height: 50px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-purple), var(--light-purple));
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

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

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 280px;
  box-shadow: 0 8px 30px rgba(155, 126, 189, 0.15);
  border-radius: 12px;
  padding: 1rem 0;
  margin-top: 0.5rem;
  z-index: 1000;
}

.dropdown:hover .dropdown-content {
  display: block;
  animation: fadeInUp 0.3s ease;
}

.dropdown-content a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--text-dark);
  font-size: 0.9rem;
}

.dropdown-content a:hover {
  background: var(--pale-lavender);
  color: var(--primary-purple);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-purple);
  cursor: pointer;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--pale-lavender) 0%, var(--soft-pink) 50%, var(--cream) 100%);
  position: relative;
  overflow: hidden;
  padding: 8rem 5% 4rem;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="1" fill="%23D4AF37" opacity="0.3"/></svg>');
  background-size: 100px 100px;
  opacity: 0.3;
  pointer-events: none;
}

.hero-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text h1 {
  color: var(--primary-purple);
  margin-bottom: 1.5rem;
  position: relative;
}

.hero-text h1::after {
  content: '✨';
  position: absolute;
  right: -2rem;
  top: 0;
  font-size: 2rem;
  animation: sparkle 2s infinite;
}

.hero-text p {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: var(--text-medium);
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-placeholder {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--light-purple), var(--primary-purple));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 60px rgba(155, 126, 189, 0.3);
  position: relative;
  overflow: hidden;
}

.hero-image-placeholder::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  animation: shimmer 4s infinite;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.65rem;
  border-radius: 16px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.4px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: var(--text-dark);
  border: 1px solid rgba(155, 126, 189, 0.25);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(245, 230, 241, 0.94));
  box-shadow: 0 12px 30px rgba(155, 126, 189, 0.16), 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.18s ease, box-shadow 0.28s ease, border-color 0.2s ease, background 0.28s ease, color 0.2s ease;
}

.btn::before {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: -2;
  border-radius: 18px;
  background: linear-gradient(120deg, rgba(155, 126, 189, 0.6), rgba(200, 182, 226, 0.55), rgba(212, 175, 55, 0.5));
  opacity: 0.7;
  transition: opacity 0.28s ease, filter 0.28s ease;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 2px;
  z-index: -1;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(245, 230, 241, 0.94));
  transition: opacity 0.28s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 42px rgba(155, 126, 189, 0.24), 0 6px 16px rgba(0, 0, 0, 0.08);
  border-color: rgba(155, 126, 189, 0.45);
}

.btn:hover::before {
  opacity: 0.9;
  filter: saturate(1.05);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 10px 24px rgba(155, 126, 189, 0.18), 0 4px 10px rgba(0, 0, 0, 0.06);
}

.btn:focus-visible {
  outline: 3px solid rgba(212, 175, 55, 0.6);
  outline-offset: 3px;
}

.btn-primary {
  color: white;
  border: none;
  background: linear-gradient(120deg, var(--primary-purple), #b59ed7 45%, var(--accent-gold));
}

.btn-primary::after {
  background: linear-gradient(145deg, rgba(155, 126, 189, 0.88), rgba(200, 182, 226, 0.88));
}

.btn-primary:hover {
  box-shadow: 0 18px 46px rgba(155, 126, 189, 0.32), 0 6px 16px rgba(0, 0, 0, 0.08);
}

.btn-secondary {
  color: var(--primary-purple);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(232, 223, 245, 0.96));
  border: 1px solid rgba(155, 126, 189, 0.38);
}

.btn-secondary::after {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(245, 230, 241, 0.9));
}

.btn-secondary:hover {
  color: var(--primary-purple);
  box-shadow: 0 14px 36px rgba(155, 126, 189, 0.22), 0 4px 12px rgba(0, 0, 0, 0.06);
  background: linear-gradient(135deg, rgba(248, 243, 252, 0.98), rgba(232, 223, 245, 0.98));
}

.more-link {
  font-weight: 700;
  color: var(--primary-purple);
  text-decoration: underline;
  text-underline-offset: 0.2rem;
  text-decoration-thickness: 2px;
}

.more-link:hover {
  color: #7a62a4;
}

/* Preserve the legacy look for the header button */
.navbar .btn {
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: 5px solid var(--primary-purple);
  background: none;
  color: white;
  box-shadow: none;
  isolation: auto;
}

.navbar .btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.navbar .btn::after {
  display: none;
}

.navbar .btn:hover {
  transform: none;
  box-shadow: none;
}

.navbar .btn:hover::before {
  width: 300px;
  height: 300px;
}

.navbar .btn-primary {
  background: linear-gradient(135deg, var(--primary-purple), var(--light-purple));
  color: white;
  box-shadow: 0 10px 30px rgba(155, 126, 189, 0.3);
}

/* Widen the header Book Session pill on desktop so text sits comfortably */
@media (min-width: 900px) {
  .navbar .btn-primary {
    padding: 0.85rem 1.9rem;
    min-width: 165px;
    border-radius: 999px;
  }
}

.navbar .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(155, 126, 189, 0.4);
}

/* Section Styles */
.section {
  padding: var(--spacing-xl) 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.section-subtitle {
  color: var(--light-purple);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

 .card {
   background: white;
   border-radius: 20px;
   padding: 2.5rem;
   box-shadow: 0 18px 50px rgba(155, 126, 189, 0.16), 0 8px 20px rgba(0, 0, 0, 0.06);
   transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
   position: relative;
   overflow: hidden;
   border: 1px solid rgba(155, 126, 189, 0.14);
   backdrop-filter: blur(2px);
 }
.services-grid .card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-purple), var(--light-purple));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.card::after {
  content: '';
  position: absolute;
  inset: 10%;
  border-radius: 16px;
  background: radial-gradient(circle at 20% 20%, rgba(255, 210, 255, 0.25), transparent 40%),
    radial-gradient(circle at 80% 30%, rgba(194, 224, 255, 0.22), transparent 40%);
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}


.card:hover {
  transform: translateY(-10px) rotate(-0.5deg);
  box-shadow: 0 22px 70px rgba(155, 126, 189, 0.22), 0 10px 28px rgba(0, 0, 0, 0.08);
  border-color: rgba(155, 126, 189, 0.3);
}

.card:hover::before {
  transform: scaleX(1);
}

.card:hover::after {
  opacity: 1;
  transform: translateY(-6px);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: inline-block;
}

.card h3 {
  color: var(--primary-purple);
  margin-bottom: 1rem;
}

.faq-list .card {
  margin-bottom: 1.25rem;
}

.faq-list a {
  font-weight: 700;
  text-decoration: underline;
  color: var(--primary-purple);
}

.service-card-actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.service-card-actions .btn-primary {
  margin-left: auto;
}

/* Approach horizontal flow */
.approach-flow {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.approach-item {
  flex: 1;
  min-width: 240px;
  padding: 0;
  background: none;
  box-shadow: none;
  border-radius: 0;
}

.approach-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: white;
  background: white;
  box-shadow: 0 10px 24px rgba(155, 126, 189, 0.26), 0 4px 10px rgba(0, 0, 0, 0.08);
}

.approach-item h3 {
  margin: 0.9rem 0 0.5rem;
  color: var(--primary-purple);
}

.approach-item p {
  margin: 0;
  color: var(--text-medium);
}

/* Testimonials */
.testimonial-slider {
  max-width: 900px;
  margin: 0 auto;
}

.testimonial {
  background: white;
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 10px 40px rgba(155, 126, 189, 0.1);
  position: relative;
  margin-bottom: 2rem;
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: 1rem;
  left: 2rem;
  font-size: 6rem;
  color: var(--pale-lavender);
  font-family: var(--font-heading);
  line-height: 1;
}

.testimonial-content {
  position: relative;
  z-index: 1;
}

.testimonial-text {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-info h4 {
  color: var(--primary-purple);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.author-info p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin: 0;
}

.testimonial-date {
  color: var(--text-light);
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, var(--primary-purple), var(--light-purple));
  color: white;
  padding: 4rem 5% 2rem;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="1" fill="%23FFFFFF" opacity="0.1"/></svg>');
  background-size: 50px 50px;
  pointer-events: none;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.footer-section h3 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.footer-logo-inline {
  width: 200px;
  max-width: 70%;
  display: block;
  margin: 0.25rem auto 0;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.18));
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
}

.footer-section a:hover {
  color: white;
  text-decoration: underline;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-bottom {
  max-width: 1400px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  position: relative;
  z-index: 1;
}

.footer-logo {
  width: 120px;
  max-width: 60vw;
  display: block;
  margin: 0 auto 0.75rem;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.16));
  transition: transform 0.25s ease, filter 0.25s ease;
}

.footer-logo:hover {
  transform: translateY(-2px) scale(1.015);
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.18));
}

/* Service Page Styles */
.service-hero {
  background: linear-gradient(135deg, var(--pale-lavender), var(--soft-pink));
  padding: 10rem 5% 4rem;
  text-align: center;
}

.service-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 5%;
}

.service-content h2 {
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

.service-content ul {
  list-style: none;
  padding-left: 0;
}

.service-content li {
  padding-left: 2rem;
  margin-bottom: 1rem;
  position: relative;
  color: var(--text-medium);
}

.service-content li::before {
  content: '✨';
  position: absolute;
  left: 0;
  color: var(--primary-purple);
}

/* About collage */
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 2rem;
  align-items: start;
}

.about-copy p {
  color: var(--text-medium);
  margin-bottom: 1.25rem;
}

.about-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(160px, 1fr));
  gap: 1rem;
}

.about-photo {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(155, 126, 189, 0.28), rgba(255, 200, 221, 0.3));
  box-shadow: 0 18px 50px rgba(155, 126, 189, 0.16), 0 8px 20px rgba(0, 0, 0, 0.06);
  min-height: 180px;
  display: flex;
  align-items: flex-end;
  padding: 1.2rem;
}

.about-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.35), transparent 50%),
    radial-gradient(circle at 80% 10%, rgba(255, 219, 248, 0.5), transparent 45%);
  opacity: 0.9;
  mix-blend-mode: screen;
}

.about-photo.main {
  grid-row: span 2;
  min-height: 420px;
  background: linear-gradient(135deg, rgba(24, 13, 54, 0.45), rgba(108, 92, 173, 0.3)),
    url('assets/images/about-caitlin-buzz.jpg');
  background-size: cover;
  background-position: center;
}

.about-photo.secondary {
  background: linear-gradient(135deg, rgba(108, 92, 173, 0.4), rgba(255, 188, 202, 0.35)),
    url('assets/images/about-studio.jpg');
  background-size: cover;
  background-position: center;
}

.about-photo.detail {
  background: linear-gradient(135deg, rgba(90, 70, 140, 0.38), rgba(255, 206, 230, 0.32)),
    url('assets/images/about-tools.jpg');
  background-size: cover;
  background-position: center;
}

.photo-label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(33, 23, 66, 0.55);
  color: white;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

@media (max-width: 980px) {
  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    order: -1;
  }

  .about-photo.main {
    grid-row: span 1;
    min-height: 340px;
  }
}

@media (max-width: 640px) {
  .about-gallery {
    grid-template-columns: 1fr;
  }

  .about-photo {
    min-height: 220px;
  }
}

/* FAQ Section */
.faq-item {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 5px 20px rgba(155, 126, 189, 0.1);
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 10px 30px rgba(155, 126, 189, 0.15);
}

.faq-item h3 {
  color: var(--primary-purple);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary-purple), var(--light-purple));
  color: white;
  text-align: center;
  padding: 5rem 5%;
  border-radius: 30px;
  margin: 4rem 5%;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: shimmer 6s infinite;
}

.cta-section h2 {
  color: white;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

/* Responsive Design */
@media (max-width: 968px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-text h1::after {
    position: static;
    display: block;
    margin-top: 1rem;
  }
  
  .nav-links {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .approach-flow {
    flex-direction: column;
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  .section {
    padding: var(--spacing-lg) 5%;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .btn {
    padding: 0.875rem 2rem;
    font-size: 0.95rem;
  }

  .navbar .btn {
    padding: 0.85rem 1.9rem;
  }
  
  .testimonial {
    padding: 2rem;
  }

  .approach-flow {
    gap: 1.25rem;
  }

  .service-card-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Accessibility */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-purple);
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.skip-to-content:focus {
  top: 0;
}

/* Print Styles */
@media print {
  .navbar,
  .footer,
  .cta-section,
  .btn {
    display: none;
  }
}

/* Social badges and small hover map for footer */
.social-badges {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
  align-items: center;
}

.social-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.social-badge:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,0.16); }

.social-badge svg { width: 18px; height: 18px; fill: white; display: block; }

.social-badge.facebook { background: #4267B2; }
.social-badge.instagram { background: radial-gradient(circle at 30% 30%, #fccc63, #f77737 30%, #c32aa3 60%, #405de6 100%); }
.social-badge.yelp { background: #D32323; }

.address-map { position: relative; display: inline-block; }
.map-tooltip {
  position: absolute;
  /* place to the right and slightly down of the address */
  left: 110%;
  top: 8px;
  width: 300px;
  height: 200px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: none;
  z-index: 40;
}

.address-map:hover .map-tooltip,
.address-map:focus-within .map-tooltip {
  opacity: 1;
  transform: translateY(6px);
  pointer-events: auto;
}

.map-tooltip iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Hide the hover map on small screens to avoid covering content */
@media (max-width: 640px) {
  .map-tooltip { display: none; }
  .social-badge { width: 36px; height: 36px; }
  /* center social badges on mobile */
  .social-badges { justify-content: center; }
}

/* Image-based social badges: use when you provide image assets in assets/icons/ */
.social-badge img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}

.social-badges a { display: inline-flex; align-items: center; justify-content: center; }

/* Testimonials page logo */
.testimonials-logo {
  display: block;
  max-width: 300px;
  width: 60%;
  height: auto;
  margin: 0 auto 1.5rem auto;
}

@media (min-width: 769px) {
  .testimonials-logo { width: 320px; }
}

/* Logo when placed inside the hero image circle */
.hero-image-placeholder .testimonials-logo {
  width: 72%;
  max-width: 320px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.25);
  background: rgba(255,255,255,0.02);
  display: block;
}

/* Slight inset so logo visually sits inside the circle */
.hero-image-placeholder { padding: 12%; }