/* =========================================================
   KONSULTENS.SE
   Light / Dark mode (Stilren Svart/Vit)
   ========================================================= */

/* =========================================================
   1. VARIABLES – LIGHT MODE DEFAULT
   ========================================================= */

:root {

    --black: #f4f7fa;
    --black-soft: #eef2f5;

    --surface: #ffffff;
    --surface-2: #f7f9fb;
    --surface-3: #edf1f5;

    /* Ändrat från blått till neutralt grått/svart */
    --border: rgba(0, 0, 0, 0.12);
    --border-hover: rgba(0, 0, 0, 0.3);

    --white: #10151b;
    --text: #151a20;

    --muted: #66717d;
    --muted-light: #4b5661;

    /* Omdöpt från --blue till --accent och bytt till monokromt */
    --accent: #10151b; 
    --accent-soft: rgba(0, 0, 0, 0.05);
    --accent-glow: rgba(0, 0, 0, 0.12);

    --yellow: #d69d00;

    --radius: 18px;
    --radius-small: 12px;

    --max-width: 1180px;

    --shadow:
        0 20px 60px rgba(15, 23, 42, 0.10);

    --transition:
        220ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* =========================================================
   2. DARK MODE
   ========================================================= */

html.dark-mode,
body.dark-mode {

    --black: #030405;
    --black-soft: #07090c;

    --surface: #0b0e12;
    --surface-2: #10141a;
    --surface-3: #141920;

    /* Ändrat från neonblått till vit/grå */
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.30);

    --white: #ffffff;
    --text: #f2f5f7;

    --muted: #8e99a5;
    --muted-light: #b8c0c8;

    /* Omdöpt från --blue till --accent och bytt till monokromt */
    --accent: #ffffff;
    --accent-soft: rgba(255, 255, 255, 0.08);
    --accent-glow: rgba(255, 255, 255, 0.15);

    --yellow: #ffd75a;

    --shadow:
        0 20px 60px rgba(0, 0, 0, 0.45);
}

/* =========================================================
   3. RESET
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    margin: 0;
    min-height: 100vh;

    background:
        radial-gradient(
            circle at 50% -10%,
            rgba(0, 0, 0, 0.03),
            transparent 32%
        ),
        var(--black);

    color: var(--text);

    font-family:
        "Inter",
        Arial,
        Helvetica,
        sans-serif;

    line-height: 1.6;

    overflow-x: hidden;

    transition:
        background-color 300ms ease,
        color 300ms ease;
}

html.dark-mode body {
    background:
        radial-gradient(
            circle at 50% -10%,
            rgba(255, 255, 255, 0.04),
            transparent 30%
        ),
        var(--black);
}

.hero h1,
.section-heading h2,
.contact-box h2,
.modal-content h2 {
    font-family:
        "Manrope",
        Arial,
        Helvetica,
        sans-serif;
}

body.modal-open {
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
}

button,
a {
    font: inherit;
}

button {
    color: inherit;
}

a {
    color: inherit;
}

::selection {
    background: rgba(0, 0, 0, 0.15);
    color: var(--white);
}

html.dark-mode ::selection {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

/* =========================================================
   4. SITE SHELL
   ========================================================= */

.site-shell {
    min-height: 100vh;
}

/* =========================================================
   5. HEADER
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;

    width: 100%;

    background:
        rgba(255, 255, 255, 0.82);

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

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    transition:
        background var(--transition),
        border-color var(--transition);
}

html.dark-mode .site-header {
    background:
        rgba(3, 4, 5, 0.82);
}

.header-inner {
    width: min(
        calc(100% - 40px),
        var(--max-width)
    );

    min-height: 76px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;

    text-decoration: none;
}

.brand img {
    width: 48px;
    height: 48px;

    object-fit: contain;

    transition:
        transform var(--transition),
        filter var(--transition);
}

.brand:hover img {
    transform: scale(1.05);

    filter:
        drop-shadow(
            0 0 12px
            rgba(0, 0, 0, 0.15)
        );
}

html.dark-mode .brand:hover img {
    filter:
        drop-shadow(
            0 0 12px
            rgba(255, 255, 255, 0.25)
        );
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-status {
    display: flex;
    align-items: center;
    gap: 9px;

    color: var(--muted);

    font-size: 0.78rem;
    font-weight: 500;
}

.status-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--accent);

    box-shadow:
        0 0 0 4px var(--accent-soft),
        0 0 12px var(--accent-glow);
}

/* =========================================================
   6. THEME TOGGLE
   ========================================================= */

