/* Yorum Otomasyon — Tasarım Sistemi */

:root {
  --navy-900: #0B1F3A;
  --navy-800: #132A4D;
  --navy-700: #1C3A63;
  --amber-500: #F5A623;
  --amber-600: #DB8F14;
  --bg: #F7F8FA;
  --surface: #FFFFFF;
  --text: #1E2430;
  --text-muted: #3A4250;
  --border: #E3E7EE;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(11, 31, 58, 0.06);
  --shadow-md: 0 8px 24px rgba(11, 31, 58, 0.08);
  --container-w: 1180px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; margin: 0 0 0.5em; color: var(--navy-900); }
h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.125rem; }
p { margin: 0 0 1em; color: var(--text-muted); }
ul { margin: 0; padding: 0; list-style: none; }

.container { max-width: var(--container-w); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--navy-900); color: #fff;
  padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: var(--amber-500); color: var(--navy-900); }
.btn-primary:hover { background: var(--amber-600); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { border-color: var(--navy-900); color: var(--navy-900); background: transparent; }
.btn-outline:hover { background: var(--navy-900); color: #fff; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }

.badge {
  display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 0.75rem;
  font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase;
  background: rgba(245, 166, 35, 0.15); color: var(--amber-600); margin-bottom: 10px;
}

/* Header */
.site-header { background: var(--surface); box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 50; }
.topbar { background: var(--navy-900); color: #C7CEDA; font-size: 0.85rem; }
.topbar-inner { display: flex; gap: 24px; padding: 6px 24px; }
.topbar-inner a:hover { color: #fff; }
.header-inner { display: flex; align-items: center; gap: 20px; padding: 14px 24px; }
.logo { flex-shrink: 0; }
.main-nav { flex: 1; min-width: 0; }
.nav-list { display: flex; gap: 2px; align-items: center; flex-wrap: nowrap; }
.nav-list > li { position: relative; }
.nav-list > li > a {
  display: block; padding: 10px 11px; border-radius: 8px; font-weight: 600; font-size: 0.9rem; color: var(--navy-900); white-space: nowrap;
}
.nav-list > li > a:hover, .nav-list > li > a[aria-current="page"] { background: var(--bg); color: var(--amber-600); }
.has-mega .mega-menu {
  display: none; position: absolute; top: 100%; left: 0; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 12px; min-width: 240px;
}
.has-mega:hover .mega-menu, .has-mega:focus-within .mega-menu { display: block; }
.mega-menu ul { display: grid; gap: 2px; }
.mega-menu a { display: block; padding: 8px 10px; border-radius: 6px; font-size: 0.9rem; }
.mega-menu a:hover { background: var(--bg); color: var(--amber-600); }
.nav-toggle { display: none; }
.header-cta { flex-shrink: 0; }

/* Breadcrumb */
.breadcrumb { padding: 14px 24px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.85rem; color: var(--text-muted); }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--border); }
.breadcrumb a:hover { color: var(--amber-600); }

/* Hero */
.hero { padding: 56px 0 64px; background: linear-gradient(180deg, #EEF1F6 0%, var(--bg) 100%); }
.hero-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--amber-600); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.8rem; margin-bottom: 12px; }
.lead { font-size: 1.15rem; color: var(--text-muted); max-width: 56ch; }
.hero-actions { display: flex; gap: 12px; margin: 24px 0; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 24px; flex-wrap: wrap; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.6rem; color: var(--navy-900); }
.hero-stats span { font-size: 0.85rem; color: var(--text-muted); }
.hero-media, .why-us-media {
  aspect-ratio: 4/3; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  position: relative; overflow: hidden;
}
.hero-media::after, .why-us-media::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 20%, rgba(245,166,35,0.35), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,0.08), transparent 40%);
}

