/* ================================================================
   UstaRehber Garaj — "Karbon Atolye" Theme
   Dark carbon-fiber + amber instrument cluster + brushed steel
   ================================================================ */

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    /* Carbon / metal base */
    --bg-deep:       #0b0e13;
    --bg-body:       #101318;
    --bg-surface:    #161b23;
    --bg-card:       #1a2029;
    --bg-card-hover: #212a36;
    --bg-elevated:   #242d3a;

    /* Borders */
    --border:        #262f3c;
    --border-strong: #36404f;
    --border-glow:   rgba(224,160,48,0.18);

    /* Amber instrument */
    --amber:         #e0a030;
    --amber-bright:  #f2b84c;
    --amber-dim:     #a07020;
    --amber-glow:    rgba(224,160,48,0.12);

    /* Teal diagnostic */
    --teal:          #38bfa7;
    --teal-dim:      #267a6b;

    /* Text */
    --text:          #c5cdd8;
    --text-strong:   #eaf0f6;
    --text-muted:    #7a8694;
    --text-faint:    #505c6a;

    /* Semantic */
    --red:           #d94444;
    --red-bg:        rgba(217,68,68,0.10);
    --green:         #3bb56a;
    --green-bg:      rgba(59,181,106,0.10);
    --blue:          #4a8fd9;
    --blue-bg:       rgba(74,143,217,0.10);
    --warning-bg:    rgba(224,160,48,0.10);

    /* Surfaces */
    --font-sans:     "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-mono:     "Cascadia Code", "Consolas", "SF Mono", monospace;
    --radius-sm:     4px;
    --radius:        8px;
    --radius-lg:     14px;
    --radius-xl:     20px;
    --shadow-sm:     0 1px 3px rgba(0,0,0,0.4);
    --shadow:        0 4px 16px rgba(0,0,0,0.45);
    --shadow-lg:     0 8px 32px rgba(0,0,0,0.55);
    --shadow-glow:   0 0 20px rgba(224,160,48,0.08);
    --ease:          cubic-bezier(0.4, 0, 0.2, 1);
    --dur:           0.22s;
    --max-w:         1120px;
    --header-h:      68px;
}

html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-sans);
    background: var(--bg-body);
    color: var(--text);
    line-height: 1.75;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* --- Carbon-fiber texture overlay --- */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        repeating-conic-gradient(
            rgba(255,255,255,0.008) 0% 25%,
            transparent 0% 50%
        ) 0 0 / 6px 6px;
    pointer-events: none;
}

/* Subtle horizontal scan-line */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px,
        rgba(224,160,48,0.008) 3px,
        rgba(224,160,48,0.008) 4px
    );
    pointer-events: none;
}

/* ===================== SKIP LINK ===================== */
.skip-link {
    position: absolute;
    top: -120%;
    left: 1rem;
    background: var(--amber);
    color: var(--bg-deep);
    padding: 0.6rem 1.4rem;
    border-radius: var(--radius);
    font-weight: 700;
    z-index: 10000;
    text-decoration: none;
    transition: top 0.3s var(--ease);
}
.skip-link:focus { top: 0.6rem; }

/* ===================== FOCUS ===================== */
:focus-visible {
    outline: 2px solid var(--amber);
    outline-offset: 3px;
}

