@import url("variables.css");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: 60px;
  overflow-x: hidden;
  width: 100%;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
.logo,
.nav-links a {
  font-family: "Lora", serif;
  font-weight: 500;
  color: var(--color-primary);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--spacing-lg);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  color: var(--color-primary);
}

h3 {
  font-size: 1.4rem;
  color: var(--color-primary);
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
  line-height: 1.4;
}

h4 {
  font-size: 1.2rem;
  margin-bottom: var(--spacing-md);
  color: var(--color-primary);
}

p {
  color: var(--color-text);
  margin-bottom: var(--spacing-md);
  line-height: 1.7;
  word-wrap: break-word;
}

a {
  text-decoration: none;
  transition: all var(--transition-base);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
}

/* ===== CONTAINER & LAYOUT ===== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  width: 100%;
  overflow-x: hidden;
}

.section {
  padding: 2rem 0;
  width: 100%;
  overflow-x: hidden;
}

.section-bg-light {
  background: var(--color-bg-soft);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--spacing-3xl);
  padding: 0 1rem;
}

.section-subtitle {
  display: inline-block;
  color: var(--color-support);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 1px;
  margin-bottom: var(--spacing-xs);
  text-transform: uppercase;
  font-family: "Inter", sans-serif;
}

/* ===== HEADER & NAVIGATION ===== */
.sticky-header {
  position: fixed;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--color-primary) 0%, #8a5cb8 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(107, 63, 160, 0.1);
  padding: 0.25rem 0;
  width: 100%;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  width: 100%;
}

.logo-link {
  flex-shrink: 0;
  text-decoration: none;
  z-index: 1001;
}

/* .logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin-top: 10px;
} */

.logo {
  width: 62px; /* small navbar size */
  height: 62px;
  /* border-radius: 50%; */
  overflow: hidden; /* crop extra */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 3px;
}

.logo img {
  width: 165%; /* zoom */
  height: 160%;
  object-fit: cover;
  object-position: center;
}

/* Desktop Navigation */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: var(--color-bg-alt);
  font-size: 1rem;
  font-weight: 500;
  position: relative;
  white-space: nowrap;
  font-family: "Inter", sans-serif;
  transition: color 0.3s ease;
  margin-top: 3px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent-light);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--color-accent-light);
}

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

/* Desktop CTA */
.desktop-cta {
  display: inline-block;
  z-index: 1001;
  margin-top: 3px;
}

/* Mobile Elements - Hidden by Default */
.header-right {
  display: none;
  align-items: center;
  gap: 0.5rem;
  z-index: 1001;
}

.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 1002;
}

.hamburger-menu span {
  width: 100%;
  height: 3px;
  background: var(--color-bg-alt);
  border-radius: 3px;
  transition: all 0.3s ease;
  transform-origin: left;
}

.hamburger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(2px, -2px);
  background: var(--color-bg-alt);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(2px, 2px);
  background: var(--color-bg-alt);
}

/* ===== MOBILE MENU BUTTON - STYLED LIKE DESKTOP CTA ===== */
.mobile-menu-btn {
  display: none; /* This should be none by default */
  background: var(--color-accent);
  color: white;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 1.2rem; /* Fix this padding - it's too large */
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  line-height: normal;
  box-shadow: 0 4px 10px rgba(192, 24, 107, 0.2);
  transition: all 0.3s ease;
  width: auto;
  min-width: 140px;
  margin: 1.5rem auto 1rem;
  /* REMOVE the duplicate display property below */
}

.mobile-menu-btn:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(192, 24, 107, 0.3);
  color: white;
}
/* ===== MOBILE MENU BUTTON - STYLED LIKE DESKTOP CTA ===== */
/* .mobile-menu-btn {
    display: none;
    background: var(--color-accent);
    color: white;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 2.7rem 2.8rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    line-height: normal;
    box-shadow: 0 4px 10px rgba(192, 24, 107, 0.2);
    transition: all 0.3s ease;
    width: auto;
    min-width: 140px;
    margin: 1.5rem auto 1rem;
    display: inline-block;
}

.mobile-menu-btn:hover {
    background: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(192, 24, 107, 0.3);
    color: white;
} */

/* Override any nav link styles that might affect the button */
.nav-links .mobile-menu-btn,
.nav-links .mobile-menu-btn:any-link,
.nav-links .mobile-menu-btn:-webkit-any-link {
  color: white !important;
  text-decoration: none !important;
  background: var(--color-accent) !important;
  font-family: "Inter", sans-serif !important;
  font-weight: 500 !important;
  font-size: 0.9rem !important;
  border-radius: 50px !important;
  border: none !important;
  box-shadow: 0 4px 10px rgba(192, 24, 107, 0.2) !important;
  width: auto !important;
  min-width: 140px !important;
  margin: 1.5rem auto 1rem !important;
}

