/*
==========================================================================
Custom Styles for Astra LED Child Theme
Description: Main styling following EagerLED design structure
==========================================================================
*/

/* Typography */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

/* Container */
.led-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.led-container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Spacing */
.led-section {
    padding: 80px 0;
}

.led-section-light {
    background: var(--bg-light);
}

.led-section-white {
    background: var(--bg-white);
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.section-title p {
    font-size: 1.125rem;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 20px auto 0;
    border-radius: 2px;
}

/* Buttons */
.led-btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.led-btn-primary {
    background: var(--gradient-primary);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(26, 115, 232, 0.3);
}

.led-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 115, 232, 0.4);
    color: #ffffff;
}

.led-btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.led-btn-secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
}

.led-btn-accent {
    background: var(--gradient-accent);
    color: #ffffff;
}

/* Hero Section with Slider */
.hero-slider-section {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.5) 0%, rgba(26, 115, 232, 0.4) 100%);
    z-index: 3;
}

/* Gradient fallback backgrounds */
.hero-slide-gradient-1 {
    background: linear-gradient(135deg, #0d47a1 0%, #1a73e8 100%);
}

.hero-slide-gradient-2 {
    background: linear-gradient(135deg, #1a73e8 0%, #00bcd4 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 30px;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Top Bar Social Icons Hover */
.social-icon:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.6);
    transform: translateY(-2px);
}

/* Footer */
.led-footer {
    margin-top: 0 !important;
    padding-top: 60px !important;
}

/* Remove gap between contact and footer */
.contact + * {
    margin-top: 0 !important;
}

#contact ~ * {
    margin-top: 0 !important;
}

section.contact {
    margin-bottom: 0 !important;
    padding-bottom: 80px !important;
}

footer.led-footer {
    margin-top: 0 !important;
    padding-top: 60px !important;
}

/* Social Links in Footer */
.social-links a:hover {
    background: #3b82f6 !important;
}

/* Footer Headings */
.footer-col h4 {
    color: white !important;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: #3b82f6;
}

.footer-col p {
    color: white !important;
    opacity: 0.9;
}

/* Footer Links Hover */
.footer-col ul li a:hover {
    color: white !important;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.product-card-image {
    position: relative;
    overflow: hidden;
    padding-top: 75%;
}

.product-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-card-image img {
    transform: scale(1.1);
}

.product-card-content {
    padding: 25px;
}

.product-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.product-card-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-card-title a:hover {
    color: var(--primary-color);
}

.product-card-excerpt {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-bottom: 15px;
}

.product-card-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.product-spec-badge {
    background: var(--bg-light);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--text-gray);
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.feature-item {
    text-align: center;
    padding: 30px 20px;
    background: #ffffff;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #ffffff;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.feature-description {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.6;
}

/* Stats Section */
.stats-section {
    background: var(--gradient-primary);
    color: #ffffff;
    padding: 80px 0;
}

.stats-section-inline {
    background: transparent;
    color: inherit;
    padding: 0;
}

.stats-section-inline .stats-grid {
    background: transparent;
}

.stats-section-inline .stat-item {
    background: #ffffff;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.stats-section-inline .stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.stats-section-inline .stat-number {
    color: var(--primary-color);
    font-size: 2.5rem;
}

.stats-section-inline .stat-label {
    color: var(--text-gray);
    font-size: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1;
}

.stat-label {
    font-size: 1.125rem;
    opacity: 0.95;
}

/* Solutions Grid */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.solution-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    min-height: 350px;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(13, 71, 161, 0.9) 0%, rgba(13, 71, 161, 0.3) 100%);
    transition: all 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-5px);
}

.solution-card:hover::before {
    background: linear-gradient(to top, rgba(26, 115, 232, 0.95) 0%, rgba(26, 115, 232, 0.5) 100%);
}

.solution-content {
    position: relative;
    z-index: 2;
    padding: 30px;
    color: #ffffff;
    width: 100%;
}

.solution-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.solution-description {
    font-size: 0.95rem;
    opacity: 0.95;
}

/* Case Studies */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.case-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.case-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.case-card-image {
    position: relative;
    overflow: hidden;
    padding-top: 66.67%;
}

