/* ==========================================================
   PSYINFO — MAIN STYLESHEET
   Design: scientific · academic · discrete
   Breakpoints: tablet ≤ 768px  |  mobile ≤ 600px
   ========================================================== */

:root {
    --text:       #1e2a3a;
    --muted:      #5a6a7d;
    --accent:     #2259c6;
    --line:       #dde2e8;
    --bg-body:    #f3f5f8;
    --bg-page:    #ffffff;
    --strip-text: #9eaab8;
    --display-lang: none;

    /* Language UI toggle — add: --display-lang: none  to hide all language options */
}


/* BASE
----------------------------------------------------------*/

body {
    font-size: 1em;
    font-family: "Segoe UI", "Helvetica Neue", "Lucida Grande", Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text);
    background-color: var(--bg-body);
    line-height: 1.72;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

p {
    margin-top: 0;
    margin-bottom: 1.05em;
}

ul, ol {
    margin-top: 0.3em;
    margin-bottom: 1.1em;
    padding-left: 1.5em;
}

li {
    margin-bottom: 0.35em;
    line-height: 1.65;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.15s;
}

a:hover {
    color: var(--text);
    text-decoration: underline;
}

.strong1 {
    font-weight: 600;
}

.clear {
    clear: both;
}

.intro {
    font-size: 1.18em;
    line-height: 1.65;
    padding-bottom: 10px;
    position: relative;
    color: var(--muted);
}

    /* Only when a <p> follows .intro */
    .intro + p::before {
        content: "";
        display: block;
        width: 8%;
        border-bottom: 2px solid var(--line);
        margin: 0 auto 28px;
    }



/* HEADINGS
----------------------------------------------------------*/

h1, h2, h3, h4, h5, h6 {
    font-variant: small-caps;
    text-transform: none;
    font-weight: 200;
    margin-bottom: 0;
    color: var(--text);
    line-height: 1.3;
    letter-spacing: 0.01em;
}

h1 { font-size: 1.75em; padding-bottom: 0; margin-bottom: 0.15em; }
h2 { font-size: 1.45em; font-weight: 600; margin-bottom: 0.2em; }
h3 { font-size: 1.15em; font-weight: 600; margin-bottom: 0.15em; letter-spacing: 0.015em; }
h4 { font-size: 1.05em; font-weight: 600; margin-bottom: 0.1em; }
h5 { font-size: 1em; }
h6 { font-size: 1em; font-weight: bold; }

.rightColumn > h1, .rightColumn > h2,
.leftColumn  > h1, .leftColumn  > h2 {
    margin-top: 0;
}


/* TOP ACCENT BAR
----------------------------------------------------------*/

.site-topbar {
    height: 3px;
    background-color: var(--text);
    width: 100%;
}


/* LAYOUT
----------------------------------------------------------*/

.page {
    max-width: 1016px;
    width: 100%;
    margin: 24px auto 40px;
    box-sizing: border-box;
    display: flex;
    align-items: stretch;
}

.page-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}


/* VERTICAL STRIP
----------------------------------------------------------*/

.vertical-strip {
    flex-shrink: 0;
    width: 62px;
    /*border-right: 1px solid var(--line);*/
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 100px;
    overflow: hidden;
    background: transparent;
}

.vertical-strip span {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 30px;
    letter-spacing: 6px;
    text-transform: uppercase;
    font-variant: small-caps;
    color: var(--strip-text);
    font-weight: 200;
    white-space: nowrap;
    line-height: 1;
    opacity: 0.7;
}


/* NAVBAR
----------------------------------------------------------*/

