html { scroll-behavior: smooth; }
::selection { background: #1E90B8; color: #FFFFFF; }

/* Nav always uses the navy logo — hero is light, so navy contrasts in both states */
.nav-logo-light { display: none; }
.nav-logo-dark { display: block; }

/* Services dropdown in nav */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
}
.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    min-width: 280px;
    background: #FFFFFF;
    border: 1px solid rgba(10, 34, 54, 0.08);
    border-radius: 0.5rem;
    padding: 0.5rem;
    box-shadow: 0 14px 36px rgba(10, 34, 54, 0.16);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease;
    z-index: 60;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
    display: block;
    padding: 0.7rem 0.9rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: #0A2236;
    border-radius: 0.375rem;
    transition: background 0.18s ease, color 0.18s ease;
    text-decoration: none;
    white-space: nowrap;
    font-family: 'Outfit', Helvetica, sans-serif;
}
.nav-dropdown-menu a:hover {
    background: #E8ECF2;
    color: #1E90B8;
}
.dropdown-chevron {
    transition: transform 0.22s ease;
}
.nav-dropdown:hover .dropdown-chevron,
.nav-dropdown:focus-within .dropdown-chevron {
    transform: rotate(180deg);
}

/* Hero logo — navy logo sits directly on the lightened hero image */
.hero-logo-panel {
    display: inline-flex;
    align-items: center;
}
.hero-logo-img {
    height: clamp(17.5rem, 35vw, 30rem);
    width: auto;
    display: block;
    filter: drop-shadow(0 10px 28px rgba(10, 34, 54, 0.28));
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }
.reveal-delay-4 { transition-delay: 0.48s; }

