/* ==========================================================================
   Surya Pets Funeral Services - Design System & Stylesheet
   Color Palette: Misty Lavender-Grey (#7A7291), Lilac (#C4B8D9), Background (#F8F7FA)
   ========================================================================== */

:root {
  --bg-primary: #F8F7FA;
  --bg-secondary: #FFFFFF;
  --primary: #7A7291;
  --primary-dark: #5C5570;
  --primary-light: #9B93B0;
  --accent: #C4B8D9;
  --accent-light: #EBE6F3;
  --accent-soft: #FAF8FC;
  --text-dark: #332E40;
  --text-muted: #6B657B;
  --text-light: #F8F7FA;
  --white: #FFFFFF;
  --border-color: #E6E1F0;
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --shadow-subtle: 0 6px 24px rgba(122, 114, 145, 0.08);
  --shadow-hover: 0 12px 36px rgba(122, 114, 145, 0.15);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --font-heading: 'Plus Jakarta Sans', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

ul {
  list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin-bottom: 0.75rem; }
h4 { font-size: 1.15rem; }
p { margin-bottom: 1rem; color: var(--text-muted); font-size: 1.05rem; }

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background-color: var(--accent-light);
  color: var(--primary-dark);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.text-highlight {
  color: var(--primary);
}

/* Layout Utilities */
.container {
  width: 90%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 15px;
}

.section-padding {
  padding: 80px 0;
}

.bg-alt {
  background-color: var(--white);
}

.bg-tint {
  background-color: var(--accent-soft);
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(122, 114, 145, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(122, 114, 145, 0.4);
  color: var(--white);
}

.btn-secondary {
  background-color: var(--accent-light);
  color: var(--primary-dark);
  border-color: var(--accent);
}

.btn-secondary:hover {
  background-color: var(--accent);
  color: var(--text-dark);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
}

/* Sticky Header */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(248, 247, 250, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-subtle);
  background-color: rgba(255, 255, 255, 0.98);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 54px;
  width: auto;
  object-fit: contain;
}

.brand-text-container {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--primary-dark);
  line-height: 1.1;
  letter-spacing: -0.3px;
}

.brand-tagline {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.5px;
}

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

.nav-link {
  font-weight: 500;
  color: var(--text-dark);
  font-size: 0.98rem;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-dark);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

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

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-dark);
  cursor: pointer;
  padding: 6px;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 90px 0 100px;
  background: linear-gradient(135deg, rgba(235, 230, 243, 0.6) 0%, rgba(248, 247, 250, 0.9) 100%), url('../assets/images/img_02_pet_funeral_ceremony.jpg') center/cover no-repeat;
  background-attachment: fixed;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.85) 0%, rgba(248, 247, 250, 0.96) 70%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.hero-text h1 {
  margin-bottom: 18px;
  color: var(--text-dark);
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 620px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.hero-badge-list {
  display: flex;
  gap: 20px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(122, 114, 145, 0.2);
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--primary-dark);
}

.badge-item i {
  color: var(--primary);
  font-size: 1.1rem;
}

.hero-card-stack {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.hero-img-card {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  border: 4px solid var(--white);
  transition: var(--transition);
}

.hero-img-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.hero-img-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

/* About Us Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

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

.about-img-box img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.about-experience-badge {
  position: absolute;
  bottom: 24px;
  right: 24px;
  background-color: var(--white);
  padding: 16px 24px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-subtle);
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--border-color);
}

.badge-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.badge-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.2;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

/* Services Grid (8 Cards) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.service-card {
  background-color: var(--white);
  padding: 32px 24px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-subtle);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background-color: var(--accent-light);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background-color: var(--primary);
  color: var(--white);
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.95rem;
  flex-grow: 1;
  margin-bottom: 20px;
}

.service-link {
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
}

.service-link:hover {
  color: var(--primary-dark);
  gap: 10px;
}

/* Detailed Content Sections (SEO formatted) */
.seo-section-card {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-subtle);
  border: 1px solid var(--border-color);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.seo-section-card.reverse {
  grid-template-columns: 1fr 1fr;
}

.seo-section-card.reverse .seo-card-content {
  order: 2;
}

.seo-section-card.reverse .seo-card-media {
  order: 1;
}

.seo-card-media {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  height: 100%;
  max-height: 380px;
}

.seo-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.seo-card-content h2 {
  font-size: 1.75rem;
  margin-bottom: 16px;
  color: var(--primary-dark);
}

.seo-card-content p {
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 16px;
}

/* Why Choose Us (Icon Grid) */
.why-us-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.why-card {
  background-color: var(--white);
  padding: 28px 20px;
  border-radius: var(--border-radius-md);
  text-align: center;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-subtle);
  transition: var(--transition);
}

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