.theme-toggle {
    position: relative;

    width: 52px;
    height: 30px;

    padding: 3px;

    display: flex;
    align-items: center;
    justify-content: space-between;

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

    border-radius: 999px;

    background:
        var(--surface-2);

    color: var(--muted);

    cursor: pointer;

    transition:
        background var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.theme-toggle:hover {
    border-color: var(--border-hover);

    box-shadow:
        0 0 20px var(--accent-glow);
}

.theme-toggle::before {
    content: "";

    position: absolute;

    top: 3px;
    left: 3px;

    width: 22px;
    height: 22px;

    border-radius: 50%;

    background: var(--accent);

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.18);

    transition:
        transform var(--transition);
}

.theme-icon {
    position: relative;
    z-index: 1;

    width: 22px;
    height: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 0.75rem;

    transition:
        color var(--transition),
        opacity var(--transition);
}

.theme-icon-light {
    color: white;
}

.theme-icon-dark {
    color: var(--muted);
}

html.dark-mode .theme-toggle::before {
    transform: translateX(22px);
}

html.dark-mode .theme-icon-light {
    color: var(--muted);
}

html.dark-mode .theme-icon-dark {
    color: black;
}

/* =========================================================
   7. GENERAL SECTION
   ========================================================= */

.section {
    width: min(
        calc(100% - 40px),
        var(--max-width)
    );

    margin: 0 auto;
}

.content-section {
    padding-top: 105px;
}

.hero {
    padding-top: 95px;
    padding-bottom: 90px;
}

.reviews-section {
    padding-top: 110px;
    padding-bottom: 100px;
}

/* =========================================================
   8. HERO (VIDEO BANNER)
   ========================================================= */

.hero-banner {
    position: relative;
    width: 100%;
    min-height: 75vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Delar ytan 50/50 */
    align-items: center;
    gap: 60px;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.8) 40%, rgba(255, 255, 255, 0.1) 100%);
    transition: background var(--transition);
}

