/* ============================================================
   app.css — DignityTools Global Styles
   ============================================================ */

/* ── CSS VARIABLES ── */
:root {
    --primary:   #0a0f1e;
    --accent:    #00d4ff;
    --accent2:   #7b2fff;
    --light:     #f4f7ff;
    --muted:     #6b7280;
    --white:     #ffffff;
    --border:    rgba(0, 212, 255, 0.15);
    --card-bg:   rgba(255, 255, 255, 0.03);
    --gradient:  linear-gradient(135deg, #00d4ff 0%, #7b2fff 100%);
}

/* ── RESET & BASE ── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--primary);
    color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
}

/* ── NAVBAR ── */
.navbar {
    background: rgba(10, 15, 30, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand img {
    height: 42px;
}

.navbar-brand span {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-left: 8px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s;
    letter-spacing: 0.02em;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent) !important;
}

.dropdown-menu {
    background: rgba(10, 15, 30, 0.98);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.5rem;
    backdrop-filter: blur(20px);
}

.dropdown-item {
    color: rgba(255, 255, 255, 0.75);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    font-size: 0.88rem;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent);
}

.btn-compliant {
    background: var(--gradient);
    color: #fff !important;
    border: none;
    border-radius: 50px;
    padding: 0.5rem 1.4rem;
    font-weight: 600;
    font-size: 0.88rem;
    transition: opacity 0.2s, transform 0.2s;
    text-decoration: none;
}

.btn-compliant:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.navbar-toggler {
    border-color: var(--border);
}

.navbar-toggler-icon {
    filter: invert(1);
}

/* ── BUTTONS ── */
.btn-primary-custom {
    background: var(--gradient);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 0.85rem 2rem;
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.35);
    color: #fff;
}

.btn-outline-custom {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 0.85rem 2rem;
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-outline-custom:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

/* ── LAYOUT ── */
section {
    padding: 5rem 0;
}

.section-tag {
    display: inline-block;
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 50px;
    padding: 0.35rem 1rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ── CARDS ── */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s;
}

.glass-card:hover {
    border-color: rgba(0, 212, 255, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* ── PAGE HEADER ── */
.page-header {
    padding: 5rem 0 3rem;
    background: linear-gradient(180deg, rgba(0, 212, 255, 0.05) 0%, transparent 100%);
    border-bottom: 1px solid var(--border);
}

/* ── BREADCRUMB ── */
.seo-breadcrumb {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.seo-breadcrumb ol {
    margin: 0;
}

.seo-breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.82rem;
    transition: color 0.2s;
}

.seo-breadcrumb .breadcrumb-item a:hover {
    color: var(--accent);
}

.seo-breadcrumb .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.82rem;
}

.seo-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.25);
}

/* ── FORMS ── */
.dg-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.dg-input {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--border) !important;
    color: #fff !important;
    border-radius: 10px !important;
    padding: 0.75rem 1rem !important;
    transition: all 0.2s;
}

.dg-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.dg-input:focus {
    background: rgba(255, 255, 255, 0.07) !important;
    border-color: rgba(0, 212, 255, 0.4) !important;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1) !important;
    color: #fff !important;
}

.dg-error {
    color: #ff6b6b;
    font-size: 0.8rem;
    margin-top: 4px;
}

option {
    background: #0a0f1e;
}

/* ── FOOTER ── */
footer {
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid var(--border);
    padding: 3rem 0 1.5rem;
}

footer h6 {
    color: var(--accent);
    font-family: 'Syne', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}

footer a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.88rem;
    line-height: 2;
    transition: color 0.2s;
}

footer a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    margin-top: 2rem;
    padding-top: 1.5rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.82rem;
}

.social-icon:hover {
    color: var(--accent) !important;
}

/* ── ACCORDION ── */
.accordion-button::after {
    filter: invert(1);
}

.accordion-button:not(.collapsed) {
    color: var(--accent) !important;
}

/* ============================================================
   MOBILE RESPONSIVE — app.css
   ============================================================ */

/* ── TABLET (max 991px) ── */
@media (max-width: 991px) {

    section {
        padding: 3.5rem 0;
    }

    .page-header {
        padding: 3rem 0 2rem;
    }

    /* Navbar mobile collapse */
    .navbar-collapse {
        background: rgba(10, 15, 30, 0.98);
        border: 1px solid var(--border);
        border-radius: 12px;
        padding: 1rem;
        margin-top: 0.75rem;
    }

    .navbar-nav {
        gap: 0.25rem;
    }

    .nav-link {
        padding: 0.6rem 0.75rem !important;
        border-radius: 8px;
    }

    .nav-link:hover {
        background: rgba(0, 212, 255, 0.08);
    }

    .btn-compliant {
        margin-top: 0.5rem;
        width: 100%;
        text-align: center;
        justify-content: center;
        display: flex;
    }

    .dropdown-menu {
        background: rgba(255, 255, 255, 0.04);
        border: none;
        padding-left: 1rem;
    }
}

/* ── MOBILE (max 767px) ── */
@media (max-width: 767px) {

    section {
        padding: 2.5rem 0;
    }

    .page-header {
        padding: 2.5rem 0 1.5rem;
    }

    .section-title {
        font-size: 1.7rem;
    }

    /* Buttons full width on mobile */
    .btn-primary-custom,
    .btn-outline-custom {
        width: 100%;
        justify-content: center;
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .d-flex.flex-wrap.gap-3 {
        gap: 0.75rem !important;
    }

    /* Glass cards */
    .glass-card {
        padding: 1.25rem;
    }

    /* Footer */
    footer {
        padding: 2rem 0 1rem;
    }

    .footer-bottom {
        text-align: center;
        flex-direction: column !important;
        gap: 0.5rem;
    }

    /* Forms */
    .form-card {
        padding: 1.25rem;
    }
}

/* ── SMALL MOBILE (max 480px) ── */
@media (max-width: 480px) {

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .navbar-brand span {
        font-size: 1.1rem;
    }

    .navbar-brand img {
        height: 34px;
    }
}

/* ── SKIP NAV (accessibility) ── */
.skip-nav {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: -999;
    text-decoration: none;
}

.skip-nav:focus {
    position: fixed;
    top: 0;
    left: 0;
    width: auto;
    height: auto;
    padding: 0.5rem 1rem;
    background: var(--accent);
    color: #000;
    font-weight: 700;
    z-index: 9999;
}
