/* ============================================
   COLOR PALETTE SYSTEM
   ============================================ */
:root {
  /* Primary Colors */
  --color-primary: #d4a373;
  --color-primary-hover: #c49463;
  --color-primary-light: #e8d4bf;

  /* Secondary Colors */
  --color-secondary: #f8f5f2;
  --color-secondary-dark: #e8e5e2;

  /* Neutral Colors */
  --color-dark: #333333;
  --color-gray-800: #1f2937;
  --color-gray-600: #4b5563;
  --color-gray-400: #9ca3af;
  --color-gray-300: #d1d5db;
  --color-gray-200: #e5e7eb;
  --color-gray-100: #f3f4f6;
  --color-gray-50: #f9fafb;

  /* Accent Colors */
  --color-success: #10b981;
  --color-error: #ef4444;
  --color-warning: #f59e0b;

  /* White & Light */
  --color-white: #ffffff;
  --color-light: #f8f5f2;
}

/* Prevent horizontal scrolling at the root */
html {
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  scroll-padding-top: 80px;
  background-color: #2b211c;
}

/* Allow vertical scrolling for sticky header + add side spacing for cleaner look */
body {
  overflow-x: hidden;
  overflow-y: auto;
  margin: 0;
  padding: 0;
  background-color: #2b211c;
}

/* Body side padding removed — sections use container padding instead */



/* Add subtle shadow and styling to main content for depth */
body>header,
body>section {
  background-color: white;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
}

body>header {
  border-radius: 0 0 4px 4px;
}

body>footer {
  /* No shadow or border-radius */
}
/* Back-to-top button: keep it out of normal document flow and exempt it from
   the global max-width clamp so it does not create whitespace below the footer. */
#back-to-top {
  position: fixed !important;
  right: 1.5rem;
  bottom: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  max-width: none;
  width: auto;
  left: auto;
  inset-inline-start: auto;
  inset-inline-end: 1.5rem;
  inset-block-start: auto;
  inset-block-end: 2rem;
}

@media (min-width: 768px) {
  #back-to-top {
    right: 2rem;
    inset-inline-end: 2rem;
  }
}

.site-footer {
  background:
    linear-gradient(135deg, #2b211c 0%, #342822 52%, #403028 100%);
  color: var(--color-white);
}

.site-footer .text-gray-400,
.site-footer a.text-gray-400 {
  color: #e7ddd3 !important;
}

.site-footer .text-gray-400:hover,
.site-footer a.text-gray-400:hover {
  color: var(--color-white) !important;
}

.site-footer .text-primary {
  color: #f1c79d;
}

.site-footer .border-gray-800 {
  border-color: rgba(255, 255, 255, 0.14);
}

.site-footer .footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
}

.site-footer .footer-contact-item i {
  flex: 0 0 auto;
  margin-right: 0;
}

.site-footer .footer-contact-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.site-footer .footer-contact-copy a,
.site-footer .footer-contact-link {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.6;
}

@media (max-width: 767px) {

  /* Remove shadow on mobile for cleaner look */
  body>header,
  body>section,
  body>footer {
    box-shadow: none;
  }

  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .site-footer .footer-contact-item {
    gap: 0.625rem;
  }
}



/* Prevent any element from exceeding viewport width, except where needed */
* {
  max-width: 100vw;
  /* No element can exceed viewport width */
  box-sizing: border-box;
  /* Include padding/borders in width calculations */
}

/* Ensure containers and sections stay within bounds */
.container {
  max-width: 100%;
  /* Override Tailwind's container if needed */
  padding-left: 1rem;
  padding-right: 1rem;
}

section {
  max-width: 100vw;
  overflow-x: hidden;
  /* Extra safety for section-level overflow */
}

/* Fix hero section image */
#hero img {
  max-width: 100%;
  /* Ensure image doesn't exceed container */
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Floating Island Header Optimization */
#header {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

#announcement-bar {
  width: 100%;
  pointer-events: auto;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 100px;
  /* Limit height for transition */
  opacity: 1;
}

#announcement-bar .announcement-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

#announcement-bar .announcement-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.35;
  flex: 1 1 420px;
}

#announcement-bar .announcement-cta {
  flex: 0 0 auto;
  white-space: nowrap;
  min-height: 2.125rem;
  border-radius: 0.5rem;
}

