/* ==========================================================================
   Tezel Elektrik - Global Styles
   ========================================================================== */

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

:root {
    --primary: #ec1c24;
    --primary-dark: #c9171e;
    --secondary: #6c6d70;
    --secondary-light: #8a8b8e;
    --dark: #1f2937;
    --light: #f3f4f6;
    --white: #ffffff;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.page-products { background: var(--light); }

a { text-decoration: none; }

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

/* Header ===================================================================*/
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: var(--primary);
    color: var(--white);
    padding: 8px 0;
    font-size: 14px;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.header-top a {
    color: var(--white);
    margin-left: 20px;
    transition: opacity 0.3s;
}

.header-top a:hover { opacity: 0.8; }

.header-main { padding: 12px 0; }

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

.logo { display: flex; align-items: center; }
.logo img { height: 50px; width: auto; }

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

nav a {
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

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

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

nav a:hover::after,
nav a.active::after { width: 100%; }

nav a.active { color: var(--primary); }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark);
    padding: 5px;
}

/* Hero ====================================================================*/
.hero {
    background: linear-gradient(135deg, var(--secondary) 0%, #4a4b4d 100%);
    color: var(--white);
    padding: 180px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before,
.page-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 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    background-size: 50px 50px;
}

.hero .container,
.page-hero .container {
    position: relative;
    z-index: 1;
}

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

.hero p {
    font-size: 20px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 30px;
}

/* Page Hero (subpages) ====================================================*/
.page-hero {
    background: linear-gradient(135deg, var(--secondary) 0%, #4a4b4d 100%);
    color: var(--white);
    padding: 180px 0 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero h1 {
    font-size: 42px;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-hero p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

/* Buttons ==================================================================*/
.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(236, 28, 36, 0.3);
}

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

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

.btn-whatsapp {
    background: #25d366;
    color: var(--white);
    margin-left: 10px;
}

.btn-whatsapp:hover {
    background: #1ebc5a;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

/* Section title ============================================================*/
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

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

.section-title p {
    color: var(--secondary);
    font-size: 18px;
}

/* Breadcrumb ===============================================================*/
.breadcrumb {
    background: var(--white);
    padding: 15px 0;
    border-bottom: 1px solid #e5e7eb;
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
    color: var(--secondary);
}

.breadcrumb a {
    color: var(--secondary);
    transition: color 0.3s;
}

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

.breadcrumb li:not(:last-child)::after {
    content: '/';
    margin-left: 8px;
    color: var(--secondary-light);
}

.breadcrumb li:last-child {
    color: var(--dark);
    font-weight: 500;
}

/* Features ================================================================*/
.features {
    padding: 80px 0;
    background: var(--light);
}

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

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.feature-card i {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--dark);
}

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

/* Featured Products / Products ============================================*/
.featured-products {
    padding: 80px 0;
    background: var(--white);
}

.products {
    padding: 60px 0 80px;
}

.products-intro {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
    color: var(--secondary);
    font-size: 16px;
}

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

.page-products .products-grid {
    grid-template-columns: repeat(4, 1fr);
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    color: var(--dark);
    cursor: zoom-in;
}

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

.product-card-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: transform 0.4s;
}

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

.product-card-body {
    padding: 18px 20px;
    text-align: center;
    border-top: 1px solid #f0f0f0;
}

.product-card-body h2,
.product-card-body h3 {
    font-size: 16px;
    color: var(--dark);
    font-weight: 600;
    line-height: 1.4;
}

.view-all-products {
    text-align: center;
    margin-top: 45px;
}

/* Catalog =================================================================*/
.catalog {
    padding: 80px 0;
    background: var(--white);
}

.catalog-container {
    background: var(--light);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.catalog-iframe-wrapper {
    width: 100%;
    height: 700px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--white);
}

.catalog-iframe-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.catalog-mobile-link {
    display: none;
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--secondary) 0%, #4a4b4d 100%);
    border-radius: 12px;
    color: var(--white);
}

.catalog-mobile-link i {
    font-size: 25px;
    margin-bottom: 5px;
    color: #FFF;
}

.catalog-mobile-link h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.catalog-mobile-link p {
    opacity: 0.9;
    margin-bottom: 25px;
}

.catalog-mobile-link .btn {
    background: var(--primary);
    color: var(--white);
}

.catalog-mobile-link .btn:hover {
    background: var(--primary-dark);
}

/* About ===================================================================*/
.about {
    padding: 80px 0;
    background: var(--light);
}

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

.about-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.about-card:hover { transform: translateY(-5px); }

.about-card i {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 20px;
}

.about-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--dark);
}

.about-card p { color: var(--secondary); }

/* Contact =================================================================*/
.contact {
    padding: 80px 0;
    background: var(--white);
}

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