.navbar {
    width: 100%;
    background-color: var(--bg-page);
   
   /*  border-bottom: 1px solid var(--line); */
    padding: 19px 20px 0;
    box-sizing: border-box;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.navbar-brand {
    flex-shrink: 0;
    position: relative;
    z-index: 10;
    margin-bottom: 0;
    padding: 0 8px;
    background: var(--bg-page);
    line-height: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-dots {
    display: none;
}

.navbar-logo-img {
    height: 72px;
    width: auto;
    display: block;
    transition: transform 0.35s ease;
    transform-origin: center;
}

@keyframes logo-hint {
    0%   { transform: rotate(0deg); }
    30%  { transform: rotate(18deg); }
    55%  { transform: rotate(0deg); }
    75%  { transform: rotate(10deg); }
    100% { transform: rotate(0deg); }
}

.navbar-logo-img.logo-hint {
    animation: logo-hint 0.9s ease forwards;
}


/* MAIN CONTENT
----------------------------------------------------------*/

.main {
    --main-pad-x: 68px;
    position: relative;
    background-color: var(--bg-page);
    padding: 36px var(--main-pad-x) 48px;
    min-height: 440px;
    box-sizing: border-box;
    flex: 1;
}

/* Section separators — h2 gets a top rule */
    .main h2 {
        position: relative;
        padding-top: 30px;
        margin-top: 32px;
    }

        .main h2::before {
            content: "";
            position: absolute;
            top: 0;
            left: calc(-1.1 * var(--main-pad-x));
            width: calc(0.7 * var(--main-pad-x));
            border-top: 2px solid var(--line);
        }
    /* First heading never gets a top rule */

    .main > h1:first-child, .main > h2:first-child {
        padding-top: 0;
        margin-top: 0;
    }

        .main > h1:first-child::before, .main > h2:first-child::before {
            content: none;
        }

    .main > *:first-child {
        margin-top: 0;
    }

    .main h1 + h2 {
        margin-top: 20px;
        padding-top: 14px;
    }

    .main h3 {
        margin-top: 1.6em;
    }

    .main h2 + h3 {
        margin-top: 0.5em;
    }




/* NAVIGATION MENU
----------------------------------------------------------*/

div.menu {
    flex: 1;
}

div.menu ul {
    list-style: none;
    margin: 0;
    margin-top: 15px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    justify-content: flex-start;
}

.menu li {
    margin-bottom:0;
    display: inline-block;
}

div.menu ul li a,
div.menu ul li a:visited {
    display: block;
    position: relative;
    color: var(--muted);
    background-color: transparent;
    border: none;
    text-decoration: none;
    white-space: nowrap;
    font-size: 15px;
    letter-spacing: 0.025em;
    padding: 7px 9px 7px;
    margin: 0;
    line-height: 22px;
    transition: color 0.2s;
}

div.menu ul li a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    border-bottom: solid 2px #a7b7d3;
    transform: scaleX(0);
    transition: transform 250ms ease-in-out;
}

div.menu ul li a:hover {
    color: var(--text);
    background-color: transparent;
    text-decoration: none;
}

div.menu ul li a:hover::after {
    transform: scaleX(0.4);
}

div.menu ul li a:active {
   
    color: var(--accent);
}

div.menu ul li a.active {
    color: var(--text);
    font-weight: 500;
}

div.menu ul li a.active::after {
    transform: scaleX(0.7);
    border-bottom-color: var(--accent);
}


/* LANGUAGE SWITCHER
----------------------------------------------------------*/

.lang-switcher {
    flex-shrink: 0;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
}

.lang-dropdown {
    position: relative;
    display: var(--display-lang, block);
}

.lang-current {
    background-color: transparent;
    color: var(--muted);
    border: none;
    margin-top: 18px;
margin-right: 12px;
    padding:7px ;
    font-size: 15px;
    font-family: inherit;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: color 0.12s;
}

.lang-current:hover {
    color: var(--text);
}

.lang-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    background: var(--bg-page);
   /*  border: 1px solid var(--line); */
    border-radius: 2px;
    min-width: 90px;
    z-index: 200;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    opacity: 0;
    transform: scaleY(0);
    transform-origin: top;
    pointer-events: none;
    transition: opacity 0.15s, transform 0.3s ease;
}

.lang-dropdown.open .lang-menu {
    opacity: 1;
    transform: scaleY(1);
    pointer-events: auto;
}

.lang-option {
    display: block;
    padding: 7px 14px;
    font-size: 13px;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.lang-option:hover {
    background-color: var(--bg-body);
    color: var(--text);
    text-decoration: none;
}

.lang-option-active {
    color: var(--text);
    font-weight: 500;
}

.mobile-site-name {
    display: none;
}

.mobile-lang {
    display: none;
}


/* FOOTER
----------------------------------------------------------*/

.footer {
    background-color: var(--bg-page);
    border-top: 1px solid var(--line);
   /*  border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line); */
    padding: 10px 20px;
    box-sizing: border-box;
    overflow: hidden;
}

.quicknav {
    display: none;
    float: left;
    padding: 10px 20px;
    font-size: 13px;
    color: var(--muted);
}

.quicknav li {
    margin-top: 6px;
}

.quicknav a {
    color: var(--muted);
}

.quicknav a:hover {
    color: var(--text);
}

.quicknav a.active {
    color: var(--text);
    font-weight: 500;
}

#copyright {
    float: right;
    padding: 10px;
    font-size: 11px;
    color: var(--strip-text);
    letter-spacing: 0.04em;
}

