 /* 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);
    width: min(920px, calc(100vw - 40px));
    overflow: hidden;
    box-sizing: border-box;
}


/* 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.92;
}

/* Active parent */
.ultra-parent-active {
    background: #FFF7E8;
    color: #C47A00;
    box-shadow: 0 0 0 1px #F4D7A1 inset;
}

/* Inactive parent */
.ultra-parent-idle {
    color: #4B5563;
    transition: background 0.2s ease, color 0.2s ease;
}

.ultra-parent-idle:hover {
    background: #F8FAFC;
    color: #111827;
}

/* RIGHT column */
.ultra-sub-wrapper {
    flex: 1;

    min-width: 0;
    width: 100%;
}
/* Sub service grid */

.ultra-grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(220px, 1fr));

    gap: 6px 28px;

    width: 100%;
}

/* 🔥 IMPORTANT FIX */
.ultra-grid > * {
    min-width: 0;
}

/* Sub service item */
.ultra-sub-item {
    display: inline-flex;

    align-items: center;

    width: fit-content;
    max-width: 100%;
    min-width: 0;

    padding: 8px 12px;

    border-radius: 10px;

    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.45;

    color: #374151;

    white-space: normal;
    word-break: break-word;

    transition:
        background-color 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease;

    box-sizing: border-box;
}

/* Better hover */
.ultra-sub-item:hover {
    background: #EEF4FF;
    color: #1D4ED8;

    /* subtle lift */
    transform: translateY(-1px);
}

/* Desktop enhancement */
@media (min-width: 1024px) {

    .ultra-sub-item:hover {
        z-index: 2;
    }

}

.ultra-sub-item {
    -webkit-tap-highlight-color: transparent;
}

@media (max-width: 768px) {

    .ultra-sub-item:active {
        background: #EEF4FF;
        color: #1D4ED8;
        transform: scale(0.98);
    }

}


@media (max-width: 768px) {

    .ultra-grid {
        grid-template-columns: 1fr;
        row-gap: 3px;
        column-gap: 0;
    }

    .ultra-sub-item {
        padding: 7px 10px;
        font-size: 14px;
        line-height: 1.4;
    }

}


#mobile-services-dropdown a {
    max-width: 100%;
}



/* ================================
   🔥 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;
}
