:root {
    --partner-bar-height: 42px;
    --charcoal: #182129;
    --charcoal-2: #22303a;
    --ink: #25313a;
    --muted: #66727c;
    --line: #dfe5e8;
    --paper: #f5f3ee;
    --white: #ffffff;
    --amber: #f2a72b;
    --amber-dark: #c97700;
    --blue: #486f8d;
    --danger: #c8473e;
    --success: #2f8b5d;
    --shadow: 0 14px 35px rgba(24, 33, 41, 0.10);
    --radius: 16px;
    --max-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.container {
    width: min(var(--max-width), calc(100% - 40px));
    margin-inline: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Partner bar */

.top-partner-bar {
    position: sticky;
    top: 0;
    z-index: 1200;
    background: #10171c;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-partner-bar-inner {
    width: min(var(--max-width), calc(100% - 40px));
    min-height: 42px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px 14px;
    color: #91a2ab;
    font-size: 0.9rem;
    font-weight: 750;
    text-align: center;
}

.top-partner-bar a {
    color: #eef3f5;
    text-decoration: none;
}

.top-partner-bar a:hover {
    color: var(--amber);
}

/* Header and navigation */

.site-header {
    position: sticky;
    top: var(--partner-bar-height);
    z-index: 1100;
    background: rgba(24, 33, 41, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.site-header-inner {
    width: min(var(--max-width), calc(100% - 40px));
    min-height: 76px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    color: var(--white);
    text-decoration: none;
    font-size: 1.45rem;
    font-weight: 850;
    letter-spacing: -0.04em;
    white-space: nowrap;
}

.logo-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-right: 9px;
    border-radius: 11px;
    color: var(--charcoal);
    background: var(--amber);
}

.logo-accent {
    color: var(--amber);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
}

.main-nav > a {
    color: #eaf0f3;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 700;
}

.main-nav > a:hover {
    color: var(--amber);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 9px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    background: transparent;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--white);
}

/* More dropdown */

.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    border: 0;
    color: #eaf0f3;
    background: transparent;
    font-size: 0.92rem;
    font-weight: 700;
}

.nav-dropdown-toggle:hover {
    color: var(--amber);
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    z-index: 1300;
    min-width: 220px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 12px;
    background: var(--charcoal);
    box-shadow: var(--shadow);
}

.nav-dropdown.open .nav-dropdown-menu {
    display: grid;
}

.nav-dropdown-menu a {
    padding: 10px 12px;
    border-radius: 8px;
    color: #eaf0f3;
    text-decoration: none;
    font-weight: 650;
}

.nav-dropdown-menu a:hover {
    color: var(--amber);
    background: rgba(255, 255, 255, 0.06);
}

/* Search */

.nav-search {
    position: relative;
    margin-left: 4px;
}

.nav-search input {
    width: 175px;
    padding: 9px 11px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 9px;
    outline: none;
    color: var(--white);
    background: rgba(255, 255, 255, 0.07);
}

.nav-search input::placeholder {
    color: #a8b6bd;
}

.nav-search input:focus {
    border-color: var(--amber);
}

.site-search-results,
.hero-search-results {
    display: none;
    position: absolute;
    z-index: 1400;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.site-search-results {
    top: calc(100% + 8px);
    right: 0;
    width: min(360px, 82vw);
}

.hero-search-results {
    top: calc(100% + 10px);
    left: 0;
    right: 0;
}

.site-search-results.open,
.hero-search-results.open {
    display: grid;
}

.site-search-results a,
.hero-search-results a,
.site-search-message {
    padding: 12px 14px;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--line);
}

.site-search-results a:last-child,
.hero-search-results a:last-child {
    border-bottom: 0;
}

.site-search-results a:hover,
.hero-search-results a:hover {
    background: var(--paper);
}

/* Hero */

.hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background:
        radial-gradient(circle at 82% 20%, rgba(242, 167, 43, 0.16), transparent 26%),
        linear-gradient(135deg, var(--charcoal), #273945);
}

.hero-inner {
    width: min(var(--max-width), calc(100% - 40px));
    min-height: 620px;
    margin-inline: auto;
    padding: 88px 0;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 70px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--amber-dark);
    font-size: 0.77rem;
    font-weight: 900;
    letter-spacing: 0.13em;
}

