/* =========================================
   SPA — Global + Home Page CSS
   ========================================= */

/* ── CSS Variables ── */
:root {
  /* Brand Colors */
  --primary: #203070;
  --secondary: #101840;
  --accent: #6070B0;

  /* Olive Scale */
  --dark-olive: #0A102A;
  --olive-darker: #050A1A;
  --olive-medium: #15204A;
  --olive-light: #1A285A;
  --avatar-green: #4A5A9A;
  --avatar-dark: #101830;

  /* Blue Accent */
  --blue-accent: #2171d8;

  /* Surfaces & Backgrounds */
  --bg: #ffffff;
  --bg-light: #F5F7F2;
  --bg-card: #ffffff;
  --bg-dark: #080C1A;
  --footer-bg: #080C1A;
  --map-bg: #eeeeee;

  /* Text */
  --text: #2F2F2F;
  --text-muted: #666666;
  --text-light: #f0f4ec;

  /* Base */
  --white: #ffffff;
  --black: #000000;
  --star: #f5a623;

  /* Overlays - Primary */
  --overlay-primary-03: rgba(32, 48, 112, 0.03);
  --overlay-primary-08: rgba(32, 48, 112, 0.08);
  --overlay-primary-10: rgba(32, 48, 112, 0.10);
  --overlay-primary-12: rgba(32, 48, 112, 0.12);
  --overlay-primary-15: rgba(32, 48, 112, 0.15);
  --overlay-primary-20: rgba(32, 48, 112, 0.20);
  --overlay-primary-25: rgba(32, 48, 112, 0.25);
  --overlay-primary-40: rgba(32, 48, 112, 0.40);

  /* Overlays - Accent */
  --overlay-accent-08: rgba(96, 112, 176, 0.08);
  --overlay-accent-20: rgba(96, 112, 176, 0.20);
  --overlay-accent-30: rgba(96, 112, 176, 0.30);

  /* Overlays - White */
  --overlay-white-04: rgba(255, 255, 255, 0.04);
  --overlay-white-06: rgba(255, 255, 255, 0.06);
  --overlay-white-07: rgba(255, 255, 255, 0.07);
  --overlay-white-08: rgba(255, 255, 255, 0.08);
  --overlay-white-10: rgba(255, 255, 255, 0.10);
  --overlay-white-12: rgba(255, 255, 255, 0.12);
  --overlay-white-15: rgba(255, 255, 255, 0.15);
  --overlay-white-20: rgba(255, 255, 255, 0.20);
  --overlay-white-40: rgba(255, 255, 255, 0.40);
  --overlay-white-50: rgba(255, 255, 255, 0.50);
  --overlay-white-65: rgba(255, 255, 255, 0.65);
  --overlay-white-70: rgba(255, 255, 255, 0.70);
  --overlay-white-75: rgba(255, 255, 255, 0.75);
  --overlay-white-80: rgba(255, 255, 255, 0.80);
  --overlay-white-85: rgba(255, 255, 255, 0.85);
  --overlay-white-95: rgba(255, 255, 255, 0.95);

  /* Overlays - Black */
  --overlay-black-10: rgba(0, 0, 0, 0.10);
  --overlay-black-15: rgba(0, 0, 0, 0.15);
  --overlay-black-30: rgba(0, 0, 0, 0.30);
  --overlay-black-35: rgba(0, 0, 0, 0.35);
  --overlay-black-50: rgba(0, 0, 0, 0.50);

  /* Overlays - Dark Olive */
  --overlay-dark-65: rgba(10, 16, 42, 0.65);
  --overlay-dark-70: rgba(10, 16, 42, 0.70);
  --overlay-dark-78: rgba(10, 16, 42, 0.78);
  --overlay-olive-50: rgba(16, 24, 64, 0.50);

  /* Overlays - Blue */
  --overlay-blue-10: rgba(33, 113, 216, 0.10);

  /* Borders */
  --border-primary-10: rgba(32, 48, 112, 0.10);
  --border-primary-15: rgba(32, 48, 112, 0.15);
  --border-primary-20: rgba(32, 48, 112, 0.20);
  --border-primary-30: rgba(32, 48, 112, 0.30);
  --border-white-07: rgba(255, 255, 255, 0.07);
  --border-white-08: rgba(255, 255, 255, 0.08);
  --border-white-12: rgba(255, 255, 255, 0.12);
  --border-white-15: rgba(255, 255, 255, 0.15);
  --border-white-30: rgba(255, 255, 255, 0.30);
  --border-white-50: rgba(255, 255, 255, 0.50);
  --border-accent-30: rgba(96, 112, 176, 0.30);

  /* Shadows */
  --shadow: 0 8px 32px rgba(32, 48, 112, 0.12);
  --shadow-hover: 0 16px 48px rgba(32, 48, 112, 0.22);
  --shadow-icon: 0 4px 16px rgba(32, 48, 112, 0.25);
  --shadow-ring: 0 8px 24px rgba(32, 48, 112, 0.40);
  --shadow-dark: 0 24px 64px rgba(0, 0, 0, 0.35);
  --shadow-header: 0 4px 24px rgba(0, 0, 0, 0.10);
  --shadow-nav: -8px 0 40px rgba(0, 0, 0, 0.15);
  --shadow-contact: 0 8px 24px rgba(32, 48, 112, 0.25);
  --shadow-hero: 0 12px 40px rgba(0, 0, 0, 0.30);
  --shadow-focus: 0 0 0 3px rgba(32, 48, 112, 0.12);
  --shadow-focus-lg: 0 0 0 4px rgba(32, 48, 112, 0.10);
  --shadow-popup: 0 4px 15px rgba(0, 0, 0, 0.10);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary), var(--accent));
  --gradient-hero-overlay: linear-gradient(135deg, rgba(10, 16, 42, 0.78) 0%, rgba(16, 24, 64, 0.5) 60%, rgba(0, 0, 0, 0.35) 100%);
  --gradient-service-overlay: linear-gradient(to bottom, transparent 30%, rgba(10, 16, 42, 0.7));
  --gradient-gallery-overlay: linear-gradient(to top, rgba(10, 16, 42, 0.7) 0%, transparent 60%);

  /* Layout */
  --radius: 16px;
  --radius-sm: 8px;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --header-h: 80px;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Poppins', sans-serif;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

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

