@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;600;700;800;900&family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@700;800;900&family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,600&display=swap');

/* BRAND & DESIGN SYSTEM VARIABLES */
:root {
  --primary: #7A1F4B;
  --primary-dark: #63143B;
  --primary-light: #8E1750;
  --primary-gradient: linear-gradient(135deg, #C0447A 0%, #7A1F4B 100%);
  --accent-orange: #F5A623;
  --accent-pink-light: #FBEAF3;
  --accent-pink-soft: #F7E4EF;
  --bg-neutral: #F7F7F8;
  --bg-card: #FFFFFF;
  
  --text-heading: #2B2530;
  --text-body: #6B6470;
  --text-white: #FFFFFF;
  --text-muted: #9E97A3;
  --text-maroon: #7A1F4B;
  
  --font-body: 'Inter', sans-serif;
  --font-heading: 'Poppins', sans-serif;
  --font-display: 'Montserrat', 'Poppins', sans-serif;  /* Extra-bold hero headlines */
  
  --shadow-sm: 0 4px 12px rgba(122, 31, 75, 0.04);
  --shadow-md: 0 8px 30px rgba(122, 31, 75, 0.06);
  --shadow-lg: 0 16px 48px rgba(122, 31, 75, 0.1);
  --shadow-inset: inset 0 2px 4px rgba(0,0,0,0.05);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 50px;
  
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --max-width: 1200px;
}

/* RESET & BASE STYLES */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  min-width: 320px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-neutral);
  color: var(--text-body);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* UNIFIED SECTION HEADER DESIGN SYSTEM */
.section-header,
.hl-section-header,
.services-section-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 680px;
  margin: 0 auto 52px auto;
  width: 100%;
}

.section-subtitle,
.hl-section-subtitle,
.eyebrow-label {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #E8A33D !important; /* Golden Orange Eyebrow */
  margin-bottom: 10px;
  display: inline-block;
  text-align: center;
}

.section-title,
.hl-section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.8vw, 2.5rem) !important;
  font-weight: 800 !important;
  color: #7A1B4C !important; /* Deep Maroon Main Heading */
  line-height: 1.25;
  margin-bottom: 14px;
  text-align: center;
}

.section-desc,
.hl-section-desc {
  font-family: var(--font-body);
  font-size: 1.05rem !important;
  font-weight: 400 !important;
  color: var(--text-body) !important; /* Muted Body Gray #6B6470 */
  line-height: 1.6;
  max-width: 650px;
  margin: 0 auto;
  text-align: center;
}

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

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border: none;
}

/* CONTAINER */
.container {
  width: 100%;
  max-width: min(var(--max-width), 100vw);
  margin: 0 auto;
  padding: 0 24px;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 36px;
  font-family: var(--font-heading);
  font-weight: 500;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.95rem;
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(192, 68, 122, 0.45);
}

.btn-secondary {
  background-color: var(--bg-card);
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-secondary:hover {
  background-color: var(--primary);
  color: var(--text-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(122, 31, 75, 0.15);
}

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

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

.sdp-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition);
  margin-bottom: 28px;
}

.sdp-back:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.sdp-back svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

.sdp-hero .sdp-back.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px !important;
  min-height: 28px;
  font-size: 0.75rem !important;
  line-height: 1.1;
  font-weight: 700;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.sdp-hero .sdp-back.btn svg {
  width: 12px;
  height: 12px;
}

.sdp-hero .sdp-back.btn:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #F5A623;
  border-color: rgba(245, 166, 35, 0.8);
  box-shadow: 0 12px 28px rgba(122, 31, 75, 0.18);
  transform: translateY(-1px);
}

/* BADGE PILLS */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--accent-pink-light);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.badge-pill::before {
  content: "●";
  color: var(--accent-orange);
  font-size: 0.6rem;
}

/* STICKY NAVBAR */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(122, 31, 75, 0.08);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 20px;
}

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

.logo-icon {
  width: 32px;
  height: 32px;
  color: var(--primary);
  flex-shrink: 0;
}