/* ===================== LINKS ===================== */
a {
    color: var(--amber);
    text-decoration: none;
    transition: color var(--dur) var(--ease);
}
a:hover {
    color: var(--amber-bright);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ===================== LAYOUT ===================== */
.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===================== HEADER ===================== */
.site-header {
    background: linear-gradient(180deg, #14181f 0%, var(--bg-surface) 100%);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 900;
    height: var(--header-h);
    display: flex;
    align-items: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

/* amber pin-stripe under header */
.site-header::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--amber-dim) 20%,
        var(--amber) 50%,
        var(--amber-dim) 80%,
        transparent 100%
    );
    opacity: 0.5;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: var(--text-strong);
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.site-logo:hover { color: var(--amber); text-decoration: none; }


/* --- Nav --- */
.main-nav { display: flex; align-items: center; }

.nav-list {
    display: flex;
    list-style: none;
    gap: 2px;
}

.nav-list a {
    display: block;
    padding: 0.5rem 0.9rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
    white-space: nowrap;
    position: relative;
}

.nav-list a:hover {
    color: var(--text-strong);
    background: var(--bg-card);
    text-decoration: none;
}

.nav-list a[aria-current="page"] {
    color: var(--amber);
    background: var(--amber-glow);
    text-decoration: none;
}
.nav-list a[aria-current="page"]::after {
    content: "";
    position: absolute;
    bottom: 2px;
    left: 25%;
    right: 25%;
    height: 2px;
    background: var(--amber);
    border-radius: 1px;
}

/* Hamburger */
.nav-toggle {
    display: none;
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    color: var(--text);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
    position: relative;
}
.nav-toggle:hover { border-color: var(--amber); }
.nav-toggle .hamburger-line {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle .hamburger-line:nth-child(1) { top: 11px; }
.nav-toggle .hamburger-line:nth-child(2) { top: 19px; }
.nav-toggle .hamburger-line:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    top: 19px;
    transform: translateX(-50%) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    top: 19px;
    transform: translateX(-50%) rotate(-45deg);
}

/* ===================== BREADCRUMBS ===================== */
.breadcrumbs {
    padding: 1rem 0 0.3rem;
    font-size: 0.8rem;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem; }
.breadcrumbs li::after {
    content: "\203A";
    margin-left: 0.45rem;
    color: var(--border-strong);
    font-weight: 300;
}
.breadcrumbs li:last-child::after { content: none; }
.breadcrumbs a { color: var(--text-faint); }
.breadcrumbs a:hover { color: var(--amber); text-decoration: none; }

/* ===================== MAIN ===================== */
main { flex: 1; padding: 2rem 0 3.5rem; }

/* ===================== TYPOGRAPHY ===================== */
h1, h2, h3, h4 {
    color: var(--text-strong);
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

h1 {
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    position: relative;
    padding-bottom: 0.75rem;
    margin-bottom: 1.3rem;
}
h1::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 3px;
    background: var(--amber);
    border-radius: 2px;
    box-shadow: 0 0 8px var(--amber-glow);
}

h2 {
    font-size: 1.45rem;
    font-weight: 700;
    margin-top: 2.4rem;
    margin-bottom: 0.8rem;
    padding-left: 1rem;
    border-left: 3px solid var(--amber);
    position: relative;
}
h2::before {
    content: "";
    position: absolute;
    left: -1px;
    top: -4px;
    bottom: -4px;
    width: 3px;
    background: var(--amber);
    filter: blur(4px);
    opacity: 0.4;
}

h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-top: 1.5rem;
    color: var(--amber);
}

p { margin-bottom: 1rem; }

/* ===================== CARDS / SECTIONS ===================== */
.content-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 1.6rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.content-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-glow), transparent);
}
.content-section:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow), var(--shadow-glow);
}

/* ===================== HERO ===================== */
.hero {
    background:
        radial-gradient(ellipse 80% 60% at 70% 30%, rgba(224,160,48,0.04) 0%, transparent 70%),
        linear-gradient(145deg, var(--bg-surface) 0%, var(--bg-card) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 3.2rem 2.5rem;
    margin-bottom: 2.2rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
/* Corner decorations — gauge arcs */
.hero::before {
    content: "";
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    border: 2px solid rgba(224,160,48,0.06);
    border-radius: 50%;
    pointer-events: none;
}
.hero::after {
    content: "";
    position: absolute;
    bottom: -80px;
    left: -40px;
    width: 250px;
    height: 250px;
    border: 1px solid rgba(56,191,167,0.04);
    border-radius: 50%;
    pointer-events: none;
}
.hero h1 { font-size: 2.3rem; }
.hero h1::after { width: 56px; }
.hero p {
    font-size: 1.08rem;
    color: var(--text-muted);
    max-width: 700px;
}

/* ===================== IMAGE PLACEHOLDER ===================== */
.img-placeholder {
    background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-card) 100%);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    margin: 1.2rem 0;
    position: relative;
}
.img-placeholder svg { width: 64px; height: 64px; opacity: 0.2; }