.case-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.case-card:hover .case-card-image img {
    transform: scale(1.1);
}

.case-card-content {
    padding: 25px;
}

.case-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.case-card-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.case-card-title a:hover {
    color: var(--primary-color);
}

.case-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.875rem;
    color: var(--text-gray);
}

.case-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, #0a2463, #0c1b33);
    color: white;
    padding: 80px 0;
    margin-bottom: 0 !important;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.contact-info {
    background: transparent !important;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: white;
}

.contact-info p {
    margin-bottom: 30px;
    color: #e2e8f0;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-form h3 {
    color: #0c1b33;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #0c1b33;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 1rem;
    transition: border 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.contact-section {
    background: var(--bg-light);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info {
    padding: 40px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.contact-info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-info-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.25rem;
}

.contact-info-content h4 {
    font-size: 1.125rem;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.contact-info-content p {
    color: var(--text-gray);
    margin: 0;
}

/* Form Styles */
.led-form {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.led-form-group {
    margin-bottom: 20px;
}

.led-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.led-form-input,
.led-form-select,
.led-form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    line-height: 1.5;
    height: auto;
    min-height: 44px;
}

.led-form-select {
    padding: 10px 16px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;charset=UTF-8,%3csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3e%3cpolyline points="6 9 12 15 18 9"%3e%3c/polyline%3e%3c/svg%3e');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.led-form-input:focus,
.led-form-select:focus,
.led-form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.led-form-select option {
    padding: 10px;
    line-height: 1.5;
}

.led-form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* Breadcrumbs */
.led-breadcrumbs {
    padding: 20px 0;
    background: var(--bg-light);
}

.led-breadcrumbs ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.led-breadcrumbs li {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
}

.led-breadcrumbs li::after {
    content: '/';
    margin-left: 10px;
    color: var(--text-light);
}

.led-breadcrumbs li:last-child::after {
    display: none;
}

.led-breadcrumbs a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.led-breadcrumbs a:hover {
    color: var(--primary-color);
}

/* Header Styles */
.site-header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 0 !important;
}

#content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.site-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

#primary {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.site-branding a {
    text-decoration: none;
}

.site-branding img {
    max-height: 60px;
    width: auto;
}

/* Horizontal Navigation Menu */
.horizontal-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 5px;
}

.horizontal-menu li {
    position: relative;
    margin: 0;
    padding: 0;
}

.horizontal-menu > li > a {
    display: block;
    padding: 12px 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.horizontal-menu > li > a:hover,
.horizontal-menu > li.current-menu-item > a,
.horizontal-menu > li.current_page_item > a {
    color: var(--primary-color);
    background: rgba(26, 115, 232, 0.1);
}

/* Dropdown Menus */
.horizontal-menu li {
    position: relative;
}

.horizontal-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    list-style: none;
    margin: 0;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border-radius: 6px;
    z-index: 1000;
}

.horizontal-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.horizontal-menu .sub-menu li {
    margin: 0;
    padding: 0;
}

.horizontal-menu .sub-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.horizontal-menu .sub-menu a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    padding-left: 25px;
}

/* Nested Dropdown */
.horizontal-menu .sub-menu .sub-menu {
    top: 0;
    left: 100%;
    margin-left: 0;
}

/* Mobile Navigation */
.mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-list li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu-list a {
    display: block;
    padding: 12px 0;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
}

.mobile-menu-list .sub-menu {
    list-style: none;
    padding-left: 20px;
}

.mobile-menu-list .sub-menu a {
    font-weight: 400;
    font-size: 14px;
    padding: 10px 0;
}

/* Mobile Menu Overlay */
.mobile-navigation.open {
    left: 0 !important;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

.mobile-menu-overlay.active {
    display: block;
}

/* Search Bar */
.search-bar {
    display: none;
    background: var(--bg-light);
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
}

.search-bar.active {
    display: block;
}

.search-bar form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
}

.search-bar input[type="search"] {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 16px;
}

.search-bar button {
    padding: 12px 30px;
    background: var(--gradient-primary);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }
.mt-5 { margin-top: 50px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }
.mb-5 { margin-bottom: 50px; }