.contact-item {
    background: var(--light);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.contact-item i {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 15px;
    width: 70px;
    height: 70px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.contact-item h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--dark);
}

.contact-item p,
.contact-item a {
    color: var(--secondary);
    font-size: 15px;
    line-height: 1.6;
}

.contact-item a:hover { color: var(--primary); }

/* CTA Section =============================================================*/
.cta-section {
    background: var(--white);
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid #e5e7eb;
}

.cta-section h2 {
    font-size: 28px;
    color: var(--dark);
    margin-bottom: 12px;
}

.cta-section p {
    color: var(--secondary);
    font-size: 16px;
    margin-bottom: 25px;
}

/* Footer ==================================================================*/
footer {
    background: var(--dark);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
}

footer p {
    color: #9ca3af;
    font-size: 14px;
}

/* WhatsApp Float ==========================================================*/
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

/* Lightbox ================================================================*/
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 40px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 78vh;
    object-fit: contain;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    color: var(--white);
    text-align: center;
    margin-top: 18px;
    font-size: 18px;
    font-weight: 500;
    max-width: 80vw;
}

.lightbox-counter {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    margin-top: 6px;
    letter-spacing: 1px;
}

.lightbox-close {
    position: fixed;
    top: 25px;
    right: 25px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: var(--white);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s, transform 0.25s;
    z-index: 2001;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: var(--white);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s, transform 0.25s;
    z-index: 2001;
}

.lightbox-nav:hover { background: rgba(255, 255, 255, 0.3); }

.lightbox-prev { left: 25px; }
.lightbox-next { right: 25px; }

.lightbox-prev:hover { transform: translateY(-50%) translateX(-3px); }
.lightbox-next:hover { transform: translateY(-50%) translateX(3px); }

body.lightbox-open { overflow: hidden; }

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

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

    .products-grid,
    .page-products .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .hero h1 { font-size: 40px; }
    .page-hero h1 { font-size: 34px; }
}

/* Responsive - Mobile ====================================================*/
@media (max-width: 768px) {
    .hero { padding: 250px 0 100px !important; }
    .page-hero { padding: 230px 0 50px; }

    .mobile-menu-btn { display: block; }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

    nav.active { display: block; }

    nav ul {
        flex-direction: column;
        gap: 15px;
    }

    nav a::after { display: none; }

    .hero { padding: 140px 0 80px; }
    .hero h1 { font-size: 32px; }
    .hero p { font-size: 16px; }
    .page-hero h1 { font-size: 28px; }
    .page-hero p { font-size: 15px; }

    .btn {
        padding: 12px 25px;
        font-size: 14px;
    }

    .btn-outline {
        margin-left: 0;
        margin-top: 15px;
    }

    .hero .btn-outline {
        display: block;
        margin: 15px auto 0;
        width: fit-content;
    }

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

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

    .products-grid,
    .page-products .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .product-card-body h2,
    .product-card-body h3 { font-size: 14px; }

    .featured-products { padding: 60px 0; }

    .section-title h2 { font-size: 28px; }

    .header-top .container {
        justify-content: center;
        text-align: center;
    }

    .header-top span {
        width: 100%;
        margin-bottom: 5px;
    }

    .header-top a { margin: 0 10px; }

    .logo img { height: 40px; }

    .catalog-iframe-wrapper { display: none; }
    .catalog-mobile-link { display: block; }
    .catalog-container { padding: 20px; }

    .features,
    .catalog,
    .about,
    .contact { padding: 60px 0; }

    .btn-whatsapp { margin-left: 0; margin-top: 10px; }
    .cta-section .btn { display: block; max-width: 280px; margin: 10px auto; }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 26px;
    }

    .lightbox-overlay { padding: 20px; }
    .lightbox-content img { max-height: 70vh; }
    .lightbox-caption { font-size: 15px; margin-top: 12px; }
    .lightbox-close { top: 15px; right: 15px; width: 38px; height: 38px; font-size: 16px; }
    .lightbox-nav { width: 42px; height: 42px; font-size: 18px; }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
}

/* Responsive - Small Mobile ===============================================*/
@media (max-width: 480px) {
    .hero h1 { font-size: 26px; }
    .hero p { font-size: 14px; }
    .page-hero h1 { font-size: 24px; }

    .feature-card,
    .about-card { padding: 30px 20px; }

    .contact-item { padding: 25px 20px; }

    .products-grid,
    .page-products .products-grid { grid-template-columns: 1fr; }

    .product-card-body h2,
    .product-card-body h3 { font-size: 15px; }
}

/* Print ===================================================================*/
@media print {
    header,
    .whatsapp-float,
    .catalog-iframe-wrapper,
    .lightbox-overlay { display: none; }

    .hero {
        padding-top: 20px;
        background: none;
        color: var(--dark);
    }
}