.nav-links .mobile-menu-btn:hover {
  background: var(--color-accent-dark) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 15px rgba(192, 24, 107, 0.3) !important;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  background: var(--color-accent);
  color: white;
  padding: 0.7rem 1.8rem;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(192, 24, 107, 0.2);
  font-family: "Inter", sans-serif;
  text-align: center;
  white-space: nowrap;
}

.btn:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(192, 24, 107, 0.3);
}

.btn-small {
  padding: 0.5rem 1.2rem;
  font-size: 0.9rem;
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--color-primary-soft);
  color: var(--color-text);
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
  padding: var(--spacing-md);
}

.hero {
  background: linear-gradient(135deg, #f8f2ff 0%, #faf6ff 100%);
  /* padding: 6rem 0 4rem; Added top padding for fixed header */
  /* min-height: 100vh; */
  display: flex;
  align-items: center;
  margin-top: 0;
  padding-bottom: 45px;
  box-sizing: border-box;
}

.hero-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
  width: 100%;
}

.hero-content {
  flex: 1 1 450px;
  min-width: 280px;
}

/* ===== HERO IMAGE - FIXED ===== */
.hero-image {
  flex: 1 1 400px;
  border-radius: 32px;
  box-shadow: 0 30px 40px -15px rgba(88, 48, 120, 0.3);
  margin: 0 auto;
  overflow: hidden; /* Add back overflow hidden for border radius */
}

.hero-image img {
  /* width: 100%; */
  max-width: 500px;
  height: auto;
  display: block;
  border-radius: 32px;
  transition: transform 0.5s;
  object-fit: cover;
  aspect-ratio: auto; /* Remove any forced aspect ratio */
}

.hero-image:hover img {
  transform: scale(1.02);
}
/* .logo img{
    height: 100px;
    width: auto;
    border-radius: 50px;
} */

.hero-text {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #2d1b4e;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.trust-badges {
  display: flex;
  gap: 1.8rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.trust-badges i {
  color: #4a9b8e;
  margin-right: 0.3rem;
}

.welcome-section {
  background: var(--color-bg-alt);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 4rem 0;
  box-sizing: border-box;
}

.welcome-section .container {
  width: 100%;
  padding: 0 var(--container-padding);
}
/* ===== WELCOME IMAGE - DIRECT IN FLEX ===== */
.welcome-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  flex-wrap: wrap;
  width: 100%;
}

.welcome-content {
  flex: 1 1 450px;
  min-width: 280px;
  order: 1; /* Ensure content stays first */
}

.welcome-grid img {
  flex: 1 1 400px;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 30px -10px var(--color-shadow-dark);
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  object-fit: cover;
  order: 2; /* Ensure image stays second (right side) */
  display: block;
}

.welcome-text {
  font-size: 1.2rem;
  margin: var(--spacing-lg) 0;
}

.welcome-quote {
  background: var(--color-bg-warm);
  padding: var(--spacing-lg);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-accent);
}

.welcome-quote i {
  color: var(--color-accent);
  font-size: 1.5rem;
  margin-bottom: var(--spacing-xs);
}

.welcome-quote p {
  font-style: italic;
  margin-bottom: 0;
  font-size: 1.1rem;
}

/* ===== CARD GRIDS ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
  width: 100%;
}

.help-card {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 280px;
}

.help-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 30px var(--color-shadow);
  border-color: var(--color-accent);
}

.help-card i {
  font-size: 2.5rem;
  color: var(--color-support);
  margin-bottom: var(--spacing-md);
}

.help-card h3 {
  margin-bottom: var(--spacing-sm);
  min-height: 3.2rem;
  display: flex;
  align-items: center;
}

.help-card p {
  margin-bottom: 0;
  font-size: 0.95rem;
  flex-grow: 1;
}

/* ===== SERVICES SECTION ===== */
.services-section {
  background: var(--color-bg-alt);
  width: 100%;
  overflow-x: hidden;
  min-height: 100vh;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--spacing-xl);
  width: 100%;
}

.service-card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: var(--spacing-2xl) var(--spacing-xl);
  transition: all var(--transition-base);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 320px;
}

.service-card:hover {
  background: var(--color-bg-alt);
  box-shadow: var(--shadow-md);
}

.service-icon i {
  font-size: 2.2rem;
  color: var(--color-accent);
  margin-bottom: var(--spacing-md);
}

.service-card h3 {
  margin-bottom: var(--spacing-sm);
  min-height: 3.2rem;
  display: flex;
  align-items: center;
}

.service-card p {
  flex-grow: 1;
  margin-bottom: var(--spacing-md);
}

.card-link {
  color: var(--color-support);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: var(--spacing-sm);
}

.card-link:hover {
  color: var(--color-accent);
  gap: 0.8rem;
}

.about-section {
  background: var(--color-bg-soft);
  width: 100%;
  overflow-x: hidden;
  min-height: 100vh; /* Change from height to min-height */
  display: flex;
  align-items: center;
  padding: 4rem 0; /* Add consistent padding */
  box-sizing: border-box;
}