.hero .eyebrow,
.section-dark .eyebrow {
    color: var(--amber);
}

.hero h1 {
    margin: 0;
    font-size: clamp(3rem, 6vw, 5.75rem);
    line-height: 0.98;
    letter-spacing: -0.065em;
}

.hero-text {
    max-width: 720px;
    margin: 26px 0 30px;
    color: #d6e0e5;
    font-size: 1.12rem;
}

.hero-search-wrap {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 7px;
    max-width: 760px;
    padding: 7px;
    border-radius: 14px;
    background: var(--white);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}

.hero-search-wrap input {
    min-width: 0;
    padding: 14px 16px;
    border: 0;
    outline: none;
}

.hero-search-wrap button {
    padding: 13px 20px;
    border: 0;
    border-radius: 10px;
    color: var(--charcoal);
    background: var(--amber);
    font-weight: 850;
}

.hero-search-wrap button:hover {
    background: #ffb63d;
}

.search-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 17px;
    color: #b8c7cf;
    font-size: 0.88rem;
}

.search-examples a {
    color: var(--white);
}

.diagnostic-card {
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

.diagnostic-top,
.diagnostic-step {
    display: flex;
    align-items: center;
    gap: 14px;
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--success);
}

.diagnostic-top {
    padding-bottom: 18px;
    margin-bottom: 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.diagnostic-step > span {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    color: var(--charcoal);
    background: var(--amber);
    font-weight: 900;
}

.diagnostic-step small {
    display: block;
    color: #b8c7cf;
}

.diagnostic-line {
    width: 2px;
    height: 28px;
    margin: 6px 0 6px 21px;
    background: rgba(255, 255, 255, 0.15);
}

/* Main content */

.section {
    padding: 84px 0;
}

.section-muted {
    background: var(--paper);
}

.section-dark {
    color: var(--white);
    background: var(--charcoal);
}

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

.section-heading h2,
.split-section h2,
.tools-banner h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.section-heading > p {
    max-width: 470px;
    margin: 0;
    color: var(--muted);
}

.section-copy {
    color: var(--muted);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.category-card {
    min-height: 260px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.category-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 22px;
    border-radius: 14px;
    background: #fff1d4;
}

.category-card p {
    color: var(--muted);
}

.category-card span {
    color: var(--amber-dark);
    font-weight: 850;
}

.fault-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.fault-list a {
    display: grid;
    grid-template-columns: 110px 1fr auto;
    gap: 15px;
    align-items: center;
    padding: 18px 20px;
    border: 1px solid #dedbd4;
    border-radius: 12px;
    background: var(--white);
    text-decoration: none;
}

.fault-list a:hover {
    box-shadow: 0 8px 22px rgba(24, 33, 41, 0.06);
}

.fault-category {
    color: var(--blue);
    font-size: 0.79rem;
    font-weight: 900;
    text-transform: uppercase;
}

.split-section {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 70px;
}

.process-list {
    margin-top: 32px;
}

.process-list > div {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 18px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}

.process-list span {
    color: var(--amber-dark);
    font-weight: 900;
}

.process-list p {
    margin: 0;
    color: var(--muted);
}

.process-list strong {
    color: var(--ink);
}

.safety-card {
    padding: 34px;
    border-radius: 20px;
    color: var(--white);
    background: var(--charcoal-2);
}

.safety-icon {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    margin-bottom: 24px;
    border-radius: 14px;
    background: var(--danger);
    font-weight: 900;
}

.safety-card p {
    color: #d5dfe4;
}

.safety-card a {
    color: var(--amber);
    font-weight: 850;
}

.tools-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}

.tools-banner > div {
    max-width: 770px;
}

.tools-banner p {
    color: #c5d0d6;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 20px;
    border-radius: 11px;
    text-decoration: none;
    font-weight: 850;
}

.button-light,
.button-dark {
    color: var(--charcoal);
    background: var(--amber);
}

.latest-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.guide-card {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
}

.guide-card > span {
    color: var(--blue);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.guide-card h3 {
    margin: 10px 0;
    font-size: 1.35rem;
    line-height: 1.25;
}

.guide-card h3 a {
    text-decoration: none;
}

.guide-card p {
    margin: 0;
    color: var(--muted);
}

/* Floating share */

.share-container {
    width: 0;
    height: 0;
    padding: 0;
    margin: 0;
}

.share-wrap {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 1500;
    display: inline-block;
}

.share-btn {
    min-width: 92px;
    height: 48px;
    padding: 0 18px;
    border: 0;
    border-radius: 16px;
    color: var(--charcoal);
    background: var(--amber);
    box-shadow: var(--shadow);
    font-weight: 850;
}

.share-btn:hover {
    background: #ffb63d;
}

.share-menu {
    display: none;
    position: absolute;
    left: 0;
    bottom: calc(100% + 10px);
    min-width: 190px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.share-menu.open {
    display: grid;
    gap: 4px;
}

.share-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--ink);
    text-decoration: none;
}

.share-menu a:hover {
    background: var(--paper);
}

/* Footer */

.site-footer {
    color: #d8e2e7;
    background: #12191f;
}

.footer-grid {
    width: min(var(--max-width), calc(100% - 40px));
    margin-inline: auto;
    padding: 58px 0 36px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 40px;
}

.site-footer h3,
.site-footer h4 {
    color: var(--white);
}

.site-footer a {
    display: block;
    margin: 8px 0;
    color: #b9c7ce;
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--amber);
}

