/* =========================================
   ELIZABETH TOOLING - GLOBAL STYLESHEET
   Version: 1.0
   ========================================= */

/* --- 1. VARIABLES & SETUP --- */
html{
    font-size: unset;
}
:root {
    /* Brand Colors */
    --navy-900: #0F172A; /* Primary Headings */
    --navy-800: #1E293B; /* Footer / Secondary */
    --navy-700: #334155; /* Body Text */

    /* Updated Brand Red */
    --brand-red: #ca2030;
    --brand-red-dark: #a01925; /* Darker shade for hover - matching HTML mockup */
    --brand-red-hover: #a01925; /* Alias for backwards compatibility */

    /* Neutrals */
    --white: #FFFFFF;
    --grey-50: #F8FAFC;
    --grey-100: #F1F5F9;
    --grey-200: #E2E8F0;

    /* Utility */
    --radius-md: 8px;
    --transition: 0.3s ease;
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --img-radius: 4px;
}

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

body {
    font-family: var(--font-stack);
    color: var(--navy-700);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 { color: var(--navy-900); font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: 3.2rem; line-height: 1.1; margin-bottom: 1rem; }
h2 { font-size: 2.25rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1.5rem; }

.text-center { text-align: center; }
.bg-alt { background-color: var(--grey-50); }
.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 5rem 0; }

/* --- 2. GLOBAL BUTTONS --- */
.btn, .btn-wrap a {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.875rem 2rem; border-radius: 4px;
    font-weight: 600; text-decoration: none;
    transition: var(--transition); cursor: pointer;
}

.elementor-widget-button .elementor-button{
    font-family:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

.btn-primary, .btn-primary-wrap a{
    background: var(--brand-red);
    color: white;
    border: none;
}
.btn-primary:hover,
.btn-primary-wrap a:hover{
    background: var(--brand-red-dark);
    transform: translateY(-2px);
}

.btn-outline, .btn-outline-wrap a {
    border: 2px solid white;
    color: white; background: transparent;
}
.btn-outline:hover,
.btn-outline-wrap a:hover{
    background: white; color: var(--navy-900);
}

.btn-link {
    color: var(--brand-red);
    font-weight: 600; text-decoration: none;
}
.btn-link:hover { text-decoration: underline; }

/* --- 2.5 CONTACT BAR --- */
.contact-bar {
    background: #1E293B;
    color: #94A3B8;
    padding: 0.75rem 0;
    font-size: 0.875rem;
}

.contact-bar-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.contact-info {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #94A3B8;
    text-decoration: none;
    transition: opacity var(--transition);
}

.contact-item:hover {
    opacity: 0.8;
    color: white;
}

.contact-item svg {
    flex-shrink: 0;
}

.social-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94A3B8;
    transition: opacity var(--transition);
}

.social-icon:hover {
    opacity: 0.8;
    color: var(--white);
}

/* Responsive Contact Bar */
@media (max-width: 768px) {
    .contact-bar {
        display: none;
    }

    .contact-bar-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .contact-info {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }

    .social-links {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .contact-info {
        gap: 1.25rem;
    }

    .contact-item span {
        font-size: 0.8rem;
    }
}

/* --- 3. HEADER & NAVIGATION --- */
/* Hide any old Zakra header elements that might still appear */
.zak-header,
.zak-header-builder,
#zak-header-builder {
    display: none !important;
}

/* COMPONENT: Sticky Header */
#site-header {
    position: sticky; top: 0; z-index: 1000;
    background: var(--white);
    padding: 1.25rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    transition: padding 0.3s ease;
}
#site-header.scrolled { padding: 0.75rem 0; }

/* Nav Flex Container - positioning anchor for mega-menus */
.nav-flex { display: flex; justify-content: space-between; align-items: center; position: relative; }

/* Logo SVG Sizing - for custom logo or SVG fallback */
.logo-svg { height: 40px; width: auto; transition: height 0.3s; }
#site-header.scrolled .logo-svg { height: 32px; }

/* Custom logo from WordPress */
.site-branding .custom-logo { width: 140px; transition: width 0.3s; }
#site-header.scrolled .site-branding .custom-logo { width: 100px; }