@media (max-width: 767px) {
  #announcement-bar {
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
  }

  #announcement-bar .announcement-inner {
    justify-content: center;
  }

  #announcement-bar .announcement-text {
    text-align: center;
    flex-basis: 100%;
    font-size: 0.9rem;
  }

  #announcement-bar .announcement-cta {
    width: auto;
  }
}

@media (min-width: 1024px) {
  #announcement-bar {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  #announcement-bar .announcement-text {
    font-size: 1rem;
  }
}

/* Sleek announcement bar transition when scrolled */
.header-scrolled #announcement-bar {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
  pointer-events: none;
}

#header-pill {
  width: 100%;
  max-width: min(96vw, 1460px);
  margin-left: auto;
  margin-right: auto;
  transform: translateY(0);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 1024px) {
  #header-pill ul {
    display: flex !important;
    align-items: center !important;
    gap: 1.65rem !important;
  }

  #header-pill .header-location {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 0.5rem;
  }

  #header-pill .header-location a {
    white-space: nowrap;
    max-width: 100%;
  }

  #header-pill .header-location span {
    display: inline-block;
    max-width: 34ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #header-pill .header-main-nav {
    flex: 0 0 auto;
  }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  #header-pill .header-location span {
    max-width: 22ch;
  }

  #header-pill ul {
    gap: 1.1rem !important;
  }
}

/* Scroll state managed by JS */
.header-scrolled #header-pill {
  background-color: rgba(255, 255, 255, 0.95);
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  border-color: rgba(212, 163, 115, 0.2);
}

@media (max-width: 767px) {
  #header-pill {
    border-radius: 1.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Handle mobile safari/iPhone safe areas */
  #header {
    padding-top: env(safe-area-inset-top, 0);
  }
}

/* Ensure announcement bar is not sticky */
#announcement-bar {
  position: relative;
  z-index: 40;
  /* Below header */
}

/* Fix Glide carousel for testimonials */
.glide {
  overflow: hidden;
  /* Contain the carousel itself */
}

.glide__track {
  overflow: hidden;
  /* Keep off-screen slide content clipped */
}

.glide__slides {
  display: flex;
  /* Ensure slides align horizontally */
  max-width: none;
  /* Exempt from global max-width */
  overflow: hidden;
  /* Prevent card badges from bleeding outside carousel */
}

.glide__slide {
  max-width: 100vw;
  /* Each slide fits container width */
  flex-shrink: 0;
  /* Prevent shrinking */
}

/* ============================================
   LOGO RESPONSIVE SIZING (UI Fix #2)
   ============================================ */
.logo img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

/* Desktop logo size */
@media (min-width: 768px) {
  .logo img {
    width: 80px;
    height: 80px;
  }
}

.logo img:hover {
  transform: scale(1.05);
}

/* Add hero-gradient class to match the hero section ID */
#hero .hero-gradient,
#hero {
  /* This ensures backwards compatibility with any GSAP animations targeting .hero-gradient */
  position: relative;
  z-index: 30;
}

/* Make sure all flex containers in the hero section are properly linked */
#hero .flex,
.hero-gradient .flex {
  display: flex;
  opacity: 1 !important;
  /* Ensure flex container is always visible */
}

/* Force buttons in hero section to remain visible */
#hero .flex a,
.hero-gradient .flex a,
#hero a,
.hero-gradient a {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

/* Any additional styles required for the hero gradient section */
.hero-gradient {
  background: linear-gradient(135deg,
      rgba(0, 0, 0, 0.7) 0%,
      rgba(0, 0, 0, 0.3) 100%);
  border-radius: 0.5rem;
  padding: 2rem;
  opacity: 1 !important;
  /* Ensure the gradient container is always visible */
}

.hero-gradient h1,
.hero-gradient h2 {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
  /* Improve readability */
}

/* Move hero-gradient down by 20% on screens below 768px */
@media (max-width: 767px) {
  .hero-gradient {
    margin-top: 10vh;
    margin-right: 0;
    padding: 2rem 1.5rem;
  }

  .hero-gradient h1 {
    font-size: 2rem;
  }

  .hero-gradient h2 {
    font-size: 1.125rem;
  }
}

@media (max-width: 480px) {
  .hero-gradient {
    margin-top: 5vh;
    padding: 1.5rem 1rem;
  }

  .hero-gradient h1 {
    font-size: 1.75rem;
  }
}

/* Service Card Styles */
.service-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Connect service cards with their actual HTML structure */
#services .bg-white.rounded-lg,
.service-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#services .bg-white.rounded-lg:hover,
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Navigation Link Styles */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: #d4a373;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Scroll Indicator Animation */
.scroll-indicator {
  animation: bounce 2s infinite;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-20px);
  }

  60% {
    transform: translateY(-10px);
  }
}