/* ===================== ARTICLE IMAGES ===================== */
.article-img {
    display: flex;
    gap: 1.8rem;
    align-items: flex-start;
    margin: 1.8rem 0;
}
.article-img img {
    width: 300px;
    max-width: 42%;
    height: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border-strong);
    flex-shrink: 0;
    object-fit: cover;
    box-shadow: var(--shadow-sm);
    transition: border-color var(--dur) var(--ease);
}
.article-img img:hover { border-color: var(--amber-dim); }
.article-img .article-img-text { flex: 1; }
.article-img-right { flex-direction: row-reverse; }

.article-img-standalone { display: block; margin: 1.5rem 0; }
.article-img-standalone img {
    width: 100%;
    max-width: 480px;
    height: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border-strong);
    object-fit: cover;
}

/* ===================== BLUEPRINT DIAGRAM ===================== */
.blueprint-diagram {
    background:
        linear-gradient(135deg, #0a0f16 0%, #111820 100%);
    border: 1px solid rgba(56,191,167,0.15);
    border-radius: var(--radius);
    padding: 1.8rem;
    margin: 1.5rem 0;
    position: relative;
    overflow: hidden;
}
.blueprint-diagram::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(56,191,167,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56,191,167,0.03) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}
.blueprint-diagram svg { width: 100%; height: auto; max-height: 200px; position: relative; z-index: 1; }
.blueprint-diagram img { width: 100%; height: auto; max-height: 200px; position: relative; z-index: 1; display: block; }

/* ===================== SYMPTOM SELECTOR ===================== */
.symptom-selector { background: var(--bg-card); }

.symptom-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.2rem 0;
}

.symptom-btn {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.6rem 1.3rem;
    border-radius: 100px;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
    font-family: var(--font-sans);
    transition: all var(--dur) var(--ease);
    position: relative;
    overflow: hidden;
}
.symptom-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--amber-glow), transparent);
    opacity: 0;
    transition: opacity var(--dur) var(--ease);
}
.symptom-btn:hover::before,
.symptom-btn.active::before { opacity: 1; }
.symptom-btn:hover {
    border-color: var(--amber-dim);
    color: var(--text-strong);
    transform: translateY(-1px);
}
.symptom-btn.active {
    border-color: var(--amber);
    color: var(--amber);
    box-shadow: 0 0 12px var(--amber-glow);
}

.symptom-result {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--amber-dim);
    border-radius: var(--radius);
    padding: 1.4rem 1.6rem;
    margin-top: 1rem;
    min-height: 60px;
    display: none;
    animation: slideReveal 0.35s var(--ease);
}
.symptom-result.visible { display: block; }

/* ===================== INDICATOR LIGHTS ===================== */
.indicator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.indicator-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.3rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.indicator-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.indicator-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid;
    position: relative;
}
/* pulsing glow on red icons */
.indicator-icon.red {
    border-color: var(--red);
    color: var(--red);
    box-shadow: 0 0 12px rgba(217,68,68,0.15);
}
.indicator-icon.amber {
    border-color: var(--amber);
    color: var(--amber);
    box-shadow: 0 0 12px var(--amber-glow);
}
.indicator-icon.green { border-color: var(--green); color: var(--green); }
.indicator-icon.blue  { border-color: var(--blue);  color: var(--blue);  }
.indicator-icon svg { width: 24px; height: 24px; }
.indicator-icon img { width: 24px; height: 24px; object-fit: contain; }

.indicator-info h3 { font-size: 0.95rem; margin-top: 0; margin-bottom: 0.25rem; }
.indicator-info p { font-size: 0.86rem; color: var(--text-muted); margin-bottom: 0; }

/* Severity badge */
.severity {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.15rem 0.55rem;
    border-radius: 100px;
    margin-bottom: 0.35rem;
}
.severity.critical { background: var(--red-bg); color: var(--red); }
.severity.warning  { background: var(--warning-bg); color: var(--amber); }
.severity.info     { background: var(--blue-bg); color: var(--blue); }