/* --- Top Level Navigation Links --- */
.nav-links { display: flex; gap: 2.5rem; list-style: none; align-items: center; margin: 0; }

.nav-links > li > a,
.nav-links > li{
    text-decoration: none;
    color: var(--navy-900);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    cursor: pointer;
    display: block;
    padding: 1rem 0;
}
.nav-links > li > a:hover,
.nav-links > li:hover > a { color: var(--brand-red); }

/* Dropdown arrow indicator */
.nav-links > li.menu-item-has-children::after {
    content: ' \25BE';
    font-size: 1em;
    margin-left: 4px;
    transition: all 0.35s ease-in-out;
}

/* --- Centered Mega Menu --- */
/* Parent item uses static positioning so menu positions relative to .nav-flex */
.nav-links > li.menu-item-has-children { position: static; }

.nav-links .sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, 10px);
    width: 100%;
    max-width: 1100px;
    background: white;
    border: 1px solid var(--grey-200);
    box-shadow: 0 20px 40px -5px rgba(0,0,0,0.1);
    border-radius: var(--radius-md);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 2.5rem;
    z-index: 1100;
    margin: 0;

    /* Grid Layout */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    list-style: none;
}

/* Show mega-menu on hover */
.nav-links > li.menu-item-has-children:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

/* --- Mega Menu Items --- */
.nav-links .sub-menu li { list-style: none; }

.nav-links .sub-menu li a {
    display: block;
    text-decoration: none;
    color: var(--navy-900);
    font-weight: 700;
    font-size: 1rem;
    border-bottom: 2px solid transparent;
    padding-bottom: 0.5rem;
    transition: 0.2s;
    text-transform: none;
    letter-spacing: 0;
    background: none;
}
.nav-links .sub-menu li a > span,
.nav-links .sub-menu li a > p{
    margin-bottom: 0;
    font-size: 0.85rem;
    color: #64748B;
    font-weight: 400;
    text-transform: none;
    margin-top: 0.5rem;
    line-height: 1.4;
}

.nav-links .sub-menu li a:hover {
    color: var(--brand-red);
    border-bottom-color: var(--brand-red);
    background: none;
}

/* Menu Item Description (output by Eliz_Mega_Menu_Walker) */
.nav-links .sub-menu li a .menu-item-description {
    display: block;
    font-size: 0.85rem;
    color: #64748B;
    font-weight: 400;
    text-transform: none;
    margin-top: 0.5rem;
    line-height: 1.4;
}
.nav-links > li.menu-item-has-children > p.title {
    margin-bottom: 0;
    display: inline-block;
    transition: all 0.35s ease-in-out;
}
.nav-links > li.menu-item-has-children:hover{
    color: var(--brand-red)
}
@media(max-width: 768px){
    .zak-mobile-menu> li> p.title{
        margin-bottom: 0;
        padding: 14px 16px;
        transition: all 0.35s ease-in-out;
    }
    .zak-mobile-menu> li> p.title::after{
        content: ' \25BE';
        font-size: 1em;
        display: inline-block;
        margin-left: 8px;
        transition: transform .5s ease;
    }
    .zak-mobile-menu> li.submenu--show> p.title::after{
        transform: rotate(-180deg);
    }
    .zak-mobile-menu> li a,
    .zak-mobile-menu> li> p.title{
        font-family: Manrope, serif;
        text-decoration: none;
        color: var(--navy-900);
        font-weight: 700;
        font-size: 0.9rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        position: relative;
        cursor: pointer;
        display: block;
        padding: 1rem 0;
    }
    .zak-mobile-menu> li.submenu--show>p.title{
        color: var(--brand-red)
    }

    .zak-mobile-menu .current_page_item a{
        text-decoration: unset;
    }
    .zak-mobile-menu ul.sub-menu li>a>p{
        margin-bottom: 0;
        font-size: 0.85rem;
        color: #64748B;
        font-weight: 400;
        text-transform: none;
        margin-top: 0.5rem;
        line-height: 1.4;
    }

    }

    /* --- Phone Icon --- */
