/* --- VARIABLES --- */
:root {
    --navy: #0a192f;
    --blue: #00b4d8;
    --orange: #f59e0b;
    --red: #ef4444;
    --green: #10b981;
    --purple: #3b82f6;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --light-bg: #f8fafc;
    --border-color: #e2e8f0;
    --font-heading: 'Rajdhani', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

/* --- RESET & BASE --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text-dark); line-height: 1.6; background-color: #fff; }
h1, h2, h3, h4, h5 { font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 60px 0; }

/* --- HEADER --- */
.site-header { background: var(--navy); border-bottom: 3px solid var(--blue); position: sticky; top: 0; z-index: 1000; }
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.header-logo { height: 50px; width: auto; }
.header-logo-box { background: transparent; padding: 1mm 4mm; display: flex; align-items: center; height: 70%; margin-right: 15px; }
.nav-list { display: flex; gap: 30px; }
.nav-list a { color: white; font-weight: 500; font-size: 16px; opacity: 0.8; }
.nav-list a:hover, .nav-list a.active { opacity: 1; color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 20px; }
.lang-switch { color: white; font-weight: 700; display: flex; gap: 5px; }
.lang-btn { background: none; border: none; color: white; cursor: pointer; opacity: 0.5; font-weight: 700; }
.lang-btn.active { opacity: 1; color: var(--blue); }
.mobile-toggle { display: none; background: none; border: none; color: white; font-size: 24px; cursor: pointer; }

/* --- HERO SECTION --- */
.hero-section { background: var(--navy); color: white; padding: 80px 0; position: relative; overflow: hidden; }
.hero-bg { position: absolute; top:0; left:0; width:100%; height:100%; opacity: 0.2; background: linear-gradient(45deg, #000, transparent); z-index: 0; }
.hero-content { position: relative; z-index: 1; text-align: center; max-width: 900px; margin: 0 auto; }
.hero-content h1 { font-size: 42px; margin-bottom: 20px; letter-spacing: 1px; line-height: 1.2; }
.hero-content p { font-size: 18px; margin-bottom: 40px; color: #cbd5e1; font-weight: 300; }
.cta-btn { display: inline-block; background: var(--blue); color: white; padding: 12px 30px; border-radius: 4px; font-weight: 700; letter-spacing: 1px; }
.cta-btn:hover { background: white; color: var(--blue); }

/* --- WHY ESSA CARDS --- */
.why-essa { background: var(--light-bg); position: relative; z-index: 1; }
.why-essa::before {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('../../GORSELLER/WEB/why-bg.jpg'); background-size: cover; background-position: center;
    opacity: 0.05; z-index: -1; mix-blend-mode: multiply;
}
.section-title { text-align: center; font-size: 32px; color: var(--navy); margin-bottom: 40px; border-bottom: 3px solid var(--blue); display: inline-block; padding-bottom: 5px; }
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value-card { background: rgba(255,255,255,0.95); border: 1px solid var(--border-color); padding: 30px 20px; border-radius: 6px; text-align: center; transition: transform 0.3s; }
.value-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.value-icon { font-size: 40px; margin-bottom: 20px; opacity: 0.9; }
.value-title { font-size: 18px; margin-bottom: 15px; border-bottom: 2px solid var(--light-bg); padding-bottom: 10px; }
.value-text { font-size: 14px; color: var(--text-light); }
.border-top-navy { border-top: 4px solid var(--navy); }
.border-top-red { border-top: 4px solid var(--red); }
.border-top-green { border-top: 4px solid var(--green); }
.border-top-purple { border-top: 4px solid var(--purple); }
.text-navy { color: var(--navy); } .text-red { color: var(--red); } .text-green { color: var(--green); } .text-purple { color: var(--purple); } .text-orange { color: var(--orange); } .text-blue { color: var(--blue); }

/* --- HERITAGE --- */
.heritage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.heritage-year { font-family: var(--font-heading); font-size: 48px; font-weight: 700; color: var(--blue); line-height: 1; margin-bottom: 10px; display: inline-block; }
.heritage-title { font-size: 28px; color: var(--navy); margin-bottom: 20px; }
.heritage-text p { margin-bottom: 20px; color: var(--text-dark); text-align: justify; }
.btn-outline { border: 2px solid var(--navy); color: var(--navy); padding: 10px 25px; font-weight: 700; display: inline-block; margin-top: 20px; }
.btn-outline:hover { background: var(--navy); color: white; }
.heritage-images { position: relative; height: 400px; display: flex; justify-content: center; align-items: center; }
.bw-frame { position: absolute; border: 10px solid white; box-shadow: 0 5px 15px rgba(0,0,0,0.2); width: 60%; transform: rotate(-3deg); transition: 0.3s; }
.bw-frame img { width: 100%; filter: grayscale(100%); display: block; }
.frame-2 { transform: rotate(3deg); z-index: 1; top: 40px; left: 40px; }
.bw-frame:hover { transform: scale(1.05) rotate(0deg); z-index: 2; }

/* --- PRODUCT PAGE --- */
.page-title-bar { background: var(--navy); color: white; padding: 40px 0; text-align: center; border-bottom: 4px solid var(--blue); }
.grid-container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }
.column { background: white; border: 1px solid var(--border-color); border-radius: 4px; border-top-width: 6px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.col-sarim { border-color: var(--orange); } .col-pisirme { border-color: var(--red); } .col-montaj { border-color: var(--green); } .col-test { border-color: var(--purple); }
.col-header { padding: 20px; font-family: var(--font-heading); font-weight: 700; border-bottom: 1px solid var(--border-color); display: flex; align-items: center; gap: 10px; font-size: 18px; color: var(--text-dark); }
.col-sarim i { color: var(--orange); } .col-pisirme i { color: var(--red); } .col-montaj i { color: var(--green); } .col-test i { color: var(--purple); }
.col-content { padding: 20px; display: flex; flex-direction: column; gap: 15px; }

/* Product Group Box Styles */
.group-box { border: 1px solid var(--border-color); border-radius: 3px; padding: 12px; position: relative; background: #fff; }
.col-sarim .group-box { border-left: 3px solid var(--orange); }
.col-pisirme .group-box { border-left: 3px solid var(--red); }
.col-montaj .group-box { border-left: 3px solid var(--green); }
.col-test .group-box { border-left: 3px solid var(--purple); }

.group-title { font-size: 11px; font-weight: 800; color: #94a3b8; text-transform: uppercase; margin-bottom: 8px; border-bottom: 1px dashed var(--border-color); padding-bottom: 4px; }
.machine-row, .main-unit { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; font-size: 13px; }
.m-code { font-weight: 700; color: var(--navy); background: var(--light-bg); padding: 2px 6px; border-radius: 2px; font-size: 11px; min-width: 50px; text-align: center; }
.m-name { text-align: right; font-weight: 500; color: var(--text-dark); padding-left: 5px; line-height: 1.1; }
.main-unit .m-name { font-weight: 800; font-size: 14px; }
.helper-item { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-light); padding-left: 10px; position: relative; margin-top: 3px; }
.helper-item::before { content: '↳'; position: absolute; left: 0; color: #cbd5e1; }
.m-note { font-size: 10px; font-style: italic; color: #94a3b8; }
.group-separator { border-bottom: 1px dashed var(--border-color); margin: 8px 0; }
.iso-box-small { text-align: center; padding: 10px; background: var(--light-bg); border: 1px solid var(--border-color); }

/* Clickable Rows */
a.clickable { cursor: pointer; text-decoration: none; transition: 0.2s; display: flex; }
a.clickable:hover { background: var(--light-bg); padding-left: 5px; border-radius: 4px; }

/* DETAIL SECTIONS */
.details-container { background: #fff; padding: 40px 0; }
.detail-section { max-width: 1200px; margin: 0 auto 60px; border: 1px solid var(--border-color); border-radius: 6px; padding: 25px; scroll-margin-top: 100px; box-shadow: 0 5px 15px rgba(0,0,0,0.03); }
.back-link { display: inline-block; margin-bottom: 15px; color: var(--text-light); font-size: 14px; font-weight: 600; }
.back-link:hover { color: var(--blue); }
.detail-header { border-bottom: 1px solid var(--border-color); margin-bottom: 25px; padding-bottom: 10px; }
.detail-layout { display: flex; gap: 40px; }
.dl-left { flex: 3; }
.dl-right { flex: 2; display: flex; flex-direction: column; gap: 20px; }

.area-main-img { background: var(--light-bg); border: 1px solid var(--border-color); border-radius: 4px; position: relative; overflow: hidden; height: 450px; margin-bottom: 20px; }
.img-responsive { width: 100%; height: 100%; object-fit: cover; }
.overview-label { position: absolute; bottom: 0; left: 0; width: 100%; background: rgba(10, 25, 47, 0.8); color: white; text-align: center; padding: 8px; font-weight: 700; font-size: 13px; letter-spacing: 1px; }

.desc-box h3 { font-size: 18px; color: var(--navy); border-bottom: 2px solid var(--light-bg); margin-bottom: 15px; padding-bottom: 5px; }
.desc-box p { font-size: 15px; text-align: justify; line-height: 1.7; color: #475569; }

.design-box { height: 250px; border: 2px dashed var(--border-color); border-radius: 4px; display: flex; justify-content: center; align-items: center; position: relative; background: white; }
.design-box img { max-height: 90%; max-width: 90%; object-fit: contain; }
.iso-tag { position: absolute; top:0; right:0; color: white; font-size: 11px; padding: 4px 10px; font-weight: 700; border-bottom-left-radius: 4px; }
.bg-orange { background: var(--orange); } .bg-red { background: var(--red); } .bg-green { background: var(--green); }

.specs-list { background: var(--light-bg); padding: 15px; border-radius: 4px; border: 1px solid var(--border-color); }
/* GÜNCEL M-ROW (Specs Listesi) Düzeni */
.m-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border-color); font-size: 14px; }
.m-row:last-child { border-bottom: none; padding-bottom: 0; }
.m-key { font-weight: 700; color: var(--navy); opacity: 0.8; }
.m-val { font-weight: 800; color: var(--navy); text-align: right; }

.features-box { padding: 20px; border: 1px solid; border-radius: 4px; background: white; border-top-width: 3px; }
.feat-header { font-size: 15px; font-weight: 800; color: var(--text-light); border-bottom: 1px solid var(--light-bg); margin-bottom: 15px; padding-bottom: 5px; }
.feat-item { font-size: 14px; margin-bottom: 8px; display: flex; gap: 10px; align-items: center; }

.border-orange { border-color: var(--orange); } .border-red { border-color: var(--red); } .border-green { border-color: var(--green); }

/* --- REFERENCES --- */
.ref-category { margin-bottom: 40px; }
.ref-title { border-bottom: 2px solid var(--border-color); padding-bottom: 10px; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; font-size: 20px; }
.ref-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 15px; }
.client-box { border: 1px solid var(--border-color); border-radius: 4px; height: 100px; display: flex; justify-content: center; align-items: center; padding: 10px; transition: 0.3s; background: white; }
.client-box:hover { transform: translateY(-3px); box-shadow: 0 5px 10px rgba(0,0,0,0.05); border-color: var(--blue); }
.client-logo { max-width: 90%; max-height: 90%; object-fit: contain; }

/* --- CONTACT --- */
.contact-layout { display: flex; justify-content: center; align-items: center; padding: 40px 0; }
.contact-info-centered { max-width: 600px; width: 100%; background: var(--navy); color: white; padding: 50px; border-radius: 6px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.contact-info-centered h3 { margin-bottom: 5px; color: var(--blue); font-size: 24px; }
.subtitle { margin-bottom: 30px; font-weight: 300; opacity: 0.8; font-size: 15px; }
.contact-item { display: flex; gap: 20px; margin-bottom: 25px; align-items: flex-start; }
.contact-item i { color: var(--blue); font-size: 24px; margin-top: 3px; }
.contact-item strong { display: block; font-size: 13px; opacity: 0.6; letter-spacing: 1px; }

/* --- FOOTER --- */
.site-footer { background: #f1f5f9; border-top: 1px solid var(--border-color); padding: 40px 0 0; margin-top: auto; }
.footer-content { display: flex; justify-content: space-between; padding-bottom: 40px; }
.footer-col h4 { color: var(--navy); margin-bottom: 5px; }
.footer-col p { font-size: 14px; color: var(--text-light); margin-bottom: 5px; }
.footer-col i { color: var(--blue); width: 20px; text-align: center; margin-right: 5px; }
.footer-bottom { background: var(--navy); color: white; text-align: center; padding: 15px; font-size: 12px; opacity: 0.8; }

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .grid-container, .value-grid { grid-template-columns: repeat(2, 1fr); }
    .heritage-grid, .detail-layout, .contact-layout { flex-direction: column; display: flex; }
    .heritage-images { order: -1; }
    .ref-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
    .nav-list { display: none; }
    .mobile-toggle { display: block; }
    .grid-container, .value-grid, .ref-grid { grid-template-columns: 1fr; }
    .header-logo { height: 40px; }
    .hero-content h1 { font-size: 28px; }
    .nav-list.active { display: flex; flex-direction: column; position: absolute; top: 80px; left: 0; width: 100%; background: var(--navy); padding: 20px; }
}