html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter (Deprecated)', 'Inter', sans-serif;
    color: #0f172a;
    background: #ffffff;
}

::selection {
    background: rgba(34, 179, 78, 0.2);
    color: #0f172a;
}

.brand-font {
    font-family: 'Poppins', sans-serif;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav-link,
.menu-icon {
    transition: color 0.3s ease;
}

header.scrolled .nav-link {
    color: #334155;
}

header.scrolled .menu-icon {
    color: #1e293b;
}

.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.25);
}

.btn-arrow {
    transition: transform 0.2s ease;
}

.group:hover .btn-arrow {
    transform: translateX(3px);
}

/* Custom Logo Sizing Overrides */
#site-header a img {
    object-fit: cover;
    width: 220px;
    display: block;
    margin-left: -20px;
}

footer a img {
    object-fit: contain;
    width: 260px !important;
    max-width: 100% !important;
    margin-left: -40px;
    overflow: hidden;
}

#home h1 img {
    object-fit: contain;
    display: block;
    width: 24rem;
    max-width: 100%;
}


@media (max-width: 1080px) {
    #home h1 img {
        height: 6.5rem !important;
        max-height: 6.5rem !important;
        object-fit: contain;
    }
}

@media (min-width: 768px) {


    footer a img {
        height: 7.5rem !important;
        max-height: 7.5rem !important;
    }

    #home h1 img {
        height: 4rem !important;
        max-height: 8rem !important;
    }
}


/* Hero video: sized to its real 16:9 source aspect ratio so object-fit
   never has to crop it — max-height is only a safety cap for unusually
   short browser windows. */
@media (min-width: 1024px) {
    .hero-video {
        aspect-ratio: 16 / 9;
        max-height: 100svh;
        object-fit: cover;
        object-position: center;
    }
}

/* Custom Footer Dark Green Gradient Matching Reference */
.footer-gradient {
    background: radial-gradient(ellipse at top right, #1b6330 0%, #0c381a 35%, #041809 70%, #020c04 100%);
    color: #ffffff;
}

footer a img {
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

/* Convert black PNG icons to pure white */
.brightness-0.invert,
.icon-white {
    filter: brightness(0) invert(1) !important;
}

/* Quote Modal Animations */
#quote-modal {
    animation: none;
}

#quote-modal.modal-open {
    animation: modal-fade-in 0.25s ease forwards;
}

#quote-modal.modal-close {
    animation: modal-fade-out 0.2s ease forwards;
}

@keyframes modal-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modal-fade-out {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* Mobile: slide up from bottom */
.quote-modal-card {
    animation: modal-slide-up 0.32s cubic-bezier(0.32, 0.72, 0, 1) forwards;
}

#quote-modal.modal-close .quote-modal-card {
    animation: modal-slide-down 0.22s ease forwards;
}

@keyframes modal-slide-up {
    from {
        transform: translateY(100%);
        opacity: 0.6;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes modal-slide-down {
    from {
        transform: translateY(0);
        opacity: 1;
    }

    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

/* Desktop (sm+): scale spring instead of slide */
@media (min-width: 640px) {
    .quote-modal-card {
        animation: modal-scale-in 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    }

    #quote-modal.modal-close .quote-modal-card {
        animation: modal-scale-out 0.2s ease forwards;
    }
}

@keyframes modal-scale-in {
    from {
        transform: translateY(20px) scale(0.97);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes modal-scale-out {
    from {
        transform: translateY(0) scale(1);
        opacity: 1;
    }

    to {
        transform: translateY(20px) scale(0.97);
        opacity: 0;
    }
}

/* ----------------------------------
   404 Page Styles
----------------------------------- */
.creative-template {
    min-height: 100vh;
    padding: 40px 12px;
    position: relative;
    z-index: 5;
    background: url(https://imgpanda.com/upload/ib/0pOfzusR8z.png) no-repeat center;
    background-size: cover;
    display: flex;
    align-items: center;
    width: 100%;
}

.not-found-content {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}

.not-found-content h6 {
    font-family: "Roboto", sans-serif;
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #d46b08;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 1rem;
}

.not-found-content h1 {
    font-size: 140px;
    line-height: 1em;
    padding: 0px 0 20px;
    color: #1d8537;
    font-weight: normal;
    font-family: "Libre Baskerville", serif;
    margin: 0;
}

.not-found-content p {
    font-size: 22px;
    line-height: 1.66em;
    padding-bottom: 40px;
    font-family: "Roboto", sans-serif;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
    color: gray;
}

.home-button {
    display: inline-block;
    padding: 16px 40px;
    background: #1d8537;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-family: "Roboto", sans-serif;
    font-size: 18px;
    font-weight: 500;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 10px 20px rgba(29, 133, 55, 0.2);
}

.home-button:hover {
    background: #156c2a;
    transform: translateY(-2px);
}