.phone-btn {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px;
    border-radius: 50%;
    color: black;
    text-decoration: none;
    transition: 0.3s;
}
.phone-btn:hover { background: var(--grey-100); color: var(--brand-red); }
.phone-icon { width: 24px; height: 24px; fill: currentColor; }

/* --- 4. HOMEPAGE HERO --- */
.hero {
    background: linear-gradient(to right, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.7)) !important; /* UPDATE PATH */
    background-size: cover; background-position: center;
    color: white; padding: 9rem 0 7rem;
    position: relative;
}
.hero h1 { color: white; max-width: 900px; }
.hero h2 { color: #CBD5E1; font-size: 1.5rem; font-weight: 400; max-width: 800px; margin-bottom: 2rem; }

/* Elementor Background Overlay fix */
.elementor-background-overlay {
    z-index: 0;
    transition: background 0.3s ease;
}
.hero .elementor-container,
.hero .elementor-widget-wrap {
    position: relative;
    z-index: 1;
}

/* Fix for Elementor sections with background overlay */
.elementor-section.hero,
section.hero.elementor-section {
    overflow: visible;
}
.elementor-section.hero .elementor-background-overlay,
section.hero.elementor-section .elementor-background-overlay {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Fix hero section - remove white background on tablet/mobile */
@media (max-width: 1024px) {
    .elementor-24 .elementor-element.elementor-element-27d7eaf6:not(.elementor-motion-effects-element-type-background),
    .elementor-24 .elementor-element.elementor-element-27d7eaf6 > .elementor-motion-effects-container > .elementor-motion-effects-layer {
        background-color: transparent !important;
    }
}

.elementor-widget-heading .elementor-heading-title{
    font-family:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* --- 6. PRODUCT GRID --- */
.product-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem;
    margin-top: 3rem;
}
.product-card {
    height: 350px; position: relative; border-radius: var(--radius-md); overflow: hidden;
    text-decoration: none; transition: transform 0.3s;
}
.product-card:hover { transform: translateY(-5px); }
.embla__slide > .product-card:hover { transform: unset; }
.embla__slide > .product-card { height: auto; overflow: visible; }


.prod-bg {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    transition: transform 0.5s ease;
}
.product-card:hover .prod-bg { transform: scale(1.05); }

.prod-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.95));
    z-index: 1;
}
.prod-content { position: absolute; bottom: 0; left: 0; padding: 2rem; z-index: 2; width: 100%; }
.prod-content h3 { color: white; font-size: 1.4rem; margin-bottom: 0.25rem; }
.prod-content p { color: rgba(255,255,255,0.8); font-size: 0.9rem; margin-bottom: 0; line-height: 1.4; }
.prod-arrow {
    position: absolute; bottom: 2rem; right: 2rem; color: var(--brand-red);
    font-weight: bold; font-size: 1.5rem; transform: translateX(10px); opacity: 0; transition: all 0.3s;
}
.product-card:hover .prod-arrow { transform: translateX(0); opacity: 1; }