.why-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background-color: var(--accent-light);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

/* Gallery Section */
.gallery-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.filter-btn {
  padding: 10px 22px;
  border-radius: 50px;
  border: 1px solid var(--border-color);
  background-color: var(--white);
  color: var(--text-dark);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  height: 260px;
  box-shadow: var(--shadow-subtle);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.gallery-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to top, rgba(51, 46, 64, 0.88) 0%, rgba(51, 46, 64, 0.1) 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transition: var(--transition);
}

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

.gallery-cat {
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.gallery-title {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 4px;
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.88);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 900px;
  max-height: 85vh;
  width: 100%;
}

.lightbox-content img {
  max-height: 75vh;
  margin: 0 auto;
  border-radius: var(--border-radius-sm);
}

.lightbox-caption {
  color: var(--white);
  text-align: center;
  margin-top: 14px;
  font-size: 1rem;
}

.lightbox-close {
  position: absolute;
  top: -40px; right: 0;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.testimonial-card {
  background-color: var(--white);
  padding: 32px 28px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-subtle);
  border: 1px solid var(--border-color);
  position: relative;
  display: flex;
  flex-direction: column;
}

.quote-icon {
  font-size: 2.2rem;
  color: var(--accent);
  margin-bottom: 14px;
}

.testimonial-text {
  font-style: italic;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-dark);
  flex-grow: 1;
  margin-bottom: 20px;
}

.client-info {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

.client-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--accent-light);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.client-name {
  font-weight: 700;
  font-size: 0.98rem;
}

.client-location {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* FAQ Accordion */
.faq-container {
  max-width: 840px;
  margin: 40px auto 0;
}

.faq-item {
  background-color: var(--white);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
}

.faq-question {
  width: 100%;
  padding: 22px 28px;
  text-align: left;
  background: none;
  border: none;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--primary);
}

.faq-icon {
  font-size: 1rem;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 28px;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 28px 24px;
}

.faq-answer p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.7;
}