.no-scroll {
  overflow: hidden;
}

/* ── Container ── */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Section Spacing ── */
.section {
  padding: 100px 0;
}

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

.bg-dark-olive {
  background: var(--dark-olive);
}

/* ── Section Header ── */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--overlay-primary-10);
  padding: 6px 18px;
  border-radius: 40px;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 18px;
}

.section-title em {
  font-style: italic;
  color: var(--primary);
}

.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

.section-header.light .section-title {
  color: var(--white);
}

.section-header.light .section-desc {
  color: var(--overlay-white-70);
}

.section-cta {
  text-align: center;
  margin-top: 50px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover {
  background: var(--secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

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

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

.btn-sm {
  padding: 9px 20px;
  font-size: 0.82rem;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.btn-hero-primary {
  background: var(--primary);
  color: var(--white);
  padding: 16px 36px;
  font-size: 1rem;
}

.btn-hero-primary:hover {
  background: var(--secondary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hero);
}

.btn-hero-secondary {
  background: var(--overlay-white-12);
  color: var(--white);
  border: 2px solid var(--border-white-50);
  padding: 16px 36px;
  font-size: 1rem;
  backdrop-filter: blur(8px);
}

.btn-hero-secondary:hover {
  background: var(--overlay-white-20);
  transform: translateY(-3px);
}

.btn-accent {
  background: var(--accent);
  color: var(--dark-olive);
}

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

/* ── Glass Morphism ── */
.glass {
  background: var(--overlay-white-85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-white-50);
  box-shadow: var(--shadow);
}

/* ── Fade-in Animation ── */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   HEADER
   ========================================= */
#main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: var(--overlay-white-95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-primary-10);
  transition: var(--transition);
}

#main-header.scrolled {
  box-shadow: var(--shadow-header);
  height: 70px;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

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

.logo-light .logo-text {
  color: var(--white);
}

.logo-light .logo-text span {
  color: var(--accent);
}

.logo-img {
  max-height: 70px;
  width: 90px;
  object-fit: contain;
}

/* Nav */
#nav-menu {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  transition: var(--transition);
}

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

.header-cta {
  margin-left: 8px;
  flex-shrink: 0;
}

/* Mobile-only Book Appointment CTA inside drawer */
.nav-mobile-cta {
  display: none;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Nav overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--overlay-black-50);
  z-index: 998;
}

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

/* =========================================
   HERO
   ========================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--header-h);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('../images/hero1.webp');
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from {
    transform: scale(1.05);
  }

  to {
    transform: scale(1.12);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--gradient-hero-overlay);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  max-width: 800px;
  padding: 0 24px;
}

.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  background: var(--overlay-white-08);
  padding: 8px 20px;
  border-radius: 40px;
  border: 1px solid var(--border-accent-30);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-title em {
  font-style: italic;
  color: var(--accent);
  display: block;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--overlay-white-85);
  max-width: 560px;
  margin: 0 auto 40px;
}

.hero-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  background: var(--overlay-white-08);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-white-15);
  border-radius: 20px;
  padding: 24px 40px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--accent);
}

.stat span {
  font-size: 0.8rem;
  color: var(--overlay-white-70);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--overlay-white-20);
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero-scroll a {
  color: var(--overlay-white-65);
  font-size: 1.2rem;
  animation: bounce 2s infinite;
  display: block;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(8px);
  }
}

/* =========================================
   PAGE HERO (Common across inner pages)
   ========================================= */
.page-hero {
  position: relative;
  min-height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-h);
  overflow: hidden;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: url('../images/hero.webp') center/cover no-repeat;
  opacity: 0.15;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 60px 24px;
  max-width: 700px;
}