/* --- 7. SERVICES (Natoli Style) --- */
.services-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem;
    margin-top: 3rem;
}
.service-card {
    background: white; border: 1px solid var(--grey-200); padding: 2.5rem; border-radius: var(--radius-md);
    text-align: center; transition: all 0.3s ease;
}
.service-card:hover { border-color: var(--brand-red); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.service-icon { font-size: 3rem; margin-bottom: 1.5rem; display: inline-block; }

/* --- 8. INDUSTRY GRID --- */
.industry-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px;
    margin-top: 4rem;
}
.industry-card {
    height: 400px; position: relative; overflow: hidden;
    background-size: cover; background-position: center;
}
/* Heavy Overlay for Readability */
.industry-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.4));
    transition: background 0.4s ease, opacity 0.4s ease;
    z-index: 1;
}
.industry-card:hover .industry-overlay {
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.2));
}
.industry-content {
    position: absolute; bottom: 0; padding: 2.5rem; color: white; z-index: 2;
}
.industry-content h3 { color: white; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.industry-list { color: rgba(255,255,255,0.9); margin-top: 0.5rem; font-size: 0.95rem; }

/* --- 9. HERITAGE / HISTORY PARALLAX --- */
.history-section {
    background-image: url('../images/History.png'); /* UPDATE PATH */
    min-height: 500px;
    background-attachment: fixed;
    background-position: center; background-repeat: no-repeat; background-size: cover;
    position: relative;
    display: flex; align-items: center; justify-content: center;
}
.history-overlay {
    background: rgba(15, 23, 42, 0.9);
    padding: 4rem; max-width: 900px; text-align: center;
    color: white; border-radius: var(--radius-md); margin: 2rem;
    border: 1px solid rgba(255,255,255,0.1);
}

/* --- 10. MAP & LOCATIONS --- */
.map-section {
    background: #0F172A; padding: 6rem 0;
    position: relative; overflow: hidden;
}
.map-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
    align-items: center; max-width: 1280px; margin: 0 auto; padding: 0 2rem;
    position: relative; z-index: 2;
}
.location-list { display: flex; flex-direction: column; gap: 2rem; }
.loc-item {
    display: flex; align-items: flex-start; gap: 1rem;
    border-left: 3px solid rgba(255,255,255,0.1); padding-left: 1.5rem;
    transition: border-color 0.3s;
}
.loc-item:hover { border-color: var(--brand-red); }
.flag-icon { width: 32px; height: auto; flex-shrink: 0; border-radius: 2px; margin-top: 4px; border: 1px solid rgba(255,255,255,0.2); }

.map-container { position: relative; height: 400px; width: 100%; opacity: 0.8; }
.map-bg {
    width: 100%; height: 100%;
    /* Ensure you download a world map SVG and link it here */
    background-image: url('../images/world-map.svg');
    background-size: contain; background-repeat: no-repeat; background-position: center;
    filter: invert(1) opacity(0.5);
}
.map-dot {
    width: 12px; height: 12px; background: var(--brand-red); border-radius: 50%;
    position: absolute; box-shadow: 0 0 0 4px rgba(202, 32, 48, 0.3);
    animation: pulse 2s infinite;
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(202, 32, 48, 0.7); } 100% { box-shadow: 0 0 0 0 rgba(202, 32, 48, 0); } }