/* Subtle Background Gradient */
.bg-gradient-to-b.from-light.to-white {
  background: linear-gradient(to bottom, #f8f5f2, #ffffff);
}

.bg-gradient-to-t.from-white.to-light {
  background: linear-gradient(to top, #ffffff, #f8f5f2);
}

/* Enhance Card Contrast */
.bg-white.bg-opacity-90 {
  background-color: rgba(255, 255, 255, 0.9);
}

.shadow-md {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Ensure text remains readable on new backgrounds */
.text-dark {
  color: #333333;
}

/* Subtle texture for sections */
.bg-gray-50.bg-opacity-75 {
  background-color: rgba(249, 250, 251, 0.75);
  background-image: url('data:image/svg+xml,%3Csvg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="%23e9ecef" fill-opacity="0.1"%3E%3Cpath d="M0 0h1v1H0zM19 19h1v1h-1zM0 19h1v1H0zM19 0h1v1h-1z"/%3E%3C/g%3E%3C/svg%3E');
}

/* FAQ Accordion Styles */
.faq-item {
  background-color: #ffffff;
}

.faq-item button {
  background: none;
  border: none;
}

.faq-content {
  background-color: #f9fafb;
}

.faq-item button:hover {
  background-color: #f8f5f2;
}

.faq-item button svg {
  flex-shrink: 0;
}

.faq-item button:focus {
  outline: 2px solid #d4a373;
  outline-offset: -2px;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .faq-item button {
    padding: 1rem;
  }

  .faq-content {
    font-size: 1rem;
  }

  .faq-category h4 {
    font-size: 1.125rem;
  }
}

/* ============================================
   STANDARDIZED BUTTON COMPONENTS (UI Fix #1)
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  border-radius: 9999px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  border: 2px solid var(--color-primary);
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 163, 115, 0.3);
}

.btn-outline {
  background-color: var(--color-white);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 163, 115, 0.3);
}

.btn-secondary {
  background-color: var(--color-gray-200);
  color: var(--color-dark);
  border: 2px solid var(--color-gray-200);
}

.btn-secondary:hover {
  background-color: var(--color-gray-300);
  border-color: var(--color-gray-300);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* ============================================
   MOBILE MENU OVERLAY (UI Fix #4)
   Note: Fixed positioning ensures full viewport coverage
   ============================================ */
.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

#mobile-menu {
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform: translateY(-10px);
  opacity: 0;
}

#mobile-menu:not(.hidden) {
  transform: translateY(0);
  opacity: 1;
}

/* ============================================
   FORM INPUT STANDARDIZATION (UI Fix #5)
   ============================================ */
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--color-gray-300);
  border-radius: 0.5rem;
  font-size: 1rem;
  color: var(--color-dark);
  background-color: var(--color-white);
  transition: all 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.1);
}

.form-input:disabled,
.form-select:disabled,
.form-textarea:disabled {
  background-color: var(--color-gray-100);
  cursor: not-allowed;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--color-dark);
}

.form-group {
  margin-bottom: 1.25rem;
}

@media (max-width: 767px) {

  .form-input,
  .form-select,
  .form-textarea {
    padding: 0.875rem 1rem;
    font-size: 16px;
    /* Prevents iOS zoom on focus */
  }
}

/* ============================================
   SERVICE CARD IMAGE ASPECT RATIO (UI Fix #3)
   ============================================ */
.service-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}

#services .bg-white.rounded-lg img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}

/* ============================================
   FOOTER LINK CONTRAST FIX (UI Fix #6)
   ============================================ */
/* Rules consolidated into site-footer block above. */