/* ===================== LINK CARDS ===================== */
.link-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.link-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.6rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all var(--dur) var(--ease);
}
.link-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--amber-dim);
    transition: background var(--dur) var(--ease), width var(--dur) var(--ease);
}
.link-card:hover::before {
    background: var(--amber);
    box-shadow: 0 0 8px var(--amber-glow);
}
.link-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
}
.link-card h3 { margin-top: 0; color: var(--text-strong); font-size: 1.05rem; }
.link-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0; flex: 1; }

/* ===================== RELATED CONTENT ===================== */
.related-content {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.8rem;
    margin-top: 3rem;
}
.related-content h2 { border-left: none; padding-left: 0; margin-top: 0; font-size: 1.15rem; }
.related-content h2::before { display: none; }

.related-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.5rem;
}
.related-list li a {
    display: block;
    padding: 0.7rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    color: var(--text);
    transition: all var(--dur) var(--ease);
}
.related-list li a:hover {
    background: var(--bg-card-hover);
    border-color: var(--amber-dim);
    color: var(--amber);
    text-decoration: none;
    transform: translateX(3px);
}

/* ===================== FAQ ACCORDION ===================== */
.faq-list { margin: 1.5rem 0; }

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
    overflow: hidden;
    transition: border-color var(--dur) var(--ease);
}
.faq-item:hover { border-color: var(--border-strong); }
.faq-item.open { border-color: var(--amber-dim); }

.faq-question {
    width: 100%;
    background: var(--bg-card);
    border: none;
    color: var(--text-strong);
    padding: 1.1rem 1.4rem;
    font-size: 0.98rem;
    font-weight: 600;
    font-family: var(--font-sans);
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: background var(--dur) var(--ease);
}
.faq-question:hover { background: var(--bg-card-hover); }

.faq-question::after {
    content: "+";
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--amber-dim);
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border);
    transition: all var(--dur) var(--ease);
}
.faq-item.open .faq-question::after {
    content: "\2212";
    color: var(--amber);
    border-color: var(--amber-dim);
    background: var(--amber-glow);
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease);
}
.faq-answer-inner {
    padding: 0 1.4rem 1.4rem;
    color: var(--text);
    font-size: 0.94rem;
    border-top: 1px solid var(--border);
    margin-top: 0;
    padding-top: 1.2rem;
}
.faq-item.open .faq-answer { max-height: 600px; }

/* ===================== DISCLAIMER ===================== */
.disclaimer {
    background: linear-gradient(135deg, rgba(224,160,48,0.04), rgba(56,191,167,0.03));
    border: 1px solid var(--border);
    border-left: 3px solid var(--amber-dim);
    border-radius: var(--radius);
    padding: 1rem 1.4rem;
    margin: 2rem 0;
    font-size: 0.86rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ===================== CONTACT FORM ===================== */
.contact-form-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    margin: 2rem auto;
    max-width: 680px;
    box-shadow: var(--shadow);
}
.contact-form-section h2 {
    text-align: center;
    border-left: none;
    padding-left: 0;
    margin-top: 0;
}
.contact-form-section h2::before { display: none; }
.contact-form-section > p {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 1.8rem;
}
.contact-form { max-width: 100%; margin: 0 auto; }

.form-group { margin-bottom: 1.3rem; }
.form-group label {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--text-strong);
    font-size: 0.88rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.form-group label .required { color: var(--red); margin-left: 0.15rem; }

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--amber);
    outline: none;
    box-shadow: 0 0 0 3px var(--amber-glow);
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-faint); }

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-bottom: 1.3rem;
}
.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 0.2rem;
    flex-shrink: 0;
    accent-color: var(--amber);
}
.form-checkbox label {
    font-size: 0.86rem;
    color: var(--text-muted);
    cursor: pointer;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 400;
}

.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