.logo-image {
  width: 46px;
  height: 46px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.logo-text {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
}

.logo-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.logo-wordmark .logo-ap {
  color: var(--primary);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.logo-wordmark .logo-hosp {
  color: var(--accent-orange);
}

.logo-subtitle {
  font-family: var(--font-heading);
  font-size: 0.52rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-body);
  font-weight: 500;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 16px;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-heading);
  position: relative;
  padding: 8px 4px;
  white-space: nowrap;
  display: inline-block;
}

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

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

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

.nav-decor {
  color: var(--primary-light);
  font-size: 0.65rem;
  opacity: 0.5;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-left: 8px;
}

.nav-actions .btn-primary {
  white-space: nowrap;
  padding: 12px 24px;
  font-size: 0.9rem;
}

/* Mobile Toggle */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  cursor: pointer;
}

.hamburger span {
  width: 100%;
  height: 2px;
  background-color: var(--text-heading);
  transition: var(--transition);
  border-radius: 2px;
}

/* GLOBAL FLOATING WHATSAPP BUTTON */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 999;
  font-size: 1.8rem;
  cursor: pointer;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: inherit;
  opacity: 0.6;
  z-index: -1;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* COMMON FOOTER */
.footer {
  background-color: var(--primary);
  color: rgba(255, 255, 255, 0.85);
  padding: 80px 0 30px 0;
  font-family: var(--font-body);
  border-top: 5px solid var(--accent-orange);
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: rgba(255, 255, 255, 0.95);
}

.footer-brand .logo-wordmark .logo-ap {
  color: #7A1F4B;
}

.footer-brand .logo-wordmark .logo-hosp {
  color: #F5A623;
}

.footer-brand .brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: #1F1F28;
  display: inline-block;
}

.footer-brand .logo-wordmark {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.footer-brand .logo-subtitle {
  color: rgba(31, 31, 40, 0.65);
  font-size: 0.55rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.4;
}

.footer-brand .logo-container {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-radius: 28px;
  background-color: #ffffff;
  box-shadow: 0 24px 80px rgba(122, 31, 75, 0.16);
  color: #1F1F28;
}

.footer-brand .logo-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  padding: 8px;
  background-color: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(122, 31, 75, 0.08);
  box-shadow: 0 12px 28px rgba(122, 31, 75, 0.08);
  object-fit: contain;
  display: block;
  overflow: hidden;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}

/* Wrapper that enforces clipping of logo image to rounded shape */
.footer-logo-wrap {
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.footer-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.footer-brand .logo-icon path,
.footer-brand .logo-icon circle {
  stroke: currentColor;
  fill: currentColor;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

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

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

.footer-title {
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 8px;
}

.footer-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background-color: #F5A623;
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--text-white);
  padding-left: 6px;
}

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

.contact-item {
  display: flex;
  gap: 12px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

.contact-item svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--accent-orange);
  margin-top: 3px;
}

.hours-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.hours-day {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 6px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}

.hours-day .time {
  color: #F5A623;
  font-weight: 500;
}

.map-thumbnail {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.1);
  display: block;
}

.map-thumbnail img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: var(--transition);
}