.page-hero { padding: 48px 0 40px; background: linear-gradient(180deg, #EEF1F6 0%, var(--bg) 100%); }
.product-hero .hero-actions { margin-top: 20px; }
.product-hero .hero-inner { grid-template-columns: 1fr 1.2fr; }
.product-brand-logo { height: 34px; width: auto; margin-bottom: 14px; }
.product-media {
  aspect-ratio: 4/3; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.product-media img { width: 100%; height: 100%; object-fit: contain; padding: 20px; }
.product-media--empty {
  border: none; background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); position: relative;
}
.product-media--empty::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 25% 25%, rgba(245,166,35,0.35), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,0.08), transparent 40%);
}
.product-media--empty span { position: relative; z-index: 1; font-size: 2.5rem; font-weight: 700; color: rgba(255,255,255,0.35); }
@media (max-width: 960px) { .product-media, .gallery { max-width: 450px; margin: 0 auto; } }

/* Ürün görsel galerisi */
.gallery { display: flex; flex-direction: column; gap: 14px; }
.gallery-main { display: flex; align-items: center; gap: 10px; }
.gallery-main-frame {
  flex: 1; aspect-ratio: 4/3; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
  display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 0; cursor: zoom-in;
}
.gallery-main-frame img {
  width: 100%; height: 100%; object-fit: contain; padding: 20px; pointer-events: none;
  transition: opacity .35s ease;
}
.gallery-main-frame img.is-fading { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .gallery-main-frame img { transition: none; } }
.gallery-arrow {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface);
  display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-muted);
  transition: border-color .15s ease, color .15s ease, transform .15s ease;
}
.gallery-arrow:hover { border-color: var(--amber-500); color: var(--amber-600); transform: translateY(-1px); }
.gallery-thumbs { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.gallery-thumb {
  width: 74px; height: 74px; flex-shrink: 0; padding: 6px; border-radius: 8px; border: 2px solid var(--border);
  background: var(--surface); cursor: pointer; overflow: hidden;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumb:hover { border-color: var(--amber-500); }
.gallery-thumb.is-active { border-color: var(--amber-500); box-shadow: 0 0 0 2px rgba(245, 166, 35, 0.25); }

/* Lightbox */
body.no-scroll { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; }
.lightbox.is-open { display: flex; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(11, 19, 33, 0.94); }
.lightbox-content { position: relative; z-index: 1; max-width: min(90vw, 1100px); max-height: 84vh; display: flex; }
.lightbox-img { max-width: 100%; max-height: 84vh; object-fit: contain; border-radius: 8px; background: #fff; }
.lightbox-close, .lightbox-arrow {
  position: absolute; z-index: 2; border: none; border-radius: 50%; background: #fff; color: var(--navy-900);
  display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--shadow-md);
  transition: transform .15s ease, background .15s ease;
}
.lightbox-close:hover, .lightbox-arrow:hover { background: var(--amber-500); transform: scale(1.06); }
.lightbox-close { top: 20px; right: 20px; width: 46px; height: 46px; }
.lightbox-arrow { top: 50%; transform: translateY(-50%); width: 54px; height: 54px; }
.lightbox-arrow:hover { transform: translateY(-50%) scale(1.06); }
.lightbox-arrow--prev { left: 20px; }
.lightbox-arrow--next { right: 20px; }
.lightbox-counter {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); background: rgba(11, 19, 33, 0.75);
  color: #fff; padding: 6px 16px; border-radius: 999px; font-size: 0.85rem; font-variant-numeric: tabular-nums;
}
@media (max-width: 640px) {
  .lightbox-arrow { width: 44px; height: 44px; }
  .lightbox-arrow--prev { left: 8px; }
  .lightbox-arrow--next { right: 8px; }
  .lightbox-close { top: 10px; right: 10px; width: 40px; height: 40px; }
  .gallery-thumb { width: 60px; height: 60px; }
}

/* Sections */
.section { padding: 56px 0; }
.section-subtitle { color: var(--text-muted); max-width: 60ch; margin-top: -8px; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Cards */
.product-card, .industry-card, .mini-card {
  display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.product-card:hover, .industry-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--amber-500); }
.link-arrow { color: var(--amber-600); font-weight: 600; font-size: 0.9rem; }

/* Kart üstü görsel alanı (ürün/marka görseli için yer tutucu) */
.card-media {
  aspect-ratio: 16/10; margin: -22px -22px 16px -22px; border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.card-media::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 25% 20%, rgba(245,166,35,0.35), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,0.08), transparent 40%);
}
.card-media-mark {
  position: relative; z-index: 1; font-size: 2rem; font-weight: 700; color: rgba(255,255,255,0.85);
}
.card-media--logo { background: var(--surface); border-bottom: 1px solid var(--border); padding: 20px; }
.card-media--logo::after { content: none; }
.card-media--logo img { max-width: 70%; max-height: 65%; width: auto; height: auto; object-fit: contain; }