.btn-submit {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, var(--amber) 0%, var(--amber-dim) 100%);
    color: var(--bg-deep);
    border: none;
    padding: 0.8rem 2.2rem;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--dur) var(--ease);
    box-shadow: var(--shadow-sm);
}
.btn-submit:hover {
    background: linear-gradient(135deg, var(--amber-bright) 0%, var(--amber) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow), 0 0 16px var(--amber-glow);
}
.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.form-message {
    padding: 0.9rem 1.2rem;
    border-radius: var(--radius);
    margin-top: 1.2rem;
    font-size: 0.9rem;
    display: none;
}
.form-message.success {
    display: block;
    background: var(--green-bg);
    border: 1px solid var(--green);
    color: var(--green);
}
.form-message.error {
    display: block;
    background: var(--red-bg);
    border: 1px solid var(--red);
    color: var(--red);
}

/* ===================== CONTACT INFO ===================== */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.8rem;
    margin: 1.5rem 0;
}
.contact-item {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.1rem 1.3rem;
    transition: border-color var(--dur) var(--ease);
}
.contact-item:hover { border-color: var(--border-strong); }
.contact-item h3,
.contact-item strong {
    display: block;
    color: var(--amber);
    margin-bottom: 0.3rem;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
}
.contact-item p,
.contact-item span { color: var(--text); font-size: 0.94rem; }

/* ===================== FOOTER ===================== */
.site-footer {
    background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-deep) 100%);
    border-top: 1px solid var(--border);
    padding: 2.5rem 0 0;
    margin-top: auto;
    position: relative;
}
/* amber line on top of footer */
.site-footer::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--amber-dim) 25%,
        var(--amber) 50%,
        var(--amber-dim) 75%,
        transparent 100%
    );
    opacity: 0.35;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.footer-about p { font-size: 0.86rem; color: var(--text-muted); line-height: 1.6; }

.footer-links h4,
.footer-legal h4 {
    color: var(--amber);
    font-size: 0.78rem;
    margin-bottom: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}
.footer-links ul, .footer-legal ul { list-style: none; }
.footer-links li, .footer-legal li { margin-bottom: 0.35rem; }
.footer-links a, .footer-legal a {
    color: var(--text-muted);
    font-size: 0.86rem;
    transition: color var(--dur) var(--ease), transform var(--dur) var(--ease);
    display: inline-block;
}
.footer-links a:hover, .footer-legal a:hover {
    color: var(--text-strong);
    transform: translateX(3px);
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 1.2rem 0;
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-faint);
    letter-spacing: 0.02em;
}

/* ===================== COOKIE BANNER ===================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: linear-gradient(180deg, var(--bg-surface), var(--bg-card));
    border-top: 1px solid var(--border);
    padding: 1.3rem 1.5rem;
    box-shadow: 0 -6px 30px rgba(0,0,0,0.5);
    display: none;
    animation: slideUp 0.35s var(--ease);
}
.cookie-banner.visible { display: block; }

.cookie-banner-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.cookie-text {
    flex: 1;
    min-width: 280px;
    font-size: 0.88rem;
    color: var(--text);
}
.cookie-text a { color: var(--amber); }

.cookie-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.6rem 1.3rem;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-family: var(--font-sans);
    font-weight: 700;
    cursor: pointer;
    transition: all var(--dur) var(--ease);
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cookie-btn-accept {
    background: var(--green);
    color: #fff;
    border: 1px solid var(--green);
}
.cookie-btn-accept:hover {
    background: #44c878;
    box-shadow: 0 0 12px rgba(59,181,106,0.25);
}

.cookie-btn-reject {
    background: var(--red);
    color: #fff;
    border: 1px solid var(--red);
}
.cookie-btn-reject:hover {
    background: #e05555;
    box-shadow: 0 0 12px rgba(217,68,68,0.25);
}

.cookie-btn-settings {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-strong);
}
.cookie-btn-settings:hover {
    border-color: var(--amber);
    color: var(--amber);
}

.cookie-btn:hover { transform: translateY(-1px); }

/* Cookie Settings Modal */
.cookie-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.cookie-modal-overlay.visible { display: flex; }

.cookie-modal {
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 2.2rem;
    max-width: 520px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}
.cookie-modal h2 {
    border-left: none;
    padding-left: 0;
    margin-top: 0;
    font-size: 1.25rem;
}
.cookie-modal h2::before { display: none; }