/* Contact & Map Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}

.contact-info-card {
  background-color: var(--white);
  padding: 40px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-subtle);
  border: 1px solid var(--border-color);
}

.contact-detail-item {
  display: flex;
  gap: 18px;
  margin-bottom: 28px;
}

.contact-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background-color: var(--accent-light);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-detail-text h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.contact-detail-text p, .contact-detail-text a {
  font-size: 1rem;
  color: var(--text-muted);
}

.map-container {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  border: 1px solid var(--border-color);
  height: 100%;
  min-height: 400px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
}

/* Premium Footer */
.site-footer {
  background-color: #262230;
  color: #E2DFEA;
  padding: 70px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 1.1fr 1.1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .footer-logo-container {
  display: inline-block;
  background-color: #F8F7FA;
  padding: 10px 16px;
  border-radius: 12px;
  margin-bottom: 18px;
  transition: var(--transition);
}

.footer-brand .footer-logo-container:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.footer-brand .footer-logo-img {
  height: 60px;
  width: auto;
  max-width: 220px;
  display: block;
  object-fit: contain;
}

.footer-brand p {
  color: #A9A3B8;
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-title {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background-color: var(--accent);
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #B5B0C4;
  font-size: 0.94rem;
}

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

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-icon:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 0.88rem;
  color: #928DA0;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: #B5B0C4;
}

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

/* Footer SEO Keywords Section */
.footer-keywords-section {
  padding-top: 40px;
  padding-bottom: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 30px;
}

.keyword-group {
  margin-bottom: 28px;
}

.keyword-group-title {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.keyword-tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.keyword-tag {
  display: inline-block;
  padding: 6px 14px;
  background-color: rgba(255, 255, 255, 0.05);
  color: #B5B0C4;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  font-size: 0.82rem;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
}

.keyword-tag:hover {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* Floating Sticky CTA Buttons */
.floating-cta-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.floating-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.4rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transition: var(--transition);
  cursor: pointer;
}

.floating-btn.call-btn {
  background-color: var(--primary-dark);
}

.floating-btn.whatsapp-btn {
  background-color: #25D366;
}

.floating-btn:hover {
  transform: scale(1.1);
}

.floating-text-badge {
  position: absolute;
  right: 68px;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--text-dark);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  white-space: nowrap;
  font-weight: 600;
  box-shadow: var(--shadow-subtle);
  pointer-events: none;
  opacity: 0;
  transition: var(--transition);
}

.floating-cta-container:hover .floating-text-badge {
  opacity: 1;
}

/* Mobile Navigation Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0; right: -100%;
  width: 85%;
  max-width: 340px;
  height: 100%;
  background-color: var(--white);
  z-index: 2000;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
  transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
}

.mobile-nav-drawer.active {
  right: 0;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 24px;
}

.drawer-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--text-dark);
  cursor: pointer;
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex-grow: 1;
}

.drawer-links a {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
}

.drawer-cta {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.nav-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1999;
}

.nav-overlay.active {
  display: block;
}

/* Inner Page Header Hero */
.page-hero {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--bg-primary) 100%);
  padding: 60px 0;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.page-hero h1 {
  font-size: 2.5rem;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--primary);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-text p { margin: 0 auto 30px; }
  .hero-actions { justify-content: center; }
  .hero-badge-list { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; }
  .seo-section-card, .seo-section-card.reverse { grid-template-columns: 1fr; }
  .seo-section-card.reverse .seo-card-content { order: 1; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-menu, .header-cta .btn { display: none; }
  .mobile-toggle { display: block; }
  .brand-tagline { display: none; }
  .logo-img { height: 40px; }
  .brand-name { font-size: 1.05rem; }

  .site-header { padding: 4px 0; }
  .header-container { padding: 8px 15px; }

  .hero-section {
    padding: 40px 0 60px;
    text-align: center;
  }
  .hero-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .hero-text h1 {
    font-size: 1.85rem;
    line-height: 1.25;
    margin-bottom: 14px;
  }
  .hero-text p {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 auto 24px;
  }

  .hero-card-stack { grid-template-columns: 1fr; }
  .section-padding { padding: 50px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* Floating CTA size fix for mobile */
  .floating-cta-container {
    bottom: 16px;
    right: 16px;
    gap: 10px;
  }
  .floating-btn {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }
}

@media (max-width: 576px) {
  .container {
    width: 94%;
    padding: 0 10px;
  }
  .hero-section {
    padding: 30px 0 50px;
  }
  .hero-text h1 {
    font-size: 1.65rem;
  }
  .hero-text p {
    font-size: 0.95rem;
  }

  /* Full width stacked actions on small mobile screens */
  .hero-actions {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
    gap: 12px;
  }
  .hero-actions .btn {
    width: 100%;
    padding: 14px 16px;
    font-size: 0.95rem;
    text-align: center;
    justify-content: center;
    white-space: normal;
  }

  /* Clean stacked badge list on small mobile screens */
  .hero-badge-list {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    padding-top: 18px;
    width: 100%;
  }
  .badge-item {
    font-size: 0.85rem;
    justify-content: center;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .why-us-grid {
    grid-template-columns: 1fr;
  }
}
