/**
 * TECHNOPROEKT — Common Styles
 *
 * CSS Variables, reset, typography, buttons, forms, sections, utilities
 *
 * @package Technoproekt
 */

/* ==========================================================================
   CSS Variables
   ========================================================================== */

:root {
    /* Primary palette */
    --tp-green-dark: #1A3D18;
    --tp-green-main: #2D5A27;
    --tp-green-accent: #4A8A42;
    --tp-green-light: #6BAA62;

    /* Yellow accent */
    --tp-yellow: #E8D52F;
    --tp-yellow-bright: #F5E54A;

    /* Neutrals */
    --tp-cream: #F7F5F0;
    --tp-cream-warm: #EDE9E0;
    --tp-dark: #0F1A0E;
    --tp-white: #FFFFFF;

    /* Text */
    --tp-text: #1C2B1A;
    --tp-text-light: #5A6858;

    /* Status */
    --tp-danger: #E74C3C;
    --tp-danger-dark: #c0392b;
    --tp-success-bg: rgba(45, 90, 39, 0.1);
    --tp-danger-bg: rgba(231, 76, 60, 0.1);

    /* Callout palette */
    --tp-callout-info: #3498DB;
    --tp-callout-info-dark: #2471A3;
    --tp-callout-info-bg: #EBF5FB;
    --tp-callout-warning: #F1C40F;
    --tp-callout-warning-icon: #D4AC0D;
    --tp-callout-warning-dark: #7D6608;
    --tp-callout-warning-bg: #FEF9E7;
    --tp-callout-danger-bg: #FDEDEC;
    --tp-callout-danger-dark: #922B21;
    --tp-callout-tip-bg: #EAFAF1;

    /* Borders & muted text */
    --tp-border-light: #eeeeee;
    --tp-text-muted: #999999;
    --tp-text-hint: #aaaaaa;

    /* Badge/tag colors */
    --tp-hazard-1: #c62828;
    --tp-hazard-2: #e65100;
    --tp-precursor-text: #8a7a10;
    --tp-badge-certificate: #2C5F8A;
    --tp-badge-gold: #8B6914;
    --tp-badge-sro: #8B7A00;

    /* Sidebar */
    --tp-sidebar-active-bg: rgba(45, 90, 39, 0.04);

    /* Table */
    --tp-table-header-bg: #F8F9FA;
    --tp-table-border: #DEE2E6;

    /* License card */
    --tp-license-shadow: rgba(0, 0, 0, 0.08);
    --tp-license-border-light: rgba(0, 0, 0, 0.08);
    --tp-license-border-dashed: rgba(0, 0, 0, 0.12);
    --tp-license-thumb-hover-shadow: rgba(0, 0, 0, 0.1);
    --tp-license-thumb-overlay: rgba(45, 90, 39, 0.15);
    --tp-license-more-hover-bg: rgba(45, 90, 39, 0.04);
    --tp-badge-license-bg: rgba(45, 90, 39, 0.1);
    --tp-badge-certificate-bg: rgba(44, 95, 138, 0.1);
    --tp-badge-gold-bg: rgba(184, 134, 11, 0.1);
    --tp-badge-sro-bg: rgba(232, 213, 47, 0.15);
    --tp-license-number-bg: rgba(45, 90, 39, 0.06);

    /* Semi-transparent white (for dark backgrounds) */
    --tp-white-05: rgba(255, 255, 255, 0.05);
    --tp-white-08: rgba(255, 255, 255, 0.08);
    --tp-white-10: rgba(255, 255, 255, 0.1);
    --tp-white-20: rgba(255, 255, 255, 0.2);
    --tp-white-30: rgba(255, 255, 255, 0.3);
    --tp-white-40: rgba(255, 255, 255, 0.4);
    --tp-white-50: rgba(255, 255, 255, 0.5);
    --tp-white-60: rgba(255, 255, 255, 0.6);
    --tp-white-70: rgba(255, 255, 255, 0.7);
    --tp-white-80: rgba(255, 255, 255, 0.8);
    --tp-white-85: rgba(255, 255, 255, 0.85);
    --tp-white-90: rgba(255, 255, 255, 0.9);

    /* Semi-transparent black (for overlays, borders) */
    --tp-black-05: rgba(0, 0, 0, 0.05);
    --tp-black-06: rgba(0, 0, 0, 0.06);
    --tp-black-10: rgba(0, 0, 0, 0.1);
    --tp-black-15: rgba(0, 0, 0, 0.15);
    --tp-black-20: rgba(0, 0, 0, 0.2);
    --tp-black-30: rgba(0, 0, 0, 0.3);
    --tp-black-50: rgba(0, 0, 0, 0.5);
    --tp-black-70: rgba(0, 0, 0, 0.7);
    --tp-black-80: rgba(0, 0, 0, 0.8);
    --tp-black-92: rgba(0, 0, 0, 0.92);

    /* Utilities */
    --tp-radius-sm: 4px;
    --tp-radius-md: 8px;
    --tp-radius-lg: 12px;
    --tp-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --tp-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --tp-transition: 0.3s ease;
}