.cookie-category {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.1rem;
    margin-bottom: 0.7rem;
}
.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cookie-category-header strong { color: var(--text-strong); font-size: 0.92rem; }
.cookie-category p { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.4rem; margin-bottom: 0; }

.cookie-toggle { position: relative; width: 46px; height: 26px; }
.cookie-toggle input { opacity: 0; width: 0; height: 0; }
.cookie-toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--border-strong);
    border-radius: 13px;
    cursor: pointer;
    transition: background var(--dur) var(--ease);
}
.cookie-toggle-slider::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: var(--text);
    border-radius: 50%;
    transition: transform var(--dur) var(--ease);
}
.cookie-toggle input:checked + .cookie-toggle-slider { background: var(--green); }
.cookie-toggle input:checked + .cookie-toggle-slider::before { transform: translateX(20px); }
.cookie-toggle input:disabled + .cookie-toggle-slider { opacity: 0.5; cursor: not-allowed; }

.cookie-modal-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.3rem;
    justify-content: flex-end;
}

/* ===================== PROCESS STEPS ===================== */
.process-steps {
    position: relative;
    padding-left: 2.2rem;
    margin: 1.5rem 0;
}
.process-steps::before {
    content: "";
    position: absolute;
    left: 0.7rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--amber), var(--teal-dim));
    border-radius: 1px;
}
.process-step {
    position: relative;
    margin-bottom: 1.5rem;
    padding-left: 1.2rem;
}
.process-step::before {
    content: "";
    position: absolute;
    left: -1.8rem;
    top: 0.5rem;
    width: 14px;
    height: 14px;
    background: var(--amber);
    border: 3px solid var(--bg-card);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--amber-glow);
}
.process-step h3 { margin-top: 0; }

/* ===================== 404 ===================== */
.error-page {
    text-align: center;
    padding: 4rem 1rem;
}
.error-page h1 {
    font-size: 6rem;
    font-weight: 900;
    color: var(--amber-dim);
    text-shadow: 0 0 30px var(--amber-glow);
}
.error-page h1::after { display: none; }
.error-page p { font-size: 1.05rem; color: var(--text-muted); }

.btn-home {
    display: inline-block;
    background: linear-gradient(135deg, var(--amber) 0%, var(--amber-dim) 100%);
    color: var(--bg-deep);
    padding: 0.75rem 2rem;
    border-radius: var(--radius);
    font-weight: 700;
    text-decoration: none;
    margin-top: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: all var(--dur) var(--ease);
    box-shadow: var(--shadow-sm);
}
.btn-home:hover {
    background: linear-gradient(135deg, var(--amber-bright) 0%, var(--amber) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow), 0 0 16px var(--amber-glow);
    text-decoration: none;
    color: var(--bg-deep);
}

/* ===================== SITEMAP ===================== */
.sitemap-columns {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
}
.sitemap-columns ul { list-style: none; }
.sitemap-columns li { margin-bottom: 0.45rem; }

/* ===================== LEGAL ===================== */
.legal-content h2 { font-size: 1.25rem; }
.legal-content p, .legal-content li { font-size: 0.94rem; color: var(--text); }
.legal-content ul, .legal-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-content li { margin-bottom: 0.3rem; }

