/* Global Resets & Design System */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Default Theme - Dark Navy Blue & Bright Blue Accents */
    --primary-bg: #0b1329;    /* Dark Navy */
    --secondary-bg: #111a36;  /* Lighter Navy */
    --card-bg: #172242;       /* Deep Navy Card */
    --white: #ffffff;
    --black: #000000;
    
    --gold: #3b82f6;          /* Bright Blue Accent */
    --gold-hover: #60a5fa;    /* Bright Blue Hover */
    
    --text-white: #ffffff;    /* Primary text (white) */
    --text-gray: #94a3b8;     /* Slate Gray text */
    --text-dark: #ffffff;     /* White text on blue buttons */
    
    --border-color: rgba(255, 255, 255, 0.06);
    --header-bg: rgba(11, 19, 41, 0.9);
    --accent-light: rgba(59, 130, 246, 0.15);
    --shadow-opacity: 0.3;
    
    /* Non-theme constants */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

[data-theme="dark"] {
    /* Dark Theme (Night) - Black & Gold Accents */
    --primary-bg: #0d0d0d;
    --secondary-bg: #161616;
    --card-bg: #1a1a1a;
    
    --gold: #e4a853; /* Gold */
    --gold-hover: #f0be78;
    
    --text-white: #ffffff; /* Primary text (white) */
    --text-gray: #a0a0a0;  /* Gray text */
    --text-dark: #121212;  /* Dark text on gold buttons */
    
    --border-color: rgba(255, 255, 255, 0.05);
    --header-bg: rgba(13, 13, 13, 0.9);
    --accent-light: rgba(228, 168, 83, 0.1);
    --shadow-opacity: 0.4;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography & General Classes */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

.gold-text {
    color: var(--gold);
}

.section-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.section-title.dark-text {
    color: var(--black);
}

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

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 14px 28px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--gold);
    color: var(--text-dark);
}

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

.btn-secondary {
    background-color: transparent;
    color: var(--text-white);
    border: 2px solid currentColor;
    margin-left: 15px;
}

.btn-secondary:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
}

.btn-header {
    background-color: var(--gold);
    color: var(--text-dark);
    padding: 10px 20px;
    font-size: 0.75rem;
}

.btn-header:hover {
    background-color: var(--gold-hover);
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--header-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
}

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

.logo-img-wrapper {
    display: inline-flex;
    align-items: center;
    height: 45px;
}

.header-logo-img {
    height: 100%;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    gap: 15px;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-gray);
    white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
    color: var(--gold);
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    padding: 140px 0 80px 0;
    background: linear-gradient(to right, var(--secondary-bg) 35%, var(--primary-bg) 35%);
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.hero-image-wrapper {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.hero-img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.hero-image-wrapper:hover .hero-img {
    transform: scale(1.03);
}

.hero-content {
    padding-left: 20px;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 24px;
}

.hero-subtitle {
    color: var(--text-gray);
    font-size: 1.05rem;
    margin-bottom: 35px;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
}

/* Advantages Section */
.advantages-section {
    padding: 100px 0;
    background-color: var(--primary-bg);
}

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

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.advantage-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    transition: var(--transition);
}

.advantage-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
    box-shadow: 0 10px 30px rgba(228, 168, 83, 0.1);
}

.card-icon {
    font-size: 2.2rem;
    color: var(--gold);
    margin-bottom: 20px;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    font-family: var(--font-heading);
}

.card-desc {
    font-size: 0.9rem;
    color: var(--text-gray);
    font-weight: 300;
}

