 /* static/css/base.css */

/* Dropdown helper (kept) */


/* ===============================
   GLOBAL LAYOUT VARIABLES
   =============================== */
:root { --nav-height: 68px; }
@media (min-width: 1024px) {
  :root { --nav-height: 88px; }
}


#main-content {
  padding-top: var(--nav-height);
}

/* base.css */
.main-container {
    max-width: 90rem;
    margin: 0 auto;
    padding: 2rem 1rem;
}
@media (min-width: 1024px) {
    .main-container {
        padding: 4rem 2rem;
    }
}




html, body {
  margin: 0;
  padding: 0;
  overflow-x: clip;
}


/* Smoothly animate the logo height and navbar padding */
#main-navbar {
  transition:
    background-color 0.4s cubic-bezier(0.4, 0, 0.2, 0.90),
    padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  will-change: background-color, padding;
  transform: translateZ(0);
}

#main-navbar img {
  transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: height;
}


.dropdown-item {
  display: block;
  padding: 8px 12px;
  color: #374151;
  font-weight: 500;
  border-radius: 6px;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.dropdown-item:hover { background: #f3f4f6; color: #d97706; }

.dropdown-on-top { z-index: 1100 !important; overflow: visible !important; pointer-events: auto; will-change: transform, opacity; }

body { font-family: 'Inter', sans-serif; background-color: #ffffff; -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; }

.nav-link {
  position: relative;
  padding: 8px 12px;
  font-weight: 500;
  color: #4b5563;
  transition: color 0.25s ease;
  will-change: color;
}
.nav-link:hover { color: #1f2937; }
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background-color: #f59e0b;
  transition: width 0.25s ease;
  will-change: width;
}
.nav-link.active::after { width: 100%; }
.group:hover > .nav-link { color: #f59e0b; }

.photo-btn-basic-primary { background-color: #375369; color: #FFFFFF; }
.photo-btn-basic-secondary { background-color: #F98F1D; color: #FFFFFF; }

/* Mobile Menu Overlay */
/* Mobile Menu Overlay - Premium Glass Effect */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Slightly transparent white */
    background-color: rgba(255, 255, 255, 0.85); 
    /* The blur effect */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1300; /* Just below the navbar links */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

@media (min-width: 1024px) { 
    .mobile-menu-overlay { display: none !important; } 
}

/* Toast Message */
.toast-message { text-align: center; backdrop-filter: blur(4px); transform-origin: center; }

[x-cloak] { display: none !important; }



/* --- FIX MEGA MENU LAYOUT (FINAL VERSION) --- */
/* --------------------------------------------------
   ULTRA PREMIUM APPLE MENU STYLING
-------------------------------------------------- */

#services-desktop-dropdown {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}


/* LEFT column */
.ultra-parent-col {
    width: 220px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Parent buttons */
.ultra-parent-btn {
    width: 100%;
    text-align: left;
    padding: 10px 14px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 15px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Parent icon */
.ultra-icon {
    font-size: 20px;
    opacity: 0.9;
}

/* Active parent */
.ultra-parent-active {
    background: #FFF7E8;
    color: #C47A00;
    box-shadow: 0 0 0 1px #F4D7A1 inset;
}

/* Inactive parent */
.ultra-parent-idle {
    color: #4B5563;
}
.ultra-parent-idle:hover {
    background: #F9FAFB;
}

/* RIGHT column */
.ultra-sub-wrapper {
    flex: 1;
    min-width: 420px;
}

/* Sub service grid */
.ultra-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 6px 16px;
    padding-right: 6px;
}


/* Sub service item */
.ultra-sub-item {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14.5px;
    color: #374151;
    line-height: 1.35;
    display: block;

    /* 🔑 FIX */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    transition: background-color 0.18s ease, color 0.18s ease;
}

.ultra-sub-item:hover {
    white-space: normal;
    overflow: visible;
    background: #F9FAFB;
}


#mobile-services-dropdown a {
    max-width: 100%;
}


@media (min-width: 1024px) {
  .ultra-sub-item:hover {
    white-space: normal;
    overflow: visible;
    background: #F9FAFB;
    z-index: 5;
  }
}


/* ================================
   🔥 Global Fade-Up Animation
   ================================ */

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================================
   ♿ Reduced Motion Support
   ================================ */

@media (prefers-reduced-motion: reduce) {
    .fade-up {
        opacity: 1;
        transform: none;
        transition: none;
        will-change: auto;
    }
}

/* ================================
   ♿ Flash Messages
================================ */

.flash-message {
  display: flex;
  align-items: center;
  gap: 0.5rem;

  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-align: center;

  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.25s ease, transform 0.25s ease;

  cursor: pointer;
  pointer-events: none;
  max-width: 42rem;
  margin-inline: auto;
}

.flash-message.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.flash-message.hide {
  opacity: 0;
  transform: translateY(-10px);
}

/* Icon */
.flash-message .icon {
  font-size: 1.1rem;
  line-height: 1;
}

/* Colors */
.success { background: #dcfce7; color: #166534; }
.error   { background: #fee2e2; color: #991b1b; }
.warning { background: #fef3c7; color: #92400e; }
.info    { background: #e0f2fe; color: #075985; }




/* Footer helper styles */
.footer-link {
  @apply hover:text-amber-400 transition-colors duration-200 font-medium;
}

.footer-label {
  @apply block text-sm font-medium text-gray-300 mb-1;
}
