/* ===== CSS Custom Properties ===== */
:root {
  --primary: #8E6BD3;
  --primary-dark: #6B4BA8;
  --primary-light: #A88BE0;
  --secondary: #E6D9CC;
  --secondary-light: #F2EDE7;
  --accent: #B9A6E8;
  --text: #1C1C2E;
  --text-light: #4A4A5C;
  --sage: #8FAF9B;
  --sage-light: #B5D4BE;
  --white: #ffffff;
  --cream: #FDF9F5;
  --warm-gray: #F7F4F0;
  --overlay: rgba(28, 28, 46, 0.55);
  --overlay-purple: rgba(142, 107, 211, 0.08);
  --shadow-sm: 0 2px 8px rgba(28, 28, 46, 0.06);
  --shadow: 0 4px 20px rgba(28, 28, 46, 0.08);
  --shadow-lg: 0 12px 40px rgba(28, 28, 46, 0.12);
  --shadow-xl: 0 20px 60px rgba(28, 28, 46, 0.15);
  --shadow-purple: 0 8px 30px rgba(142, 107, 211, 0.25);
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 116px;
}

body {
  font-family: 'Lato', sans-serif;
  color: var(--text);
  background-color: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  line-height: 1.3;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Decorative Elements ===== */
.decorative-dots {
  position: absolute;
  width: 120px;
  height: 120px;
  background-image: radial-gradient(var(--accent) 2px, transparent 2px);
  background-size: 16px 16px;
  opacity: 0.3;
  pointer-events: none;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 36px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Lato', sans-serif;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-align: center;
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  border-color: transparent;
  box-shadow: var(--shadow-purple);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(142, 107, 211, 0.4);
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
  transform: translateY(-3px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-purple);
}

.btn-call {
  background: linear-gradient(135deg, var(--sage), #6d9a7a);
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(143, 175, 155, 0.35);
}

.btn-call:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(143, 175, 155, 0.45);
  background: linear-gradient(135deg, var(--sage-light), var(--sage));
}

/* ===== Section Shared ===== */
.section {
  padding: 110px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 65px;
}

.section-header h2 {
  font-size: 2.7rem;
  color: var(--text);
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.section-header .subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.8;
}

.section-divider {
  width: 50px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  margin: 16px auto 0;
  border-radius: 2px;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
  font-family: 'Lato', sans-serif;
}

/* ===== Top Contact Bar ===== */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1001;
  background: var(--text);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
  padding: 8px 0;
  transition: all var(--transition);
}

.top-bar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.top-bar-left span,
.top-bar-right a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-bar-right a {
  color: rgba(255, 255, 255, 0.9);
  transition: color var(--transition);
}

.top-bar-right a:hover {
  color: var(--white);
}

.top-bar i {
  font-size: 0.75rem;
}

.top-bar.hidden {
  transform: translateY(-100%);
}

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 36px;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--transition);
  background: transparent;
}

.navbar.scrolled {
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 10px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--white);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-img {
  height: 60px;
  width: auto;
  flex-shrink: 0;
  background: var(--white);
  border-radius: 8px;
  padding: 4px 8px;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--white);
  flex-shrink: 0;
}

.navbar.scrolled .nav-logo {
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  transition: all var(--transition);
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: all var(--transition);
  transform: translateX(-50%);
  border-radius: 1px;
}

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

.navbar.scrolled .nav-links a {
  color: var(--text-light);
}

.navbar.scrolled .nav-links a:hover,
.navbar.scrolled .nav-links a.active {
  color: var(--primary);
}

.nav-call-btn {
  padding: 10px 24px !important;
  font-size: 0.85rem !important;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--sage), #6d9a7a) !important;
  color: var(--white) !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 15px rgba(143, 175, 155, 0.3);
  transition: all var(--transition) !important;
}

.nav-call-btn::after {
  display: none !important;
}

.nav-call-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(143, 175, 155, 0.4) !important;
  background: linear-gradient(135deg, var(--sage-light), var(--sage)) !important;
}

.nav-call-btn i {
  font-size: 0.75rem;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
  z-index: 1001;
  padding: 4px;
}

.hamburger span {
  width: 26px;
  height: 2.5px;
  background: var(--white);
  border-radius: 3px;
  transition: all var(--transition);
}

.navbar.scrolled .hamburger span {
  background: var(--text);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

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

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('../images/fwsophieshomecare/image0.jpeg') center/cover no-repeat;
  text-align: center;
  color: var(--white);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(28, 28, 46, 0.45) 0%,
    rgba(28, 28, 46, 0.55) 50%,
    rgba(28, 28, 46, 0.7) 100%
  );
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(to top, var(--cream), transparent);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  padding: 0 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.9);
}

.hero-badge i {
  color: var(--sage-light);
  font-size: 0.7rem;
}