.about-grid {
  display: flex;
  align-items: center;
  gap: 4rem;
  flex-wrap: wrap;
  width: 100%;
}

.about-image {
  flex: 1 1 350px;
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 3/4;
  width: 100%;
  max-width: 450px; /* Add max-width to control size */
  margin: 0 auto;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-xl);
}

.about-content {
  flex: 1 1 450px;
  min-width: 280px;
}
.experience-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: var(--spacing-md);
  border-radius: var(--radius-round);
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
  box-shadow: 0 10px 20px var(--color-shadow-dark);
}

.experience-badge .years {
  font-size: 1.8rem;
  font-weight: 700;
}

.about-credentials {
  color: var(--color-support);
  font-weight: 500;
  margin-bottom: var(--spacing-lg);
  font-size: 1.1rem;
}

.credentials-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  margin: var(--spacing-lg) 0 var(--spacing-xl);
}

.credentials-list span {
  background: var(--color-bg-alt);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
}

.credentials-list i {
  color: var(--color-support);
  margin-right: 0.3rem;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-section {
  background: var(--color-bg-alt);
  width: 100%;
  overflow-x: hidden;
  min-height: 100vh;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-xl);
  width: 100%;
}

.testimonial-card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 280px;
}

.quote-icon {
  color: var(--color-accent);
  font-size: 2rem;
  opacity: 0.3;
  margin-bottom: var(--spacing-md);
}

.testimonial-card p {
  flex-grow: 1;
  margin-bottom: var(--spacing-lg);
}

.testimonial-author {
  margin-top: auto;
}

.testimonial-author strong {
  color: var(--color-primary);
  display: block;
  margin-bottom: 0.2rem;
}

.testimonial-author span {
  font-size: 0.9rem;
  color: var(--color-support);
}

.testimonial-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.testimonial-card:hover::before {
  left: 100%;
}

/* ===== LOCATION SECTION ===== */
.location-section {
  background: var(--color-bg-soft);
  width: 100%;
  overflow-x: hidden;
}

.location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-xl);
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.location-card {
  background: var(--color-bg-alt);
  border-radius: var(--radius-xl);
  padding: var(--spacing-2xl) var(--spacing-xl);
  text-align: center;
  transition: var(--transition-base);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 380px;
}

.location-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 40px var(--color-shadow);
}

.location-icon i {
  font-size: 2.8rem;
  color: var(--color-primary);
  margin-bottom: var(--spacing-md);
}

.location-address {
  color: var(--color-accent);
  font-weight: 500;
  margin-bottom: var(--spacing-md);
}

.location-card p {
  flex-grow: 1;
}

.location-features {
  list-style: none;
  text-align: left;
  margin-top: var(--spacing-lg);
}

.location-features li {
  margin-bottom: var(--spacing-xs);
  display: flex;
  align-items: center;
}

.location-features i {
  color: var(--color-support);
  margin-right: var(--spacing-xs);
  width: 20px;
}

/* ===== CTA & FORM SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, #8a5cb8 100%);
  color: var(--color-text-inverse);
  width: 100%;
  overflow-x: hidden;
  min-height: 100vh;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: 0 1rem;
}

.cta-content h2 {
  color: var(--color-text-inverse);
}

.cta-subhead {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.3rem;
  margin-bottom: var(--spacing-xl);
}

.form-container {
  background: var(--color-bg-alt);
  border-radius: var(--radius-xl);
  padding: var(--spacing-2xl);
  box-shadow: var(--shadow-2xl);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.booking-form {
  text-align: left;
}

.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1.5px solid var(--color-border-dark);
  border-radius: var(--radius-sm);
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  transition: var(--transition-base);
  background: var(--color-bg);
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background: var(--color-bg-alt);
}

.privacy-note {
  color: var(--color-support);
  font-size: 0.9rem;
  margin: var(--spacing-md) 0 var(--spacing-lg);
  text-align: center;
}

.privacy-note i {
  margin-right: 0.3rem;
}

.contact-details {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-intro {
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.6rem 0;
}

.contact-item i {
  color: var(--color-support);
  font-size: 1.1rem;
  margin-top: 0.2rem;
}

.contact-label {
  display: block;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.15rem;
}

.contact-link {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
}

.contact-link:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--color-text);
  color: var(--color-bg);
  padding: 4rem 0 1.5rem;
  position: relative;
  width: 100%;
  overflow-x: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--color-primary),
    var(--color-accent),
    var(--color-support)
  );
}

.footer h4 {
  color: var(--color-bg);
  margin-bottom: var(--spacing-md);
  font-size: 1.2rem;
  position: relative;
  display: inline-block;
}

.footer h4::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--color-accent);
}

.footer-logo {
  font-family: "Lora", serif;
  font-size: 2rem;
  color: var(--color-text-inverse);
  margin-bottom: var(--spacing-md);
  background: linear-gradient(135deg, #fff, var(--color-support-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-2xl);
  margin-bottom: var(--spacing-3xl);
  width: 100%;
}

.footer-about p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.8rem;
}

.footer-membership {
  color: var(--color-support) !important;
  font-weight: 500;
  margin: var(--spacing-md) 0;
  display: inline-block;
  padding: 0.3rem 1rem;
  background: rgba(74, 155, 142, 0.1);
  border-radius: var(--radius-full);
  border: 1px solid rgba(74, 155, 142, 0.3);
}

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

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

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links a:hover {
  color: var(--color-accent);
  transform: translateX(5px);
}

.footer-links a i {
  font-size: 0.8rem;
  color: var(--color-support);
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer-contact i {
  color: var(--color-support);
  width: 20px;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.footer-contact-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  word-break: break-word;
}

.footer-contact-link:hover {
  color: var(--color-accent);
  transform: translateX(5px);
}

.footer-certs ul {
  list-style: none;
}

.footer-certs li {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.3rem 0;
}

.footer-certs li i {
  color: var(--color-support);
  font-size: 1rem;
  width: 20px;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: var(--spacing-lg);
}

.social-links a {
  background: rgba(255, 255, 255, 0.1);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  /* background-color: transparent; */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-base);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
  background: var(--color-accent);
  transform: translateY(-5px);
  border-color: transparent;
}

