/* assets/css/custom.css
   Marion Construction — Maltiba-inspired design system
   Colors: Black, Yellow (#f59e0b), Safety Orange (#ea580c), White
*/

/* ─── FONTS ───────────────────────────────────────────────────── */
body, button, input, select, textarea {
    font-family: 'Montserrat', sans-serif;
}

/* ─── GLOBAL HEADING WEIGHT ───────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700 !important;
    letter-spacing: -0.01em;
}

/* ─── OVERFLOW / VIEWPORT LOCK ──────────────────────────────── */
/* Prevent horizontal overflow on individual sections to avoid    */
/* mobile panning while keeping html/body scroll native & fluid  */
main, section, header, footer {
    overflow-x: hidden;
    max-width: 100%;
}

/* ─── BODY ────────────────────────────────────────────────────── */
body {
    background-color: #f9fafb;
    color: #374151;
    width: 100%;
}

/* Force navbar sticky behavior regardless of body styles */
#navbar {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 999 !important;
}

/* ─── RESPONSIVE CONTAINER PADDING ──────────────────────────── */
/* Ensures consistent, professional spacing at every screen size  */
.container {
    width: 100% !important;
    padding-left:  1.25rem !important;  /* 20px  mobile  */
    padding-right: 1.25rem !important;
}
@media (min-width: 640px) {
    .container {
        padding-left:  2rem !important;   /* 32px  sm      */
        padding-right: 2rem !important;
    }
}
@media (min-width: 1024px) {
    .container {
        padding-left:  3rem !important;   /* 48px  lg      */
        padding-right: 3rem !important;
    }
}
@media (min-width: 1280px) {
    .container {
        padding-left:  4rem !important;   /* 64px  xl      */
        padding-right: 4rem !important;
    }
}


/* ─── HERO SECTION ───────────────────────────────────────────── */
#hero-slider-section {
    background-color: #1c1c1c;
}

/* ─── NAVBAR ANIMATIONS ──────────────────────────────────────── */
.nav-slide-down {
    animation: navSlideDown 0.6s ease-out forwards;
}
@keyframes navSlideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}

.nav-link-hover {
    position: relative;
    transition: color 0.2s ease;
}
.nav-link-hover::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #f59e0b;
    transition: width 0.3s ease;
}
.nav-link-hover:hover::after {
    width: 100%;
}

.logo-animate {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.logo-animate:hover {
    transform: scale(1.04);
}

/* ─── MOBILE ACCORDION ───────────────────────────────────────── */
.accordion-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease-in-out;
}
.accordion-content.accordion-open {
    max-height: 800px !important;
    opacity: 1;
}

/* ─── SCROLL ANIMATIONS ──────────────────────────────────────── */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-pop {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.scale-pop.visible {
    opacity: 1;
    transform: scale(1);
}

/* ─── SECTION DIVIDER / UNDERLINE ────────────────────────────── */
.section-divider {
    display: block;
    width: 60px;
    height: 3px;
    background-color: #f59e0b;
    border-radius: 999px;
    margin: 12px auto 0;
}
.section-divider-left {
    display: block;
    width: 60px;
    height: 3px;
    background-color: #f59e0b;
    border-radius: 999px;
    margin: 12px 0 0;
}

/* ─── CARD HOVER LIFT ────────────────────────────────────────── */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

/* ─── YELLOW GLOW PULSE (CTA buttons) ───────────────────────── */
@keyframes yellowGlow {
    0%   { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5); }
    70%  { box-shadow: 0 0 0 14px rgba(245, 158, 11, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}
.pulse-cta {
    animation: yellowGlow 2.5s infinite;
}

/* ─── FLOATING CONTACT FAB BOUNCE ────────────────────────────── */
@keyframes subtleBounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}
.animate-subtle-bounce {
    animation: subtleBounce 3.5s ease-in-out infinite;
}
.animate-subtle-bounce:hover {
    animation-play-state: paused;
}

/* ─── MARQUEE ─────────────────────────────────────────────────── */
.marquee-container {
    overflow: hidden;
    position: relative;
    width: 100%;
}
.marquee-content {
    display: flex;
    width: fit-content;
    animation: marquee 30s linear infinite;
}
.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}
@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ─── TAB SWITCHING ──────────────────────────────────────────── */
.tab-pane {
    display: none;
}
.tab-pane.active {
    display: block;
    animation: tabFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes tabFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── TIMELINE ───────────────────────────────────────────────── */
.timeline-line::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #ea580c;
    transform: translateX(-50%);
}
@media (max-width: 768px) {
    .timeline-line::before { left: 20px; }
}

/* ─── DIAGONAL STRIPE TEXTURE ────────────────────────────────── */
.diagonal-stripes {
    background-image: repeating-linear-gradient(
        45deg,
        rgba(245, 158, 11, 0.04) 0px,
        rgba(245, 158, 11, 0.04) 10px,
        transparent 10px,
        transparent 20px
    );
}
.dotted-grid {
    background-image: radial-gradient(rgba(0,0,0,0.06) 1.5px, transparent 1.5px);
    background-size: 22px 22px;
}

/* ─── IMAGE REVEAL SWEEP ─────────────────────────────────────── */
.image-reveal-container {
    position: relative;
    overflow: hidden;
}
.image-reveal-overlay {
    position: absolute;
    inset: 0;
    background-color: #f59e0b;
    transform: translateX(-100%);
    z-index: 10;
}
.image-reveal-container.visible .image-reveal-overlay {
    animation: sweepReveal 1.2s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}
.image-reveal-container img {
    opacity: 0;
    transition: opacity 0.1s ease 0.6s;
}
.image-reveal-container.visible img {
    opacity: 1;
}
@keyframes sweepReveal {
    0%   { transform: translateX(-100%); }
    50%  { transform: translateX(0); }
    100% { transform: translateX(101%); }
}

/* ─── SCROLLBAR HIDE (for tab rows) ─────────────────────────── */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ─── STAT COUNTER ───────────────────────────────────────────── */
.stat-number { transition: all 0.1s; }

/* ─── GLOBAL BUTTON PILL OVERRIDE ─────────────────────────────── */
/* Makes all standard buttons, submit inputs, and link buttons perfectly rounded */
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
.btn,
.button,
a[class*="py-"][class*="px-"][class*="bg-"],
a[class*="py-"][class*="px-"][class*="border"],
a[class*="py-2"][class*="px-"],
a[class*="py-2.5"][class*="px-"],
a[class*="py-3"][class*="px-"],
a[class*="py-4"][class*="px-"],
a[class*="py-5"][class*="px-"],
a.tab-link {
    border-radius: 9999px !important;
}

/* ─── PUBLIC MOBILE MENU PREMIUM ENTRANCE ANIMATIONS ───────── */
#mobileMenu {
    /* Ease Out Expo transition curves for maximum premium feel */
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#mobileMenuBackdrop {
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#mobileMenu .menu-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

#mobileMenu.active .menu-item {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu:not(.active) .menu-item {
    opacity: 0;
    transform: translateY(20px);
    transition: none !important; /* Reset instantly so next open is ready */
}