/* ============================================
   CONTACT CARD SPACING & SOCIAL ICONS
   ============================================ */
.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-info-icon {
  width: 3rem;
  height: 3rem;
  min-width: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 10px 24px rgba(212, 163, 115, 0.22);
}

.contact-info-copy {
  min-width: 0;
  flex: 1;
}

.contact-info-copy p + p {
  margin-top: 0.375rem;
}

.contact-info-copy a,
.contact-inline-link {
  color: var(--color-gray-600);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-info-copy a:hover,
.contact-inline-link:hover {
  color: var(--color-primary);
}

.contact-social-block {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--color-gray-200);
}

.contact-social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.contact-social-link {
  width: 3.5rem;
  height: 3.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background-color: rgba(212, 163, 115, 0.14);
  color: var(--color-primary);
  box-shadow: inset 0 0 0 1px rgba(212, 163, 115, 0.24);
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease,
    box-shadow 0.2s ease;
}

.contact-social-link:hover {
  transform: translateY(-2px);
  background-color: rgba(212, 163, 115, 0.22);
  color: #b78350;
  box-shadow: inset 0 0 0 1px rgba(212, 163, 115, 0.38), 0 10px 20px rgba(31, 41, 55, 0.08);
}

.contact-social-link i {
  font-size: 1.125rem;
  line-height: 1;
}

@media (max-width: 767px) {
  .contact-info-item {
    gap: 0.875rem;
  }

  .contact-info-icon {
    width: 2.75rem;
    height: 2.75rem;
    min-width: 2.75rem;
  }

  .contact-social-link {
    width: 3.25rem;
    height: 3.25rem;
  }
}

/* ============================================
   TRAINING COURSE CARD ICONS
   ============================================ */
.training-course-card__icon {
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background-color: rgba(212, 163, 115, 0.16);
  box-shadow: inset 0 0 0 1px rgba(212, 163, 115, 0.22);
}

.training-course-card__icon-glyph {
  color: var(--color-primary);
  font-size: 1.25rem;
  line-height: 1;
}

.training-course-card a {
  gap: 0.25rem;
}

/* ============================================
   TESTIMONIAL CARD ENHANCEMENT (UI Fix #8)
   ============================================ */
.testimonial-card {
  background-color: var(--color-white);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  /* Required for absolute positioning of Google badge */
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Google Review Badge */
.google-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 10;
  transition: transform 0.2s ease;
}

.google-badge:hover {
  transform: scale(1.1);
}

.google-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.testimonial-photo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-primary-light);
}

.testimonial-name {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--color-dark);
  margin-bottom: 0.25rem;
}

.testimonial-rating {
  display: flex;
  gap: 0.25rem;
  color: var(--color-warning);
  font-size: 1rem;
}

.testimonial-text {
  color: var(--color-gray-600);
  line-height: 1.6;
  font-size: 0.9375rem;
  font-style: italic;
}

.review-google-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  background-color: var(--color-white);
  border: 1px solid var(--color-gray-300);
  color: var(--color-gray-800);
  border-radius: 9999px;
  padding: 0.75rem 1.25rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.review-google-cta:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

.review-google-cta__icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  object-fit: contain;
  display: block;
}

/* Star icons */
.star-icon {
  color: var(--color-warning);
}

.star-icon.empty {
  color: var(--color-gray-300);
}

/* ============================================
   ADMIN DASHBOARD SPACING (UI Fix #9)
   ============================================ */
.admin-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .admin-dashboard-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .admin-dashboard-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.admin-card {
  background-color: var(--color-white);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.admin-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-3px);
}

/* ============================================
   LOADING STATES & SKELETON LOADERS (UX Fix #3)
   ============================================ */