/* ==========================================================================
   Reset
   ========================================================================== */

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

/* ==========================================================================
   Base
   ========================================================================== */

html {
    overflow-x: hidden;
    touch-action: pan-x pan-y;
}

body {
    font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--tp-text);
    background: var(--tp-cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    touch-action: pan-x pan-y;
    hyphens: auto;
    -webkit-hyphens: auto;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--tp-transition);
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6,
.tp-title {
    font-family: 'Unbounded', system-ui, sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--tp-text);
}

h1, .tp-h1 {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -1px;
}

h2, .tp-h2 {
    font-size: clamp(24px, 4vw, 36px);
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

h3, .tp-h3 {
    font-size: clamp(18px, 2.5vw, 24px);
    text-transform: uppercase;
}

h4, .tp-h4 {
    font-size: clamp(14px, 1.5vw, 16px);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

p {
    margin-bottom: 1em;
}

p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Content links (inside text-editor widgets)
   ========================================================================== */

.elementor-widget-text-editor a:not(.tp-btn-primary):not(.tp-btn-secondary):not(.tp-btn-outline),
.tp-legacy-content a:not(.tp-btn-primary):not(.tp-btn-secondary):not(.tp-btn-outline) {
    color: var(--tp-green-dark);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--tp-yellow);
    text-underline-offset: 3px;
    text-decoration-thickness: 2px;
    transition: color 0.2s, text-decoration-color 0.2s;
}

.elementor-widget-text-editor a:not(.tp-btn-primary):not(.tp-btn-secondary):not(.tp-btn-outline):hover,
.tp-legacy-content a:not(.tp-btn-primary):not(.tp-btn-secondary):not(.tp-btn-outline):hover {
    color: var(--tp-green-main);
    text-decoration-color: var(--tp-green-main);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.tp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    font-family: 'IBM Plex Sans', system-ui, sans-serif;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--tp-transition);
    white-space: nowrap;
}

/* Primary (yellow CTA — clip-path cut corner) */
.tp-btn--primary {
    background: var(--tp-yellow);
    color: var(--tp-dark);
    font-weight: 700;
    clip-path: polygon(0 0, 100% 0, 100% 70%, 92% 100%, 0 100%);
}

.tp-btn--primary:hover {
    background: var(--tp-yellow-bright);
    transform: translateX(5px);
}

/* Secondary (green — clip-path cut corner) */
.tp-btn--secondary {
    background: var(--tp-green-main);
    color: var(--tp-white);
    clip-path: polygon(0 0, 100% 0, 100% 70%, 95% 100%, 0 100%);
}

.tp-btn--secondary:hover {
    background: var(--tp-green-dark);
}

/* Outline (no clip-path, just border) */
.tp-btn--outline {
    background: transparent;
    color: var(--tp-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 18px 40px;
}

.tp-btn--outline:hover {
    border-color: var(--tp-yellow);
    color: var(--tp-yellow);
}

/* Arrow icon inside button */
.tp-btn__arrow {
    font-size: 18px;
    transition: transform 0.3s;
}

.tp-btn:hover .tp-btn__arrow {
    transform: translateX(4px);
}

/* Sizes */
.tp-btn--sm {
    padding: 10px 20px;
    font-size: 12px;
}

.tp-btn--lg {
    padding: 20px 40px;
    font-size: 14px;
}

/* ==========================================================================
   Forms
   ========================================================================== */

.tp-form-group {
    margin-bottom: 12px;
}

.tp-form-group:last-child {
    margin-bottom: 0;
}

/* Remove inner <p> margin to avoid double spacing with .tp-form-group margin */
.tp-form-group > p {
    margin-bottom: 0;
}

.tp-form-group label,
.tp-passport-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--tp-text);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.tp-input {
    width: 100%;
    padding: 16px;
    font-family: inherit;
    font-size: 15px;
    color: var(--tp-text);
    background: var(--tp-cream);
    border: 2px solid var(--tp-cream-warm);
    border-radius: var(--tp-radius-sm);
    transition: all var(--tp-transition);
}