.footer-lang {
    float: left;
    padding: 10px 20px;
    display: var(--display-lang, flex);
    gap: 14px;
    align-items: center;
}

.footer-lang-opt {
    font-size: 12px;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: 0.04em;
}

.footer-lang-opt:hover {
    color: var(--text);
    text-decoration: none;
}

.footer-lang-active {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* MISC ELEMENTS
----------------------------------------------------------*/

.imgW {
    float: right;
    margin: 2em;
    width: 201px;
}

.login {
    width: 250px;
    border: 1px solid var(--line);
    padding: 40px;
    margin: 80px auto 0;
    text-align: center;
}

#image29 {
    background-image: url('../images/image29.png');
    background-repeat: no-repeat;
    width: 784px;
    height: 395px;
    margin: 40px auto 0;
}


/* ABOUT PAGE
----------------------------------------------------------*/

.contact-button {
    display: inline-block;
    padding: 11px 60px;
    color: var(--muted);
    text-decoration: none;
    border: 1px solid var(--line);
    font-size: 13px;
    letter-spacing: 0.05em;
    font-variant: small-caps;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.contact-button:hover {
    background-color: var(--bg-body);
    color: var(--text);
    border-color: #c5cdd6;
    text-decoration: none;
}

.imgclients {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    border-top: 1px solid var(--line);
    padding-top: 24px;
}

.imgclients img {
    width: 65px;
    margin: 16px 10px;
    max-width: 100%;
    height: auto;
    opacity: 0.75;
    filter: grayscale(20%);
    transition: opacity 0.2s;
}

.imgclients img:hover {
    opacity: 1;
}

.container {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    align-items: flex-start;
}

.column {
    margin-bottom: 25px;
}

.column.left {
    flex: 0 0 69%;
    padding-right: 15px;
    box-sizing: border-box;
}

.column.right {
    flex: 0 0 29%;
    padding-top: 12px;
    text-align: center;
}


/* RESOURCES PAGE
----------------------------------------------------------*/

.titlefaq {
    flex: 0 0 30%;
    font-weight: 600;
    font-size: 1.08em;
    font-variant: small-caps;
    color: var(--text);
    padding-right: 30px;
    line-height: 1.4;
}

.textfaq {
    flex: 0 0 65%;
    padding-bottom: 34px;
    line-height: 1.72;
}

.links ul {
    list-style-type: none;
    padding: 7px;
}

.links li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.links a {
    color: var(--accent);
    text-decoration: none;
    padding-left: 5px;
}

.links a:hover {
    text-decoration: underline;
}


 .footer-lang{
        display: none;
    }

/* TABLET — max-width: 768px
----------------------------------------------------------*/

@media (max-width: 768px) {

    .page {
        margin: 12px auto 24px;
    }

    .vertical-strip {
        width: 44px;
        padding-top: 90px;
    }

    .vertical-strip span {
        font-size: 22px;
        letter-spacing: 4px;
    }

    /* .navbar {
        padding: 14px 14px 0;
        gap: 12px;
    }

    .navbar-logo-img {
        height: 56px;
    }

    div.menu ul li a,
    div.menu ul li a:visited {
      
        padding: 6px 6px 10px;
    } 
*/
    .main {
        --main-pad-x: 32px;
        padding: 24px var(--main-pad-x) 30px;
    }

    .column.left  { flex: 0 0 60%; }
    .column.right { flex: 0 0 38%; }

    .titlefaq { flex: 0 0 35%; }
    .textfaq  { flex: 0 0 60%; }
}


/* MOBILE — max-width: 600px
----------------------------------------------------------*/

@media (max-width: 600px) {

    body {
        font-size: 0.95em;
        line-height: 1.68;
        background-color: var(--bg-page);
    }

    .site-topbar {
        height: 2px;
    }

    .page {
        margin: 0 auto;
        flex-direction: column;
    }

    .vertical-strip {
        display: none;
    }

    .navbar {
        flex-wrap: wrap;
        gap: 0;
        padding: 13px 14px 2px;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid var(--line);
    }

    /* [PsyInfo]  ·········  [logo] */
    .lang-switcher {
        order: 1;
        margin-left: 0;
        padding-bottom: 8px;
    }

    .lang-dropdown {
        display: none;
    }

    .mobile-site-name {
        padding-left: 4px;
        padding-top: 0px;
        display: block;
        color: var(--accent);
        font-weight: bold;
        font-size: 22px;
        letter-spacing: 0.04em;
        text-decoration: none;
        transition: opacity 0.18s ease;
    }

    .mobile-site-name:hover {
        opacity: 1;
        color: #4a80f0;
        text-decoration: none;
    }

    .mobile-lang {
        display: var(--display-lang, flex);
        gap: 16px;
        padding: 12px 14px 14px;
        border-bottom: 1px solid var(--line);
    }

    .lang-inline-opt {
        font-size: 13px;
        color: var(--muted);
        text-decoration: none;
        letter-spacing: 0.04em;
    }

    .lang-inline-opt:hover {
        color: var(--text);
    }

    .lang-inline-active {
        color: var(--text);
        text-decoration: underline;
        text-underline-offset: 3px;
    }

    .navbar-brand {
        order: 2;
        margin-left: 0;
        padding-right: 4px;
        padding-bottom: 6px;
        margin-bottom: 0;   /* cancel desktop overlap */
        display: flex;
        align-items: center;
    }

    .navbar-logo-img {
        height: 30px;
    }

    .navbar.nav-open .navbar-logo-img {
        transform: rotate(20deg);
    }

    .nav-dots {
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        cursor: pointer;
        color: var(--text);
        margin-left: 0px;
        opacity: 0.9;
    }

    .nav-dots svg {
        height: 24px;
        width: auto;
        display: block;
        transform: translateY(-1px);
    }

    .nav-dots:hover,
    .navbar.nav-open .nav-dots {
        opacity: 1;
    }

    div.menu {
        order: 3;
        flex: 0 0 100%;
        margin-top: 2px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
    }

    .navbar.nav-open div.menu {
        max-height: 600px;
        border-top: 1px solid var(--line);
    }

    div.menu ul {
        margin-top: 0;
        margin-left:5%;
        flex-direction: column;
        gap: 0;
    }

    .menu li {
        display: block;
    }

    div.menu ul li a,
    div.menu ul li a:visited {
        font-size: 13px;
        letter-spacing: 0.04em;
        padding: 12px 14px;
        border-bottom: 1px solid var(--line);
        border-left: 3px solid transparent;
        width: 100%;
        box-sizing: border-box;
        color: var(--muted);
    }

    div.menu ul li a::after,
    div.menu ul li a.active::after {
        display: none;
    }

    div.menu ul li a:hover {
        background-color: var(--bg-body);
        border-left-color: var(--line);
        color: var(--text);
    }

    div.menu ul li a.active {
        border-left-color: var(--accent);
        color: var(--text);
        background-color: transparent;
        font-weight: 500;
    }

    .main {
        --main-pad-x: 16px;
        border-left: none;
        border-right: none;
        padding: 20px var(--main-pad-x);
        min-height: 0;
    }

    .footer {
        border-left: none;
        border-right: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 20px 14px 16px;
        gap: 0;
        overflow: visible;
    }
   

    .quicknav {
        display: block;
        float: none;
        padding: 0 0 14px;
        width: 100%;
        text-align: center;
    }

    .quicknav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        list-style: none;
        margin: 0;
        padding: 0;
        gap: 0;
    }

    .quicknav li {
        margin: 0;
        display: flex;
        align-items: center;
    }

    .quicknav li + li::before {
        content: "·";
        color: var(--line);
        padding: 0 6px;
    }

    .quicknav a {
        font-size: 12px;
        line-height: 1.8;
    }

    .footer-lang {
        display: var(--display-lang, flex);
        float: none;
        /* padding: 10px 0 0; */
        justify-content: center;
        /* border-top: 1px solid var(--line); */
        width: 100%;
    }

    #copyright {
        float: none;
        padding: 8px 0 0;
        text-align: center;
    }

    .imgW {
        float: none;
        display: block;
        margin: 2em auto;
    }

    .login {
        width: 200px;
        padding: 20px;
    }

    #image29 {
        background-image: url('../images/image29small.png');
        width: 234px;
        height: 394px;
        margin: 10px auto 0;
    }

    #imagebrain {
        display: none;
    }

    .column.left,
    .column.right {
        flex: 0 0 100%;
        padding-right: 0;
    }

    .titlefaq {
        flex: 0 0 90%;
        line-height: 1.1em;
        padding-bottom: 20px;
        padding-right: 0;
    }

    .textfaq {
        flex: 0 0 90%;
    }
}