/* --- 11. FOOTER --- */
/* Exact styles from mockup */
footer {
    background: var(--navy-800);
    color: #94A3B8;
    padding: 4rem 0;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* Footer headings */
footer h4,
footer .widget-title,
footer .widget h2,
footer .widget h4 {
    color: white !important;
    margin-bottom: 1rem !important;
    font-size: 1rem !important;
    font-weight: 600;
}

/* Footer lists */
footer ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

footer ul li,
footer .widget li {
    margin-bottom: 0.5rem !important;
    list-style: none !important;
}

/* Footer links */
footer a,
footer .widget a,
footer .widget li a {
    color: #94A3B8 !important;
    text-decoration: none !important;
    transition: color 0.2s;
    font-size: 0.9rem !important;
}

footer a:hover,
footer .widget a:hover,
footer .widget li a:hover {
    color: white !important;
}
.zak-top-bar, .zak-footer{
    background: var(--navy-800);
    color: #94A3B8;
    padding: 4rem 0 1rem;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
/* Footer paragraphs */
footer p,
footer .widget p,
footer .textwidget p {
    color: #94A3B8 !important;
    font-size: 0.9rem !important;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

/* Footer logo styles */
footer .footer-logo-wrapper {
    display: inline-block;
}
footer .footer-custom-logo-link {
    display: inline-block;
    line-height: 0;
}
footer .footer-custom-logo {
    width: 140px;
}
footer .logo-svg {
    height: 40px;
    width: auto;
}

/* Reset widget margins in footer */
footer .widget {
    margin-bottom: 0 !important;
}

/* Hide default Zakra footer elements */
.zak-footer-cols,
.zak-footer-bar,
.zak-footer-builder,
.zak-footer-desktop-row .zak-footer-top-row,
.zak-footer-desktop-row .zak-footer-main-row,
.zak-footer-desktop-row .zak-footer-bottom-row {
    display: none !important;
}

/* --- 12. RESPONSIVE QUERIES --- */

/* Mobile Menu Toggle Button - Hidden on desktop */
.zak-toggle-menu {
    display: none;
}

.zak-submenu-toggle{
    display: none;
}

/* Tablet and below - 1024px */
@media (max-width: 1024px) {
    /* Hero section adjustments */
    .hero {
        padding: 6rem 0 5rem;
    }
    .hero h1 {
        font-size: 2.8rem;
        max-width: 100%;
    }
    .hero h2 {
        font-size: 1.3rem;
        max-width: 100%;
    }
}

@media (max-width: 900px) {
    .industry-grid, .stats-bar, .map-grid { grid-template-columns: 1fr; }
    .map-container { order: -1; height: 300px; }
    h1 { font-size: 2.5rem; }
    .nav-links .sub-menu { display: none; }

    /* Hero section further adjustments */
    .hero {
        padding: 5rem 0 4rem;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero h2 {
        font-size: 1.2rem;
    }

    /* Footer responsive - logo full width, rest in 2 columns */
    footer .container {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 2rem !important;
    }

    /* Logo column - full width at top */
    footer .container > div:first-child {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        order: -1;
    }

    /* Other columns - 2 columns layout */
    footer .container > div:not(:first-child) {
        flex: 0 0 calc(50% - 1rem) !important;
        max-width: calc(50% - 1rem) !important;
    }
}

@media (max-width: 768px) {
    /* Hero section mobile adjustments */
    .hero {
        padding: 4rem 0 3rem;
        background-position: center center;
    }
    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    .hero h2 {
        font-size: 1.1rem;
        margin-bottom: 0;
    }
    /* Fix button spacing in hero on mobile */
    .hero .btn,
    .hero .elementor-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Hide desktop menu and mega-menus on mobile */
    .main-navigation .nav-links {
        display: none !important;
    }
    .nav-links .sub-menu {
        display: none;
    }

    /* Hide phone icon on mobile */
    .phone-btn {
        display: none;
    }

    /* Show mobile menu toggle button */
    .zak-toggle-menu {
        display: block;
    }
    .zak-mobile-nav{
        background-color: white;
        color: var(--navy-700);
    }
    .zak-mobile-menu a{
        color: var(--navy-700);
        font-size: .95rem;
        line-height: 1.2;
        text-decoration: unset;
    }
    .zak-mobile-nav .zak-icon{
        fill: var(--navy-700);
    }

    /* Mobile Logo in header */
    .zak-mobile-logo {
        flex: 1;
        display: flex;
        align-items: center;
    }
    .zak-mobile-logo .custom-logo-link,
    .zak-mobile-logo .mobile-logo-link {
        display: inline-block;
        line-height: 0;
    }
    .zak-mobile-logo .custom-logo,
    .zak-mobile-logo .mobile-logo-svg {
        width: 100px;
        display: block;
    }

    /* Adjust mobile nav header layout */
    .zak-mobile-nav__header {
        margin-bottom: 0;
    }
}

.widget .wp-block-heading, .widget .widget-title{
    border: unset;
}

/* Small mobile devices */
@media (max-width: 480px) {
    /* Hero section small mobile adjustments */
    .hero {
        padding: 3rem 0 2.5rem;
    }
    .hero h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    .hero h2 {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    /* Make buttons stack vertically on very small screens */
    .hero .elementor-button-wrapper,
    .hero .btn-wrap {
        display: block;
        width: 100%;
    }
    .hero .btn,
    .hero .elementor-button {
        width: 100%;
        margin-bottom: 0.75rem;
    }

    /* Ensure container has proper padding */
    .hero .container,
    .hero .elementor-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}
.cursor-pointer{
    cursor: pointer;
}

/* Product section */
.products-section > div{
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
}
.products-section .product-text h3{
    color: white;
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
}
.products-section .product-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 0;
    line-height: 1.4;
}  .footer-terms-nav {
    display: flex;
    justify-content: center;
    padding: 0 20px;
}

.footer-terms-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    justify-content: center;
}

.footer-terms-menu li {
    margin: 0;
}

.footer-terms-menu a {
    color: inherit;
    text-decoration: none;
    font-size: 0.875rem;
    opacity: 0.75;
    transition: opacity 0.2s;
}

.footer-terms-menu a:hover {
    opacity: 1;
    text-decoration: underline;
}

.copyright-wrapper{
    display: flex;
    justify-content: center;
    padding: 20px;
}

/* tooling-prod-section */

/* --- TOOLING PRODUCT ROW WIDGET --- */
/* Layout utility classes */
.d-flex { display: flex; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }

/* Product Row Base Styles */
.product-row {
    display: flex;
    align-items: center;
    gap: 5rem;
    padding: 6rem 0;
    border-bottom: 1px solid var(--grey-200);
}

/* Reverse Layout */
.product-row.reverse {
    flex-direction: row-reverse;
    background-color: var(--grey-50);
    border-bottom: none;
}

/* Grey Background Wrapper for Reverse Layout */
.product-wrapper-grey {
    background-color: var(--grey-50);
    width: 100%;
}

/* Product Media & Content - Equal Width */
.product-row .prod-media img{
    border-radius: var(--img-radius);
}
.prod-media,
.tooling-prod-content {
    flex: 1;
    width: 50%;
}

/* Product Image Styling */
.main-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15);
}

/* Heading Styles in Product Row */
.tooling-prod-content h2 {
    color: var(--navy-900);
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.tooling-prod-content p {
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 65ch;
}

/* --- Icon Compact Layout --- */
.icon-compact {
    display: flex;
    gap: 3rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.icon-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.icon-box {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: var(--navy-900);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.icon-box img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1); /* Make icons white */
}

.icon-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--navy-900);
    line-height: 1.2;
    text-transform: uppercase;
}