.tp-input:focus {
    outline: none;
    border-color: var(--tp-green-main);
    background: var(--tp-white);
}

.tp-input::placeholder {
    color: var(--tp-text-light);
}

.tp-textarea {
    resize: vertical;
    min-height: 120px;
}

/* ==========================================================================
   Contact Form 7 — styled to match design system
   ========================================================================== */

/* Inputs & textareas */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
    width: 100%;
    padding: 16px;
    font-family: 'IBM Plex Sans', system-ui, sans-serif;
    font-size: 15px;
    color: var(--tp-text);
    background: var(--tp-cream);
    border: 2px solid var(--tp-cream-warm);
    border-radius: 0;
    transition: all 0.2s;
    -webkit-appearance: none;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 textarea:focus {
    outline: none;
    border-color: var(--tp-green-main);
    background: var(--tp-white);
}

.wpcf7 textarea {
    resize: vertical;
    min-height: 100px;
}

/* Submit button in CF7 */
.wpcf7 input[type="submit"],
.wpcf7 .wpcf7-submit {
    width: 100%;
    background: var(--tp-green-main);
    color: var(--tp-white);
    padding: 18px;
    border: none;
    font-family: 'IBM Plex Sans', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    clip-path: polygon(0 0, 100% 0, 100% 70%, 95% 100%, 0 100%);
    -webkit-appearance: none;
}

.wpcf7 input[type="submit"]:hover,
.wpcf7 .wpcf7-submit:hover {
    background: var(--tp-green-dark);
}

/* Acceptance checkbox */
.wpcf7 .wpcf7-acceptance {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.wpcf7 .wpcf7-acceptance input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--tp-green-main);
    margin-top: 2px;
    flex-shrink: 0;
}

.wpcf7 .wpcf7-acceptance .wpcf7-list-item-label {
    font-size: 12px !important;
    color: var(--tp-text-light) !important;
    text-transform: none !important;
    font-weight: 400 !important;
    font-family: 'IBM Plex Sans', system-ui, sans-serif !important;
    letter-spacing: 0 !important;
}

/* Privacy / disclaimer note below form */
.tp-cta__form-note {
    font-size: 12px !important;
    color: var(--tp-text-light) !important;
    text-align: center;
    line-height: 1.5;
    margin-top: 16px !important;
    margin-bottom: 0 !important;
}

.tp-cta__form-note br {
    display: none;
}

.tp-cta__form-note a {
    color: var(--tp-green-main);
    text-decoration: underline;
}

/* Radio buttons (passport toggle) */
.tp-passport-buttons p {
    margin: 0;
}

.tp-passport-buttons p br {
    display: none;
}

.tp-passport-buttons .wpcf7-radio {
    display: flex;
    gap: 12px;
    width: 100%;
}

/* CF7 v6+: no <label> wrapper, style .wpcf7-list-item directly */
.tp-passport-buttons .wpcf7-list-item {
    flex: 1;
    margin: 0;
    display: block;
    position: relative;
    padding: 16px 20px;
    border: 2px solid var(--tp-cream-warm);
    background: var(--tp-cream);
    color: var(--tp-text-light);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.tp-passport-buttons .wpcf7-list-item:hover {
    border-color: var(--tp-green-main);
    background: var(--tp-cream);
}

/* Radio input covers entire button area but invisible — allows clicking anywhere to select */
.tp-passport-buttons .wpcf7-list-item input[type="radio"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    margin: 0;
}

.tp-passport-buttons .wpcf7-list-item:has(input:checked) {
    border-color: var(--tp-green-main);
    background: var(--tp-green-main);
    color: var(--tp-white);
}

.tp-passport-buttons .wpcf7-list-item:has(input:checked) .wpcf7-list-item-label {
    color: var(--tp-white);
}

/* Form row (2-column) */
.tp-cta__form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 769px) {
    .tp-cta__form-row {
        grid-template-columns: 1fr 1fr;
    }
}

/* Validation */
.wpcf7-not-valid {
    border-color: var(--tp-danger) !important;
}