.page-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  margin: 16px 0 20px;
  line-height: 1.2;
}

.page-hero-title em {
  color: var(--accent);
  font-style: italic;
}

.page-hero-desc {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 540px;
  margin: 0 auto 28px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

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

.breadcrumb a:hover {
  color: #fff;
}

.breadcrumb i {
  font-size: 0.65rem;
}

/* =========================================
   ABOUT SECTION — REDESIGNED
   ========================================= */
.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 680px;
  overflow: hidden;
}

/* LEFT — content panel */
.about-left {
  display: flex;
  align-items: center;
  background: #fff;
  padding: 80px 0 80px 0;
}

.about-left-inner {
  max-width: 560px;
  margin-left: auto;
  padding: 0 64px 0 40px;
}

.about-new-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 20px;
}

.about-new-title em {
  font-style: italic;
  color: var(--primary);
}

.about-new-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 36px;
}

/* Pillars */
.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 40px;
  border-left: 2px solid rgba(107, 122, 69, 0.15);
}

.pillar-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 16px 0 16px 24px;
  border-bottom: 1px solid rgba(107, 122, 69, 0.08);
  transition: var(--transition);
}

.pillar-item:last-child {
  border-bottom: none;
}

.pillar-item:hover {
  background: rgba(107, 122, 69, 0.03);
}

.pillar-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  flex-shrink: 0;
  margin-left: -24px;
  box-shadow: 0 4px 16px rgba(107, 122, 69, 0.25);
}

.pillar-item>div:last-child {
  display: flex;
  flex-direction: column;
}

.pillar-item strong {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.pillar-item span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.about-cta-btn {
  margin-top: 4px;
}

/* RIGHT — image panel */
.about-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
  overflow: hidden;
}

.about-right-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--dark-olive) 0%, var(--olive-light) 55%, var(--primary) 100%);
  z-index: 0;
}

.about-right-bg::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: rgba(168, 184, 154, 0.08);
}

.about-right-bg::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}

.about-img-stack {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 380px;
}

.about-img-main-new {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  aspect-ratio: 3/4;
  max-height: 500px;
  border: 4px solid rgba(255, 255, 255, 0.12);
}

.about-img-main-new img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* Floating chips */
.about-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 16px;
  z-index: 2;
}

.chip-top {
  top: 20px;
  left: -20px;
}

.chip-bottom {
  bottom: 40px;
  right: -20px;
}

.about-chip>i {
  font-size: 1.4rem;
  color: var(--primary);
  flex-shrink: 0;
}

.about-chip strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.about-chip span {
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* Years ring */
.about-years-ring {
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 4px solid #fff;
  box-shadow: 0 8px 24px rgba(107, 122, 69, 0.4);
  z-index: 3;
}

.years-number {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.years-label {
  font-size: 0.56rem;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.3;
}

/* =========================================
   SERVICES SECTION
   ========================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.service-img {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.service-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(10, 16, 42, 0.7));
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 16px;
  color: var(--accent);
}

.service-body {
  padding: 28px;
}

.service-icon {
  width: 48px;
  height: 48px;
  background: rgba(107, 122, 69, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 14px;
  margin-top: -48px;
  position: relative;
  z-index: 1;
}

.service-body h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.service-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.service-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 18px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.service-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.service-meta i {
  color: var(--primary);
}

/* =========================================
   GALLERY SECTION
   ========================================= */
.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 16px;
  grid-auto-flow: dense;
}

.gal-item {
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}

.gal-item.tall {
  grid-row: span 2;
}

.gal-item.wide {
  grid-column: span 2;
}

.gal-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-hover);
}