.hero-content h1 {
  font-size: 4.2rem;
  margin-bottom: 12px;
  font-weight: 700;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.2);
}

.hero-tagline {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-style: italic;
  color: var(--accent);
  margin-bottom: 22px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.hero-description {
  font-size: 1.12rem;
  margin-bottom: 40px;
  opacity: 0.88;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.hero-contact {
  display: flex;
  gap: 36px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 0.92rem;
}

.hero-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  transition: all var(--transition);
}

.hero-contact-item:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

.hero-contact-item i {
  color: var(--sage-light);
  font-size: 0.8rem;
}

.hero-contact-item a {
  color: var(--white);
  transition: color var(--transition);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: heroFloat 2.5s ease-in-out infinite;
}

.hero-scroll-indicator i {
  font-size: 1rem;
}

@keyframes heroFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ===== Stats Bar ===== */
.stats-bar {
  position: relative;
  z-index: 5;
  margin-top: -60px;
  margin-bottom: 0;
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.stat-item {
  padding: 35px 25px;
  text-align: center;
  position: relative;
  transition: all var(--transition);
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--secondary), transparent);
}

.stat-item:hover {
  background: var(--overlay-purple);
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ===== About ===== */
.about {
  background: var(--white);
  overflow: hidden;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.about-text .section-label {
  margin-bottom: 15px;
}

.about-text h3 {
  font-size: 2.3rem;
  margin-bottom: 22px;
  color: var(--text);
}

.about-text h3 span {
  color: var(--primary);
}

.about-text p {
  margin-bottom: 18px;
  color: var(--text-light);
  font-size: 1.02rem;
  line-height: 1.85;
}

.about-image-wrapper {
  position: relative;
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.about-image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.about-image:hover img {
  transform: scale(1.03);
}

.about-image-accent {
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 140px;
  height: 140px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  opacity: 0.15;
  z-index: -1;
}

.about-experience-badge {
  position: absolute;
  bottom: -25px;
  right: 30px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  padding: 20px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-purple);
  text-align: center;
  z-index: 2;
}

.about-experience-badge .number {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
}

.about-experience-badge .label {
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0.9;
  letter-spacing: 0.5px;
}

.mission-card {
  margin-top: 80px;
  background: linear-gradient(135deg, var(--cream), var(--secondary-light));
  padding: 50px;
  border-radius: var(--radius-lg);
  border-left: 5px solid var(--sage);
  position: relative;
  overflow: hidden;
}

.mission-card::before {
  content: '\201C';
  position: absolute;
  top: 15px;
  right: 40px;
  font-family: 'Playfair Display', serif;
  font-size: 8rem;
  color: var(--sage);
  opacity: 0.1;
  line-height: 1;
}

.mission-card h3 {
  font-size: 1.7rem;
  color: var(--text);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.mission-card h3 i {
  color: var(--sage);
}

.mission-card p {
  color: var(--text-light);
  line-height: 1.9;
  font-size: 1.02rem;
}

/* ===== Services ===== */
.services {
  background: var(--cream);
  position: relative;
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 400px;
  background: linear-gradient(180deg, var(--secondary-light), transparent);
  pointer-events: none;
}

.services-intro {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 55px;
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.8;
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
}

.service-card {
  background: var(--white);
  padding: 42px 32px;
  border-radius: var(--radius);
  text-align: center;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
}

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

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

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

.service-icon {
  width: 85px;
  height: 85px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--overlay-purple), rgba(185, 166, 232, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  font-size: 1.8rem;
  color: var(--primary);
  transition: all var(--transition);
  position: relative;
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  box-shadow: var(--shadow-purple);
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 14px;
  color: var(--text);
}

.service-card p {
  color: var(--text-light);
  font-size: 0.93rem;
  line-height: 1.7;
}

/* ===== Our Home ===== */
.our-home {
  background: var(--white);
  overflow: hidden;
}

.home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.home-image-wrapper {
  position: relative;
}

.home-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.home-image img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.home-image:hover img {
  transform: scale(1.03);
}

.home-image-float {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sage-light), var(--sage));
  opacity: 0.2;
  z-index: -1;
}

.home-text .section-label {
  margin-bottom: 15px;
}

.home-text h3 {
  font-size: 2.3rem;
  margin-bottom: 20px;
  color: var(--text);
}

.home-text h3 span {
  color: var(--primary);
}

.home-text > p {
  color: var(--text-light);
  margin-bottom: 30px;
  font-size: 1.02rem;
  line-height: 1.85;
}

.home-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.home-features li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.02rem;
  color: var(--text-light);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.home-features li:hover {
  background: var(--overlay-purple);
}

.home-features li i {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sage-light), var(--sage));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}

/* Why Choose */
.why-choose {
  margin-top: 100px;
  padding-top: 100px;
  border-top: 1px solid var(--secondary);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-top: 45px;
}