.wpcf7-not-valid-tip {
    font-size: 12px;
    color: var(--tp-danger);
    margin-top: 4px;
}

/* Response messages */
.wpcf7-response-output {
    margin: 16px 0 0 !important;
    padding: 16px !important;
    border-radius: 0 !important;
    font-size: 14px;
}

.wpcf7 form.sent .wpcf7-response-output {
    border-color: var(--tp-green-main) !important;
    background: var(--tp-success-bg);
    color: var(--tp-green-dark);
}

.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.invalid .wpcf7-response-output {
    border-color: var(--tp-danger) !important;
    background: var(--tp-danger-bg);
    color: var(--tp-danger-dark);
}

/* Privacy/disclaimer note below form */
.tp-privacy-note {
    font-size: 12px !important;
    color: var(--tp-text-light) !important;
    text-align: center;
    margin-top: 16px;
    line-height: 1.5;
}

.tp-privacy-note a {
    color: var(--tp-green-main);
    text-decoration: underline;
}

/* ==========================================================================
   Hero Form — compact layout (inside tp-hero__form)
   ========================================================================== */

.tp-hero-form .tp-form-group {
    margin-bottom: 10px;
}

.tp-hero-form .tp-form-group.tp-checkbox {
    margin-top: 8px;
    margin-bottom: 8px;
}

/* Kill ALL <p> margins inside hero CF7 form — CF7 wraps every field in <p> */
.tp-hero-form p {
    margin-bottom: 0 !important;
}

/* CF7 response output — force hidden until form submit (prevents ~48px ghost gap) */
.tp-hero-form .wpcf7-response-output,
.tp-hero__form .wpcf7-response-output {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

/* Show response only after submit (sent/failed/invalid) */
.tp-hero-form .wpcf7 form.sent .wpcf7-response-output,
.tp-hero-form .wpcf7 form.failed .wpcf7-response-output,
.tp-hero-form .wpcf7 form.invalid .wpcf7-response-output,
.tp-hero__form .wpcf7 form.sent .wpcf7-response-output,
.tp-hero__form .wpcf7 form.failed .wpcf7-response-output,
.tp-hero__form .wpcf7 form.invalid .wpcf7-response-output {
    display: block !important;
    margin: 10px 0 0 !important;
    padding: 12px !important;
    border: 2px solid !important;
}

/* ==========================================================================
   CTA Form — compact layout (inside tp-cta__form)
   ========================================================================== */

.tp-cta-form .tp-form-group {
    margin-bottom: 10px;
}

/* Kill CF7 <p> margins inside CTA form */
.tp-cta-form p {
    margin-bottom: 0 !important;
}

/* CF7 response output — force hidden until form submit */
.tp-cta-form .wpcf7-response-output,
.tp-cta__form .wpcf7-response-output {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.tp-cta-form .wpcf7 form.sent .wpcf7-response-output,
.tp-cta-form .wpcf7 form.failed .wpcf7-response-output,
.tp-cta-form .wpcf7 form.invalid .wpcf7-response-output,
.tp-cta__form .wpcf7 form.sent .wpcf7-response-output,
.tp-cta__form .wpcf7 form.failed .wpcf7-response-output,
.tp-cta__form .wpcf7 form.invalid .wpcf7-response-output {
    display: block !important;
    margin: 10px 0 0 !important;
    padding: 12px !important;
    border: 2px solid !important;
}

/* Textarea in CTA form — limit height */
.tp-cta-form .wpcf7 textarea,
.tp-cta__form .wpcf7 textarea {
    min-height: 80px;
    height: 100px;
}

/* Spinner — hidden by default, shown only during submit */
.wpcf7-spinner {
    display: none !important;
    margin: 0 !important;
    height: 0 !important;
}

.wpcf7 form.submitting .wpcf7-spinner {
    display: block !important;
    margin: 16px auto 0 !important;
    height: auto !important;
}

.tp-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.tp-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--tp-green-main);
    margin-top: 2px;
}

.tp-checkbox span {
    font-size: 14px;
    color: var(--tp-text-light);
}

.tp-checkbox a {
    color: var(--tp-green-main);
    text-decoration: underline;
}

/* ==========================================================================
   Sections
   ========================================================================== */

.tp-section {
    padding: 60px 20px;
}

@media (min-width: 769px) {
    .tp-section {
        padding: 100px 40px;
    }
}

