/* ========================================
   Dynapac Shock Absorber - Professional Corporate Design
   Clean, Readable, SEO-Optimized
   ======================================== */

:root {
    --primary-navy: #0d3b66;
    --primary-dark: #0a1628;
    --secondary-blue: #1d4e89;
    --accent-amber: #f4a261;
    --accent-gold: #e9c46a;
    --accent-teal: #2a9d8f;

    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --border-color: #e2e8f0;
    --bg-white: #ffffff;
    --bg-light: #f7fafc;
    --bg-gray: #edf2f7;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);

    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-white);
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }

p {
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

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

a:hover {
    color: var(--primary-navy);
}

ul, ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========== HEADER ========== */
header {
    background: linear-gradient(135deg, #0a1628 0%, #0d3b66 100%);
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--accent-amber);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.logo-img {
    width: 55px;
    height: 55px;
}

.logo-text-wrapper h1 {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: 0.5px;
}

.logo-text-wrapper p {
    color: var(--accent-amber);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 0.25rem 0 0 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.main-nav {
    display: flex;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    padding: 0.75rem 1.1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.92rem;
    transition: var(--transition);
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown > .nav-link::after {
    content: '\25BC';
    margin-left: 0.5rem;
    font-size: 0.65rem;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 260px;
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    list-style: none;
    border: 1px solid var(--border-color);
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    color: var(--text-primary);
    padding: 0.75rem 1.25rem;
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
}

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

.header-contact {
    display: flex;
    gap: 0.75rem;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.15rem;
    background: var(--accent-amber);
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.88rem;
    box-shadow: var(--shadow-sm);
}

.contact-btn:hover {
    background: #e8913a;
    color: #ffffff;
}

.contact-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* ========== HERO ========== */
.hero {
    background: linear-gradient(135deg, #0a1628 0%, #0d3b66 50%, #1d4e89 100%);
    padding: 4rem 1.5rem;
    color: #ffffff;
    text-align: center;
}

.hero h2 {
    font-size: 2.75rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.hero-highlight {
    color: var(--accent-amber);
}

.hero p {
    font-size: 1.15rem;
    max-width: 900px;
    margin: 0 auto 2rem;
    color: #cbd5e0;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.cta-primary,
.cta-secondary {
    padding: 1rem 2.5rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-primary {
    background: var(--accent-amber);
    color: #ffffff;
}

.cta-primary:hover {
    background: #e8913a;
    color: #ffffff;
}

.cta-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.25);
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

/* ========== SEARCH ========== */
.search-container {
    position: relative;
}

.search-box {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    fill: var(--text-muted);
}

.search-box input {
    width: 100%;
    padding: 1rem 1.5rem 1rem 3.5rem;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-primary);
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent-amber);
    box-shadow: 0 0 0 3px rgba(244, 162, 97, 0.2);
}

/* ========== FEATURES ========== */
.features {
    padding: 4rem 1.5rem;
    background: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.25rem;
    background: linear-gradient(135deg, var(--primary-navy), var(--secondary-blue));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 2rem;
}

/* ========== PRODUCTS ========== */
.products {
    padding: 4rem 1.5rem;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--bg-white);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-card a {
    display: block;
    padding: 1.5rem;
    color: inherit;
    text-decoration: none;
}

.product-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-navy), var(--secondary-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    margin-bottom: 1.25rem;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-icon {
    font-size: 4rem;
    color: #fff;
}

.product-card h3 {
    font-size: 1.3rem;
    color: var(--primary-navy);
    margin-bottom: 0.75rem;
}

.product-link {
    color: var(--accent-amber);
    font-weight: 700;
}

.product-image-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 1rem;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image-wrapper img {
    transform: scale(1.05);
}

.product-code {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
}

.product-name {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.product-category {
    display: inline-block;
    background: var(--bg-light);
    color: var(--accent-amber);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ========== CONTENT SECTIONS ========== */
.content-section {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.content-section h3 {
    font-size: 1.75rem;
    color: var(--primary-dark);
    margin: 2rem 0 1rem;
}

.content-section h3:first-child {
    margin-top: 0;
}

.content-section h4 {
    font-size: 1.3rem;
    color: var(--primary-navy);
    margin: 1.5rem 0 0.75rem;
}

.content-section table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.content-section table th,
.content-section table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.content-section table th {
    background: var(--bg-light);
    font-weight: 700;
    color: var(--primary-dark);
}

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

/* ========== BREADCRUMB ========== */
.breadcrumb {
    background: var(--bg-light);
    padding: 1rem 1.5rem;
}

.breadcrumb-list {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

.breadcrumb-list a,
.breadcrumb-list strong {
    color: #000000;
    font-weight: 600;
}

.breadcrumb-separator {
    color: #000000;
}

/* ========== PAGE HEADER ========== */
.page-header {
    background: linear-gradient(135deg, #0a1628 0%, #0d3b66 100%);
    padding: 3rem 1.5rem;
    text-align: center;
    color: #ffffff;
}

.page-header h2 {
    font-size: 2.5rem;
    color: #ffffff;
}

.page-header p {
    color: #cbd5e0;
    max-width: 800px;
    margin: 0 auto;
}

/* ========== PRODUCT DETAIL IMAGE ========== */
.product-detail-image {
    max-width: 600px;
    margin: 2rem auto;
    text-align: center;
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.product-detail-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ========== FAQ SECTION ========== */
.faq-section {
    margin-top: 2rem;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 0;
}

.faq-item h4 {
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.faq-item p {
    margin-bottom: 0;
}

/* ========== RELATED PRODUCTS ========== */
.related-products {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.related-item {
    display: block;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    color: var(--primary-navy);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.related-item:hover {
    background: var(--primary-navy);
    color: #ffffff;
    border-color: var(--primary-navy);
}

/* ========== CONTACT FORM ========== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary-blue);
    box-shadow: 0 0 0 3px rgba(29, 78, 137, 0.1);
}

.submit-btn {
    padding: 1rem 2rem;
    background: var(--accent-amber);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    background: #e8913a;
}

.contact-info-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.contact-info-card h3 {
    color: var(--primary-navy);
    margin-bottom: 1.5rem;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-detail svg {
    width: 24px;
    height: 24px;
    fill: var(--accent-amber);
    flex-shrink: 0;
    margin-top: 2px;
}

/* ========== FOOTER ========== */
footer {
    background: linear-gradient(135deg, #0a1628 0%, #0d3b66 100%);
    color: #ffffff;
    padding: 3rem 1.5rem 1.5rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-section h3 {
    color: var(--accent-amber);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.footer-section p {
    color: #cbd5e0;
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: #cbd5e0;
    display: block;
    margin-bottom: 0.75rem;
}

.footer-section a:hover {
    color: var(--accent-amber);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: #a0aec0;
    margin: 0;
}

.footer-bottom a {
    color: #a0aec0;
}

/* ========== WHATSAPP FLOAT ========== */
.whatsapp-float {
    position: fixed;
    left: 20px;
    bottom: 20px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: #ffffff;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 968px) {
    .main-nav { display: none; }
    .header-contact { display: none; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .products-grid { grid-template-columns: 1fr; }
    .hero h2 { font-size: 2rem; }
    .content-section { padding: 1.5rem; }
    .container { padding: 1rem; }
    .page-header h2 { font-size: 1.75rem; }

    .product-detail-image {
        max-width: 100%;
        padding: 1.5rem;
    }

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

    .content-section table {
        display: block;
        overflow-x: auto;
    }
}

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

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}
