:root {
    --dd-navy: #102b3f;
    --dd-green: #28764b;
    --dd-green-light: #eaf4ed;
    --dd-text: #334554;
    --dd-muted: #6b7b87;
    --dd-border: #e5ebee;
    --dd-white: #ffffff;
}

* {
    box-sizing: border-box;
}

.site-header {
    width: 100%;
    background: var(--dd-white);
    border-bottom: 1px solid var(--dd-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    width: min(1200px, calc(100% - 48px));
    min-height: 82px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

/* Brand */

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;

    color: var(--dd-navy);
    text-decoration: none;
    flex-shrink: 0;
}

.brand-name {
    font-size: 25px;
    font-weight: 750;
    letter-spacing: -1px;
}

.brand-name span {
    color: var(--dd-green);
}

/* Simple CSS brand mark */

.brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;

    background: var(--dd-green-light);
    transform: rotate(-5deg);
}

.brand-icon span {
    width: 5px;
    border-radius: 5px;
    background: var(--dd-green);
    transform: rotate(5deg);
}

.brand-icon span:nth-child(1) {
    height: 12px;
}

.brand-icon span:nth-child(2) {
    height: 21px;
}

.brand-icon span:nth-child(3) {
    height: 16px;
}

/* Navigation */

.main-navigation {
    display: flex;
    align-items: center;
    gap: 34px;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 30px;

    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-link {
    position: relative;
    display: inline-block;
    padding: 10px 0;

    color: var(--dd-text);
    text-decoration: none;

    font-size: 14px;
    font-weight: 550;

    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--dd-green);
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 3px;

    width: 0;
    height: 2px;
    border-radius: 2px;

    background: var(--dd-green);
    transition: width 0.2s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* CTA */

.header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    min-height: 44px;
    padding: 0 19px;

    border-radius: 7px;
    background: var(--dd-green);
    color: var(--dd-white);

    text-decoration: none;
    font-size: 13px;
    font-weight: 600;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.header-cta:hover {
    background: #1e603b;
    transform: translateY(-1px);
}

.header-cta span {
    font-size: 18px;
}

/* ==========================================================================
   Contact Number Badge with 360 Animated Gradient Border
   ========================================================================== */

.header-contact-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px; /* Border beam width */
    border-radius: 9999px;
    text-decoration: none;
    overflow: hidden;
    background: rgba(40, 118, 75, 0.16); /* Faint track for the rotating beam */
    flex-shrink: 0;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.header-contact-badge:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 8px 24px rgba(40, 118, 75, 0.25);
}

/* Single glowing line rotating 360 degrees */
.header-contact-badge::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        transparent 270deg,
        rgba(40, 118, 75, 0.25) 300deg,
        #28764b 330deg,
        #4ade80 355deg,
        #bbf7d0 360deg
    );
    animation: rotateBeam360 3s linear infinite;
    z-index: 0;
}

@keyframes rotateBeam360 {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Inner pill with greenish glassy background */
.contact-badge-inner {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    background: rgba(240, 249, 243, 0.9); /* Greenish glassy base */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(40, 118, 75, 0.14);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.9), 0 2px 8px rgba(40, 118, 75, 0.06);
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 650;
    color: var(--dd-navy);
    white-space: nowrap;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.header-contact-badge:hover .contact-badge-inner {
    background: rgba(232, 246, 237, 0.96);
    border-color: rgba(40, 118, 75, 0.28);
    color: var(--dd-green);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 1), 0 4px 14px rgba(40, 118, 75, 0.15);
}

/* Animated pulse indicator dot */
.contact-pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulseContactDot 2s infinite;
    flex-shrink: 0;
}

@keyframes pulseContactDot {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.contact-phone-icon {
    width: 13px;
    height: 13px;
    color: var(--dd-green);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.header-contact-badge:hover .contact-phone-icon {
    transform: rotate(12deg) scale(1.1);
}

.contact-number-text {
    font-size: 13px;
    letter-spacing: -0.01em;
}

/* Mobile toggle */

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;

    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;

    background: transparent;
    border: 1px solid var(--dd-border);
    border-radius: 8px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 19px;
    height: 2px;
    border-radius: 2px;
    background: var(--dd-navy);

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.brand:focus-visible,
.nav-link:focus-visible,
.header-contact-badge:focus-visible,
.header-cta:focus-visible,
.menu-toggle:focus-visible {
    outline: 3px solid #8ac7a0;
    outline-offset: 4px;
}

/* Tablet and mobile */

@media (max-width: 900px) {
    .header-container {
        min-height: 74px;
    }

    .menu-toggle {
        display: flex;
        flex-shrink: 0;
    }

    .main-navigation {
        display: none;

        position: absolute;
        top: 100%;
        left: 0;
        right: 0;

        padding: 22px 24px 26px;
        background: var(--dd-white);
        border-bottom: 1px solid var(--dd-border);

        flex-direction: column;
        align-items: stretch;
        gap: 18px;

        box-shadow: 0 15px 25px rgba(16, 43, 63, 0.06);
    }

    .main-navigation.is-open {
        display: flex;
    }

    .nav-list {
        align-items: stretch;
        flex-direction: column;
        gap: 5px;
    }

    .nav-link {
        display: block;
        padding: 12px 0;
    }

    .nav-link::after {
        display: none;
    }

    .header-contact-badge {
        width: 100%;
    }

    .contact-badge-inner {
        width: 100%;
        justify-content: center;
        padding: 10px 16px;
    }

    .header-cta {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .header-container {
        width: calc(100% - 32px);
        min-height: 70px;
    }

    .brand-name {
        font-size: 22px;
    }

    .brand-icon {
        width: 31px;
        height: 31px;
    }

    .main-navigation {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}