:root {
    /* Primary Colors */
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #dbeafe;
    
    /* Secondary/Accent Colors */
    --secondary-color: #f59e0b;
    --secondary-hover: #d97706;
    --secondary-light: #fef3c7;
    
    /* Neutral Palette */
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    
    /* Semantic Colors */
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    
    /* Typography */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Outfit', var(--font-main);
    
    /* Spacing & Borders */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-3xl: 2rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-main);
    background-color: #fff;
    color: var(--slate-700);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--slate-900);
    font-weight: 700;
}

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

/* Utility Layouts */
.container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.grid { display: grid; }

/* Header & Navigation */
.site-header {
    width: 100%;
    background-color: #fff;
}

.top-bar {
    border-bottom: 1px solid var(--slate-100);
    padding: 1rem 0;
}

.nav-main {
    position: sticky;
    top: 0;
    z-index: 40;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--slate-100);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.nav-container {
    height: 5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    transition: all var(--transition-normal);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--slate-900);
}

.btn-secondary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Sections */
.section-py {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

@media (min-width: 768px) {
    .section-py {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }
}

.section-title-wrap {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    color: var(--secondary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
    display: block;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3.75rem;
    }
}

.title-divider {
    height: 0.25rem;
    width: 5rem;
    background-color: var(--secondary-color);
    margin: 1.5rem auto;
    border-radius: var(--radius-full);
}

/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    height: 70vh;
    background-color: var(--slate-900);
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 0;
    transition: opacity 1000ms ease-in-out;
}

.hero-slide.active {
    opacity: 1;
    z-index: 10;
}

.slide-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    transition: transform 5000ms linear;
}

.hero-slide.active .slide-bg-img {
    transform: scale(1);
}

.slide-content {
    max-width: 48rem;
    margin-left: auto;
    text-align: right;
    color: #fff;
    padding-right: 1rem;
}

@media (min-width: 768px) {
    .slide-content {
        padding-right: 4rem;
    }
}

/* Cards & Grid Items */
.card {
    background-color: #fff;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.card:hover {
    transform: translateY(-0.5rem);
    box-shadow: var(--shadow-xl);
}

/* Footer */
.site-footer {
    background-color: var(--slate-900);
    color: var(--slate-300);
    padding-top: 5rem;
    padding-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
}

.footer-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color), var(--primary-color));
}

/* Responsive Utilities */
.hidden { display: none; }
@media (min-width: 768px) {
    .md-block { display: block; }
    .md-flex { display: flex; }
    .md-hidden { display: none; }
}

/* ITR2003 Legacy Shims */
.ptb-100 { padding-top: 100px; padding-bottom: 100px; }
.bg-fafafa { background-color: #fafafa; }
.default-btn { 
    border-radius: var(--radius-full);
    transition: all var(--transition-normal);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
}

/* Engine Generated Classes Styling */

/* Top Menu */
.th-mainul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.th-mainul > li {
    position: relative;
}

.th-mainul > li > a {
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--slate-700);
    padding: 0.5rem 0;
    display: block;
}

.th-mainul > li:hover > a {
    color: var(--primary-color);
}

/* Dropdown Menu */
.th-productul {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    box-shadow: var(--shadow-xl);
    min-width: 240px;
    border-radius: var(--radius-lg);
    padding: 1rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(1rem);
    transition: all var(--transition-normal);
    z-index: 50;
    list-style: none;
    border: 1px solid var(--slate-100);
}

.th-mainul li:hover .th-productul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.th-productul li a {
    padding: 0.75rem 1.5rem;
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate-600);
}

.th-productul li a:hover {
    background-color: var(--slate-50);
    color: var(--primary-color);
    padding-left: 1.75rem;
}

/* Mobile Menu Adjustments */
#mobile-menu .th-mainul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
}

#mobile-menu .th-mainul > li {
    width: 100%;
    border-bottom: 1px solid var(--slate-100);
}

#mobile-menu .th-mainul > li > a {
    padding: 1rem;
    width: 100%;
}

#mobile-menu .th-productul {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background-color: var(--slate-50);
    border: none;
    display: none; /* Controlled by toggle JS */
}

/* Footer Widgets */
.footer-widget {
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    padding-bottom: 0.75rem;
    border-bottom: none !important; /* Override legacy border */
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 2.5rem;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-widget ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-widget ul li a {
    font-size: 0.875rem;
    color: var(--slate-400);
    transition: all var(--transition-fast);
}

.footer-widget ul li a:hover {
    color: white;
    padding-left: 0.5rem;
}

/* Social Media Icons Mapping */
.footer-social ul li.Facebook a::before, .divSocialMedia ul li.Facebook a::before { content: "\f09a"; }
.footer-social ul li.Twiter a::before, .divSocialMedia ul li.Twiter a::before,
.footer-social ul li.Twitter a::before, .divSocialMedia ul li.Twitter a::before { content: "\f099"; }
.footer-social ul li.Linkedin a::before, .divSocialMedia ul li.Linkedin a::before { content: "\f0e1"; }
.footer-social ul li.Youtube a::before, .divSocialMedia ul li.Youtube a::before { content: "\f167"; }
.footer-social ul li.Instagram a::before, .divSocialMedia ul li.Instagram a::before { content: "\f16d"; }

/* Map Styling */
.divMap iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: var(--radius-2xl);
    filter: grayscale(0.2) contrast(1.1);
}

/* Page Header & Breadcrumbs */
.page-header {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .page-header {
        padding: 6rem 0;
    }
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background: radial-gradient(circle at center, white, transparent);
    pointer-events: none;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.6);
    list-style: none;
    padding: 0;
}

.breadcrumb a {
    color: white;
    transition: color var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 0.75rem;
    opacity: 0.5;
}

.breadcrumb .active {
    color: var(--secondary-color);
}

/* Common Section spacing */
.section-bg {
    background-color: var(--slate-50);
}

.section-white {
    background-color: #fff;
}

/* Footer Social Icons Base */
.footer-social ul, .divSocialMedia ul {
    display: flex;
    gap: 0.75rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-social ul li a, .divSocialMedia ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--slate-800);
    color: white;
    border-radius: var(--radius-full);
    transition: all var(--transition-normal);
    text-decoration: none;
    position: relative;
}

.footer-social ul li a::before, .divSocialMedia ul li a::before {
    font-family: 'FontAwesome';
    font-size: 1.125rem;
}

/* Hover Effects */
.footer-social ul li a:hover, .divSocialMedia ul li a:hover {
    background-color: var(--secondary-color);
    color: var(--slate-900);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.footer-social ul li.Facebook a:hover, .divSocialMedia ul li.Facebook a:hover { background-color: #3b5998; color: white; }
.footer-social ul li.Twiter a:hover, .divSocialMedia ul li.Twiter a:hover,
.footer-social ul li.Twitter a:hover, .divSocialMedia ul li.Twitter a:hover { background-color: #1da1f2; color: white; }
.footer-social ul li.Linkedin a:hover, .divSocialMedia ul li.Linkedin a:hover { background-color: #0077b5; color: white; }
.footer-social ul li.Youtube a:hover, .divSocialMedia ul li.Youtube a:hover { background-color: #ff0000; color: white; }
.footer-social ul li.Instagram a:hover, .divSocialMedia ul li.Instagram a:hover { background-color: #e4405f; color: white; }
