@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #002E5F;
  --primary-hover: #001f40;
  --secondary: #546E7A;
  --tertiary: #521F00;
  --neutral: #F5F7F8;
  --panel-bg: #FFFFFF;
  --text-primary: #1A202C;
  --text-secondary: #4A5568;
  --border-color: #E2E8F0;
  
  --shadow-sm: 0 4px 10px rgba(0, 46, 95, 0.05);
  --shadow-md: 0 10px 25px rgba(0, 46, 95, 0.1);
  --shadow-lg: 0 20px 40px rgba(0, 46, 95, 0.15);
}

body, html, .light-theme {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif !important;
    background-color: var(--neutral) !important;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .logo-title {
    font-family: 'Manrope', sans-serif !important;
    color: var(--primary);
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--neutral); 
}
::-webkit-scrollbar-thumb {
    background: var(--secondary); 
    border-radius: 4px;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* ============================
   GLOBAL HEADER & NAV
   ============================ */

#main-header {
    width: 100%;
    z-index: 1000;
    background: var(--panel-bg);
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.logo-stacked {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.logo-sub {
    color: var(--secondary);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-item {
    color: var(--secondary);
    font-size: 15px;
    font-weight: 500;
}

.nav-item:hover, .nav-item.active {
    color: var(--primary);
    font-weight: 600;
}

.btn-call {
    background: var(--primary);
    color: white !important;
    padding: 12px 24px;
    border-radius: 6px;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-call:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Hamburger UI */
.hamburger {
    display: none;
    font-size: 28px;
    color: var(--primary);
    background: none;
    border: none;
    cursor: pointer;
}

@media (max-width: 1024px) {
    .hamburger {
        display: block;
    }
    .nav-links {
        display: none; /* hidden by default on mobile */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--panel-bg);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-md);
        box-sizing: border-box;
        border-top: 1px solid var(--border-color);
        gap: 20px;
    }
    .nav-links.active {
        display: flex;
    }
    .header-container {
        padding: 16px;
    }
}

/* ============================
   HERO BANNER
   ============================ */

.hero-wrapper {
    position: relative;
    width: 100%;
    min-height: 70vh;
    background-size: cover;
    background-position: center;
    background-color: var(--primary); /* Fallback */
    display: flex;
    flex-direction: column;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(0,46,95,0.9) 0%, rgba(0,46,95,0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    margin: auto;
    padding: 80px 24px;
    box-sizing: border-box;
}

.badge {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 24px;
}

.hero-content h1 {
    color: white;
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -2px;
    max-width: 800px;
}

.hero-content p {
    color: #CBD5E1;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.btn-primary {
    background: var(--primary);
    color: white !important;
    padding: 16px 32px;
    border-radius: 6px;
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 700;
}

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

.btn-outline {
    background: transparent;
    color: white !important;
    border: 1px solid rgba(255,255,255,0.5);
    padding: 16px 32px;
    border-radius: 6px;
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 700;
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
}

/* ============================
   STATS BAR (Home Only)
   ============================ */

.stats-grid {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: -50px auto 60px auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    box-sizing: border-box;
}

.stat-card {
    background: var(--panel-bg);
    border-radius: 8px;
    padding: 32px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.stat-card.dark {
    background: var(--primary);
    color: white;
    border: none;
}

.stat-card h3 {
    font-size: 36px;
    color: inherit;
    margin: 0 0 8px 0;
    line-height: 1;
}

.stat-card p {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 12px 0;
    color: var(--secondary);
}

.stat-card.dark p {
    color: #94A3B8;
}

.stat-card span {
    font-size: 14px;
    color: var(--text-secondary);
    display: block;
}
.stat-card.dark span {
    color: #CBD5E1;
}

@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: 1fr;
        margin-top: -20px;
    }
    .hero-content h1 {
        font-size: 42px;
    }
}

/* ============================
   MAIN CONTENT AREA
   ============================ */
#nav3 {
    width: 100%;
    margin-top: 40px;
}

#cont {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 80px;
}

#last {
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Layout Utilities generated via inline tools removed */

/* ============================
   BENTO GRID (Home Services)
   ============================ */

.section-head {
    margin-bottom: 40px;
}
.section-head p {
    color: var(--secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    margin-bottom: 8px;
}
.section-head h2 {
    font-size: 36px;
    margin: 0;
    color: var(--text-primary);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: 24px;
}

.bento-box {
    border-radius: 12px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

.bento-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.bento-box.large {
    grid-column: span 2;
    grid-row: span 2;
    background: #E2E8F0;
}

.bento-box.dark {
    background: var(--primary);
    color: white;
}

.bento-box.gray {
    background: #F1F5F9;
}

.bento-box.wide {
    grid-column: span 2;
    background: var(--panel-bg);
}

.bento-icon {
    font-size: 28px;
    margin-bottom: auto; /* Push content to bottom */
    display: inline-block;
}

.bento-box h3 {
    margin: 20px 0 12px 0;
    font-size: 22px;
    color: inherit;
    z-index: 2;
}

.bento-box p {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    z-index: 2;
}
.bento-box.dark p { color: #CBD5E1; }

.bento-watermark {
    position: absolute;
    bottom: -20px;
    right: -20px;
    font-size: 120px;
    font-weight: 800;
    color: rgba(255,255,255,0.4);
    z-index: 1;
    pointer-events: none;
}

@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .bento-box {
        min-height: 250px;
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }
}

/* ============================
   SMART LEGACY GRID CONVERTER (index.php-4)
   ============================ */

/* Only target tables containing product thumbnails */
#last > table:has(td[align="center"] > div[style*="height:150px"]) {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 24px;
    justify-content: center;
}

#last > table:has(td[align="center"] > div[style*="height:150px"]) tbody, 
#last > table:has(td[align="center"] > div[style*="height:150px"]) tr {
    display: contents !important; 
}

