/* ==========================================================
   NEUROACCESS SOUTH AFRICA
   Unified Web / Forms / YARA Design System
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@600;700;800&display=swap');

:root {
    --na-primary: #2D6A4F;
    --na-primary-2: #40916C;
    --na-primary-3: #74C69D;
    --na-mint: #D8F3DC;

    --na-yellow: #F4C95D;
    --na-coral: #F28C7A;
    --na-blue: #6FA8DC;
    --na-purple: #A78BCA;

    --na-bg: #F8FBF7;
    --na-surface: #FFFFFF;
    --na-surface-soft: #F0F8F2;

    --na-text: #24352E;
    --na-muted: #64756D;
    --na-border: #DCE9DF;

    --na-shadow:
        0 12px 36px rgba(45, 106, 79, .11);

    --na-shadow-hover:
        0 18px 46px rgba(45, 106, 79, .17);

    --na-radius-sm: 12px;
    --na-radius: 18px;
    --na-radius-lg: 26px;

    --na-body:
        "DM Sans",
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    --na-display:
        "Playfair Display",
        Georgia,
        serif;
}


/* ==========================================================
   GLOBAL
   ========================================================== */

body {
    background:
        radial-gradient(
            circle at 8% 10%,
            rgba(116,198,157,.11),
            transparent 26%
        ),
        radial-gradient(
            circle at 92% 18%,
            rgba(244,201,93,.09),
            transparent 22%
        ),
        var(--na-bg);

    color: var(--na-text);
    font-family: var(--na-body);
}


h1,
h2,
h3,
.na-display {
    font-family: var(--na-display);
    color: var(--na-primary);
}


a {
    color: var(--na-primary);
}


::selection {
    background: var(--na-mint);
    color: var(--na-primary);
}


/* ==========================================================
   BRAND HEADER
   ========================================================== */

.na-brand-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    padding: 16px 28px;

    background:
        rgba(255,255,255,.94);

    border-bottom:
        1px solid var(--na-border);

    backdrop-filter: blur(14px);
}


.na-brand-logo {
    display: block;

    width: auto;
    height: 82px;

    max-width: 330px;

    object-fit: contain;
}


.na-brand-logo-large {
    width: min(420px, 85vw);
    height: auto;
    max-height: 150px;
    object-fit: contain;
}


/* ==========================================================
   HERO
   ========================================================== */

.na-hero {
    position: relative;
    overflow: hidden;

    padding: clamp(42px, 7vw, 90px);

    border-radius:
        0 0 38px 38px;

    background:
        linear-gradient(
            125deg,
            #EAF7ED 0%,
            #F8FBF7 45%,
            #FFF8E6 100%
        );
}


.na-hero::before,
.na-hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}


.na-hero::before {
    width: 270px;
    height: 270px;

    right: -70px;
    top: -80px;

    background:
        rgba(116,198,157,.18);

    animation:
        naFloat 8s ease-in-out infinite;
}


.na-hero::after {
    width: 170px;
    height: 170px;

    left: 7%;
    bottom: -90px;

    background:
        rgba(244,201,93,.18);

    animation:
        naFloat 10s ease-in-out infinite reverse;
}


.na-hero h1 {
    position: relative;
    z-index: 2;

    margin: 0 0 18px;

    max-width: 820px;

    font-size:
        clamp(2.4rem, 5vw, 5rem);

    line-height: .98;

    color: var(--na-primary);
}


.na-hero p {
    position: relative;
    z-index: 2;

    max-width: 720px;

    color: #496057;

    font-size:
        clamp(1rem, 1.6vw, 1.22rem);

    line-height: 1.7;
}


/* ==========================================================
   FRIENDLY ACCENT WORDS
   ========================================================== */

.na-highlight {
    position: relative;
    display: inline-block;
}


.na-highlight::after {
    content: "";

    position: absolute;
    z-index: -1;

    left: -3px;
    right: -3px;
    bottom: 3px;

    height: 11px;

    border-radius: 20px;

    background:
        rgba(244,201,93,.55);

    transform: rotate(-1deg);
}


/* ==========================================================
   CARDS
   ========================================================== */

.na-card,
.web-form-wrapper,
.form-card {
    background: var(--na-surface);

    border:
        1px solid var(--na-border);

    border-radius:
        var(--na-radius-lg);

    box-shadow:
        var(--na-shadow);

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}


.na-card {
    padding: 26px;
}


.na-card:hover {
    transform: translateY(-5px);

    box-shadow:
        var(--na-shadow-hover);

    border-color:
        rgba(64,145,108,.35);
}


.na-card-icon {
    display: grid;
    place-items: center;

    width: 58px;
    height: 58px;

    margin-bottom: 17px;

    border-radius: 18px;

    background: var(--na-mint);

    color: var(--na-primary);

    font-size: 27px;

    transition:
        transform .25s ease;
}


.na-card:hover .na-card-icon {
    transform:
        rotate(-4deg)
        scale(1.08);
}


/* alternate card accents */

.na-card:nth-child(4n+2)
.na-card-icon {
    background: #FFF1C9;
}


.na-card:nth-child(4n+3)
.na-card-icon {
    background: #E8DFF5;
}


.na-card:nth-child(4n+4)
.na-card-icon {
    background: #DDEEFF;
}


/* ==========================================================
   FORMS
   ========================================================== */

.web-form-container,
.na-form-container {
    max-width: 960px;
    margin: 34px auto 70px;
    padding: 0 20px;
}