/* ===================== ARTICLE META (author + date) ===================== */
.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.2rem;
    padding: 1rem 0;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.84rem;
    color: var(--text-muted);
}
.article-meta-author {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 2px solid var(--border-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.author-avatar svg {
    width: 20px;
    height: 20px;
    opacity: 0.5;
}
.author-name {
    color: var(--text-strong);
    font-weight: 600;
}
.author-role {
    font-size: 0.78rem;
    color: var(--text-faint);
}
.article-meta-date {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.article-meta-date svg {
    width: 14px;
    height: 14px;
    opacity: 0.5;
}

/* ===================== AUTHOR BOX (end of article) ===================== */
.author-box {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.4rem;
    margin: 2rem 0;
}
.author-box-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 2px solid var(--amber-dim);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.author-box-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.author-box-avatar svg {
    width: 28px;
    height: 28px;
    opacity: 0.4;
}
.author-box-info h4 {
    margin-bottom: 0.2rem;
    color: var(--text-strong);
    font-size: 0.95rem;
}
.author-box-info .author-title {
    font-size: 0.8rem;
    color: var(--amber);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.4rem;
}
.author-box-info p {
    font-size: 0.86rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* ===================== TESTIMONIALS ===================== */
.testimonials-section {
    margin: 2.5rem 0;
}
.testimonials-section h2 {
    border-left: none;
    padding-left: 0;
    text-align: center;
    margin-bottom: 0.4rem;
}
.testimonials-section h2::before { display: none; }
.testimonials-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 1.5rem;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    position: relative;
    transition: border-color var(--dur) var(--ease);
}
.testimonial-card:hover { border-color: var(--border-strong); }

/* quote mark */
.testimonial-card::before {
    content: "\201C";
    position: absolute;
    top: 0.6rem;
    right: 1.2rem;
    font-size: 3rem;
    line-height: 1;
    color: var(--amber-dim);
    opacity: 0.25;
    font-family: Georgia, serif;
}

.testimonial-text {
    font-size: 0.92rem;
    color: var(--text);
    line-height: 1.65;
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}
.testimonial-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 1px solid var(--border-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.testimonial-author-avatar svg {
    width: 20px;
    height: 20px;
    opacity: 0.4;
}
.testimonial-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.testimonial-author-name {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-strong);
}
.testimonial-author-detail {
    font-size: 0.78rem;
    color: var(--text-faint);
}

.testimonial-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 0.6rem;
}
.testimonial-stars svg {
    width: 16px;
    height: 16px;
    fill: var(--amber);
}

/* ===================== STATS BAR ===================== */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
    text-align: center;
}
.stat-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.3rem 1rem;
    transition: border-color var(--dur) var(--ease);
}
.stat-item:hover { border-color: var(--amber-dim); }
.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--amber);
    line-height: 1.2;
}
.stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.3rem;
}

/* ===================== TRUST BADGES ===================== */
.trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    padding: 1.5rem 0;
    margin: 1rem 0;
}
.trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.trust-badge-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    display: flex;
    align-items: center;
    justify-content: center;
}
.trust-badge-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--amber);
    fill: none;
    stroke-width: 1.5;
}
.trust-badge-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

@media (max-width: 700px) {
    .article-meta { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
    .author-box { flex-direction: column; text-align: center; align-items: center; }
    .testimonial-grid { grid-template-columns: 1fr; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
}

/* ===================== UTILITY ===================== */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }

/* ===================== ANIMATIONS ===================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}
@keyframes slideReveal {
    from { opacity: 0; transform: translateX(-8px); }
    to   { opacity: 1; transform: translateX(0); }
}

.fade-in { animation: fadeIn 0.45s var(--ease) both; }

/* ===================== REDUCED MOTION ===================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .hero { padding: 2.2rem 1.8rem; }
    .hero h1 { font-size: 1.9rem; }
}

@media (max-width: 700px) {
    .nav-toggle { display: block; }
    .nav-list {
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: var(--bg-surface);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 0.8rem;
        box-shadow: var(--shadow-lg);
        visibility: hidden;
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
    }
    .nav-list.open {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }
    .nav-list a {
        padding: 0.8rem 1.2rem;
        border-radius: var(--radius-sm);
    }
    .footer-inner { grid-template-columns: 1fr; }
    .indicator-grid { grid-template-columns: 1fr; }
    .link-cards { grid-template-columns: 1fr; }
    h1 { font-size: 1.65rem; }
    h2 { font-size: 1.25rem; }
    .cookie-banner-inner { flex-direction: column; align-items: stretch; }
    .cookie-buttons { justify-content: stretch; }
    .cookie-btn { flex: 1; text-align: center; }
}

@media (max-width: 600px) {
    .article-img { flex-direction: column; }
    .article-img img { width: 100%; max-width: 100%; }
    .article-img-right { flex-direction: column; }
}

@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    .content-section { padding: 1.3rem; }
    .hero { padding: 1.6rem 1.2rem; }
    .related-list { grid-template-columns: 1fr; }
    .contact-info { grid-template-columns: 1fr; }
}