.hero-line { overflow: hidden; }
.hero-line span {
    display: inline-block;
    transform: translateY(110%);
    animation: lineReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-line:nth-child(2) span { animation-delay: 0.15s; }
.hero-line:nth-child(3) span { animation-delay: 0.3s; }
@keyframes lineReveal {
    to { transform: translateY(0); }
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.marquee-track {
    animation: marquee 30s linear infinite;
}
.marquee-track:hover {
    animation-play-state: paused;
}

.nav-scrolled {
    background: rgba(247, 248, 250, 0.92) !important;
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(10, 34, 54, 0.08);
}

.service-card {
    transition: background 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-card:hover {
    background: #0A2236;
    color: #F7F8FA;
    transform: translateY(-4px);
}
.service-card:hover .service-num { color: #1E90B8; }
.service-card:hover .service-icon { color: #1E90B8; }
.service-card:hover h3,
.service-card:hover p { color: #F7F8FA; }

.service-card .service-arrow {
    transition: transform 0.4s ease, opacity 0.4s ease;
    opacity: 0;
    transform: translateX(-8px);
}
.service-card:hover .service-arrow {
    opacity: 1;
    transform: translateX(0);
}

.service-img-wrap {
    overflow: hidden;
    border-radius: 0.5rem;
    height: 200px;
    margin-bottom: 1.25rem;
}
.service-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-card:hover .service-img-wrap img {
    transform: scale(1.06);
}

.mobile-menu {
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-menu.open {
    clip-path: inset(0 0 0 0);
}

.link-hover {
    position: relative;
}
.link-hover::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.link-hover:hover::after {
    width: 100%;
}

.nav-link-active {
    color: #0A2236 !important;
    opacity: 1 !important;
}
.nav-link-active::after {
    width: 100%;
    background: #1E90B8;
    height: 2px;
}

/* Testimonials auto-scroll marquee */
.testimonial-track {
    display: flex;
    gap: 1.5rem;
    animation: testimonial-scroll 60s linear infinite;
    width: max-content;
}
.testimonial-track:hover {
    animation-play-state: paused;
}
@keyframes testimonial-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.testimonial-card {
    flex-shrink: 0;
    width: 360px;
    background: #F7F8FA;
    border: 1px solid rgba(10, 34, 54, 0.08);
    border-radius: 0.5rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    height: 280px;
}
.testimonial-card .stars {
    color: #1E90B8;
    margin-bottom: 1rem;
    font-size: 1rem;
    letter-spacing: 2px;
}
.testimonial-card .body {
    color: #4A5768;
    font-weight: 300;
    line-height: 1.6;
    font-size: 0.95rem;
    flex-grow: 1;
    overflow: hidden;
}
.testimonial-card .author {
    margin-top: 1.25rem;
    font-family: 'Syne', Helvetica, sans-serif;
    font-weight: 700;
    color: #0A2236;
    font-size: 0.95rem;
}

/* Fade edges for the testimonial marquee */
.testimonial-marquee-wrap {
    position: relative;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

/* Form fields */
.form-input {
    width: 100%;
    padding: 0.9rem 1rem;
    background: #F7F8FA;
    border: 1px solid rgba(10, 34, 54, 0.12);
    border-radius: 0.375rem;
    font-family: 'Outfit', Helvetica, sans-serif;
    font-size: 0.95rem;
    color: #0A2236;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-input:focus {
    outline: none;
    border-color: #1E90B8;
    box-shadow: 0 0 0 3px rgba(30, 144, 184, 0.18);
}
.form-input::placeholder {
    color: #8A97A8;
}
textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

.niceic-badge {
    background: rgba(255, 255, 255, 0.96);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}
.niceic-badge img {
    height: 48px;
    width: auto;
    display: block;
}
.niceic-badge .niceic-label {
    font-family: 'Syne', Helvetica, sans-serif;
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #0A2236;
    line-height: 1.2;
    max-width: 120px;
}

/* Inline NICEIC badge — sits next to the hero CTA button */
.hero-niceic-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
}
.hero-niceic-inline img {
    height: 56px;
    width: auto;
    display: block;
    filter: drop-shadow(0 2px 6px rgba(10, 34, 54, 0.15));
}
.hero-niceic-inline .hero-niceic-label {
    font-family: 'Syne', Helvetica, sans-serif;
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: #0A2236;
    line-height: 1.25;
}

/* Service page sections */
.content-prose p {
    color: #4A5768;
    font-weight: 300;
    line-height: 1.75;
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}
.content-prose p:last-child { margin-bottom: 0; }
.content-prose h3 {
    font-family: 'Syne', Helvetica, sans-serif;
    font-weight: 700;
    color: #0A2236;
    font-size: 1.4rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}
.content-prose ul {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 2rem;
}
.content-prose ul li {
    position: relative;
    padding-left: 1.75rem;
    color: #4A5768;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}
.content-prose ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 0.75rem;
    height: 2px;
    background: #1E90B8;
}

/* Section heading — short teal accent bar above */
.content-prose .section-heading,
.section-heading {
    position: relative;
    padding-top: 0.875rem;
    margin-top: 0;
    margin-bottom: 0;
    font-family: 'Syne', Helvetica, sans-serif;
    font-weight: 700;
    color: #0A2236;
    font-size: 1.35rem;
    line-height: 1.25;
}
.section-heading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2.25rem;
    height: 3px;
    background: #1E90B8;
    border-radius: 1px;
}

/* Subtle list card used as aside on sub-pages */
.list-card {
    background: #FFFFFF;
    border: 1px solid rgba(10, 34, 54, 0.1);
    border-radius: 0.625rem;
    padding: 1.75rem;
}
@media (min-width: 768px) {
    .list-card { padding: 2rem; }
}
.list-card .section-heading {
    margin-bottom: 1.25rem;
    padding-top: 0;
}
.list-card .section-heading::before {
    display: none;
}
.card-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.card-list li {
    position: relative;
    padding-left: 1.75rem;
    color: #4A5768;
    font-weight: 300;
    line-height: 1.55;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}
.card-list li:last-child { margin-bottom: 0; }
.card-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 0.75rem;
    height: 2px;
    background: #1E90B8;
}
.card-list li strong {
    color: #0A2236;
    font-weight: 600;
}

/* Sticky "Get a quote" CTA (sub-page lower column) */
.sticky-cta {
    position: sticky;
    top: 7rem;
}