.skeleton {
  background: linear-gradient(90deg,
      var(--color-gray-200) 25%,
      var(--color-gray-100) 50%,
      var(--color-gray-200) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: 0.5rem;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.skeleton-text {
  height: 1rem;
  margin-bottom: 0.5rem;
}

.skeleton-title {
  height: 1.5rem;
  width: 60%;
  margin-bottom: 1rem;
}

.skeleton-image {
  height: 200px;
  width: 100%;
}

.skeleton-card {
  height: 300px;
  width: 100%;
}

.loading-spinner {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  border: 3px solid var(--color-gray-200);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================
   BREADCRUMB NAVIGATION (UX Fix #8)
   ============================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0;
  font-size: 0.875rem;
  color: var(--color-gray-600);
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb-link {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-link:hover {
  color: var(--color-primary-hover);
  text-decoration: underline;
}

.breadcrumb-separator {
  color: var(--color-gray-400);
}

.breadcrumb-current {
  color: var(--color-dark);
  font-weight: 500;
}

/* ============================================
   ADMIN SIDEBAR NAVIGATION (UX Fix #4)
   ============================================ */
.admin-sidebar {
  position: sticky;
  top: 80px;
  height: calc(100vh - 80px);
  overflow-y: auto;
  background-color: var(--color-white);
  border-right: 1px solid var(--color-gray-200);
  padding: 2rem 1rem;
}

.admin-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--color-gray-600);
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  margin-bottom: 0.5rem;
}

.admin-sidebar-link:hover {
  background-color: var(--color-gray-100);
  color: var(--color-dark);
}

.admin-sidebar-link.active {
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  font-weight: 600;
}

.admin-sidebar-link i {
  font-size: 1.25rem;
  width: 1.5rem;
  text-align: center;
}

/* ============================================
   SEARCH BAR COMPONENT (UX Fix #5)
   ============================================ */
.search-bar {
  position: relative;
  width: 100%;
  max-width: 600px;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 3rem;
  border: 2px solid var(--color-gray-300);
  border-radius: 9999px;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.1);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-gray-400);
  pointer-events: none;
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: 0.5rem;
  margin-top: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-height: 400px;
  overflow-y: auto;
  z-index: 50;
}

.search-result-item {
  padding: 1rem;
  border-bottom: 1px solid var(--color-gray-100);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.search-result-item:hover {
  background-color: var(--color-gray-50);
}

.search-result-item:last-child {
  border-bottom: none;
}

/* ============================================
   ACCESSIBILITY IMPROVEMENTS (UX Fix #6)
   ============================================ */
.faq-item button[aria-expanded="true"] {
  background-color: var(--color-gray-50);
}

.faq-item button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Keyboard focus styles */
*:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Skip to content link for accessibility */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 0.5rem 1rem;
  text-decoration: none;
  z-index: 100;
}

.skip-to-content:focus {
  top: 0;
}

/* ============================================
   ADMIN IMAGE UPLOAD PREVIEW (Admin Fix #9)
   ============================================ */
.image-upload-container {
  position: relative;
  border: 2px dashed var(--color-gray-300);
  border-radius: 0.5rem;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  background-color: var(--color-gray-50);
}

.image-upload-container:hover {
  border-color: var(--color-primary);
  background-color: var(--color-white);
}

.image-upload-container.dragover {
  border-color: var(--color-primary);
  background-color: var(--color-primary-light);
}

.image-preview-wrapper {
  position: relative;
  margin-top: 1rem;
}

.image-preview {
  max-width: 100%;
  max-height: 300px;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.image-preview-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
}

.upload-progress {
  width: 100%;
  height: 4px;
  background-color: var(--color-gray-200);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 1rem;
}

.upload-progress-bar {
  height: 100%;
  background-color: var(--color-primary);
  transition: width 0.3s ease;
  width: 0%;
}

.file-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding: 0.75rem;
  background-color: var(--color-gray-100);
  border-radius: 0.5rem;
  font-size: 0.875rem;
}