.gal-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 16, 42, 0.7) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: var(--transition);
}

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

.gal-overlay span {
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
}

/* =========================================
   WHY CHOOSE US
   ========================================= */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.why-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(168, 184, 154, 0.2);
  border-radius: var(--radius);
  padding: 40px 28px;
  text-align: center;
  transition: var(--transition);
}

.why-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-6px);
}

.why-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  margin: 0 auto 24px;
}

.why-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 12px;
}

.why-card p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
}

/* =========================================
   TESTIMONIALS
   ========================================= */
.testimonial-slider {
  position: relative;
  min-height: 260px;
  margin-bottom: 40px;
}

.testimonial-slide {
  display: none;
  animation: fadeSlide 0.6s ease;
}

.testimonial-slide.active {
  display: flex;
  justify-content: center;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.testimonial-card {
  max-width: 700px;
  padding: 48px 52px;
  border-radius: 24px;
  text-align: center;
}

.stars {
  color: var(--star);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.testimonial-text {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text);
  font-style: italic;
  margin-bottom: 28px;
  line-height: 1.7;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.author-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  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-muted);
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.slider-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-size: 0.9rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-btn:hover {
  background: var(--primary);
  color: #fff;
}

.slider-dots {
  display: flex;
  gap: 8px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  transition: var(--transition);
}

.slider-dot.active {
  background: var(--primary);
  transform: scale(1.3);
}

/* =========================================
   QUICK CONTACT
   ========================================= */
.quick-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-details {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.contact-item>i {
  width: 44px;
  height: 44px;
  background: rgba(107, 122, 69, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-item>div strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.contact-item>div span {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.quick-form {
  border-radius: 24px;
  padding: 40px;
}

.quick-form h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 28px;
  color: var(--text);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid rgba(107, 122, 69, 0.2);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(107, 122, 69, 0.12);
}

/* Custom Select Dropdown */
.custom-select-wrapper {
  position: relative;
  user-select: none;
  width: 100%;
}

.custom-select {
  position: relative;
  display: flex;
  flex-direction: column;
}

.custom-select__trigger {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #fff;
  border: 1.5px solid rgba(107, 122, 69, 0.3);
  border-radius: var(--radius-sm);
  color: var(--avatar-green);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.custom-select.open .custom-select__trigger {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(107, 122, 69, 0.12);
}

.custom-select-icon {
  font-size: 0.8rem;
  color: var(--text);
  transition: transform 0.3s ease;
}

.custom-select.open .custom-select-icon {
  transform: rotate(180deg);
}

.custom-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1.5px solid var(--primary);
  border-top: none;
  border-bottom-left-radius: var(--radius-sm);
  border-bottom-right-radius: var(--radius-sm);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 10;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  max-height: 240px;
  overflow-y: auto;
}

.custom-select.open .custom-options {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateY(0);
}

.custom-option {
  padding: 12px 16px;
  font-size: 0.95rem;
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.custom-option:hover {
  background: var(--overlay-primary-10);
}

.custom-option.selected {
  background: var(--primary);
  color: #fff;
}

.form-group textarea {
  resize: vertical;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  background: var(--footer-bg);
  color: rgba(255, 255, 255, 0.75);
}

.footer-top {
  padding: 80px 0 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 48px;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.8;
  margin: 20px 0 28px;
}

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

.social-links a {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
  font-size: 0.9rem;
}

.social-links a:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px);
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: #fff;
  margin-bottom: 20px;
}

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

.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 10px;
}

.footer-newsletter {
  margin-top: 24px;
}

.newsletter-form {
  display: flex;
  gap: 0;
  margin-top: 12px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.newsletter-form input {
  flex: 1;
  padding: 11px 16px;
  background: rgba(255, 255, 255, 0.07);
  border: none;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.newsletter-form button {
  padding: 11px 18px;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.newsletter-form button:hover {
  background: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
}

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

.footer-bottom p {
  font-size: 0.85rem;
}

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

.footer-legal a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  transition: var(--transition);
}

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

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

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

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .about-section {
    grid-template-columns: 1fr;
  }

  .about-left-inner {
    max-width: 100%;
    padding: 0 40px;
  }

  .about-right {
    min-height: 480px;
  }

  .chip-top {
    top: 16px;
    left: 8px;
  }

  .chip-bottom {
    bottom: 24px;
    right: 8px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 70px 0;
  }

  /* Mobile Nav */
  .hamburger {
    display: flex;
    margin-left: auto;
  }

  .header-cta {
    display: none;
  }

  /* Book Appointment CTA — bottom of mobile drawer */
  .nav-mobile-cta {
    display: block;
    padding: 24px 20px 8px;
    border-top: 1px solid var(--border-primary-10);
    margin-top: 8px;
  }

  .nav-mobile-cta .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    font-size: 0.95rem;
    border-radius: 12px;
    box-shadow: var(--shadow-contact);
    transition: var(--transition);
  }

  .nav-mobile-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
  }

@media (max-width: 768px) {
  .header-inner {
    justify-content: space-between;
  }

  .logo {
    flex: 1;
  }
}


 @media (max-width: 768px) {
  #nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(85vw, 320px);
    height: 100vh;
    overflow-y: auto;

    background: #fff;
    z-index: 1001;

    padding: 90px 20px 30px;
    transition: right 0.35s ease;
  }

  #nav-menu.open {
    right: 0;
  }
}