.copyright {
    margin: 0;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    color: #8fa1aa;
}

/* Back to top */

.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1500;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    color: var(--charcoal);
    background: var(--amber);
    box-shadow: var(--shadow);
    font-weight: 850;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition:
        opacity 0.2s ease,
        visibility 0.2s ease,
        transform 0.2s ease,
        background 0.2s ease;
}

.back-to-top:hover {
    background: #ffb63d;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Responsive */

@media (max-width: 980px) {
    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 18px 20px 22px;
        background: var(--charcoal);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav > a {
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown-toggle {
        width: 100%;
        justify-content: space-between;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-dropdown-menu {
        position: static;
        min-width: 0;
        padding: 6px 0 8px 14px;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
    }

    .nav-dropdown-menu a {
        padding: 9px 0;
    }

    .nav-search {
        margin: 14px 0 0;
    }

    .nav-search input {
        width: 100%;
    }

    .site-search-results {
        left: 0;
        right: 0;
        width: 100%;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 72px 0;
    }

    .category-grid,
    .latest-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .split-section {
        grid-template-columns: 1fr;
    }

    .tools-banner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 700px) {
    .container,
    .site-header-inner,
    .hero-inner,
    .top-partner-bar-inner,
    .footer-grid {
        width: min(100% - 28px, var(--max-width));
    }

    .top-partner-bar-inner {
        width: min(100% - 24px, var(--max-width));
        min-height: 46px;
        padding: 8px 0;
        justify-content: center;
        gap: 4px 10px;
        font-size: 0.84rem;
        line-height: 1.45;
        text-align: center;
    }

    .site-header-inner {
        min-height: 68px;
    }

    .hero-inner {
        padding: 58px 0;
    }

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

    .hero-search-wrap {
        grid-template-columns: 1fr;
    }

    .hero-search-wrap button {
        width: 100%;
    }

    .section {
        padding: 62px 0;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .category-grid,
    .fault-list,
    .latest-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .fault-list a {
        grid-template-columns: 1fr auto;
    }

    .fault-category {
        grid-column: 1 / -1;
    }

    .share-wrap {
        left: 14px;
        bottom: 14px;
    }

    .share-btn {
        min-width: 84px;
        height: 46px;
        padding: 0 16px;
    }

    .back-to-top {
        right: 14px;
        bottom: 14px;
        width: 46px;
        height: 46px;
    }
}