html.dark-mode .hero-overlay {
    background: linear-gradient(to right, rgba(11, 14, 18, 0.95) 0%, rgba(11, 14, 18, 0.8) 40%, rgba(11, 14, 18, 0.1) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(calc(100% - 40px), var(--max-width));
    margin: 0 auto;
    padding: 80px 0;
}

.hero-copy {
    max-width: 680px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 24px;
    height: 1px;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

.hero-banner h1 {
    margin: 0 0 20px;
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
    font-weight: 800;
}

.hero-banner h1 span {
    background-color: transparent; /* Tar bort klossen */
    color: var(--muted); /* Gör texten grå istället för svart/vit för kontrast */
    text-shadow: none;
    padding: 0;
    border-radius: 0;
    display: inline;
    margin-top: 0;
}

html.dark-mode .hero-banner h1 span {
    color: var(--muted-light); /* En snygg, ljusgrå kontrast i mörkt läge */
}

.hero-text {
    max-width: 580px;
    margin: 0 0 30px;
    color: var(--muted-light);
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    line-height: 1.7;
}

.hero-contact {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 600;
}

.hero-contact a {
    color: var(--muted-light);
    text-decoration: none;
    transition: color var(--transition);
}

.hero-contact a:hover {
    color: var(--accent);
}

.contact-divider {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--border-hover);
}

/* =========================================================
   9. PROFILE CARD
   ========================================================= */

.profile-card {
    position: relative;
    padding: 40px 35px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
    text-align: center;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
}

html.dark-mode .profile-card {
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.profile-card::before {
    display: none; 
}

.profile-image-wrap {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 24px;
}

.profile-glow {
    display: none; 
}

.profile-image {
    position: relative;
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid var(--border);
    padding: 6px;
    background: var(--surface-2); 
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

html.dark-mode .profile-image {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.profile-info h2 {
    margin: 0 0 4px;
    color: var(--white); 
    font-size: 1.45rem;
    font-weight: 700;
}

.profile-info p {
    margin: 0;
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 600;
}

.profile-line {
    width: 35px;
    height: 3px;
    margin: 20px auto;
    background: var(--accent);
    border-radius: 3px;
    opacity: 0.3;
}

.profile-info span {
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* =========================================================
   10. SECTION HEADINGS
   ========================================================= */

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 38px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

.section-heading > p {
    max-width: 360px;
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    text-align: right;
}

/* =========================================================
   11. CARDS
   ========================================================= */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.service-card {
    position: relative;
    min-height: 300px;
    padding: 31px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(145deg, var(--surface), var(--surface-2));
    cursor: pointer;
    overflow: hidden;
    transition: transform var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.service-card::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -100px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-soft), transparent 68%);
    opacity: 0;
    transition: opacity var(--transition);
}

.service-card:hover,
.service-card:focus-visible {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    background: linear-gradient(145deg, var(--surface), var(--surface-2));
    box-shadow: var(--shadow), 0 0 30px var(--accent-soft);
    outline: none;
}

.service-card:hover::after,
.service-card:focus-visible::after {
    opacity: 1;
}

.card-number {
    position: absolute;
    top: 25px;
    right: 27px;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    opacity: 0.7;
}

.service-card h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 12px;
    color: var(--white);
    font-size: 1.3rem;
    letter-spacing: -0.02em;
}

.service-card > p {
    position: relative;
    z-index: 1;
    max-width: 520px;
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.card-action {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding-top: 28px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--accent);
    font-size: 0.77rem;
    font-weight: 700;
}

.card-action span {
    transition: transform var(--transition);
}

.service-card:hover .card-action span {
    transform: translateX(5px);
}

.service-card-small {
    min-height: 250px;
}

.service-card-featured {
    border-color: var(--border-hover);
}

/* =========================================================
   12. COMPANY GRID
   ========================================================= */

.company-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.company-grid .service-card-featured {
    grid-column: span 2;
}

/* =========================================================
   13. REVIEWS
   ========================================================= */

.rating {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
}

.rating strong {
    color: var(--yellow);
    font-size: 1rem;
    letter-spacing: 3px;
}

.rating span {
    color: var(--muted);
    font-size: 0.72rem;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.review {
    min-height: 220px;
    padding: 27px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
    background: var(--surface-2);
    transition: border-color var(--transition), background var(--transition);
}

.review:hover {
    border-color: var(--border-hover);
    background: var(--surface);
}

.stars {
    margin-bottom: 18px;
    color: var(--yellow);
    font-size: 0.85rem;
    letter-spacing: 3px;
}

.review p {
    margin: 0;
    color: var(--muted-light);
    font-size: 0.9rem;
    line-height: 1.75;
}

.review span {
    margin-top: auto;
    padding-top: 25px;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 600;
}

/* =========================================================
   14. CONTACT
   ========================================================= */

.contact-section {
    padding-top: 10px;
    padding-bottom: 110px;
}

.contact-box {
    position: relative;
    padding: clamp(35px, 7vw, 70px);
    border: 1px solid var(--accent-soft);
    border-radius: calc(var(--radius) + 6px);
    background:
        radial-gradient(
            circle at 80% 30%,
            var(--accent-soft),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            var(--surface),
            var(--surface-2)
        );
    overflow: hidden;
}

.contact-box h2 {
    max-width: 600px;
    margin: 0 0 15px;
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

.contact-box > p {
    max-width: 560px;
    margin: 0 0 30px;
    color: var(--muted);
    font-size: 0.95rem;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.contact-actions a {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition);
}

.contact-actions a:hover {
    color: var(--accent);
}

/* =========================================================
   15. MODAL
   ========================================================= */

.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, visibility 180ms ease;
}

.modal.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

html.dark-mode .modal-backdrop {
    background: rgba(0, 0, 0, 0.82);
}

.modal-dialog {
    position: relative;
    z-index: 2;
    width: min(760px, 100%);
    max-height: min(850px, 90vh);
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) + 4px);
    background: var(--surface);
    box-shadow: var(--shadow);
    transform: translateY(15px) scale(0.98);
    transition: transform 220ms ease;
}

.modal.is-open .modal-dialog {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 5;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface-2);
    color: var(--muted-light);
    font-size: 1.5rem;
    font-weight: 300;
    cursor: pointer;
    transition: color var(--transition), background var(--transition), border-color var(--transition);
}

.modal-close:hover {
    color: var(--white);
    background: var(--surface-3);
    border-color: var(--border-hover);
}

.modal-content {
    max-height: min(850px, 90vh);
    overflow-y: auto;
    padding: 48px 48px 50px;
}

.modal-content h2 {
    margin: 0 55px 15px 0;
    color: var(--white);
    font-size: clamp(2rem, 5vw, 3.1rem);
    line-height: 1;
    letter-spacing: -0.045em;
}

.modal-intro {
    max-width: 600px;
    margin: 0 0 35px;
    color: var(--muted-light);
    font-size: 0.95rem;
    line-height: 1.75;
}

/* =========================================================
   16. ACCORDION
   ========================================================= */