.map-thumbnail:hover img {
  transform: scale(1.05);
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

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

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

.footer-social-icons-bottom {
  display: flex;
  gap: 16px;
}

.footer-social-icons-bottom svg {
  width: 18px;
  height: 18px;
  cursor: pointer;
  transition: var(--transition);
}

.footer-social-icons-bottom svg:hover {
  color: var(--text-white);
}

/* RESPONSIVE DESIGN - COMMON */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

/* RESPONSIVE DESIGN - NAVBAR BREAKPOINT (1180px) */
@media (max-width: 1180px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100vw;
    width: 100vw;
    max-width: 100vw;
    height: calc(100vh - 80px);
    background-color: var(--bg-card);
    flex-direction: column;
    padding: 40px 24px;
    gap: 20px;
    align-items: flex-start;
    transition: 0.4s ease;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
    z-index: 999;
    overflow-y: auto;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-link {
    font-size: 1.05rem;
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid rgba(122, 31, 75, 0.05);
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  .nav-link::after {
    display: none;
  }
  
  .nav-decor {
    display: none;
  }
  
  .hamburger {
    display: flex;
  }
  
  .hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
  
  .nav-actions .btn {
    display: none; /* Hide primary button on compact mobile screens */
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 16px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  .footer-bottom-links {
    justify-content: center;
  }
  
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
  
  .btn {
    padding: 14px 28px;
    min-height: 44px;
    font-size: 0.95rem;
    width: 100%;
  }
  
  h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
    word-break: break-word;
  }
  
  .section-header {
    margin-bottom: 36px;
  }
  
  .section-title {
    font-size: clamp(1.5rem, 5vw, 2rem) !important;
  }
  
  .section-subtitle {
    font-size: 0.75rem;
  }
  
  .section-desc {
    font-size: 0.95rem;
    line-height: 1.5;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 14px;
  }
  
  body {
    font-size: 15px;
  }
  
  h1 { font-size: clamp(1.3rem, 4.5vw, 1.8rem); }
  h2 { font-size: clamp(1.2rem, 4vw, 1.6rem); }
  h3 { font-size: clamp(1rem, 3.5vw, 1.3rem); }
  
  .btn {
    padding: 12px 24px;
    min-height: 42px;
    font-size: 0.9rem;
    width: 100%;
  }
  
  .btn-large {
    padding: 14px 28px;
    min-height: 44px;
  }
  
  .section-header {
    margin-bottom: 28px;
  }
  
  .section-title {
    font-size: clamp(1.3rem, 4.5vw, 1.8rem) !important;
    margin-bottom: 12px;
  }
  
  .section-subtitle {
    font-size: 0.7rem;
    margin-bottom: 8px;
  }
  
  .section-desc {
    font-size: 0.9rem;
    line-height: 1.5;
  }
  
  .footer-brand .logo-container {
    gap: 10px;
    padding: 10px 16px;
  }
  
  .footer-logo-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }
  
  .footer-brand .logo-wordmark {
    font-size: 0.9rem;
  }
  
  .footer-brand .logo-subtitle {
    font-size: 0.45rem;
  }
  
  .footer-title {
    font-size: 0.95rem;
  }
  
  .footer-desc {
    font-size: 0.85rem;
    line-height: 1.5;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
  }
  
  .footer-bottom p {
    font-size: 0.8rem;
  }
  
  .footer-bottom-links a {
    font-size: 0.75rem;
  }
}

/* ==========================================================================
   FORM FOCUS GLOW (site-wide, used on contact + book pages)
   ========================================================================== */

.form-control {
  transition: border-color 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
              box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
              background-color 0.3s ease !important;
}

.form-control:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(122, 31, 75, 0.12), 0 1px 4px rgba(122, 31, 75, 0.08) !important;
  background-color: var(--bg-card) !important;
  outline: none;
}

.form-control:focus ~ .form-label,
.form-label:has(~ .form-control:focus) {
  color: var(--primary);
}

/* ==========================================================================
   ICON BADGE DRAW-IN (site-wide — used on all pages)
   ========================================================================== */

/* All icon badge SVG paths start hidden and draw in when parent is revealed */
.icon-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: var(--accent-pink-light);
  color: var(--primary);
  flex-shrink: 0;
}

/* Shared draw-in base for icon SVG paths (set by JS dynamically) */
.icon-badge svg path,
.icon-badge svg circle,
.icon-badge svg polyline,
.icon-badge svg line,
.icon-badge svg rect {
  transition: stroke-dashoffset 0.7s cubic-bezier(0.25, 0.8, 0.25, 1),
              opacity 0.4s ease;
}

/* Revealed state handled by JS adding .icon-revealed on the .icon-badge */
.icon-badge.icon-revealed svg path,
.icon-badge.icon-revealed svg circle,
.icon-badge.icon-revealed svg polyline,
.icon-badge.icon-revealed svg line,
.icon-badge.icon-revealed svg rect {
  stroke-dashoffset: 0 !important;
  opacity: 1 !important;
}