.social-links a i {
  color: white;
  font-size: 1.2rem;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.footer-bottom .footer-badges {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-bottom .footer-badges span {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.3rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom .footer-badges i {
  color: var(--color-support);
}

/* ===== SCROLL TO TOP BUTTON ===== */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px rgba(107, 63, 160, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 99;
  border: 2px solid white;
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background: var(--color-accent);
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(192, 24, 107, 0.4);
}

/* ===== ANIMATIONS ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.help-card,
.service-card,
.testimonial-card,
.location-card {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-animate {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.hero-content,
.welcome-content,
.about-content {
  opacity: 0;
  transform: translateX(-30px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.hero-image,
.welcome-image,
.about-image {
  opacity: 0;
  transform: translateX(30px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.section-header {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.section-visible .hero-content,
.section-visible .hero-image,
.section-visible .welcome-content,
.section-visible .welcome-image,
.section-visible .about-content,
.section-visible .about-image,
.section-visible .section-header {
  opacity: 1;
  transform: translate(0);
}

/* Stagger animations */
.section-visible .help-card:nth-child(1) {
  transition-delay: 0.1s;
}
.section-visible .help-card:nth-child(2) {
  transition-delay: 0.2s;
}
.section-visible .help-card:nth-child(3) {
  transition-delay: 0.3s;
}
.section-visible .help-card:nth-child(4) {
  transition-delay: 0.4s;
}
.section-visible .help-card:nth-child(5) {
  transition-delay: 0.5s;
}
.section-visible .help-card:nth-child(6) {
  transition-delay: 0.6s;
}

.section-visible .service-card:nth-child(1) {
  transition-delay: 0.1s;
}
.section-visible .service-card:nth-child(2) {
  transition-delay: 0.2s;
}
.section-visible .service-card:nth-child(3) {
  transition-delay: 0.3s;
}
.section-visible .service-card:nth-child(4) {
  transition-delay: 0.4s;
}

.section-visible .testimonial-card:nth-child(1) {
  transition-delay: 0.1s;
}
.section-visible .testimonial-card:nth-child(2) {
  transition-delay: 0.2s;
}
.section-visible .testimonial-card:nth-child(3) {
  transition-delay: 0.3s;
}

/* Keyframes */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Large Desktop (1200px and above) */
/* @media (min-width: 1200px) {
    .container { max-width: 1140px; }
      .hero-image {
        max-width: 300px;
    }
    
} */

/* Desktop (993px to 1199px) */
@media (min-width: 993px) and (max-width: 1199px) {
  .container {
    max-width: 960px;
  }
  .nav-links {
    gap: 1.5rem;
  }
  .hero-grid,
  .welcome-grid,
  .about-grid {
    gap: 3rem;
  }
}

/* Desktop Navigation */
@media (min-width: 1239px) {
  .nav-links {
    display: flex;
  }
  .hamburger-menu {
    display: none;
  }
  .header-right {
    display: none;
  }
  .desktop-cta {
    display: inline-block;
  }
  .mobile-menu-btn {
    display: none !important;
  }
  /* .hero { margin-top: 20px; } */
}

/* Tablet and Mobile (≤992px) */
@media (max-width: 1238px) {
  .sticky-header {
    padding: 0.25rem 0;
  }
  .logo {
    font-size: 1.5rem;
    margin-top: 3px;
  }
  .header-right {
    display: flex;
    padding-bottom: 0;
  }
  .hamburger-menu {
    display: flex;
    margin-top: 0;
  }
  .desktop-cta {
    display: none !important;
  }
  .header-inner {
    padding-bottom: 10px;
  }
  /* Mobile Navigation */
  .nav-links {
    position: fixed;
    top: 82px;
    right: -100%;
    width: 280px;
    max-width: 280px;
    height: 100vh;
    background: var(--color-bg-soft);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 62px 2rem 2rem;
    gap: 1rem;
    transition: right 0.3s ease;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
    border-left: 1px solid var(--color-border);
    z-index: 999;
    overflow-y: auto;
  }
  /* .hero-image {
        max-width: 300px;
    } */

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    width: 100%;
    padding: 0.8rem 1rem;
    color: var(--color-text);
    border-radius: 8px;
    background: var(--color-bg-alt);
    font-size: 1.1rem;
    border-bottom: none;
  }

  .nav-links a::after {
    display: none;
  }
  .nav-links a:hover {
    background: var(--color-accent-light);
    color: var(--color-accent-light);
  }

  .nav-links .mobile-menu-btn {
    display: inline-block !important;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
  }

  .section {
    padding: 3.5rem 0;
  }
  .hero {
    margin-top: 20px;
  }
  .hero-grid,
  .welcome-grid,
  .about-grid {
    gap: 2.5rem;
  }
  .welcome-section {
    min-height: auto;
    padding: 3rem 0;
  }
  .welcome-grid {
    min-height: auto;
    gap: 2rem;
  }

  body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
  }
  body.menu-open::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    backdrop-filter: blur(3px);
  }
}