.accordion {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.accordion-item {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
    background: var(--surface-2);
    transition: border-color var(--transition), background var(--transition);
}

.accordion-item.is-open {
    border-color: var(--border-hover);
    background: var(--accent-soft);
}

.accordion-trigger {
    width: 100%;
    min-height: 62px;
    padding: 16px 19px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 0;
    background: transparent;
    color: var(--white);
    text-align: left;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
}

.accordion-icon {
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--accent);
    font-size: 1.15rem;
    font-weight: 400;
    transition: transform var(--transition), background var(--transition);
}

.accordion-item.is-open .accordion-icon {
    transform: rotate(45deg);
    background: var(--accent-soft);
}

.accordion-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 260ms ease;
}

.accordion-item.is-open .accordion-content {
    grid-template-rows: 1fr;
}

.accordion-content > * {
    min-height: 0;
    overflow: hidden;
}

.accordion-content ul {
    margin: 0;
    padding: 0 22px 22px 42px;
}

.accordion-content li {
    margin-bottom: 9px;
    color: var(--muted-light);
    font-size: 0.87rem;
}

.accordion-content li:last-child {
    margin-bottom: 0;
}

.accordion-content p {
    margin: 0;
    padding: 0 22px 22px;
    color: var(--muted-light);
    font-size: 0.88rem;
    line-height: 1.75;
}

/* =========================================================
   17. MODAL EXTRA CONTENT
   ========================================================= */

.modal-info-box {
    margin-top: 25px;
    padding: 20px;
    border: 1px solid var(--accent-soft);
    border-radius: var(--radius-small);
    background: var(--accent-soft);
}

.modal-info-box p {
    margin: 0;
    color: var(--muted-light);
    font-size: 0.88rem;
}

.company-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 30px;
}

.company-details > div {
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
    background: var(--surface-2);
}

.company-details span {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.company-details strong {
    color: var(--white);
    font-size: 0.9rem;
}

.external-link {
    margin-top: 25px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition), gap var(--transition);
}

.external-link:hover {
    color: var(--white);
    gap: 16px;
}

.vision-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.vision-content p {
    margin: 0;
    color: var(--muted-light);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* =========================================================
   18. FOOTER
   ========================================================= */

.site-footer {
    border-top: 1px solid var(--border);
    background: var(--surface-2);
}

.footer-inner {
    width: min(calc(100% - 40px), var(--max-width));
    margin: 0 auto;
    padding: 42px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.footer-inner > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-inner strong {
    color: var(--white);
    font-size: 0.95rem;
}

.footer-inner span {
    color: var(--muted);
    font-size: 0.75rem;
}

.footer-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-contact a {
    color: var(--muted);
    font-size: 0.78rem;
    text-decoration: none;
    transition: color var(--transition);
}

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

.footer-bottom {
    padding: 18px 20px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.7rem;
    text-align: center;
}

/* =========================================================
   19. SCROLLBAR
   ========================================================= */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--black-soft);
}

::-webkit-scrollbar-thumb {
    background: #b5bec7;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8e99a5;
}

html.dark-mode ::-webkit-scrollbar-track {
    background: #020304;
}

html.dark-mode ::-webkit-scrollbar-thumb {
    background: #1c252d;
}

html.dark-mode ::-webkit-scrollbar-thumb:hover {
    background: #33434e;
}

/* =========================================================
   20. FOCUS
   ========================================================= */

.service-card:focus-visible,
button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

/* =========================================================
   21. TABLET
   ========================================================= */

@media (max-width: 900px) {

    .hero {
        padding-top: 70px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 55px;
    }

    .hero-copy {
        max-width: 760px;
    }

    .profile-card {
        max-width: 430px;
        width: 100%;
        margin: 0 auto;
    }

    .company-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .company-grid .service-card-featured {
        grid-column: span 2;
    }

}

/* =========================================================
   22. MOBILE
   ========================================================= */

