/* NovaTech Industries Corporate Site Styles */
:root {
    --primary: #1e3a5f;
    --primary-dark: #0f2844;
    --secondary: #3d5a80;
    --accent: #e85d04;
    --dark: #14213d;
    --gray-dark: #2b2d42;
    --gray: #555b6e;
    --gray-light: #8d99ae;
    --gray-lighter: #d5d8dc;
    --white: #fff;
    --bg-light: #f0f2f5;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--gray-dark);
    background: var(--white);
}

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

a:hover {
    color: var(--secondary);
}

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

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

/* Header */
.top-bar {
    background: var(--dark);
    color: var(--white);
    padding: 8px 0;
    font-size: 13px;
}

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

.top-bar a {
    color: var(--gray-lighter);
    margin-left: 20px;
}

.top-bar a:hover {
    color: var(--white);
}

header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}

.logo span {
    color: var(--accent);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 5px;
}

nav ul li {
    position: relative;
}

nav ul li a {
    display: block;
    padding: 10px 18px;
    color: var(--gray-dark);
    font-weight: 500;
    border-radius: 4px;
}

nav ul li a:hover {
    background: var(--bg-light);
    color: var(--primary);
}

nav ul li:hover .dropdown {
    display: block;
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    border-radius: 4px;
    padding: 10px 0;
    z-index: 100;
}

.dropdown a {
    display: block;
    padding: 10px 20px;
    color: var(--gray-dark);
    font-weight: 400;
}

.dropdown a:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.search-btn, .menu-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--gray-dark);
    padding: 8px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60"><path d="M0 0h60v60H0z" fill="none"/><path d="M0 60L60 0" stroke="rgba(255,255,255,0.08)" stroke-width="1"/><path d="M30 60L60 30M0 30L30 0" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></svg>');
    background-size: 60px;
    opacity: 0.8;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-small {
    padding: 60px 0;
}

.hero-small h1 {
    font-size: 36px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 16px;
}

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

.btn-primary:hover {
    background: #6a9e39;
    color: var(--white);
}

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

.btn-secondary:hover {
    background: var(--bg-light);
}

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

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

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

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    color: var(--dark);
    margin-bottom: 15px;
}

.section-header p {
    font-size: 18px;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

.bg-light {
    background: var(--bg-light);
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: var(--transition);
}

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

.card-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 48px;
}

.card-content {
    padding: 25px;
}

.card-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--dark);
}

.card-content p {
    color: var(--gray);
    margin-bottom: 15px;
}

.card-link {
    color: var(--primary);
    font-weight: 600;
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 10px;
}

.stat-item p {
    color: var(--gray);
    font-size: 16px;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.feature {
    text-align: center;
    padding: 30px;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--white);
    font-size: 32px;
}

.feature h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--dark);
}

.feature p {
    color: var(--gray);
}

/* Two Column Layout */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.two-col-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--dark);
}

.two-col-content p {
    margin-bottom: 20px;
    color: var(--gray);
}

.two-col-image {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 8px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 64px;
}

/* News */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-item {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.news-image {
    height: 180px;
    background: var(--gray-lighter);
}

.news-content {
    padding: 20px;
}

.news-date {
    font-size: 13px;
    color: var(--gray-light);
    margin-bottom: 10px;
}

.news-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--dark);
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--dark) 0%, #1e3a5f 100%);
    color: var(--white);
    text-align: center;
}

.cta h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.cta p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--gray-lighter);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about p {
    margin: 15px 0;
    font-size: 14px;
    line-height: 1.8;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 16px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--gray-lighter);
    font-size: 14px;
}

.footer-col ul li a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.footer-legal a {
    color: var(--gray-lighter);
    margin-left: 20px;
}

/* Page Content */
.page-content {
    padding: 60px 0;
}

.page-content h2 {
    font-size: 28px;
    color: var(--dark);
    margin-bottom: 20px;
    margin-top: 40px;
}

.page-content h2:first-child {
    margin-top: 0;
}

.page-content p {
    margin-bottom: 15px;
    color: var(--gray);
}

.page-content ul, .page-content ol {
    margin-bottom: 15px;
    padding-left: 20px;
    color: var(--gray);
}

.page-content li {
    margin-bottom: 8px;
}

/* Sidebar Layout */
.sidebar-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
}

.sidebar {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar h3 {
    font-size: 16px;
    color: var(--dark);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    margin-bottom: 5px;
}

.sidebar ul li a {
    display: block;
    padding: 8px 12px;
    color: var(--gray-dark);
    border-radius: 4px;
    font-size: 14px;
}

.sidebar ul li a:hover,
.sidebar ul li a.active {
    background: var(--primary);
    color: var(--white);
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

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

.team-photo {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 48px;
}

.team-member h4 {
    font-size: 18px;
    color: var(--dark);
    margin-bottom: 5px;
}

.team-member p {
    color: var(--gray);
    font-size: 14px;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary);
}

.timeline-item {
    position: relative;
    padding-bottom: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -36px;
    top: 5px;
    width: 15px;
    height: 15px;
    background: var(--primary);
    border-radius: 50%;
}

.timeline-year {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.timeline-item h4 {
    color: var(--dark);
    margin-bottom: 5px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--gray-lighter);
    border-radius: 4px;
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

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

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.data-table th,
.data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--gray-lighter);
}

.data-table th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--dark);
}

.data-table tr:hover {
    background: var(--bg-light);
}

/* Breadcrumb */
.breadcrumb {
    padding: 15px 0;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--gray);
}

.breadcrumb span {
    color: var(--gray-light);
    margin: 0 10px;
}

/* Accordion */
.accordion {
    border: 1px solid var(--gray-lighter);
    border-radius: 8px;
    overflow: hidden;
}

.accordion-item {
    border-bottom: 1px solid var(--gray-lighter);
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    padding: 20px;
    background: var(--white);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--dark);
}

.accordion-header:hover {
    background: var(--bg-light);
}

.accordion-content {
    padding: 0 20px 20px;
    color: var(--gray);
}

/* Location Cards */
.location-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.location-card {
    background: var(--white);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.location-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

.location-card p {
    color: var(--gray);
    margin-bottom: 10px;
    font-size: 14px;
}

/* Product List */
.product-list {
    display: grid;
    gap: 20px;
}

.product-item {
    display: grid;
    grid-template-columns: 200px 1fr auto;
    gap: 30px;
    align-items: center;
    padding: 20px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.product-image {
    height: 120px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 32px;
}

.product-info h3 {
    color: var(--dark);
    margin-bottom: 10px;
}

.product-info p {
    color: var(--gray);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-main {
        flex-wrap: wrap;
    }

    nav ul {
        display: none;
    }

    .hero h1 {
        font-size: 32px;
    }

    .two-col {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .sidebar-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .location-grid {
        grid-template-columns: 1fr;
    }

    .product-item {
        grid-template-columns: 1fr;
    }
}
