html { scroll-behavior: smooth; }
body { font-family: 'Urbanist', sans-serif; }
::selection { background: #DC0E15; color: white; }

/* Reveals */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* Hero parallax */
.parallax-hero {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}
@media (max-width: 768px) { .parallax-hero { background-attachment: scroll; } }

/* Nav */
.nav-solid {
    background: rgba(248, 250, 252, 0.96) !important;
    backdrop-filter: blur(14px);
    box-shadow: 0 1px 15px rgba(15, 15, 15, 0.08);
}

/* Nav menu links: white for contrast over the transparent hero, dark once the bar goes solid */
.nav-menu-link { transition: color 0.3s ease; }
#navbar:not(.nav-solid) .nav-menu-link { color: #FFFFFF !important; }
#navbar:not(.nav-solid) .nav-menu-link:hover { color: #EE3239 !important; }

/* Mobile burger: frosted panel + light icon over the transparent hero (matches the hero logo panel);
   plain black on the solid bar where it's already legible */
.nav-burger { transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease; }
#navbar:not(.nav-solid) .nav-burger {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.5rem;
    color: #FFFFFF;
}

/* Nav dropdown */
.nav-dropdown {
    position: relative;
}
.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: white;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(15, 15, 15, 0.15);
    padding: 8px;
    min-width: 260px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.nav-dropdown-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #424A58;
    transition: background 0.2s ease, color 0.2s ease;
}
.nav-dropdown-link:hover {
    background: #FDE7E8;
    color: #DC0E15;
}

/* Live pulse */
.pulse-dot {
    width: 8px; height: 8px;
    background: #4ADE80;
    border-radius: 50%;
    position: relative;
}
.pulse-dot::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid #4ADE80;
    animation: pingPulse 1.5s ease-out infinite;
}
@keyframes pingPulse {
    0% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(2); }
}

/* Accordion */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
}
.accordion-item.open .accordion-content {
    max-height: 600px;
}
.accordion-item.open .accordion-icon {
    transform: rotate(45deg);
}
.accordion-icon {
    transition: transform 0.3s ease;
}

/* Pin cards */
.pin-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pin-card:hover {
    transform: translateY(-4px) rotate(0deg) !important;
    box-shadow: 0 12px 30px rgba(15, 15, 15, 0.12);
}

/* Buttons */
.btn-navy {
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}
.btn-navy:hover {
    background: #000000;
    box-shadow: 0 6px 20px rgba(15, 15, 15, 0.35);
    transform: translateY(-1px);
}
.btn-amber {
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}
.btn-amber:hover {
    background: #B40D11;
    box-shadow: 0 6px 20px rgba(220, 14, 21, 0.35);
    transform: translateY(-1px);
}

/* Mobile menu */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-menu.open { transform: translateX(0); }

.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.mobile-submenu.open { max-height: 600px; }

/* Paper texture */
.paper-texture {
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.8' numOctaves='4' type='fractalNoise'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23n)' opacity='0.02'/%3E%3C/svg%3E");
}

/* Service card image */
.service-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* Logo image in nav */
.nav-logo-img {
    height: 44px;
    width: auto;
    display: block;
    opacity: 1;
    transition: opacity 0.4s ease;
}
/* Hide the nav logo while the bar is transparent — the hero shows its own logo (no double-up) */
#navbar:not(.nav-solid) .nav-logo-img { opacity: 0; }
.hero-logo-img {
    height: 144px;
    width: auto;
    display: block;
}
@media (max-width: 640px) {
    .hero-logo-img { height: 96px; }
}
.footer-logo-img {
    height: 56px;
    width: auto;
    display: block;
}