/* ==========================================================================
   PREMIUM SITE-WIDE ANIMATIONS
   ========================================================================== */

/* Page Fade-In Transition */
body {
  opacity: 0;
  transition: opacity 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body.page-loaded {
  opacity: 1;
}

/* Scroll-triggered reveal rules */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Programmatic Stagger Grid */
.stagger-grid > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.stagger-grid.revealed > * {
  opacity: 1;
  transform: translateY(0);
}

.stagger-grid.revealed > *:nth-child(1) { transition-delay: 0.08s; }
.stagger-grid.revealed > *:nth-child(2) { transition-delay: 0.16s; }
.stagger-grid.revealed > *:nth-child(3) { transition-delay: 0.24s; }
.stagger-grid.revealed > *:nth-child(4) { transition-delay: 0.32s; }
.stagger-grid.revealed > *:nth-child(5) { transition-delay: 0.40s; }
.stagger-grid.revealed > *:nth-child(6) { transition-delay: 0.48s; }
.stagger-grid.revealed > *:nth-child(7) { transition-delay: 0.56s; }
.stagger-grid.revealed > *:nth-child(8) { transition-delay: 0.64s; }

/* Global Sticky Nav Slide-down on Load */
.header {
  animation: navSlideDown 0.6s cubic-bezier(0.25, 1, 0.5, 1) both;
}

@keyframes navSlideDown {
  0% { transform: translateY(-100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* Nav Link Underline Easing */
.nav-link::after {
  transition: width 0.35s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

/* Site-wide Premium Hover-Card Declarations */
.feature-card,
.service-card,
.value-card,
.contact-info-card,
.hours-card,
.dept-card,
.doc-card,
.slot-card {
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.3s ease !important;
}

@media (hover: hover) {
  .feature-card:hover,
  .service-card:hover,
  .value-card:hover,
  .contact-info-card:hover,
  .hours-card:hover,
  .dept-card:hover,
  .doc-card:hover,
  .slot-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 20px 40px rgba(122, 31, 75, 0.1) !important;
    border-color: rgba(192, 68, 122, 0.15) !important;
  }
  
  .feature-card:hover .icon-badge,
  .service-card:hover .icon-badge,
  .value-card:hover .icon-badge,
  .contact-info-card:hover .icon-badge,
  .dept-card:hover .dept-icon {
    transform: scale(1.05);
  }
  
  /* Zoom effect on facility cards containing images */
  .facility-card {
    overflow: hidden;
  }
  .facility-card img {
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  }
  .facility-card:hover img {
    transform: scale(1.06) !important;
  }
}

/* Star Rating entrance scaling */
.testimonial-card .star-rating svg {
  display: inline-block;
  opacity: 0;
  transform: scale(0.3);
  transition: opacity 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.testimonial-card.revealed .star-rating svg:nth-child(1) { transition-delay: 0.15s; }
.testimonial-card.revealed .star-rating svg:nth-child(2) { transition-delay: 0.23s; }
.testimonial-card.revealed .star-rating svg:nth-child(3) { transition-delay: 0.31s; }
.testimonial-card.revealed .star-rating svg:nth-child(4) { transition-delay: 0.39s; }
.testimonial-card.revealed .star-rating svg:nth-child(5) { transition-delay: 0.47s; }

.testimonial-card.revealed .star-rating svg {
  opacity: 1;
  transform: scale(1);
}

/* Premium Button Overrides */
.btn {
  transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.2s cubic-bezier(0.25, 0.8, 0.25, 1), background-color 0.3s ease, color 0.3s ease !important;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn:hover {
  transform: scale(1.03) translateY(-1px) !important;
  box-shadow: 0 8px 20px rgba(122, 31, 75, 0.2) !important;
}

.btn:active {
  transform: scale(0.97) translateY(0) !important;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  transition: none;
  z-index: -1;
}

.btn-primary:hover::before {
  left: 150%;
  transition: left 0.85s ease-in-out;
}

/* Dynamic arrow symbol nudge */
.btn-arrow {
  display: inline-block;
  transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}
a:hover .btn-arrow,
button:hover .btn-arrow,
.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* Global Utility Keyframes & Hero Load Transitions */
@keyframes fadeUpLoad {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes microBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.contact-hero .badge-pill,
.contact-hero-title,
.contact-hero-desc,
.services-hero .badge-pill,
.services-hero-title,
.services-hero-desc,
.book-hero .badge-pill,
.book-hero-title,
.book-hero-desc {
  opacity: 0;
  transform: translateY(20px);
}

body.page-loaded .contact-hero .badge-pill,
body.page-loaded .contact-hero-title,
body.page-loaded .contact-hero-desc,
body.page-loaded .services-hero .badge-pill,
body.page-loaded .services-hero-title,
body.page-loaded .services-hero-desc,
body.page-loaded .book-hero .badge-pill,
body.page-loaded .book-hero-title,
body.page-loaded .book-hero-desc {
  animation: fadeUpLoad 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

body.page-loaded .contact-hero-title { animation-delay: 0.1s; }
body.page-loaded .contact-hero-desc { animation-delay: 0.2s; }

body.page-loaded .services-hero-title { animation-delay: 0.1s; }
body.page-loaded .services-hero-desc { animation-delay: 0.2s; }

body.page-loaded .book-hero-title { animation-delay: 0.1s; }
body.page-loaded .book-hero-desc { animation-delay: 0.2s; }

/* ECG hero line draws in after hero text loads */
.book-hero-ecg .ecg-line {
  stroke-dasharray: 700;
  stroke-dashoffset: 700;
  transition: stroke-dashoffset 1.6s cubic-bezier(0.25, 0.8, 0.25, 1) 0.45s;
}

body.page-loaded .book-hero-ecg .ecg-line {
  stroke-dashoffset: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-delay: 0s !important;
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
    transform: none !important;
  }
  body {
    opacity: 1 !important;
  }
  .reveal-on-scroll {
    opacity: 0;
    transform: none !important;
    transition: opacity 0.3s ease !important;
  }
  .reveal-on-scroll.revealed {
    opacity: 1;
  }
  .stagger-grid > * {
    opacity: 0;
    transform: none !important;
    transition: opacity 0.3s ease !important;
  }
  .stagger-grid.revealed > * {
    opacity: 1;
  }
}

/* ============================================================
   OUR MILESTONES ACHIEVEMENTS SECTION (GLOBAL STYLES)
   ============================================================ */
.milestones-section {
  padding: 85px 0 95px 0;
  background-color: #FFFFFF;
  position: relative;
}

.milestones-header {
  text-align: center !important;
  max-width: 680px;
  margin: 0 auto 48px auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

.milestones-subtitle {
  color: #F5A623; /* Vibrant orange */
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 10px;
  display: inline-block;
}

.milestones-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1A1A2E; /* Dark navy/black */
  margin-bottom: 14px;
  line-height: 1.2;
}

.milestones-desc {
  font-size: 0.98rem;
  color: #6B7280; /* Medium gray */
  line-height: 1.65;
}

.milestones-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 24px !important;
  width: 100% !important;
}

.milestone-card {
  opacity: 1 !important;
  background-color: #FFFFFF !important;
  border: 1px solid #E5E7EB !important; /* Light gray border */
  border-radius: 16px !important;
  padding: 32px 24px 28px 24px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  flex: 0 1 calc(33.333% - 24px) !important;
  min-width: 260px !important;
  max-width: 360px !important;
  box-sizing: border-box !important;
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02) !important;
  position: relative;
}

@media (max-width: 1024px) {
  .milestones-grid {
    gap: 20px !important;
  }
  .milestone-card {
    flex: 0 1 calc(50% - 20px) !important;
    max-width: 440px !important;
  }
}

@media (max-width: 640px) {
  .milestones-grid {
    gap: 16px !important;
  }
  .milestone-card {
    flex: 0 1 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
}

