/*
Theme Name:     IT-ARTEL
Theme URI:      https://todo.ltd
Template:       neve
Author:         Todo LTD
Author URI:     https://todo.ltd
Description:    Custom WordPress theme developed by Todo LTD. Based on the Neve framework and adapted for business websites, ERP integrations, and scalable digital solutions.
Version:        1.0.0
License:        GNU General Public License v2 or later
License URI:    https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:    todo-theme
Tags:           custom-theme, business, corporate, gutenberg, woocommerce, responsive, accessibility-ready
*/

html {
    scroll-behavior: smooth;
}

:root {
    --color-primary: #F26522;
    --color-orange: #F26522;
    --color-text-main: #00020E;
    --color-text-secondary: #00020E;
    --color-bg-light: #F9F9F9;
    --color-light-gray: #F8F9FA;
    --color-border: #E5E5E5;
    --color-white: #FFFFFF;
    --font-heading: 'Manrope', sans-serif;
    --font-body: 'Arial', sans-serif;
    --font-main: 'Arial', sans-serif;
    --container-width: 1440px;
    --spacing-unit: 8px;
}

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

body {
    font-family: var(--font-body);
    color: var(--color-text-main);
    background-color: var(--color-white);
    line-height: 1.5;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

/* Header */
.header {
    padding: 16px 0;
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header--scrolled {
    padding: 12px 0;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

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

/* Premium Animations & Utilities */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.staggered-item {
    opacity: 0;
}

.is-visible .staggered-item {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.staggered-item:nth-child(1) {
    animation-delay: 0.1s;
}

.staggered-item:nth-child(2) {
    animation-delay: 0.2s;
}

.staggered-item:nth-child(3) {
    animation-delay: 0.3s;
}

.staggered-item:nth-child(4) {
    animation-delay: 0.4s;
}

.staggered-item:nth-child(5) {
    animation-delay: 0.5s;
}

.staggered-item:nth-child(6) {
    animation-delay: 0.6s;
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.text-gradient {
    background: linear-gradient(135deg, #FFF 0%, rgba(255, 255, 255, 0.4) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes pulse-orange {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(242, 101, 34, 0.4);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(242, 101, 34, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(242, 101, 34, 0);
    }
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo__img {
    height: 28px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover .logo__img {
    transform: scale(1.02);
}

.logo__img--white {
    /* For dark background - make text white but keep orange dot/line */
    /* This is a tricky filter, or use separate SVG. Let's try high brightness/contrast */
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.nav {
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav__link {
    text-decoration: none;
    color: var(--color-text-main);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.8;
}

.nav__link:hover {
    color: var(--color-primary);
    opacity: 1;
}

/* Dropdown Chevron */
.nav__link--dropdown::after {
    content: '';
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: -3px;
    display: inline-block;
}

.nav__item:hover .nav__link--dropdown::after {
    transform: rotate(-135deg);
    margin-top: 3px;
    color: var(--color-primary);
}

.nav__link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.nav__link:hover::before {
    width: 100%;
}

/* Dropdown Navigation */
.nav__item {
    position: relative;
    cursor: pointer;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background-color: var(--color-white);
    min-width: 280px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 200;
    border-radius: 0;
    overflow: hidden;
}

.dropdown::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--color-primary);
}

.dropdown--large {
    min-width: 900px;
    padding: 40px;
}

.dropdown--simple {
    min-width: 240px;
    padding: 24px;
}

.nav__item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown__grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 48px;
}

.dropdown__grid--industries {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px 60px;
}

.dropdown__grid--products {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 60px;
}

.dropdown__grid--simple {
    grid-template-columns: 1fr;
    min-width: 260px;
    padding: 0;
}

.dropdown__col {
    display: flex;
    flex-direction: column;
    gap: 4px;
}



.dropdown__header {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 2px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.dropdown__link {
    text-decoration: none;
    font-size: 14px;
    color: var(--color-text-main);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 0;
    margin: 0 -12px;
}

.dropdown__link:hover {
    color: var(--color-primary);
    background-color: rgba(242, 101, 34, 0.05);
}

.dropdown__link::after {
    content: '\2192';
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    margin-left: auto;
    font-size: 16px;
}

.dropdown__link:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.dropdown__link--mobile-only {
    display: none;
}

/* Burger Menu (Mobile) */
.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1100;
    position: relative;
}

.burger svg {
    width: 28px;
    height: 28px;
    color: var(--color-text-main);
    transition: color 0.3s ease;
}

.burger:hover svg {
    color: var(--color-primary);
}

/* Mobile Nav Overlay */
.nav--mobile-open {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #ffffff !important; /* Solid white background */
    flex-direction: column;
    justify-content: flex-start; /* Important: allow scrolling from top down instead of clipping center */
    align-items: center;
    gap: 0;
    z-index: 1050;
    padding: 100px 20px 60px;
    overflow-y: auto;
}

.nav--mobile-open .nav__item {
    width: 100%;
    text-align: center;
    margin-bottom: 5px;
}

.nav--mobile-open .nav__link {
    font-size: 20px;
    font-weight: 600;
    padding: 16px 0;
    opacity: 1;
    text-align: center;
    width: 100%;
    justify-content: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05); /* Adds visual separation */
}

/* Clear hover line animation on mobile links */
.nav--mobile-open .nav__link::before {
    display: none !important;
}

/* Animate the dropdown arrow when open (point UP) */
.nav--mobile-open .nav__item--open .nav__link--dropdown::after {
    transform: rotate(-135deg) !important;
    color: var(--color-primary);
    margin-top: 3px !important;
}

/* Dropdown Inline Accordion Design */
.nav--mobile-open .dropdown {
    position: static !important;
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
    min-width: 100% !important;
    width: 100% !important;
    left: 0 !important;
    top: 0 !important;
    opacity: 0;
    visibility: hidden;
    height: 0;
    padding: 0 !important;
    background: #fafafa !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    transition: all 0.35s ease-in-out;
}

.nav--mobile-open .dropdown::before {
    display: none !important; /* Hide the orange top bar */
}

.nav--mobile-open .nav__item--open .dropdown {
    opacity: 1 !important;
    visibility: visible !important;
    height: auto !important;
    padding: 16px 0 !important;
    margin-top: 5px !important;
    margin-bottom: 20px !important;
}

/* Do not open on hover on mobile, only on click (via .nav__item--open) */
.nav--mobile-open .nav__item:hover .dropdown {
    /* override desktop hover behavior by ignoring it */
    transform: none !important;
}
.nav--mobile-open .nav__item:hover.nav__item--open .dropdown {
    transform: none !important;
}

.nav--mobile-open .dropdown--large,
.nav--mobile-open .dropdown--simple {
    min-width: 100% !important;
    padding: 0 !important;
}

.nav--mobile-open .dropdown__grid,
.nav--mobile-open .dropdown__grid--industries,
.nav--mobile-open .dropdown__grid--products,
.nav--mobile-open .dropdown__grid--simple {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    padding: 0 16px !important;
    justify-content: center !important;
}

.nav--mobile-open .dropdown__header {
    text-align: center;
    border-bottom: none;
    margin-bottom: 8px;
}

.nav--mobile-open .dropdown__link {
    justify-content: center;
    background: transparent;
    padding: 12px 10px;
    font-size: 16px;
    border-radius: 6px;
    margin: 0;
    color: #444;
}

.nav--mobile-open .dropdown__link--mobile-only {
    display: flex !important;
    color: var(--color-primary);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 16px;
    margin-bottom: 12px;
    border-radius: 0;
}

.nav--mobile-open .dropdown__link:hover {
    color: var(--color-primary);
    background: #f0f0f0;
}

.nav--mobile-open .dropdown__link::after {
    display: none; /* Remove right arrow from dropdown items on mobile */
}

/* Optional CTA button in mobile menu */
.nav--mobile-open .header__cta {
    display: block; /* Show CTA securely at the bottom of the mobile menu */
    width: calc(100% - 40px);
    max-width: 320px;
    margin: 40px auto 20px auto;
}

.btn {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn--primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn--primary:hover {
    background-color: #d9531e;
}

/* Sections General */
.section {
    padding: 80px 0;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.section-label__line {
    width: 40px;
    height: 1px;
    background-color: var(--color-primary);
}

.section-label__text {
    font-family: 'Arial', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 2px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 300; 
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--color-text-main);
}

.section-description {
    font-size: 18px;
    color: var(--color-text-secondary);
    max-width: 800px;
    margin-bottom: 48px;
    font-weight: 300;
}

.text-orange {
    color: var(--color-primary);
}

.text-light {
    color: #CCC;
}

.text-white {
    color: #fff !important;
}


/* Hero Section */
.hero.section {
    padding-top: 0;
    padding-bottom: 0;
    min-height: calc(100vh - 85px);
    /* Full height minus header */
    display: flex;
    align-items: center;
    /* Center content vertically */
}

.hero__container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    position: relative;
    /* Removed padding-bottom */
}

.hero__content {
    flex: 1.3;
    padding-top: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero__title-sub {
    display: block;
    font-size: clamp(20px, 2.5vw, 36px);
    font-weight: 300;
    line-height: 1.3;
    margin-top: 8px;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(32px, 5.5vw, 66px);
    font-weight: 500;
    line-height: 1.15;
    color: var(--color-text-main);
    margin-bottom: 24px;
    width: 100%;
}

.hero__description {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    color: var(--color-text-main);
    max-width: 650px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero__actions {
    display: flex;
    gap: 20px;
    margin-bottom: 48px;
}

.btn--outline {
    background-color: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn--outline:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.hero__footer-line {
    width: 150px;
    height: 4px;
    background-color: var(--color-primary);
}

.hero__visual {
    flex: 0.7;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Floating Logo Animation - FIXED */
.hero__floating-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    animation: floatingSway 6s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.floating-logo-img {
    width: 320px;
    height: auto;
    filter: drop-shadow(0 20px 50px rgba(0,0,0,0.15));
    transition: all 0.5s ease;
}

@keyframes floatingSway {
    0% {
        transform: translate(-50%, -50%) translateY(0) rotate(0deg);
    }
    33% {
        transform: translate(-50%, -50%) translateY(-15px) rotate(1deg);
    }
    66% {
        transform: translate(-50%, -50%) translateY(10px) rotate(-1deg);
    }
    100% {
        transform: translate(-50%, -50%) translateY(0) rotate(0deg);
    }
}

/* Visual Grid Animation Placeholder */
.visual-grid {
    width: 100%;
    max-width: 500px;
    /* Limit size */
    aspect-ratio: 1;
    /* Keep it square */

}

.contacts-hero {
    padding-bottom: 60px;
}

/* --- Utilities & New Section Styles --- */

.section--dark {
    background-color: #1D1D1D;
    color: var(--color-white);
}

.section--light-gray {
    background-color: #F8F9FA;
}

.text-gray {
    color: #999;
}

.center-text {
    text-align: center;
}

.mb-60 {
    margin-bottom: 60px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.flex-centered {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Industries Section */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.industry-card {
    height: 300px;
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-decoration: none;
    transition: transform 0.3s;
    background-color: #2a2a2a;
    /* Fallback */
}

.industry-card--industrial {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&q=80&w=1000');
}

.industry-card--agro {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1523348837708-15d4a09cfac2?auto=format&fit=crop&q=80&w=1000');
}

.industry-card--metallurgy {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1504917595217-d4dc5ebe6122?auto=format&fit=crop&q=80&w=1000');
}

.industry-card--chem {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1576086213369-97a306dca665?auto=format&fit=crop&q=80&w=1000');
}

.industry-card--construction {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&q=80&w=1000');
}

.industry-card--cable {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1535498730771-e735b998cd64?auto=format&fit=crop&q=80&w=1000');
}

.industry-card--aero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1446776811953-b23d57bd21aa?auto=format&fit=crop&q=80&w=1000');
}

.industry-card--logistics {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1586528116311-ad86d7c7ce80?auto=format&fit=crop&q=80&w=1000');
}

.map-iframe {
    border: 0;
}

.industry-card:hover {
    transform: translateY(-5px);
}

.industry-card__title {
    font-family: var(--font-heading);
    color: var(--color-white);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.4;
    z-index: 2;
}

.industry-card--link {
    background-color: var(--color-primary);
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.industry-card__icon-circle {
    width: 60px;
    height: 60px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.industry-card--link:hover .industry-card__icon-circle {
    background-color: var(--color-white);
}

.industry-card--link:hover .industry-card__icon-circle svg line,
.industry-card--link:hover .industry-card__icon-circle svg polyline {
    stroke: var(--color-primary);
}

/* Scenarios Section */
.scenarios__list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.scenario-card {
    border: 1px solid #EEEEEE;
    display: flex;
    background-color: var(--color-white);
}

.scenario-card__main {
    flex: 1.5;
    padding: 40px;
}

.scenario-card__icon-box {
    width: 48px;
    height: 48px;
    background-color: #1D1D1D;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.scenario-card__title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text-main);
}

.scenario-card__subtitle {
    font-size: 14px;
    color: #999;
    margin-bottom: 24px;
}

.scenario-card__list {
    list-style: none;
    /* Custom bullets */
}

.scenario-card__list li {
    font-size: 14px;
    color: #555;
    margin-bottom: 12px;
    position: relative;
    padding-left: 16px;
}

.scenario-card__list li::before {
    content: '\2022';
    color: #CCC;
    position: absolute;
    left: 0;
    top: 0;
}

.scenario-card__result {
    flex: 1;
    background-color: #FFF9F6;
    /* More pronounced orange tint */
    border: 1px dashed rgba(242, 101, 34, 0.3);
    border-left: 4px solid var(--color-primary);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.scenario-card__result-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 24px;
    letter-spacing: 1px;
}

.scenario-card__result-list {
    list-style: none;
}

.scenario-card__result-list li {
    font-size: 14px;
    color: #555;
    margin-bottom: 16px;
    position: relative;
    padding-left: 16px;
}

.scenario-card__result-list li::before {
    content: '\2022';
    color: var(--color-primary);
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

/* CTA Section */
.cta-section {
    background-color: #FAFAFA;
}

.cta-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #F9F9F9 100%);
    border: 1px solid #E5E5E5;
    padding: 48px;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 48px;
    align-items: center;
}

.cta-card__content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cta-card__title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text-main);
    overflow-wrap: break-word;
}

.cta-card__text {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    max-width: 500px;
}

.cta-card__actions {
    display: flex;
    gap: 24px;
    align-items: center;
    margin-top: 8px;
}

.cta-card__link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-main);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.cta-card__link:hover {
    color: var(--color-primary);
    gap: 12px;
}

.cta-card__link svg {
    transition: transform 0.3s;
}

.cta-card__link:hover svg {
    transform: translateX(4px);
}

.cta-card__visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.cta-visual-box {
    width: 250px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.cta-card__logo {
    width: 220px;
    height: auto;
    animation: floatCTA 4s ease-in-out infinite alternate;
}

@keyframes floatCTA {
    0% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(10px);
    }
}

/* Marker removed */

/* Tech Stack Section */
.tech-stack .grid {
    align-items: start;
}

.tech-card {
    padding: 16px;
    border: 1px solid #333;
    background-color: #1A1A1A;
    transition: all 0.3s;
}

.tech-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(242, 101, 34, 0.2);
}

.tech-card__icon {
    margin-bottom: 10px;
    width: 32px;
    height: 32px;
    background-color: rgba(242, 101, 34, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
}

.tech-card__icon svg {
    width: 20px;
    height: 20px;
}

.tech-card__title {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #FFFFFF;
}

.tech-card__list {
    list-style: none;
    font-size: 13px;
    color: var(--color-white);
}

.tech-card__list li {
    margin-bottom: 6px;
    position: relative;
    padding-left: 16px;
}

.tech-card__list li::before {
    content: "\2022";
    color: var(--color-primary);
    position: absolute;
    left: 0;
}

/* Expertise Section */
.expertise__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 60px;
}

.expertise__description {
    max-width: 600px;
    font-size: 16px;
    line-height: 1.6;
    color: #999;
    margin-top: 20px;
}

.stat-card {
    border: 1px solid #333;
    padding: 50px 32px;
    text-align: center;
    background: #1A1A1A;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(242, 101, 34, 0.1);
}

.stat-card__number {
    font-size: 64px;
    font-weight: 300;
    color: #FFFFFF;
    line-height: 1;
    margin-bottom: 12px;
}

.stat-card__label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #666;
    letter-spacing: 2px;
}


/* Contact Section */
.grid--contact {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-block__title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 32px;
}

.contact-item {
    margin-bottom: 24px;
}

.contact-item__label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.contact-item__value {
    color: #CCC;
    text-decoration: none;
    font-size: 16px;
}

.free-consultation {
    background: linear-gradient(135deg, #2a2a2a 0%, #333 100%);
    padding: 32px;
    margin-top: 40px;
    border-left: 3px solid var(--color-primary);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.free-consultation::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 100px;
    height: 100px;
    background: var(--color-primary);
    filter: blur(60px);
    opacity: 0.1;
    pointer-events: none;
}

.free-consultation__title {
    font-family: var(--font-heading);
    color: var(--color-white);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.free-consultation__text {
    color: #AAA;
    font-size: 14px;
    line-height: 1.5;
}

/* Contact Form */
.contact-form {
    background-color: transparent;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--color-white);
    opacity: 0.8;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.form-input {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px;
    color: var(--color-white);
    font-size: 14px;
    font-family: var(--font-main);
    transition: all 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: rgba(255, 255, 255, 0.05);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.btn--white {
    background-color: var(--color-white);
    color: var(--color-text-main);
    border: none;
    padding: 16px 32px;
    font-weight: 700;
}

.btn--white:hover {
    background-color: #EEE;
}


/* Footer */
.footer {
    background-color: #161616;
    /* Slightly darker */
    padding: 80px 0 40px;
    color: var(--color-white);
    border-top: 1px solid #222;
}

.footer__container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 60px;
    border-bottom: 1px solid #222;
    padding-bottom: 60px;
}

.logo__icon-footer {
    width: 24px;
    height: 24px;
    background-color: transparent;
    border: 1px solid #444;
    transform: rotate(45deg);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo__icon-footer::after {
    content: '';
    width: 10px;
    height: 10px;
    border: 1px solid #888;
}

.footer__desc {
    margin-top: 24px;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    max-width: 300px;
}

.footer__title {
    font-family: var(--font-heading);
    font-size: 11px;
    text-transform: uppercase;
    color: var(--color-white);
    margin-bottom: 24px;
    letter-spacing: 1px;
    font-weight: 700;
}

.footer__nav,
.footer__contacts {
    list-style: none;
}

.footer__nav li,
.footer__contacts li {
    margin-bottom: 16px;
}

.footer__nav a,
.footer__contacts a {
    color: var(--color-white);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer__nav a:hover,
.footer__contacts a:hover {
    color: var(--color-primary);
}

.footer__social {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.footer__social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__social-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.footer__social-link:hover {
    transform: translateY(-5px);
    color: var(--color-white);
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: 0 10px 20px rgba(242, 101, 34, 0.2);
}

/* Redesigned Contacts Section */
.footer__contacts {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer__contact-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer__contact-label {
    font-size: 10px;
    font-weight: 800;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer__link {
    color: var(--color-white);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.footer__link::before {
    content: '';
    width: 0;
    height: 1px;
    background-color: var(--color-primary);
    transition: all 0.3s ease;
}

.footer__link:hover {
    color: var(--color-primary);
    transform: translateX(8px);
}



.footer__bottom {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6); /* Keeping slightly muted for credits */
}

.footer__privacy {
    color: #444;
    text-decoration: none;
}

.footer__privacy:hover {
    color: #666;
}

/* Responsive updates for new sections */


/* Animation Utilities */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for grid items if needed */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

/* Map Section */
.map-section {
    line-height: 0;
}

.map-container {
    width: 100%;
    filter: grayscale(1) invert(0.9) contrast(1.2);
    /* Corporate style for map */
    transition: filter 0.3s;
}

.map-container:hover {
    filter: none;
}

.contacts-hero {
    padding-bottom: 60px;
}

/* Tech Stack Grid for ERP page and others */
.grid--6-cols {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}



/* Dark variant for sections */
.section--dark .module-item {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

.section--dark .module-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--color-primary);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.section--dark .module-item__title {
    color: #fff;
}

.section--dark .module-item__list li {
    color: #aaa;
}

.opacity-70 {
    opacity: 0.7;
}

/* --- Functionality Row Layout --- */
.functionality-section {
    background: #fff;
    padding: 80px 0;
}

.functionality-row {
    display: flex;
    padding: 35px 0;
    border-bottom: 1px solid #F0F0F0;
    gap: 60px;
}

.functionality-row:last-child {
    border-bottom: none;
}

.functionality-row__info {
    flex: 0 0 280px;
}

.functionality-row__title {
    font-size: 20px;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 10px;
}

.functionality-row__subtitle {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    font-weight: 400;
}

.functionality-row__list {
    flex: 1;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 12px 40px;
}

.functionality-row__list li {
    font-size: 15px;
    color: #1A1A1A;
    position: relative;
    padding-left: 18px;
    line-height: 1.4;
}

.functionality-row__list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #e31e24;
    /* Red accent from screen */
    font-weight: 900;
}

.show-more-box {
    text-align: center;
    margin-top: 50px;
}

.show-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    color: var(--color-orange);
    font-weight: 700;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.3s ease;
    text-transform: lowercase;
}

.show-more-btn:hover {
    opacity: 0.8;
    transform: translateY(3px);
}

/* ============================================================
   VI-B. Contact Form 7 Integration
   ============================================================ */

/* Обгортка поля — не ламає layout */
.wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

/* Поля CF7 наслідують наші стилі через .form-input на самому input/textarea */
.wpcf7-form-control.form-input {
    width: 100%;
}

/* Повідомлення про помилку під полем */
.wpcf7-not-valid-tip {
    display: block;
    font-size: 11px;
    font-family: var(--font-body);
    color: #e53e3e;
    margin-top: 4px;
    letter-spacing: 0.5px;
}

/* Підсвічування невалідного поля */
.wpcf7-not-valid.form-input {
    border-color: #e53e3e;
}

/* Повідомлення після відправки */
.wpcf7-response-output {
    margin-top: 16px;
    padding: 12px 16px;
    font-size: 13px;
    font-family: var(--font-body);
    border-radius: 4px;
    border: none !important;
}

.wpcf7-mail-sent-ok {
    background: rgba(72, 187, 120, 0.15);
    color: #276749;
}

.wpcf7-mail-sent-ng,
.wpcf7-aborted,
.wpcf7-validation-errors,
.wpcf7-spam-blocked {
    background: rgba(229, 62, 62, 0.1);
    color: #c53030;
}

/* Спіннер */
.wpcf7-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-left: 8px;
    vertical-align: middle;
}

/* Кнопка submit — наслідує btn--white або btn--primary */
.wpcf7 .btn {
    cursor: pointer;
    border: none;
}

@media (max-width: 992px) {
    .functionality-row {
        flex-direction: column;
        gap: 20px;
    }

    .functionality-row__info {
        flex: none;
        width: 100%;
    }

    .functionality-row__list {
        grid-template-columns: 1fr;
    }
}

/* --- Show More Toggle --- */
.functionality-extra {
    display: none;
    opacity: 0;
}

.functionality-overview.is-expanded .functionality-extra {
    display: block;
    opacity: 1;
}

/* --- Utilities --- */
.pl-4p {
    padding-left: 4%;
}

/* --- Desktop & Large Tablets (1024px - 1200px) --- */
@media (max-width: 1200px) {
    .grid--6-cols { grid-template-columns: repeat(3, 1fr); }
    .process__steps { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .process-step__arrow { display: none; }
}

@media (max-width: 1100px) {
    .module-grid { column-count: 2; }
    .platform-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
    .hero__title { font-size: 60px; }
    .grid--4-cols { grid-template-columns: repeat(2, 1fr); }
    .industries-grid, .grid--3-cols { grid-template-columns: repeat(2, 1fr); }
    .grid--contact { grid-template-columns: 1fr; }
    .expertise__header { flex-direction: column; }
    .footer__container { grid-template-columns: 1fr; }
    .scenario-card__body { grid-template-columns: 1fr; }
}

/* --- Tablets & Small Screens (768px - 992px) --- */
@media (max-width: 992px) {
    .matrix-table__header-col { font-size: 20px; }
    .functionality-row { flex-direction: column; gap: 20px; }
    .functionality-row__info { flex: none; width: 100%; }
    .functionality-row__list { grid-template-columns: 1fr; }
    .vertical-tabs { grid-template-columns: 1fr; gap: 30px; }
    .tabs-list { flex-direction: row; border-left: none; border-bottom: 1px solid var(--color-border); padding-bottom: 10px; overflow-x: auto; }
    .tabs__item { border-left: none; border-bottom: 3px solid transparent; margin-left: 0; margin-bottom: -13px; white-space: nowrap; padding: 15px 20px; }
    .tabs__item--active { border-bottom-color: var(--color-primary); }
    .capability-card { padding: 40px; min-height: auto; }
    .cta-mini { flex-direction: column; align-items: flex-start; padding: 40px; }
}

@media (max-width: 992px) {
    .step-grid { grid-template-columns: repeat(2, 1fr); }
    .step-col { border-bottom: 1px solid #eee; min-height: auto; }
    .step-col:nth-child(2n) { border-right: none; }
    .module-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    /* Safe Mobile Preventers */
    body, html { overflow-x: hidden; width: 100%; position: relative; }
    
    /* Hide decorative hero logo to save screen space */
    .hero__visual { display: none !important; }
    
    .card, .segment-card, .scenario-card, .capability-card { 
        min-width: 0; box-sizing: border-box; 
    }
    
    .hero__title, .hero-sub__title { font-size: 36px; line-height: 1.2; }
    .section-title { font-size: 28px; line-height: 1.3; }
    .section-description { font-size: 16px; }
    .footer__container { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
    .logo-marquee { width: 100%; margin-left: 0; margin-right: 0; }
    
    .burger { display: block; }
    .nav { display: none; }
    .nav--mobile-open { display: flex; }
    .header__cta { display: none; }
    .header__container { position: relative; }
    .hero__container { flex-direction: column; }
    .grid--2-cols, .grid--4-cols { grid-template-columns: 1fr !important; }
    .tabs { flex-direction: column; }
    .industries-grid, .grid--3-cols { grid-template-columns: 1fr !important; }
    .scenario-card { flex-direction: column; }
    .form-row { grid-template-columns: 1fr; }
    .module-grid { column-count: 1; }
    .grid--6-cols { grid-template-columns: repeat(2, 1fr); }
    .why-item { border-bottom: 1px solid var(--color-border); }
    .why-item:last-child { border-bottom: none; }
    .hero-sub { padding: 60px 0; }
    .hero-sub__bg-text { font-size: 50px; left: 10px; }
    .bg-text--side { font-size: 30px; right: 10px; bottom: 10px; }
    .process__steps { grid-template-columns: 1fr; gap: 30px; }
    .features-diff__grid { grid-template-columns: 1fr; }
    .scenario-card__body { grid-template-columns: 1fr; }
    
    /* Force buttons to stack on small screens */
    .hero__actions, .hero-sub__actions, .flex-centered { flex-direction: column !important; width: 100% !important; gap: 16px !important; }
    .hero__actions .btn, .hero-sub__actions .btn, .flex-centered .btn { width: 100% !important; text-align: center; justify-content: center; }
    
    /* Section Normalizers */
    .section, .section.pt-120 { padding: 50px 0 !important; }
    .container { padding: 0 20px; }
    .cta-card { grid-template-columns: 1fr; padding: 32px; }
    .cta-card__title { font-size: 24px; }
    .cta-card__visual { display: none; }
    .tabs__content-wrapper { padding: 24px; }
    .tabs__list { flex: none; }
    .mt-60, .mt-40 { margin-top: 30px !important; }
    .mb-60 { margin-bottom: 30px !important; }
}

/* --- Mobile (480px - 576px) --- */
@media (max-width: 576px) {
    .step-grid { grid-template-columns: 1fr; }
    .step-col { border-right: none; padding: 40px 20px; }
    .module-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .grid--6-cols { grid-template-columns: 1fr; }
    .container { padding: 0 16px; }
    .section-title { font-size: 22px; }
    .footer__container { grid-template-columns: 1fr; }
    .section { padding: 40px 0 !important; }
}

/* ==========================================================================
   VIII. Premium UI Components & Service Page Styles
   ========================================================================== */

/* Premium Container with depth */
.matrix-container--premium {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

/* Icon Wrappers */
.icon-circle {
    width: 48px;
    height: 48px;
    background: rgba(242, 101, 34, 0.08); /* Transparent orange */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.icon-circle--solid {
    background: var(--color-primary);
}

.icon-circle--large {
    width: 64px;
    height: 64px;
}

/* Interactive Table enhancements */
.matrix-table--hover tr {
    transition: background-color 0.2s ease;
}

.matrix-table--hover tr:hover td {
    background-color: #fcfcfc;
}

.matrix-table--highlight-col td:last-child,
.matrix-table--highlight-col th:last-child {
    background-color: rgba(242, 101, 34, 0.02);
}

/* Premium Pricing Badge */
.pricing-badge--premium {
    background: #e31e24;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    margin-left: 10px;
    vertical-align: middle;
}

/* Step Grid System */
.step-grid--premium {
    gap: 1px;
    background: #eee;
    border: 1px solid #eee;
}

.step-card--premium {
    background: #fff;
    padding: 40px;
    border: none;
    border-radius: 0;
    transition: all 0.3s ease;
}

.step-card--premium:hover {
    background: #fafafa;
}

.step-num--premium {
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
    color: var(--color-primary);
    opacity: 0.1;
    margin-bottom: -15px;
    transition: opacity 0.3s ease;
}

.step-card--premium:hover .step-num--premium {
    opacity: 0.2;
}

/* Results Content Polish */
.result-card--white {
    background: #fff;
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.result-list--check {
    list-style: none;
    margin: 0;
    padding: 0;
}

.result-list--check li {
    margin-bottom: 20px;
    padding-left: 30px;
    position: relative;
    font-size: 15px;
    line-height: 1.6;
}

.result-list--check li::before {
    content: "\2713"; /* Checkmark symbol */
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 800;
    font-size: 18px;
}

.result-list--check li strong {
    color: var(--color-text-main);
}

/* Utilities for Rule 1 Compliance */
.w-100 { width: 100% !important; }
.mb-15 { margin-bottom: 15px !important; }
.mt-10 { margin-top: 10px !important; }
.p-48 { padding: 48px !important; }
.p-32 { padding: 32px !important; }
.br-none-important { border-right: none !important; }
.bb-none-important { border-bottom: none !important; }
.p-relative { position: relative; }
.v-middle { vertical-align: middle; }
.bg-white { background: #fff !important; }
.p-30 { padding: 30px !important; }

@media (max-width: 1300px) {
    .tech-stack__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .tech-stack__grid { grid-template-columns: repeat(1, 1fr); }
    .expertise { padding: 80px 0; }
}