/* Marka sayfası tam genişlik kapak fotoğrafı (yalnızca gerçek görsel yüklendiğinde render edilir) */
.brand-banner--photo {
  width: 100%; height: clamp(220px, 30vw, 340px); margin-top: 8px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.brand-banner--photo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; padding: 24px; }

/* Brand strip */
.brand-strip-section { padding: 32px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.brand-strip-label { text-align: center; color: var(--text-muted); font-size: 0.85rem; margin-bottom: 16px; }
.brand-strip { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.brand-chip {
  padding: 10px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border);
  font-weight: 600; font-size: 0.9rem; color: var(--navy-900);
}
.brand-chip:hover { border-color: var(--amber-500); color: var(--amber-600); }

/* Checklist / timeline */
.checklist li { position: relative; padding: 8px 0 8px 28px; color: var(--text-muted); }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--amber-600); font-weight: 700; }
.timeline { position: relative; padding-left: 24px; border-left: 3px solid var(--amber-500); }
.timeline li { margin-bottom: 24px; }
.timeline strong { display: block; color: var(--navy-900); }
.spec-list { max-width: 60ch; }
.model-card p { margin-bottom: 0; }

/* Elco Automation Studio vitrini (tek sayfalı seri kategorileri) */
.studio-showcase { padding: 56px 0 0; }
.studio-intro { text-align: center; max-width: 760px; margin: 0 auto 28px; }
.studio-title { font-size: clamp(1.2rem, 2.3vw, 1.6rem); text-wrap: balance; }
.studio-title-accent { color: var(--amber-600); }
.studio-subtitle { color: var(--text-muted); margin: 0 auto; max-width: 68ch; }
.studio-gallery .gallery { max-width: 900px; margin: 0 auto; }
.studio-gallery .gallery-main-frame { aspect-ratio: 16/6; }
@media (max-width: 640px) { .studio-gallery .gallery-main-frame { aspect-ratio: 4/3; } }

.protocol-strip { background: var(--bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 28px 0; margin-top: 40px; }
.protocol-strip-inner { display: flex; justify-content: center; align-items: center; gap: 20px 44px; flex-wrap: wrap; }
.protocol-chip { font-weight: 700; font-size: 1rem; color: var(--text-muted); letter-spacing: 0.01em; }
.protocol-logo { height: 28px; width: auto; max-width: 140px; object-fit: contain; filter: grayscale(1); opacity: 0.75; transition: filter .15s ease, opacity .15s ease; }
.protocol-logo:hover { filter: grayscale(0); opacity: 1; }

.studio-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 40px 0 56px; }
.studio-col-head { display: flex; align-items: center; gap: 10px; color: var(--navy-900); margin-bottom: 16px; }
.studio-col-head h3 { margin: 0; }
.studio-col-media {
  aspect-ratio: 4/3; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface);
  overflow: hidden; margin-bottom: 16px;
}
.studio-col-media img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.studio-col-media--empty { border: none; background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); }
.studio-col-list { max-width: none; }
@media (max-width: 900px) { .studio-columns { grid-template-columns: 1fr; } }

