﻿/*  --------------
    COLORS SETTING
    -------------- */
:root {
    --menuText: #fff;
    --menuTextHov: #eeb20e;
    /* fully opaque — the mobile menu is a full-screen overlay, and any transparency here
       lets whatever sits behind it (hero title, footer text) show through and clash with
       the nav links on top of it */
    --menuBackground: #4473c5;
    --textBlack: #636e72;
    --logoBlue: #4473c5;
    --logoBlueHov: #2a5fb9;
    --logoGreen: #00af50;
    --logoGreenHov: #0d8f47;
    --logoOrange: #ed7d31;
    --logoOrangeHov: #ce6926;
    --logoSilver: #c1c1c1;
    --buttonRed: #e74c3c;
    --cookieWarning: rgba(25, 42, 86,0.85);
    --heroBackground: #1c1c1e;
    --heroText: #fff;

/*  -----------------
    FONT SIZE SETTING
    ----------------- */
    --mainTitleSize: calc(36px + 100vw / 30);
    --titleSize: calc(20px + 100vw / 75);
    --textSize: 1.25rem;
    --signatureSize: calc(25px + 100vw / 75);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
}

/*  -------
    TEXTBOX
    ------- */

.textbox {
    border: none;
    border-bottom: 1px solid #333;
    background-color: transparent;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    height: 1.75rem;
    width: 100%;
    transition: 300ms;
}

.textbox:focus {
    outline: none;
    border-bottom-color: var(--logoOrange);
}

/*  ------
    BUTTON
    ------ */

.button {
    display: inline-block;
    width: 100%;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.85rem 1.5rem;
    border: none;
    color: var(--menuText);
    cursor: pointer;
    outline: none;
    /* diagonal sweep through the two dominant logo colors, same 135deg language already
       used on the pillar cards */
    background-image: linear-gradient(135deg, var(--logoOrange) 0%, var(--logoBlue) 100%);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    transition: transform 150ms ease, box-shadow 250ms ease, filter 250ms ease;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
    filter: brightness(1.08) saturate(1.1);
}

.button:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.16);
}

/* destructive actions keep their own red gradient so delete/execute buttons in admin
   stay visually distinct from the brand gradient used everywhere else */
.button__red {
    background-image: linear-gradient(135deg, var(--buttonRed) 0%, #a83226 100%);
}

.button__sm {
    width: 50%;
}

/*  -----
    TOAST
    ----- */

.toast-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 18rem;
    max-width: 24rem;
    padding: 1rem 1.25rem;
    background-color: var(--menuText);
    color: var(--textBlack);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    border-left: 4px solid var(--logoBlue);
    pointer-events: auto;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1), opacity 300ms ease;
}

.toast--show {
    transform: translateX(0);
    opacity: 1;
}

.toast--success {
    border-left-color: var(--logoGreen);
}

.toast--error {
    border-left-color: var(--buttonRed);
}

.toast__icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.toast--success .toast__icon {
    color: var(--logoGreen);
}

.toast--error .toast__icon {
    color: var(--buttonRed);
}

.toast__text {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.4;
}

.toast__close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--textBlack);
    opacity: 0.5;
    font-size: 1.1rem;
    line-height: 1;
    padding: 0;
    flex-shrink: 0;
    transition: opacity 150ms ease;
}

.toast__close:hover {
    opacity: 1;
}

@media screen and (max-width: 480px) {
    .toast-container {
        left: 1rem;
        right: 1rem;
        top: 1rem;
    }

    .toast {
        min-width: 0;
        max-width: none;
        width: 100%;
    }
}