#main-header {
  z-index: 1000;
}

.nav-overlay {
  z-index: 1001;
}

#nav-menu {
  z-index: 1002;
}
  #nav-menu.open {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .nav-link {
    padding: 12px 16px;
    width: 100%;
    border-radius: 10px;
    font-size: 1rem;
  }

  @media (max-width: 768px) {
  .nav-list {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-link {
    display: block;
    width: 100%;
    padding: 14px 18px;
  }
}

  /* Layouts */
  .about-left-inner {
    padding: 0 24px;
  }

  .chip-top {
    display: none;
  }

  .chip-bottom {
    display: none;
  }

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

  .gallery-masonry {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }

  .gal-item.wide {
    grid-column: span 2;
  }

  .gal-item.tall {
    grid-row: span 1;
  }

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

  .quick-contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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

  .hero-stats {
    gap: 20px;
    padding: 20px 24px;
  }

  .stat-divider {
    display: none;
  }

  .testimonial-card {
    padding: 32px 24px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .hero-btns {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-btns .btn {
    text-align: center;
    justify-content: center;
  }

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

  .gal-item.wide {
    grid-column: span 1;
  }

  .footer-bottom .container {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* =========================================
   MOBILE FIXES - Forms & Overflow
   ========================================= */

/* Prevent horizontal scroll on mobile */
@media (max-width: 768px) {
  /* Force all containers to stay within viewport */
  .container {
    padding-left: 16px;
    padding-right: 16px;
    overflow-x: hidden;
  }

  /* Fix form elements overflowing */
  .quick-form,
  .contact-form-panel,
  .contact-info-panel {
    padding: 24px 16px;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
  }

  .quick-form h3,
  .contact-form-panel h3 {
    font-size: 1.25rem;
  }

  /* Ensure all inputs and selects stay within bounds */
  .form-group input,
  .form-group select,
  .form-group textarea,
  .custom-select__trigger {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    font-size: 0.9rem;
  }

  /* Fix custom select dropdown */
  .custom-select-wrapper {
    width: 100%;
    max-width: 100%;
  }

  .custom-select {
    width: 100%;
  }

  .custom-options {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  /* Fix text wrapping */
  .contact-text p,
  .contact-text a {
    word-break: break-word;
    overflow-wrap: break-word;
  }

  /* Fix contact icon alignment on small screens */
  .contact-info-item {
    gap: 12px;
  }

  .contact-icon {
    width: 44px;
    height: 44px;
    font-size: 1rem;
    flex-shrink: 0;
  }

  /* Fix contact wrapper on mobile */
  .contact-wrapper {
    gap: 32px;
  }

  /* Ensure text doesn't overflow */
  .contact-text strong {
    font-size: 1rem;
  }
}

/* Extra small devices (phones under 400px) */
@media (max-width: 400px) {
  .quick-form,
  .contact-form-panel,
  .contact-info-panel {
    padding: 16px 12px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea,
  .custom-select__trigger {
    padding: 10px 12px;
    font-size: 0.85rem;
  }

  .btn-submit,
  .btn-full {
    font-size: 0.9rem;
    padding: 12px 16px;
  }
}