@media (max-width: 680px) {

    .header-inner {
        width: min(calc(100% - 30px), var(--max-width));
        min-height: 65px;
    }

    .brand img {
        width: 42px;
        height: 42px;
    }

    .header-status {
        display: none;
    }

    .header-actions {
        gap: 0;
    }

    .section {
        width: min(calc(100% - 30px), var(--max-width));
    }

    .hero {
        padding-top: 55px;
        padding-bottom: 65px;
    }

    .hero h1 {
        font-size: clamp(3rem, 15vw, 4.5rem);
    }

    .hero-text {
        font-size: 0.92rem;
    }

    .hero-contact {
        flex-direction: column;
        align-items: flex-start;
        gap: 7px;
    }

    .contact-divider {
        display: none;
    }

    .profile-card {
        padding: 35px 25px;
    }

    .profile-image-wrap,
    .profile-image {
        width: 150px;
        height: 150px;
    }

    .content-section {
        padding-top: 75px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
        margin-bottom: 27px;
    }

    .section-heading > p {
        text-align: left;
    }

    .cards-grid,
    .company-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .company-grid .service-card-featured {
        grid-column: auto;
    }

    .service-card {
        min-height: 275px;
        padding: 27px;
    }

    .reviews-section {
        padding-top: 80px;
        padding-bottom: 75px;
    }

    .rating {
        align-items: flex-start;
    }

    .review {
        min-height: 0;
    }

    .contact-section {
        padding-bottom: 75px;
    }

    .contact-actions {
        flex-direction: column;
        gap: 12px;
    }

    .modal {
        padding: 12px;
    }

    .modal-dialog {
        max-height: 94vh;
    }

    .modal-content {
        max-height: 94vh;
        padding: 40px 20px 30px;
    }

    .modal-content h2 {
        font-size: 2rem;
        margin-right: 40px;
    }

    .company-details {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 32px 0;
    }

    .footer-contact {
        flex-direction: column;
        gap: 8px;
    }

}

/* =========================================================
   23. SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {

    .hero h1 {
        font-size: 3rem;
    }

    .service-card {
        padding: 23px;
    }

    .modal-content {
        padding-left: 17px;
        padding-right: 17px;
    }

}

/* =========================================================
   24. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

}


/* =========================================================
   25. LIBRARY / MANUALS (Custom Styles)
   ========================================================= */

.library-container {
    max-width: 960px;
    margin: 0 auto 80px auto;
}

/* --- Author Box --- */
.library-author {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px 32px;
    background: linear-gradient(145deg, var(--surface), var(--surface-2));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.library-author:hover {
    border-color: var(--border-hover);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

html.dark-mode .library-author:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.library-author img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
    padding: 4px;
    background: var(--surface-3);
}

.library-author-info h4 {
    margin: 0 0 4px 0;
    font-size: 1.15rem;
    color: var(--white);
    font-weight: 700;
}

.library-author-info p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--muted);
}

/* --- Accordions --- */
.library-accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.library-accordion details {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.library-accordion details:hover {
    border-color: var(--border-hover);
}

.library-accordion summary {
    padding: 32px;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background var(--transition);
    border-radius: var(--radius);
}

.library-accordion details[open] summary {
    background: var(--surface-2);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: 1px solid var(--border);
}

.library-accordion summary::-webkit-details-marker {
    display: none;
}

.accordion-title-wrap h2 {
    margin: 0;
    font-size: 1.6rem;
    color: var(--white);
}

.accordion-icon-hamburger {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--surface-3);
    transition: background var(--transition);
    flex-shrink: 0;
}

.accordion-icon-hamburger .hamburger-line {
    display: block;
    width: 20px;
    height: 2px;
    margin: 3px 0;
    background-color: var(--text);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color var(--transition);
}

.library-accordion details[open] .accordion-icon-hamburger {
    background: var(--accent);
}

.library-accordion details[open] .accordion-icon-hamburger .hamburger-line {
    background-color: var(--surface); 
}

.library-accordion details[open] .accordion-icon-hamburger .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.library-accordion details[open] .accordion-icon-hamburger .hamburger-line:nth-child(2) {
    opacity: 0;
}

.library-accordion details[open] .accordion-icon-hamburger .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.accordion-content-inner {
    padding: 40px 32px;
    background: var(--surface-2);
    border-bottom-left-radius: var(--radius);
    border-bottom-right-radius: var(--radius);
}

.accordion-desc {
    color: var(--muted);
    font-size: 1.05rem;
    margin: 0 0 35px 0;
    max-width: 600px;
    line-height: 1.7;
}

/* --- Card Additions for Library --- */
.card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    z-index: 1; /* For glowing hover background */
    position: relative; 
}

.card-badge {
    background: var(--surface-3);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px solid var(--border);
}

.card-meta span:not(.card-badge) {
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Override default card min-height slightly for accordion context */
.accordion-content-inner .service-card {
    min-height: 260px;
    padding: 28px;
}

@media (max-width: 768px) {
    .library-accordion summary,
    .accordion-content-inner {
        padding: 24px 20px;
    }
    
    .library-author {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
        gap: 16px;
    }
}



.nav-manuals-link {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0.75rem;
  transition: color var(--transition), opacity var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}