.tp-section-header {
    max-width: 1400px;
    margin: 0 auto 60px;
}

.tp-section-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--tp-green-main);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.tp-section-label::before {
    content: '';
    width: 30px;
    height: 2px;
    background: currentColor;
}

/* ==========================================================================
   Container
   ========================================================================== */

.tp-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 769px) {
    .tp-container {
        padding: 0 40px;
    }
}

/* ==========================================================================
   Cards
   ========================================================================== */

.tp-card {
    background: var(--tp-white);
    border-radius: var(--tp-radius-md);
    padding: 32px;
    transition: all var(--tp-transition);
}

/* ==========================================================================
   Notification (for form feedback)
   ========================================================================== */

.tp-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 16px 24px;
    border-radius: var(--tp-radius-md);
    font-size: 14px;
    font-weight: 500;
    color: var(--tp-white);
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--tp-transition);
}

.tp-notification.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.tp-notification--success {
    background: var(--tp-green-main);
}

.tp-notification--error {
    background: var(--tp-danger-dark);
}

.tp-notification--info {
    background: var(--tp-dark);
}

/* ==========================================================================
   Utility: screen reader only
   ========================================================================== */

.tp-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;
}

/* ==========================================================================
   404 Error Page
   ========================================================================== */

.tp-error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 20px 60px;
    text-align: center;
}

.tp-error-page__inner {
    max-width: 600px;
}

.tp-error-page__number {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(120px, 20vw, 200px);
    font-weight: 800;
    color: var(--tp-cream-warm);
    line-height: 1;
    letter-spacing: -4px;
}

.tp-error-page__title {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 700;
    color: var(--tp-text);
    text-transform: uppercase;
    margin-bottom: 16px;
}

.tp-error-page__desc {
    font-size: 16px;
    color: var(--tp-text-light);
    line-height: 1.7;
    margin-bottom: 40px;
}

.tp-error-page__actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    justify-content: center;
    margin-bottom: 60px;
}

.tp-error-page__btn-primary {
    background: var(--tp-yellow);
    color: var(--tp-dark);
    padding: 16px 32px;
    font-family: 'Unbounded', sans-serif;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    clip-path: polygon(0 0, 100% 0, 100% 70%, 92% 100%, 0 100%);
    transition: all var(--tp-transition);
}

.tp-error-page__btn-primary:hover {
    background: var(--tp-yellow-bright);
    transform: translateY(-2px);
}

.tp-error-page__btn-secondary {
    background: var(--tp-green-main);
    color: var(--tp-white);
    padding: 16px 32px;
    font-family: 'Unbounded', sans-serif;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all var(--tp-transition);
}

.tp-error-page__btn-secondary:hover {
    background: var(--tp-green-dark);
}

.tp-error-page__links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    justify-content: center;
    list-style: none;
}

.tp-error-page__links a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--tp-text-light);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s;
}

.tp-error-page__links a:hover {
    color: var(--tp-green-main);
}

.tp-error-page__links a svg {
    width: 16px;
    height: 16px;
}

.tp-error-page__contact {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--tp-cream-warm);
    font-size: 14px;
    color: var(--tp-text-light);
}