.why-card {
  background: var(--cream);
  padding: 40px 28px;
  border-radius: var(--radius);
  text-align: center;
  transition: all var(--transition);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.why-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: transform var(--transition);
}

.why-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(142, 107, 211, 0.1);
  background: var(--white);
}

.why-card:hover::after {
  transform: scaleX(1);
}

.why-card-icon {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--overlay-purple), rgba(185, 166, 232, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 1.5rem;
  color: var(--primary);
  transition: all var(--transition);
}

.why-card:hover .why-card-icon {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  box-shadow: var(--shadow-purple);
}

.why-card h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--text);
}

.why-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ===== Gallery ===== */
.gallery {
  background: var(--cream);
  position: relative;
}

.gallery::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 300px;
  background: linear-gradient(180deg, var(--secondary-light), transparent);
  pointer-events: none;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
  position: relative;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.gallery-item:first-child {
  grid-row: span 2;
}

.gallery-item:first-child img {
  height: 100%;
}

.gallery-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(142, 107, 211, 0.5) 0%,
    rgba(142, 107, 211, 0.1) 50%,
    transparent 100%
  );
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 25px;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay i {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transform: translateY(15px);
  transition: transform var(--transition);
}

.gallery-item:hover .gallery-overlay i {
  transform: translateY(0);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 40px;
  backdrop-filter: blur(8px);
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: var(--radius);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

/* ===== Tour Section ===== */
.tour {
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.tour::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: var(--overlay-purple);
  pointer-events: none;
}

.tour-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: start;
  position: relative;
}

.tour-form-wrapper {
  background: var(--cream);
  padding: 45px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.tour-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.form-group {
  position: relative;
}

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 10px;
  color: var(--text);
  letter-spacing: 0.3px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--secondary);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 0.95rem;
  font-family: 'Lato', sans-serif;
  color: var(--text);
  transition: all var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(142, 107, 211, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #aaa;
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

.form-group input.error,
.form-group textarea.error {
  border-color: #e74c3c;
  box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.1);
}

.form-error {
  color: #e74c3c;
  font-size: 0.8rem;
  margin-top: 6px;
  display: none;
  font-weight: 600;
}

.form-success {
  display: none;
  background: linear-gradient(135deg, var(--sage), #6d9a7a);
  color: var(--white);
  padding: 35px;
  border-radius: var(--radius);
  text-align: center;
  font-weight: 600;
  font-size: 1.05rem;
  box-shadow: 0 8px 25px rgba(143, 175, 155, 0.3);
}

.form-success.show {
  display: block;
}

.admin-cards {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.admin-card {
  background: var(--cream);
  padding: 35px;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--secondary);
  transition: all var(--transition);
}

.admin-card:hover {
  box-shadow: var(--shadow);
  border-color: transparent;
  transform: translateY(-4px);
}

.admin-card-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-size: 1.3rem;
  color: var(--white);
}

.admin-card h4 {
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 4px;
}

.admin-card .role {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 15px;
  letter-spacing: 0.5px;
}

.admin-card a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: linear-gradient(135deg, var(--sage), #6d9a7a);
  color: var(--white);
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: 50px;
  transition: all var(--transition);
  box-shadow: 0 4px 15px rgba(143, 175, 155, 0.25);
}

.admin-card a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(143, 175, 155, 0.4);
}

.admin-card a i {
  font-size: 0.8rem;
}

/* ===== Contact ===== */
.contact {
  background: var(--cream);
  position: relative;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 300px;
  background: linear-gradient(180deg, var(--secondary-light), transparent);
  pointer-events: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  position: relative;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid transparent;
}

.contact-item:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  border-color: rgba(142, 107, 211, 0.08);
}

.contact-item i {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 1.02rem;
  margin-bottom: 4px;
  color: var(--text);
}

.contact-item p,
.contact-item a {
  color: var(--text-light);
  font-size: 0.93rem;
}

.contact-item a:hover {
  color: var(--primary);
}

.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 100%;
  min-height: 380px;
  border: 3px solid var(--white);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.license-info {
  margin-top: 50px;
  padding: 28px 35px;
  background: var(--white);
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.license-info i {
  color: var(--primary);
  margin-right: 8px;
}

.license-info p {
  color: var(--text-light);
  font-size: 0.95rem;
}

.license-info strong {
  color: var(--text);
}

/* ===== Footer ===== */
.footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.65);
  padding: 70px 0 30px;
  position: relative;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}

.footer-logo {
  height: 90px;
  width: auto;
  margin-bottom: 16px;
  background: var(--white);
  border-radius: 8px;
  padding: 6px 10px;
}

.footer-brand h3 {
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 5px;
}

.footer-brand .tagline {
  color: var(--accent);
  font-style: italic;
  margin-bottom: 18px;
  font-family: 'Playfair Display', serif;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.85;
}