/* Tablet Portrait (≤768px) */
@media (max-width: 768px) {
  .nav-links {
    width: 260px;
  }
  .header-inner {
    padding-bottom: 10px;
  }
  .hero {
    padding: 3rem 0 4rem;
    margin-top: 20px;
  }
  .hero-grid {
    flex-direction: column-reverse;
    gap: 2rem;
  }
  .hero-content {
    text-align: center;
  }
  .hero-buttons {
    justify-content: center;
    flex-direction: row;
  }
  .btn {
    min-width: 100px;
  }
  .trust-badges {
    justify-content: center;
  }
  .welcome-grid {
    flex-direction: column;
    gap: 1.8rem;
    text-align: center;
  }
  .welcome-content {
    padding: 0 0.5rem;
  }
  .welcome-image {
    order: -1;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
    border-radius: 20px;
  }
  .welcome-text {
    font-size: 1rem;
    line-height: 1.6;
  }
  .welcome-quote {
    margin-top: 1rem;
    text-align: center;
  }
  .welcome-quote p {
    font-size: 0.95rem;
  }
  .about-grid {
    flex-direction: column;
  }
  .about-image {
    max-width: 400px;
    margin: 0 auto;
  }
  .card-grid,
  .services-grid,
  .testimonials-grid,
  .location-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  /* .hero-image {
        max-width: 350px;
        margin: 0 auto;
    } */
  .about-section {
    min-height: auto;
    padding: 3rem 0;
  }

  .about-grid {
    gap: 2rem;
  }

  .about-image {
    max-width: 350px;
  }
  .email-wrap {
    word-break: break-all;
  }
  /* Animation simplification */
  .animate-on-scroll {
    transform: translateY(30px);
    transition:
      opacity 0.6s ease,
      transform 0.6s ease;
  }
  .hero-content,
  .hero-image,
  .welcome-content,
  .welcome-image,
  .about-content,
  .about-image {
    transform: translateY(30px);
  }
}

/* Mobile Landscape (≤576px) */
@media (max-width: 576px) {
  .sticky-header {
    padding: 0.2rem 0;
  }
  .header-inner {
    padding-bottom: 10px;
  }
  .logo {
    font-size: 1.3rem;
    margin-top: 3px;
  }
  .hamburger-menu {
    width: 26px;
    height: 18px;
  }
  .nav-links {
    width: 100%;
    padding: 60px 1.5rem 1.5rem;
  }
  .nav-links a {
    padding: 0.7rem 1rem;
    font-size: 1rem;
  }

  .section {
    padding: 2.5rem 0;
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.8rem;
  }
  /* .hero-image {
        max-width: 300px;
        border-radius: 24px;
    } */

  .hero-image img {
    border-radius: 24px;
  }
  .about-section {
    padding: 2.5rem 0;
  }

  .about-image {
    max-width: 280px;
  }

  .about-content {
    text-align: center;
    /* padding: 0 1rem; */
  }

  .credentials-list {
    justify-content: center;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 0.8rem;
  }
  .btn {
    width: 100%;
    min-width: auto;
  }
  .trust-badges {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }

  .card-grid,
  .services-grid,
  .testimonials-grid,
  .location-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .help-card,
  .service-card,
  .testimonial-card,
  .location-card {
    padding: 1.2rem;
  }
  .help-card i,
  .service-icon i {
    font-size: 2rem;
  }

  .credentials-list {
    flex-direction: column;
    gap: 0.5rem;
  }
  .credentials-list span {
    width: 100%;
    justify-content: center;
  }

  .form-container {
    padding: 1.5rem;
  }
  .footer {
    padding: 3rem 0 1rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  .footer h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
  /* .footer-contact p { flex-direction: column; gap: 0.3rem; justify-content: center; } */
  .footer-contact p {
    flex-direction: row;
    justify-content: center;
    text-align: center;
  }

  .footer-contact-link:hover {
    transform: translateY(-2px);
  }
  .footer-links a,
  .footer-certs li {
    justify-content: center;
  }
  .social-links {
    justify-content: center;
    border: none;
    background-color: transparent;
  }
  .footer-bottom .footer-badges {
    flex-direction: column;
    gap: 0.5rem;
  }
  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }

  /* Horizontal scroll fix */
  * {
    max-width: 100%;
  }
  .hero-grid,
  .welcome-grid,
  .about-grid {
    width: 100%;
  }
}