/* --- Button Matrix Layout --- */
/* btn-matrix: для 3 кнопок (первая на всю ширину, две другие рядом) */
.btn-matrix {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    max-width: 500px;
    margin-top: 2rem;
}

/* Full width button spans both columns */
.btn-matrix .btn-full {
    grid-column: 1 / -1;
}

/* btn-group: для 2 кнопок (обе кнопки рядом) */
.btn-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    max-width: 500px;
    margin-top: 2rem;
}

/* В btn-group все кнопки занимают одну колонку, даже с btn-full */
.btn-group .btn {
    grid-column: auto;
}

/* Button Styles - ensuring consistency */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
}

.btn-full {
    width: 100%;
}

.btn-primary {
    background: var(--brand-red);
    color: white;
    border: none;
}

.btn-primary:hover {
    background: var(--brand-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(202, 32, 48, 0.2);
    color: white;
}

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

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

/* --- Responsive Styles --- */
@media (max-width: 900px) {
    .product-row,
    .product-row.reverse {
        flex-direction: column;
        gap: 2rem;
        padding: 3rem 1.5rem;
        text-align: left;
    }

    .prod-media,
    .tooling-prod-content {
        width: 100%;
        justify-content: center;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 0;
    }

    .main-img {
        width: 100%;
        height: auto;
        max-height: 280px;
        object-fit: cover;
    }

    .btn-matrix,
    .btn-group {
        grid-template-columns: 1fr;
        max-width: 100%;
        width: 100%;
    }

    .btn-matrix .btn-full {
        grid-column: auto;
    }

    .btn-matrix .btn,
    .btn-group .btn {
        width: 100%;
    }

    .icon-compact {
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

/* --- End Tooling Product Row Widget --- */

/* --- Tech Section Widget --- */
.tech-section {
    background: var(--navy-900);
    color: white;
    padding: 8rem 0;
}

.tech-header {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.tech-header p {
    color: #CBD5E1;
    font-size: 1.1rem;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.tech-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: var(--img-radius);
    transition: var(--transition);
}

.tech-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--brand-red);
}

.tech-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--brand-red);
}

.tech-card p {
    color: #CBD5E1;
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Responsive styles for Tech Section */
@media (max-width: 1024px) {
    .tech-section {
        padding: 6rem 0;
    }
}

@media (max-width: 767px) {
    .tech-section {
        padding: 4rem 0;
    }

    .tech-grid {
        margin-top: 2rem;
    }
}
/* --- End Tech Section Widget --- */

.zak-container{
    max-width: unset;
    padding:0;
}