#last > table:has(td[align="center"] > div[style*="height:150px"]) td {
    display: block !important;
    width: 280px !important;
    flex: 0 0 280px;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

/* Base image fixes */
#last td[align="center"] img {
    height: auto !important;
    max-height: 140px;
}

/* Layout Wrapper for specific pages */
.layout-wrapper {
    max-width: 1400px;
    margin: 0 auto 80px auto;
    padding: 0 24px;
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* Base legacy tables */
#last > table {
    width: 100%;
}

/* ============================
   GLOBAL MOBILE OVERRIDES
   ============================ */

@media(max-width: 900px) {
    /* Stack modern sidebars and content */
    .layout-wrapper {
        flex-direction: column;
    }
    aside {
        flex: none !important;
        width: 100% !important;
    }
    
    /* Stack legacy grids perfectly */
    #last > table:has(td[align="center"] > div[style*="height:150px"]) td {
        width: 100% !important;
        flex: 1 1 100% !important;
        max-width: 400px;
    }
    .cat-card {
        height: auto !important;
    }

    /* Force ALL nested legacy Product Detail tables to stack on mobile */
    #last table, 
    #last tbody, 
    #last tr, 
    #last td {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box;
        overflow: hidden;
    }
    #last td img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Make embedded iframes responsive */
    iframe {
        max-width: 100% !important;
    }
}

/* ============================
   PRODUCT GRIDS (The Modern Override)
   ============================ */

.category-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
    width: 100% !important;
    border: none !important;
}

/* Target Product Cells */
.cat-card {
    background: var(--panel-bg) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    justify-content: flex-start;
    box-shadow: var(--shadow-sm) !important;
    transition: all 0.3s ease !important;
    overflow: hidden;
    position: relative;
    height: 380px !important; 
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    cursor: pointer;
}

.cat-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: var(--shadow-lg) !important;
    border-color: #CBD5E1 !important;
}

/* Image Wrapper */
.cat-card img {
    width: 100%;
    height: 200px !important;
    object-fit: contain; /* Prevent stretching */
    background: #ffffff;
    padding: 20px;
    box-sizing: border-box;
    border-bottom: 1px solid var(--border-color);
}

/* Text Wrapping Area */
.cat-card h4 {
    padding: 24px 20px !important;
    margin: 0 !important;
    width: 100%;
    box-sizing: border-box;
    text-align: left !important;
    display: flex;
    flex-direction: column;
}

/* Legacy table generic resets for detail pages */
#last > table {
    width: 100%;
}
#last table td {
    vertical-align: top;
}
#urun_baslik {
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}
#urun_baslik h3 {
    margin: 0;
    font-size: 24px;
}
#nav_bar {
    font-size: 13px;
    color: var(--secondary);
    padding: 10px 0 20px 0;
    margin-bottom: 20px;
}
#nav_bar a {
    color: var(--primary);
    font-weight: 600;
}

/* ============================
   CONTACT BOX & FOOTER
   ============================ */

.contact-card-floating {
    max-width: 800px;
    margin: 60px auto -50px auto;
    position: relative;
    z-index: 10;
    background: var(--panel-bg);
    border-radius: 12px;
    padding: 32px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-avatar {
    width: 60px; height: 60px;
    background: var(--primary);
    border-radius: 12px;
    color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
}

.contact-text h4 {
    margin: 0 0 4px 0;
    font-size: 20px;
}
.contact-text p {
    margin: 0;
    font-size: 14px;
    color: var(--secondary);
}

.footer-map-area {
    width: 100%;
    height: 300px;
    background: linear-gradient(#e2e8f0 1px, transparent 1px), linear-gradient(90deg, #e2e8f0 1px, transparent 1px);
    background-size: 40px 40px;
    background-color: #F1F5F9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-pin {
    background: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

#site-footer {
    background: var(--panel-bg);
    padding: 60px 24px 20px 24px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h5 {
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 24px;
}

.footer-col a {
    display: block;
    color: var(--secondary);
    margin-bottom: 12px;
    font-size: 14px;
}

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

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--secondary);
}

@media(max-width: 900px) {
    .contact-card-floating {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }
    .contact-info {
        flex-direction: column;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media(max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* Forcing font defaults globally */
font { color: inherit !important; font-family: inherit !important; }

/* ============================
   MOCKUP SPECIFIC CARDS (index.php-1)
   ============================ */

.mockup-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.mockup-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.mc-img {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.mc-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: white;
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.mc-text {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.mc-text h4 {
    margin: 0 0 12px 0;
    font-size: 20px;
    color: var(--text-primary);
}

.mc-text p {
    margin: 0 0 24px 0;
    font-size: 14px;
    color: var(--secondary);
    line-height: 1.5;
    flex: 1;
}

.mc-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    font-weight: 700;
    color: var(--secondary);
    letter-spacing: 1px;
}

.mockup-wide-card {
    display: flex;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-top: 40px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.mockup-wide-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

@media(max-width: 768px) {
    .mockup-wide-card {
        flex-direction: column;
    }
}