.footer-links h4,
.footer-contact h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 12px;
}

.footer-links h4::after,
.footer-contact h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-links a {
  font-size: 0.9rem;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links a::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0;
  transition: opacity var(--transition);
}

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

.footer-links a:hover::before {
  opacity: 1;
}

.footer-contact p {
  font-size: 0.9rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-contact i {
  color: var(--accent);
  width: 16px;
  text-align: center;
}

.footer-contact a {
  transition: color var(--transition);
}

.footer-contact a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.83rem;
  flex-wrap: wrap;
  gap: 10px;
}

/* ===== Scroll to Top ===== */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow-purple);
  z-index: 999;
}

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

.scroll-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(142, 107, 211, 0.4);
}

/* ===== Who We Serve ===== */
.who-we-serve {
  margin-top: 20px;
  margin-bottom: 10px;
}

.who-we-serve h4 {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 12px;
}

.who-we-serve ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.who-we-serve li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-light);
}

.who-we-serve li i {
  color: var(--sage);
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* ===== Gallery Captions ===== */
.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 16px;
  background: linear-gradient(to top, rgba(28, 28, 46, 0.7), transparent);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  pointer-events: none;
  z-index: 1;
}

/* ===== Lightbox Arrows ===== */
.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2001;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-arrow:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ===== Testimonials ===== */
.testimonials {
  background: var(--warm-gray);
  position: relative;
  overflow: hidden;
}

.testimonials::before {
  content: '\201C';
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Playfair Display', serif;
  font-size: 20rem;
  color: var(--primary);
  opacity: 0.03;
  line-height: 1;
  pointer-events: none;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.testimonial-card {
  background: var(--white);
  padding: 40px 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: all var(--transition);
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.testimonial-quote-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--overlay-purple), rgba(185, 166, 232, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
  font-size: 1.1rem;
}

.testimonial-text {
  font-size: 1.02rem;
  color: var(--text-light);
  line-height: 1.85;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--secondary);
}

.testimonial-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sage-light), var(--sage));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text);
}

.testimonial-author span {
  font-size: 0.82rem;
  color: var(--text-light);
}

/* ===== CTA Banner ===== */
.cta-banner {
  position: relative;
  padding: 100px 0;
  background: url('../images/fwsophieshomecare/image0.jpeg') center/cover no-repeat;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(28, 28, 46, 0.75) 0%,
    rgba(142, 107, 211, 0.55) 100%
  );
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 18px;
  color: var(--white);
}

.cta-content p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 35px;
  line-height: 1.8;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Floating Call Button ===== */
.floating-call-btn {
  display: none;
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: var(--white);
  font-size: 1.3rem;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 998;
  transition: all var(--transition);
  animation: floatingPulse 2s ease-in-out infinite;
}

.floating-call-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5);
}

@keyframes floatingPulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6), 0 0 0 10px rgba(37, 211, 102, 0.1); }
}

/* ===== Counter Animation ===== */
.stat-number.counted {
  transition: none;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid .testimonial-card:last-child {
    grid-column: 1 / -1;
    max-width: 500px;
    margin: 0 auto;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item:nth-child(2)::after {
    display: none;
  }
}

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

  .navbar {
    top: 0;
  }

  .section {
    padding: 75px 0;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .section-header {
    margin-bottom: 45px;
  }

  /* Nav */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 100px 30px 30px;
    gap: 18px;
    transition: right var(--transition);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
  }

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

  .nav-links a {
    color: var(--text) !important;
    font-size: 1.05rem;
  }

  .hamburger {
    display: flex;
  }

  /* Hero */
  .hero-content h1 {
    font-size: 2.6rem;
  }

  .hero-tagline {
    font-size: 1.15rem;
  }

  .hero-scroll-indicator {
    display: none;
  }

  /* Stats */
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item:nth-child(2)::after {
    display: none;
  }

  /* Grids */
  .about-grid,
  .home-grid,
  .tour-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

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

  .gallery-item:first-child {
    grid-row: span 1;
  }

  .why-grid {
    grid-template-columns: 1fr 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid .testimonial-card:last-child {
    max-width: 100%;
  }

  .cta-content h2 {
    font-size: 2rem;
  }

  .cta-banner {
    padding: 70px 0;
  }

  .floating-call-btn {
    display: flex;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .about-image img,
  .home-image img {
    height: 320px;
  }

  .mission-card {
    padding: 35px;
  }

  .tour-form-wrapper {
    padding: 30px;
  }

  .about-experience-badge {
    bottom: -15px;
    right: 15px;
    padding: 14px 20px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .hero-contact {
    flex-direction: column;
    gap: 10px;
  }

  .stats-container {
    grid-template-columns: 1fr 1fr;
  }

  .stat-item {
    padding: 22px 15px;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  .lightbox-arrow {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

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