.tp-error-page__contact a {
    color: var(--tp-green-main);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.tp-error-page__contact a:hover {
    color: var(--tp-green-dark);
}

@media (min-width: 769px) {
    .tp-error-page {
        padding: 160px 40px 80px;
    }

    .tp-error-page__number {
        letter-spacing: -8px;
    }

    .tp-error-page__actions {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }
}

/* ==========================================================================
   WordPress / Elementor overrides
   ========================================================================== */

.elementor-page .tp-main {
    padding: 0;
}

.entry-content > *:not(.elementor):not(.elementor-element) {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/*
 * ELEMENTOR KIT OVERRIDE
 *
 * Elementor Kit injects inline CSS on body.elementor-kit-{ID} that sets
 * font-family, font-size, color, etc. This overrides inherited styles
 * in our header, footer and content area. The only reliable fix is !important on
 * theme-controlled elements. This is justified: our design system must always
 * take precedence over Elementor Kit defaults.
 */

/* --- Elementor container defaults: override Kit's 1140px with our 1400px --- */
.e-con {
    --container-max-width: 1400px !important;
}

/* --- Content area base font (fight Elementor Kit default) --- */
.elementor .elementor-widget-text-editor,
.elementor .elementor-widget-heading .elementor-heading-title {
    font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
}

/* --- Headings in content use Unbounded --- */
.elementor .elementor-widget-heading .elementor-heading-title {
    font-family: 'Unbounded', system-ui, sans-serif !important;
}

/* --- Text editor body text --- */
.elementor .elementor-widget-text-editor {
    font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif !important;
    font-size: 16px;
    line-height: 1.6;
    color: var(--tp-text);
}

/* --- Widget wrappers should not add unexpected margins --- */
.elementor-widget:not(:last-child) {
    margin-bottom: 0;
}

/* --- Base font for header/footer/mobile-menu --- */
.tp-header,
.tp-header a,
.tp-header span,
.tp-header p,
.tp-header button,
.tp-header div,
.tp-mobile-menu,
.tp-mobile-menu a,
.tp-mobile-menu span,
.tp-mobile-menu p,
.tp-mobile-menu button,
.tp-mobile-menu div,
.tp-footer,
.tp-footer a,
.tp-footer span,
.tp-footer p,
.tp-footer li {
    font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif !important;
    line-height: 1.6;
}

/* --- Unbounded for logo mark, logo text, footer headings --- */
.tp-header .tp-logo__mark span,
.tp-header .tp-logo__text,
.tp-mobile-menu .tp-logo__mark span,
.tp-mobile-menu .tp-logo__text,
.tp-footer .tp-logo__mark span,
.tp-footer h4,
.tp-footer .tp-logo__text {
    font-family: 'Unbounded', system-ui, sans-serif !important;
}

/* --- CTA buttons use body font (IBM Plex Sans), NOT Unbounded --- */
.tp-header .tp-header__cta,
.tp-mobile-menu .tp-mobile-menu__cta-btn {
    font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif !important;
}

/* --- Nav & dropdown use body font (IBM Plex Sans), NOT Unbounded --- */
.tp-header .tp-nav__link,
.tp-header .tp-dropdown__link {
    font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif !important;
}

/* --- Header contact bar --- */
.tp-header .tp-header__contact,
.tp-header .tp-header__contact a {
    font-size: 14px !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

/* --- Nav links --- */
.tp-header .tp-nav__link {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.85) !important;
}

.tp-header .tp-nav__link:hover,
.tp-header .tp-nav__link.is-active {
    color: var(--tp-white) !important;
}

/* --- Dropdown links --- */
.tp-header .tp-dropdown__link {
    font-size: 13px !important;
    color: rgba(255, 255, 255, 0.8) !important;
}

.tp-header .tp-dropdown__link:hover {
    color: var(--tp-yellow) !important;
}

/* --- Header CTA --- */
.tp-header .tp-header__cta {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--tp-dark) !important;
    background: var(--tp-yellow) !important;
}

.tp-header .tp-header__cta:hover {
    background: var(--tp-yellow-bright) !important;
}

/* --- Header region text --- */
.tp-header .tp-header__region {
    font-size: 12px !important;
    color: rgba(255, 255, 255, 0.5) !important;
}

/* --- Logo --- */
.tp-header .tp-logo__text,
.tp-mobile-menu .tp-logo__text,
.tp-footer .tp-logo__text {
    font-size: 18px !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
}

.tp-header .tp-logo__text,
.tp-footer .tp-logo__text {
    color: var(--tp-white) !important;
}

.tp-header .tp-logo__tagline {
    font-size: 11px !important;
    color: rgba(255, 255, 255, 0.6) !important;
}

/* --- Footer --- */
.tp-footer {
    background: var(--tp-dark) !important;
    color: var(--tp-white) !important;
}

.tp-footer h4 {
    font-size: 12px !important;
    color: var(--tp-yellow) !important;
}

.tp-footer .tp-footer__links a {
    font-size: 14px !important;
    color: rgba(255, 255, 255, 0.6) !important;
}

.tp-footer .tp-footer__links a:hover {
    color: var(--tp-white) !important;
}

.tp-footer .tp-footer__brand p {
    font-size: 14px !important;
    color: rgba(255, 255, 255, 0.6) !important;
}

.tp-footer .tp-footer__bottom {
    font-size: 13px !important;
    color: rgba(255, 255, 255, 0.4) !important;
}

.tp-footer .tp-footer__bottom a {
    color: rgba(255, 255, 255, 0.4) !important;
}