/* Services Section */
.services-section {
    padding: 100px 0;
    background-color: var(--secondary-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.service-card {
    background-color: var(--primary-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 25px;
}

.service-card-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card-text {
    font-size: 0.95rem;
    color: var(--text-gray);
    font-weight: 300;
    margin-bottom: 20px;
}

.adr-classes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.adr-tag {
    background-color: rgba(228, 168, 83, 0.1);
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid rgba(228, 168, 83, 0.2);
    cursor: help;
}

/* About Us Section */
.about-section {
    padding: 100px 0;
    background-color: var(--primary-bg);
}

.about-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content {
    padding-right: 20px;
}

.about-text {
    color: var(--text-gray);
    font-weight: 300;
    margin-bottom: 20px;
}

.synergy-badge {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    margin-top: 30px;
}

.synergy-icon {
    font-size: 2rem;
    color: var(--gold);
    background-color: rgba(228, 168, 83, 0.1);
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.synergy-info h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.synergy-info p {
    font-size: 0.85rem;
    color: var(--text-gray);
}

.about-image-wrapper {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.about-img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.about-image-wrapper:hover .about-img {
    transform: scale(1.03);
}

/* Move the about image down ONLY on desktop for index.html */
@media (min-width: 992px) {
    #about .about-image-wrapper {
        margin-top: 120px;
    }
}

/* Calculator Section */
.calculator-section {
    padding: 100px 0;
    background: linear-gradient(to right, var(--secondary-bg) 35%, var(--primary-bg) 35%);
}

.calculator-container {
    display: grid;
    grid-template-columns: 1.1fr 1.2fr;
    gap: 60px;
    align-items: flex-start;
}

.calc-image-wrapper {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.calc-img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

/* Move the calc image down ONLY on desktop */
@media (min-width: 992px) {
    #calculator .calc-image-wrapper {
        margin-top: 120px;
    }
    #inquiry .calc-image-wrapper {
        margin-top: 120px;
        transform: scale(1.15);
        transform-origin: center right;
    }
    #booking .calc-image-wrapper {
        margin-top: 120px;
    }
}

.calc-image-wrapper:hover .calc-img {
    transform: scale(1.03);
}

.calc-form-wrapper {
    padding-left: 20px;
}

.quote-form {
    margin-top: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    color: var(--text-gray);
}

.form-group input {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 14px 18px;
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input::placeholder {
    color: #555555;
}

.form-group input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 10px rgba(228, 168, 83, 0.2);
}

.form-options {
    margin: 10px 0 25px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Custom Checkbox */
.checkbox-container {
    display: block;
    position: relative;
    padding-left: 32px;
    cursor: pointer;
    font-size: 0.9rem;
    user-select: none;
    font-weight: 400;
    color: var(--text-gray);
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 2px;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: var(--transition);
}

.checkbox-container:hover input ~ .checkmark {
    border-color: var(--gold);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--gold);
    border-color: var(--gold);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid var(--text-dark);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background-color: var(--gold);
    color: var(--text-dark);
    position: relative;
}

.btn-submit .btn-spinner {
    display: none;
}

.btn-submit.loading .btn-text {
    display: none;
}

.btn-submit.loading .btn-spinner {
    display: block;
    font-size: 1.2rem;
}

.form-response {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    font-size: 0.95rem;
    display: none;
}

.form-response.success {
    display: block;
    background-color: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.2);
}

.form-response.error {
    display: block;
    background-color: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

/* Contacts Section - Light Background matching OlegBudInvest layout */
.contacts-section {
    background-color: var(--white);
    padding: 100px 0;
}

.contacts-section .section-tag {
    color: #888888;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 50px;
}

.contact-card {
    background-color: #0e0e0e;
    color: var(--white);
    border-radius: 20px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.contact-tag {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: #666666;
    letter-spacing: 0.1em;
    margin-bottom: 15px;
    display: block;
}

.contact-value {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
    color: var(--white);
}

a.contact-value:hover {
    color: var(--gold);
}

.contact-sub {
    font-size: 0.85rem;
    color: #888888;
    margin-top: auto;
    font-weight: 300;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.social-icons a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--white);
}

.social-icons a:hover {
    background-color: var(--gold);
    color: var(--text-dark);
    transform: translateY(-3px);
}

/* Footer */
.main-footer {
    background-color: #0a0a0a;
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-gray);
}

.footer-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* Filter Tabs Styling */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.btn-filter {
    background-color: var(--secondary-bg);
    color: var(--text-gray);
    border: 1px solid var(--border-color);
    padding: 10px 24px;
    font-size: 0.8rem;
    border-radius: 30px;
    transition: var(--transition);
}

.btn-filter:hover, .btn-filter.active {
    background-color: var(--gold);
    color: var(--text-dark);
    border-color: var(--gold);
}

/* Trucks Catalog styling */
.trucks-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.truck-card {
    background-color: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.truck-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.truck-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.truck-card:hover img {
    transform: scale(1.03);
}

/* Form inputs addition */
.form-group textarea {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 14px 18px;
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    resize: vertical;
    outline: none;
    transition: var(--transition);
}

.form-group textarea::placeholder {
    color: #555555;
}

.form-group textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 10px rgba(228, 168, 83, 0.2);
}

/* Routes Timetable Styling */
.table-wrapper {
    overflow-x: auto;
    background-color: var(--secondary-bg);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    margin-bottom: 40px;
}

.routes-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
    text-align: left;
}

.routes-table th {
    padding: 20px;
    font-family: var(--font-heading);
    color: var(--gold);
    font-weight: 600;
}

.routes-table td {
    padding: 18px 20px;
}

.routes-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.routes-table tbody tr:last-child {
    border-bottom: none;
}

.routes-table tbody tr:hover {
    background-color: rgba(150, 150, 150, 0.08);
}

/* Responsive styles */
@media (max-width: 1199px) {
    .nav-menu {
        gap: 10px;
    }
    .nav-link {
        font-size: 0.8rem;
    }
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contacts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .nav-menu {
        gap: 10px;
    }
    .nav-link {
        font-size: 0.85rem;
    }
    .hero-section {
        background: var(--primary-bg);
        padding-top: 110px;
    }
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-content {
        padding-left: 0;
    }
    .hero-title {
        font-size: 2.8rem;
    }
    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-content {
        padding-right: 0;
    }
    .about-image-wrapper {
        order: -1;
        aspect-ratio: 16/9;
    }
    .calculator-section {
        background: var(--primary-bg);
    }
    .calculator-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .calc-image-wrapper {
        aspect-ratio: 16/9;
    }
    .calc-form-wrapper {
        padding-left: 0;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .trucks-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--primary-bg);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        transition: var(--transition);
        border-top: 1px solid var(--border-color);
    }
    .nav-menu.open {
        left: 0;
    }
    .mobile-nav-toggle {
        display: block;
    }
    .btn-header {
        display: none;
    }
    .hero-title {
        font-size: 2.3rem;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 575px) {
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    .contacts-grid {
        grid-template-columns: 1fr;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .btn-secondary {
        margin-left: 0;
    }
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}

/* Header Actions and Language Switcher */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: var(--transition);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.lang-btn:hover {
    color: var(--gold);
}

.lang-btn.active {
    color: var(--text-dark);
    background-color: var(--gold);
}

.lang-divider {
    color: rgba(150, 150, 150, 0.3);
    user-select: none;
}

@media (max-width: 768px) {
    .header-actions {
        margin-right: 15px;
    }
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    padding: 8px;
    font-size: 1.1rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.theme-toggle-btn:hover {
    color: var(--gold);
    background-color: rgba(150, 150, 150, 0.1);
}