.file-error {
  color: var(--color-error);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

/* ============================================
   CONFIRMATION MODAL (Admin Fix #12)
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background-color: var(--color-white);
  border-radius: 0.75rem;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

@media (max-width: 480px) {
  .modal-content {
    padding: 1.25rem;
    width: 95%;
    border-radius: 0.5rem;
  }
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.modal-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.modal-icon.warning {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--color-error);
}

.modal-icon.success {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--color-success);
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-dark);
}

.modal-body {
  color: var(--color-gray-600);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.modal-button {
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.modal-button-cancel {
  background-color: var(--color-gray-200);
  color: var(--color-dark);
}

.modal-button-cancel:hover {
  background-color: var(--color-gray-300);
}

.modal-button-confirm {
  background-color: var(--color-error);
  color: var(--color-white);
}

.modal-button-confirm:hover {
  background-color: #dc2626;
}

/* ============================================
   ERROR MESSAGES (Admin Fix #10)
   ============================================ */
.error-container {
  background-color: rgba(239, 68, 68, 0.1);
  border-left: 4px solid var(--color-error);
  padding: 1rem;
  border-radius: 0.5rem;
  margin: 1rem 0;
}

.error-title {
  font-weight: 700;
  color: var(--color-error);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.error-message {
  color: var(--color-gray-700);
  font-size: 0.875rem;
}

.success-container {
  background-color: rgba(16, 185, 129, 0.1);
  border-left: 4px solid var(--color-success);
  padding: 1rem;
  border-radius: 0.5rem;
  margin: 1rem 0;
}

.success-title {
  font-weight: 700;
  color: var(--color-success);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ============================================
   PREVIEW MODAL (Admin Fix #11)
   ============================================ */
.preview-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  overflow-y: auto;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.preview-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.preview-content {
  max-width: 900px;
  margin: 0 auto;
  background-color: var(--color-white);
  border-radius: 0.75rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--color-gray-200);
}

.preview-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-dark);
}

.preview-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-gray-600);
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.2s ease;
}

.preview-close:hover {
  color: var(--color-dark);
}

.preview-body {
  padding: 2rem;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}

/* ============================================
   BATCH OPERATIONS (Admin Fix #15)
   ============================================ */
.batch-actions-bar {
  position: sticky;
  top: 80px;
  background-color: var(--color-primary-light);
  border: 1px solid var(--color-primary);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 40;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.batch-actions-bar.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.batch-selection-info {
  font-weight: 600;
  color: var(--color-dark);
}

.batch-actions-buttons {
  display: flex;
  gap: 0.5rem;
}

.checkbox-cell {
  width: 40px;
  text-align: center;
}

.batch-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--color-primary);
}

/* ============================================
   VERSION HISTORY (Admin Fix #13)
   ============================================ */
.version-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: var(--color-gray-100);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-gray-600);
}

.version-badge {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.backup-list {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid var(--color-gray-200);
  border-radius: 0.5rem;
  padding: 0.5rem;
}

.backup-item {
  padding: 0.75rem;
  border-bottom: 1px solid var(--color-gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.2s ease;
}

.backup-item:hover {
  background-color: var(--color-gray-50);
}

.backup-item:last-child {
  border-bottom: none;
}

/* ============================================
   MOBILE ADMIN OPTIMIZATIONS (Admin Fix #14)
   ============================================ */
@media (max-width: 768px) {
  .admin-card {
    padding: 1rem;
  }

  .admin-card h3 {
    font-size: 1rem;
  }

  .admin-card p {
    font-size: 0.75rem;
  }

  .modal-content {
    padding: 1.5rem;
  }

  .modal-actions {
    flex-direction: column;
  }

  .modal-button {
    width: 100%;
  }

  .batch-actions-bar {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .batch-actions-buttons {
    width: 100%;
    flex-direction: column;
  }

  .preview-modal {
    padding: 1rem;
  }

  .preview-body {
    padding: 1rem;
  }

  /* Make admin tables scrollable */
  .admin-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Stack form fields on mobile */
  .admin-form-row {
    flex-direction: column;
  }

  .admin-form-row>* {
    width: 100% !important;
  }
}

 

/* ============================================
   ENHANCED RELATED SERVICES SECTION
   ============================================ */
.shadow-3xl {
  box-shadow: 0 35px 60px -15px rgba(0, 0, 0, 0.3);
}

/* Better text gradient support */
.bg-clip-text {
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Smooth backdrop blur support */
.backdrop-blur-sm {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Enhanced line clamp for better text truncation */
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Pulse animation for badges */
@keyframes pulse-slow {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.animate-pulse-slow {
  animation: pulse-slow 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Enhanced hover states for related services cards */
.service-card:hover .service-card-image {
  transform: scale(1.1);
}

/* 1:1 Aspect Ratio for Service Cards */
.aspect-square {
  aspect-ratio: 1 / 1;
}

/* Fallback for older browsers */
@supports not (aspect-ratio: 1 / 1) {
  .aspect-square {
    position: relative;
    padding-bottom: 100%;
  }

  .aspect-square img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
}