/* Small Mobile (≤400px) */
@media (max-width: 400px) {
  .header-inner {
    padding-bottom: 10px;
  }
  .container {
    padding: 0 1rem;
  }
  .logo {
    font-size: 1.2rem;
    margin-top: 3px;
  }
  h1 {
    font-size: 1.8rem;
  }
  h2 {
    font-size: 1.6rem;
  }
  .experience-badge {
    padding: 0.8rem;
    bottom: 15px;
    right: 15px;
  }
  .experience-badge .years {
    font-size: 1.4rem;
  }
  /* .hero-image {
        max-width: 250px;
        border-radius: 20px;
    } */
  .about-image {
    max-width: 240px;
  }
  .hero-image img {
    border-radius: 20px;
  }
}

/* Horizontal Scroll Prevention */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

@media (max-width: 1238px) {
  .header-inner {
    padding-bottom: 10px;
  }
  .nav-links {
    right: -280px;
  }
  .nav-links.active {
    right: 0;
  }
  body.menu-open::after {
    width: 100%;
    left: 0;
  }
  .container {
    width: 100%;
    overflow-x: hidden;
  }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
  .btn,
  .nav-links a,
  .card-link,
  .social-links a {
    min-height: 44px;
    /* padding: 0.8rem 1.2rem; */
  }
  .form-group input,
  .form-group textarea {
    font-size: 16px;
    padding: 12px;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll,
  .help-card,
  .service-card,
  .testimonial-card,
  .location-card,
  .hero-content,
  .hero-image,
  .welcome-content,
  .welcome-image,
  .about-content,
  .about-image,
  .section-header {
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* iPhone Notch Support */
@supports (padding: max(0px)) {
  .sticky-header {
    padding-left: max(0.5rem, env(safe-area-inset-left));
    padding-right: max(0.5rem, env(safe-area-inset-right));
  }
  .container {
    padding-left: max(var(--container-padding), env(safe-area-inset-left));
    padding-right: max(var(--container-padding), env(safe-area-inset-right));
  }
  .header-inner {
    padding-bottom: 10px;
  }
}

section {
  scroll-margin-top: 60px;
}

#who-i-help,
.testimonials-section,
.location-section {
  overflow-x: hidden;
  overflow-y: visible;
  width: 100%;
  max-width: 100%;
}

.card-grid,
.testimonials-grid,
.location-grid {
  overflow: visible;
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.help-card,
.testimonial-card,
.location-card {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.container {
  overflow: visible;
}

.help-card:last-child,
.testimonial-card:last-child,
.location-card:last-child {
  margin-right: 0;
}

@media (max-width: 768px) {
  .card-grid,
  .testimonials-grid,
  .location-grid {
    gap: 1rem;
    padding: 0;
  }
}

@-moz-document url-prefix() {
  #who-i-help,
  .testimonials-section,
  .location-section {
    scrollbar-width: thin;
  }
}
/* ===== MOBILE MENU BUTTON RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 576px) {
  .nav-links .mobile-menu-btn {
    min-width: 120px !important;
    padding: 0.5rem 1.2rem !important;
    font-size: 0.9rem !important;
    margin: 1.2rem auto 0.8rem !important;
  }
}

@media (max-width: 400px) {
  .nav-links .mobile-menu-btn {
    min-width: 100px !important;
    padding: 0.4rem 1rem !important;
    font-size: 0.85rem !important;
  }
}

/* ===== SAFE SPACE SECTION - PERFECT ALIGNMENT WITH HERO ===== */
/* ===== SAFE SPACE SECTION - COMPLETE FIX ===== */

.safe-space-section {
  background: linear-gradient(135deg, #f8f2ff 0%, #faf6ff 100%);
  padding: 6rem 0 4rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
  overflow-x: hidden;
}

/* Hide any duplicate/absolute elements */
.safe-hero-top {
  display: none !important;
}

.safe-space-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  width: 100%;
}

/* Content styling */
.safe-space-content {
  flex: 1 1 250px;
  min-width: 280px;
}

.safe-space-content h2 {
  font-size: clamp(2rem, 5vw, 2.4rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--spacing-lg);
  color: var(--color-primary);
}

.hero-text {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: #2d1b4e;
  opacity: 0.9;
}

/* Safe list */
.safe-list {
  list-style: none;
  margin: 1.5rem 0 2rem;
  padding: 0;
}

.safe-list li {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  padding-left: 1.8rem;
  position: relative;
  color: var(--color-text);
}

.safe-list li::before {
  content: "✓";
  color: var(--color-support);
  position: absolute;
  left: 0;
  font-weight: bold;
  font-size: 1.2rem;
}

.safe-contact {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #2d1b4e;
}

.safe-contact a {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
}

.safe-contact a:hover {
  text-decoration: underline;
}

/* Image styling - CRITICAL FIXES */
.safe-space-image {
  flex: 1 1 400px;
  max-width: 500px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 32px;
  box-shadow: 0 30px 40px -15px rgba(88, 48, 120, 0.3);
  background: transparent; /* Ensure no background color */
  line-height: 0; /* Remove any line height spacing */
}

.safe-space-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 32px;
  transition: transform 0.5s ease;
  object-fit: cover;
  margin: 0; /* Remove any margins */
  padding: 0; /* Remove any padding */
  vertical-align: bottom; /* Remove any inline spacing */
}

.safe-space-image:hover img {
  transform: scale(1.02);
}

/* Animations */
.safe-space-content {
  opacity: 0;
  transform: translateX(-30px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.safe-space-image {
  opacity: 0;
  transform: translateX(30px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.section-visible .safe-space-content,
.section-visible .safe-space-image {
  opacity: 1;
  transform: translate(0);
}

/* ===== SAFE SPACE SECTION - TYPING ANIMATION ===== */

/* ===== CRITICAL RESPONSIVE FIXES ===== */

/* Fix for the exact breakpoint where white space appears (773px and below) */
@media (max-width: 773px) {
  .safe-space-section {
    padding: 4rem 0 3rem;
    min-height: auto;
  }

  .safe-space-grid {
    flex-direction: column-reverse;
    gap: 1.5rem;
  }

  .safe-space-content {
    text-align: center;
    padding: 0 1rem;
    width: 100%;
  }

  .typing-text {
    white-space: normal;
    border-right: none;
    animation: none;
    display: inline-block;
    width: auto;
    margin-top: 10px;
  }

  .safe-space-content h2 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: 1rem;
  }

  .hero-text {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }

  .safe-list {
    text-align: left;
    max-width: 350px;
    margin: 1.2rem auto;
  }

  .safe-list li {
    font-size: 1.1rem;
  }

  /* CRITICAL IMAGE FIXES - This eliminates the white space */
  .safe-space-image {
    max-width: 380px;
    width: 90%;
    margin: 0 auto;
    border-radius: 28px;
    background: transparent;
    box-shadow: 0 25px 35px -12px rgba(88, 48, 120, 0.25);
    /* Remove any extra spacing */
    padding: 0;
    border: none;
    display: block;
    clear: both;
  }

  .safe-space-image img {
    width: 100%;
    height: auto;
    border-radius: 28px;
    margin: 0;
    padding: 0;
    display: block;
    box-shadow: none;
    /* Ensure no extra background */
    background: transparent;
  }
}

/* Tablet Portrait (≤768px) */
/* @media (max-width: 768px) {
    .safe-space-image {
        max-width: 360px;
        border-radius: 26px;
    }
    
    .safe-space-image img {
        border-radius: 26px;
    }
} */

/* Hide/show based on device */
@media (min-width: 769px) {
  .mobile-top {
    display: none;
  }
}

@media (max-width: 768px) {
  .desktop-only {
    display: none;
  }

  .mobile-top {
    display: block;
    text-align: center;
    margin-bottom: 1rem;
    order: 0;
  }

  .safe-space-grid {
    display: flex;
    flex-direction: column;
  }

  .safe-space-image {
    order: 1;
    margin-bottom: 1.5rem;
  }

  .safe-space-content {
    order: 2;
  }
}
/* Mobile Landscape (≤576px) */
@media (max-width: 576px) {
  .safe-space-section {
    padding: 3rem 0 2.5rem;
  }

  .safe-space-grid {
    gap: 1.2rem;
  }

  .safe-space-content h2 {
    font-size: 1.8rem;
  }

  .hero-text {
    font-size: 1rem;
  }

  .safe-list {
    max-width: 300px;
  }

  .safe-list li {
    font-size: 1rem;
    padding-left: 1.5rem;
    margin-bottom: 0.6rem;
  }

  .safe-list li::before {
    font-size: 1rem;
  }

  .safe-contact {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }

  /* Mobile image fix */
  .safe-space-image {
    max-width: 300px;
    width: 85%;
    border-radius: 24px;
    box-shadow: 0 20px 30px -10px rgba(88, 48, 120, 0.25);
  }

  .safe-space-image img {
    border-radius: 24px;
  }
}

/* Small Mobile (≤400px) */
@media (max-width: 400px) {
  .safe-space-section {
    padding: 2.5rem 0 2rem;
  }

  .safe-space-content {
    padding: 0 0.8rem;
  }

  .safe-space-content h2 {
    font-size: 1.6rem;
  }

  .typing-text {
    font-size: 1rem;
  }

  .safe-list {
    max-width: 260px;
  }

  .safe-list li {
    font-size: 0.95rem;
    padding-left: 1.3rem;
  }

  /* Small mobile image fix */
  .safe-space-image {
    /* max-width: 250px; */
    /* width: 80%; */
    border-radius: 20px;
  }

  .safe-space-image img {
    border-radius: 20px;
  }
}

/* Extra small devices */
@media (max-width: 320px) {
  .safe-space-image {
    max-width: 220px;
    width: 75%;
    border-radius: 18px;
  }

  .safe-space-image img {
    border-radius: 18px;
  }
}
/* ===== DMIT SECTION - PURE CONTENT FLOW (LIKE ABOUT) ===== */
.dmit-lead {
  font-size: 1.2rem;
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: var(--spacing-lg);
  line-height: 1.7;
}

.dmit-quote {
  background: var(--color-bg-soft);
  padding: var(--spacing-lg);
  border-radius: var(--radius-md);
  margin: var(--spacing-xl) 0;
  border-left: 4px solid var(--color-support);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.dmit-quote i {
  color: var(--color-support);
  font-size: 2rem;
  flex-shrink: 0;
}

.dmit-quote p {
  margin-bottom: 0;
  font-style: italic;
  font-size: 1.1rem;
}

.dmit-subheading {
  font-size: 1.4rem;
  color: var(--color-primary);
  margin: var(--spacing-xl) 0 var(--spacing-md);
  font-weight: 600;
}

.dmit-list {
  list-style: none;
  margin: var(--spacing-md) 0 var(--spacing-xl);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.8rem;
}

.dmit-list li {
  padding-left: 2rem;
  position: relative;
  font-size: 1.1rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.dmit-list li i {
  position: absolute;
  left: 0;
  top: 0.2rem;
  color: var(--color-support);
  font-size: 1.2rem;
}

.dmit-note {
  background: var(--color-bg-alt);
  padding: var(--spacing-lg);
  border-radius: var(--radius-md);
  margin: var(--spacing-xl) 0;
  border: 1px dashed var(--color-support);
}

.dmit-note h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--spacing-sm);
  color: var(--color-accent);
  font-size: 1.2rem;
}

.dmit-note h4 i {
  color: var(--color-support);
}

.dmit-note p {
  margin-bottom: 0;
  font-size: 1.1rem;
}

.dmit-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: var(--spacing-xl);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .dmit-lead {
    font-size: 1.1rem;
  }

  .dmit-quote {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    padding: var(--spacing-md);
  }

  .dmit-quote i {
    margin: 0 auto;
  }

  .dmit-quote p {
    font-size: 1rem;
  }

  .dmit-subheading {
    font-size: 1.3rem;
    text-align: center;
  }

  .dmit-list {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .dmit-list li {
    font-size: 1rem;
  }

  .dmit-note {
    padding: var(--spacing-md);
    text-align: center;
  }

  .dmit-note h4 {
    justify-content: center;
  }

  .dmit-note p {
    font-size: 1rem;
  }

  .dmit-actions {
    flex-direction: column;
    align-items: center;
  }

  .dmit-actions .btn {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
}
/* ===== TYPING ANIMATION - CLEAN VERSION ===== */
.typing-text {
  display: inline-block;
  color: var(--color-primary);
  font-size: 2.5rem;
  font-weight: 500;
  /* margin-bottom: 7rem; */
  letter-spacing: 0.5px;
  overflow: hidden;
  border-right: 2px solid var(--color-accent);
  white-space: nowrap;
  padding-right: 6px;
  text-align: center;
}

/* Cursor blinking animation */
@keyframes blink {
  0%,
  100% {
    border-color: transparent;
  }
  50% {
    border-color: var(--color-accent);
  }
}

/* Apply animation via class - this will be added by JavaScript */
.typing-text.typing-active {
  animation: blink 0.75s step-end infinite;
}

/* DESKTOP STYLES (default) */
@media (min-width: 769px) {
  .typing-text {
    display: inline-block;
    white-space: nowrap;
    border-right: 2px solid var(--color-accent);

    font-weight: 500;
    /* margin-bottom: 1rem; */
    margin-top: 2rem;
    letter-spacing: 0.5px;
  }

  .typing-text.typing-active {
    animation: blink 0.75s step-end infinite;
  }
}

/* MOBILE STYLES (≤768px) */
@media (max-width: 768px) {
  .typing-text {
    white-space: normal;
    border-right: none;
    animation: none;
    display: block;
    text-align: center;
    width: 100%;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
  }

  .typing-text.typing-active {
    animation: none;
    border-right: none;
  }
}