.web-form-wrapper,
.na-form {
    padding:
        clamp(22px, 4vw, 42px);
}


.form-control,
.control-input input,
.control-input select,
.control-input textarea,
.na-input,
.na-select,
.na-textarea {
    width: 100%;

    min-height: 48px;

    padding: 11px 14px;

    color: var(--na-text);

    font-family: var(--na-body);

    background: #FFFFFF;

    border:
        1.5px solid #CFE0D4;

    border-radius: 13px;

    outline: none;

    box-shadow: none;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}


textarea.form-control,
.control-input textarea,
.na-textarea {
    min-height: 125px;
}


.form-control:focus,
.control-input input:focus,
.control-input select:focus,
.control-input textarea:focus,
.na-input:focus,
.na-select:focus,
.na-textarea:focus {
    border-color:
        var(--na-primary-2);

    box-shadow:
        0 0 0 4px
        rgba(64,145,108,.12);

    transform:
        translateY(-1px);
}


.control-label,
.na-label {
    margin-bottom: 7px;

    color: #385548;

    font-weight: 700;
}


.help-box,
.help-block,
.na-help {
    color: var(--na-muted);
}


/* ==========================================================
   FORM SECTION HEADINGS
   ========================================================== */

.section-head,
.form-section-heading,
.na-section-title {
    position: relative;

    margin:
        28px 0 18px;

    padding:
        13px 17px;

    color: var(--na-primary);

    font-family: var(--na-display);

    font-size: 1.25rem;
    font-weight: 700;

    background:
        linear-gradient(
            90deg,
            var(--na-mint),
            rgba(216,243,220,.12)
        );

    border-left:
        5px solid var(--na-primary-2);

    border-radius: 11px;
}


/* ==========================================================
   BUTTONS
   ========================================================== */

.btn-primary,
.na-btn-primary {
    min-height: 46px;

    padding: 11px 20px;

    border: 0 !important;
    border-radius: 14px !important;

    color: #FFFFFF !important;

    font-family: var(--na-body);
    font-weight: 700;

    background:
        linear-gradient(
            135deg,
            var(--na-primary),
            var(--na-primary-2)
        ) !important;

    box-shadow:
        0 8px 20px
        rgba(45,106,79,.20);

    transition:
        transform .2s ease,
        box-shadow .2s ease !important;
}


.btn-primary:hover,
.na-btn-primary:hover {
    transform:
        translateY(-2px);

    box-shadow:
        0 12px 27px
        rgba(45,106,79,.27);
}


/* ==========================================================
   BADGES
   ========================================================== */

.na-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 7px 12px;

    border-radius: 999px;

    background: var(--na-mint);

    color: var(--na-primary);

    font-size: .83rem;
    font-weight: 700;
}


/* ==========================================================
   YARA
   ========================================================== */

#na-yara-launcher {
    background:
        linear-gradient(
            135deg,
            var(--na-primary),
            var(--na-primary-2)
        ) !important;

    border:
        4px solid #FFFFFF !important;

    box-shadow:
        0 12px 34px
        rgba(45,106,79,.32) !important;

    animation:
        yaraBreathe 3.6s
        ease-in-out infinite;
}


#na-yara-launcher img {
    width: 58px !important;
    height: 58px !important;

    object-fit: contain !important;
}


#na-yara-panel {
    border-radius:
        24px !important;

    border:
        1px solid var(--na-border) !important;
}


.na-yara-head {
    background:
        linear-gradient(
            135deg,
            var(--na-primary),
            var(--na-primary-2)
        ) !important;
}


.na-yara-head strong {
    font-family:
        var(--na-display);

    font-size: 20px !important;
}


/* ==========================================================
   PLAYFUL DECORATIVE DOTS
   ========================================================== */

.na-dots {
    display: flex;
    gap: 8px;
}


.na-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}


.na-dot:nth-child(1) {
    background: var(--na-primary-3);
}


.na-dot:nth-child(2) {
    background: var(--na-yellow);
}


.na-dot:nth-child(3) {
    background: var(--na-coral);
}


.na-dot:nth-child(4) {
    background: var(--na-purple);
}


/* ==========================================================
   ANIMATION
   ========================================================== */

@keyframes naFloat {
    0%,
    100% {
        transform:
            translateY(0)
            rotate(0deg);
    }

    50% {
        transform:
            translateY(-14px)
            rotate(3deg);
    }
}


@keyframes yaraBreathe {
    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.045);
    }
}


@keyframes naAppear {
    from {
        opacity: 0;
        transform:
            translateY(15px);
    }

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


.na-animate {
    animation:
        naAppear .55s ease both;
}


/* ==========================================================
   ACCESSIBILITY
   ========================================================== */

*:focus-visible {
    outline:
        3px solid rgba(244,201,93,.9);

    outline-offset: 3px;
}


@media (
    prefers-reduced-motion: reduce
) {
    *,
    *::before,
    *::after {
        animation-duration:
            .01ms !important;

        animation-iteration-count:
            1 !important;

        scroll-behavior:
            auto !important;

        transition-duration:
            .01ms !important;
    }
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 768px) {

    .na-brand-header {
        padding: 12px 16px;
    }

    .na-brand-logo {
        height: 65px;
        max-width: 245px;
    }

    .na-hero {
        padding:
            40px 22px 55px;

        border-radius:
            0 0 27px 27px;
    }

    .na-card {
        padding: 21px;
    }

    #na-yara-launcher span {
        display: none;
    }
}
