/* Basic Reset & Body Styles */
body {
    margin: 0;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 0.5em;
    color: #222;
    font-weight: 600;
}

h1 { font-size: 2.5rem; line-height: 1.2; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1.2em;
    font-size: 1rem;
    color: #555;
}

a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    text-decoration: none;
    color: #000;
}

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

/* Section Styling */
.section {
    padding: 80px 0;
}

.section.light-bg {
    background-color: #f4f4f4;
    color: #333;
}

.section.white-bg {
    background-color: #ffffff;
    color: #333;
}

.section.grey-bg {
    background-color: #e9ecef;
    color: #333;
}

.section.dark-bg {
    background-color: #222;
    color: #f0f0f0;
}

.section.dark-bg h1, 
.section.dark-bg h2, 
.section.dark-bg h3, 
.section.dark-bg p {
    color: #f0f0f0;
}

/* Header */
header {
    background-color: #222;
    padding: 10px 0;
    border-bottom: 1px solid #444;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    position: relative;
    margin-left: 15px;
}

nav ul li a {
    padding: 20px 0;
    display: block;
    color: #f0f0f0;
    font-weight: 500;
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

nav ul li a:hover, nav ul li a.active {
    color: #fff;
    border-bottom: 2px solid #fff;
}

/* Mega Menu Fix */
.mega-menu, .dropdown {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    background-color: #ffffff;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 1000;
    top: 100%;
    display: flex;
    transition: all 0.3s ease;
    border-top: 3px solid #222;
}

.dropdown {
    width: 250px;
    display: block;
    padding: 15px 0;
}

nav ul li:hover .mega-menu, nav ul li:hover .dropdown {
    visibility: visible;
    opacity: 1;
    top: 100%;
}

.dropdown ul {
    display: block;
}

.dropdown ul li {
    margin: 0;
    width: 100%;
}

.dropdown ul li a {
    padding: 10px 20px;
    font-weight: normal;
    color: #666;
    text-transform: none;
    font-size: 0.9rem;
    border-bottom: none;
}

.dropdown ul li a:hover {
    color: #222;
    background: #f9f9f9;
    border-bottom: none;
}

.mega-menu-column {
    flex: 1;
    padding: 0 20px;
}

.mega-menu-column h4 {
    color: #222;
    margin-bottom: 15px;
    font-size: 1rem;
    text-transform: uppercase;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.mega-menu-column ul {
    display: block;
}

.mega-menu-column ul li {
    margin: 0;
    width: 100%;
}

.mega-menu-column ul li a {
    padding: 8px 0;
    font-weight: normal;
    color: #666;
    text-transform: none;
    font-size: 0.95rem;
}

.mega-menu-column ul li a:hover {
    color: #222;
    background: transparent;
}

/* Hero Section */
.hero-section {
    position: relative;
    background-color: #222;
    color: #f0f0f0;
    min-height: 600px; /* Big height for home */
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-section.inner-page {
    min-height: 300px;
}

.hero-section .overlay-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-section .placeholder-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1a1a1a;
    z-index: 1;
    border: none;
}

.hero-section h1 {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 20px;
}

.hero-section h2 {
    font-size: 1.5rem;
    color: #ccc;
    font-weight: normal;
}

/* Footer */
footer {
    background-color: #f4f4f4;
    color: #333;
    padding: 60px 0 30px;
    border-top: 1px solid #ddd;
}

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

footer .logo img {
    height: 60px;
    margin-bottom: 20px;
}

footer h4 {
    color: #222;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

footer ul li a {
    color: #666;
    font-size: 0.95rem;
}

footer ul li a:hover {
    color: #222;
}

footer .copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #ddd;
    font-size: 0.9rem;
    color: #888;
}

/* Utility Classes */
.grid-2-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; align-items: center; }
.grid-3-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* Placeholder Styles - Simple Blocks */
.placeholder-image {
    background-color: #e0e0e0;
    min-height: 200px;
    border: 1px solid #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.placeholder-image::after {
    content: attr(data-label);
    font-size: 0.7em;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.placeholder-image.hero { min-height: 600px; }
.placeholder-image.hero::after { font-size: 1em; color: #555; }

.placeholder-icon {
    width: 60px;
    height: 60px;
    background-color: #eee;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
}

.placeholder-icon i, .placeholder-icon svg {
    width: 32px;
    height: 32px;
    color: #666;
    stroke-width: 1.5;
}

.card {
    background-color: #fff;
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.button {
    display: inline-block;
    padding: 14px 30px;
    background-color: #222;
    color: #fff;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s;
    margin-top: 20px;
}

.button:hover {
    background-color: #000;
    color: #fff;
    transform: translateY(-2px);
}

/* System Finder Styles */
.finder-container {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-top: -50px;
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(4, 1fr) auto;
    gap: 15px;
    align-items: end;
}

.finder-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.finder-field label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
}

.finder-field select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f9f9f9;
    font-size: 0.9rem;
}

/* Category Grid */
.category-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-align: center;
    padding-bottom: 20px;
}

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

.category-card .placeholder-image {
    height: 180px;
    margin-bottom: 15px;
}

.category-card h3 {
    font-size: 1.1rem;
    margin: 10px 15px;
}

/* System Detail Styles */
.detail-section {
    padding: 60px 0;
}

.layers-diagram {
    background: #f0f0f0;
    border: 2px dashed #ccc;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
}

.inquiry-form {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.inquiry-form input, .inquiry-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* List styling */
.advantage-list {
    list-style: none;
    padding: 0;
}

.advantage-list li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 15px;
}

.advantage-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #222;
    font-weight: bold;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.tech-drawing {
    background: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    text-align: center;
}

/* Responsive */
@media (max-width: 992px) {
    .finder-container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .finder-container { grid-template-columns: 1fr; }
}

/* Tabs */
.tabs-container {
    margin-top: 40px;
}

.tabs-nav {
    display: flex;
    justify-content: center;
    border-bottom: 1px solid #ddd;
    margin-bottom: 40px;
    gap: 30px;
}

.tab-link {
    padding: 15px 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #999;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tab-link:hover, .tab-link.active {
    color: #222;
    border-bottom-color: #222;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Download Grid */
.download-section {
    margin-bottom: 50px;
}

.download-section h3 {
    margin-bottom: 20px;
    border-left: 4px solid #222;
    padding-left: 15px;
}

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

.download-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
}

.download-item i {
    margin-right: 15px;
    color: #666;
}

.download-item .info {
    flex-grow: 1;
    min-width: 0;
}

.download-item .info h5 {
    margin: 0;
    font-size: 0.95rem;
}

.download-item .info span {
    font-size: 0.75rem;
    color: #999;
}

/* Media Gallery */
.media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Responsive Footer */
@media (max-width: 768px) {
    footer .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    footer .footer-grid {
        grid-template-columns: 1fr;
    }
}