/* Ürün sayfası altındaki yazılım tanıtım bloğu (ör. UniStream → UniLogic Studio) */
.software-promo { padding: 56px 0; border-top: 1px solid var(--border); }
.software-promo-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.software-promo-logo { height: 40px; width: auto; margin-bottom: 18px; }
.software-promo-logo-fallback { font-size: 1.3rem; font-weight: 800; color: var(--navy-900); margin-bottom: 18px; letter-spacing: -0.02em; }
.software-promo-copy h2 { margin-bottom: 14px; }
.software-promo-copy .btn { margin-top: 8px; }
.software-promo-media {
  aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.software-promo-media img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.software-promo-media--empty { border: none; background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); }
@media (max-width: 900px) { .software-promo-inner { grid-template-columns: 1fr; } }

/* Ürün model/opsiyon tablosu */
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.options-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; white-space: nowrap; }
.options-table th, .options-table td {
  padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums;
}
.options-table thead th {
  background: var(--navy-900); color: #fff; font-weight: 700; font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.03em; white-space: nowrap;
}
.options-table tbody tr:nth-child(even) { background: var(--bg); }
.options-table tbody tr:hover { background: rgba(245, 166, 35, 0.08); }
.options-table td:first-child { font-weight: 700; color: var(--navy-900); }
.options-note { font-size: 0.85rem; color: var(--text-muted); margin-top: 10px; }

/* CTA band */
.cta-band { background: var(--navy-900); color: #fff; padding: 48px 0; margin-top: 8px; }
.cta-band h2, .cta-band p { color: #fff; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

.why-us { padding: 56px 0; }

/* Contact */
.contact-form { display: grid; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.contact-form label { display: grid; gap: 6px; font-weight: 600; font-size: 0.9rem; color: var(--navy-900); }
.contact-form input, .contact-form textarea {
  font: inherit; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg);
}
.contact-info h2 { margin-top: 0; }

/* Footer */
.site-footer { background: var(--navy-900); color: #C7CEDA; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 24px; padding: 48px 24px 24px; }
.footer-col h3 { color: #fff; font-size: 0.95rem; margin-bottom: 12px; }
.footer-col ul { display: grid; gap: 8px; }
.footer-col a:hover { color: var(--amber-500); }
.footer-about p { color: #9AA5B8; margin: 12px 0; }
.logo-chip { display: inline-flex; align-items: center; background: #fff; padding: 8px 14px; border-radius: 10px; }
.social-links { display: flex; gap: 12px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 16px 24px; font-size: 0.8rem; color: #7C879C; }

/* Responsive */
@media (max-width: 960px) {
  .hero-inner, .grid-2 { grid-template-columns: 1fr; }
  .hero-media { display: none; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
/* Ana menü, tüm başlıklar tek satıra sığmayacak genişliklerde hamburger menüye döner
   (böylece iki satıra bölünüp kırık görünmez). Bu genişliklerde "Teklif Al" butonu
   gizlenir, hamburger ikonu onun yerini (sağ üst köşeyi) alır. */
@media (max-width: 1100px) {
  .header-inner { flex-wrap: wrap; }
  .header-cta { display: none; }
  .nav-toggle {
    display: flex; flex-direction: column; gap: 4px; background: none; border: none; padding: 8px; cursor: pointer;
    margin-left: auto;
  }
  .nav-toggle span { width: 22px; height: 2px; background: var(--navy-900); }
  .main-nav { order: 3; flex-basis: 100%; }
  .nav-list { display: none; flex-direction: column; align-items: stretch; flex-wrap: nowrap; padding-top: 12px; }
  .nav-list.is-open { display: flex; }
  .has-mega .mega-menu { position: static; display: none; box-shadow: none; border: none; padding-left: 12px; }
  .has-mega.is-open .mega-menu { display: block; }
}
@media (max-width: 640px) {
  .topbar-inner { flex-direction: column; gap: 2px; padding: 8px 16px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
}
