/* =========================================================================
   OZAN OPTİK — V2.0
   Tek yazı ailesi: Aptos (metin) + Aptos Display (başlık).
   Creato Display bilerek kullanılmadı: ğ, ş, İ, Ğ, Ş harflerini içermiyor.
   ========================================================================= */

/* ---------- Yazı tipleri ---------- */
@font-face { font-family: 'Aptos'; src: url('../assets/fonts/Aptos.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Aptos'; src: url('../assets/fonts/Aptos-SemiBold.ttf') format('truetype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Aptos'; src: url('../assets/fonts/Aptos-Bold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Aptos Display'; src: url('../assets/fonts/Aptos-Display-Bold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- Değişkenler ---------- */
:root {
  /* Renk: logo mavisi süs ve koyu zeminde; metin/düğmede erişilebilir koyu mavi */
  --ink:        #17232d;
  --text:       #2b3842;
  --muted:      #4f5d68;
  --paper:      #f7f6f2;
  --white:      #ffffff;
  --cyan:       #00a0e3;
  --blue:       #00689c;
  --blue-dark:  #005277;
  --line:       #dde1e0;
  --on-dark:    #d7e2e8;

  /* Yazı */
  --font-text:    'Aptos', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Aptos Display', 'Aptos', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;

  /* Ölçek (≈1,25 oran) */
  --step--1: 0.875rem;
  --step-0:  1.0625rem;
  --step-1:  1.3125rem;
  --step-2:  clamp(1.75rem, 1.25rem + 1.9vw, 2.75rem);
  --step-3:  clamp(2.25rem, 1.4rem + 3vw, 3.5rem);

  /* Yerleşim */
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --header-h: 76px;
  --section-y: clamp(64px, 9vw, 112px);
  --radius: 6px;
}

/* ---------- Temel ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: 1.6;
  letter-spacing: 0;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
h1, h2, h3 { margin: 0; color: var(--ink); text-wrap: balance; }
h1, h2 { font-family: var(--font-display); font-weight: 700; }
h3 { font-weight: 600; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.site-header :focus-visible, .site-footer :focus-visible, .slide-controls :focus-visible { outline-color: #fff; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--gutter); top: -100px; z-index: 100; padding: 12px 18px; border-radius: var(--radius); background: #fff; color: var(--ink); font-weight: 600; }
.skip-link:focus { top: 12px; }

/* ---------- Üst menü ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ink); }
.header-inner { min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: block; width: 190px; flex: none; }
.brand img { width: 100%; }
.main-nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 36px); }
.main-nav a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  color: var(--on-dark);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color .2s ease, border-color .2s ease;
}
.main-nav a:hover { color: #fff; }
.main-nav a[aria-current="true"] { color: #fff; border-bottom-color: var(--cyan); }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 11px; flex-direction: column; justify-content: center; gap: 5px; border: 1px solid rgba(255,255,255,.3); border-radius: var(--radius); background: transparent; cursor: pointer; }
.menu-toggle span { display: block; height: 2px; width: 100%; background: #fff; transition: transform .2s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Düğmeler ve bağlantılar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px;
  border: 1.5px solid var(--blue); border-radius: var(--radius);
  background: var(--blue); color: #fff;
  font-size: 0.9375rem; font-weight: 600; line-height: 1.2; text-decoration: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn-outline { background: transparent; color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-text { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .25em; white-space: nowrap; }
.btn-text:hover { color: var(--blue); }

/* ---------- Ana görsel ---------- */
.hero { overflow: clip; background: var(--paper); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 10fr); gap: clamp(32px, 5vw, 80px); align-items: center; padding-block: clamp(48px, 7vw, 96px); }
.hero h1 { font-size: var(--step-3); line-height: 1.08; letter-spacing: -0.02em; }
.lead { max-width: 34ch; margin: 1.5rem 0 0; color: var(--muted); font-size: var(--step-1); line-height: 1.5; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 2rem; }

.hero-visual { padding: 0 16px 16px 0; }
.lens-frame { position: relative; width: 100%; max-width: 640px; margin-left: auto; aspect-ratio: 5 / 4; border-radius: 34%; }
.lens-frame::before { content: ""; position: absolute; inset: 0; border: 2px solid var(--cyan); border-radius: inherit; transform: translate(16px, 16px); }
.lens { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; background: #e6e8e6; }
.slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease-in-out; }
.slide.is-active { opacity: 1; }
.slide:nth-child(1) { object-position: 57% 30%; }
.slide:nth-child(2) { object-position: 42% 30%; }
.slide:nth-child(3) { object-position: 55% 40%; }

.slide-controls { position: absolute; left: 50%; bottom: 16px; z-index: 2; display: flex; align-items: center; gap: 2px; padding: 4px 10px 4px 6px; border-radius: 999px; background: rgba(23,35,45,.78); transform: translateX(-50%); }
.slide-toggle, .slide-dot { position: relative; width: 32px; height: 32px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.slide-toggle::before { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 11px; border-left: 3px solid #fff; border-right: 3px solid #fff; transform: translate(-50%, -50%); }
.slide-toggle[aria-pressed="true"]::before { width: 0; height: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 9px solid #fff; border-right: 0; transform: translate(-35%, -50%); }
.slide-dot::before { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; border-radius: 50%; background: #fff; opacity: .5; transform: translate(-50%, -50%); transition: opacity .2s ease, transform .2s ease; }
.slide-dot.is-active::before { opacity: 1; transform: translate(-50%, -50%) scale(1.3); }

/* ---------- Bölümler ---------- */
.section { padding-block: var(--section-y); }
.about, .services { background: var(--white); }
.products, .contact { background: var(--paper); }
.section h2 { font-size: var(--step-2); line-height: 1.15; letter-spacing: -0.015em; }

/* Ortak 5/7 düzen: solda başlık, sağda içerik */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.split > h2 { max-width: 14ch; }

.prose { max-width: 62ch; }
.prose p { color: var(--text); }
.prose p:last-child { margin-bottom: 0; }
.prose .prose-lead { color: var(--ink); font-size: var(--step-1); line-height: 1.5; }

/* Ürün grupları */
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(32px, 5vw, 56px); border-top: 1px solid var(--line); }
.product { padding: 36px 36px 8px 0; }
.product + .product { padding-left: 36px; border-left: 1px solid var(--line); }
.icon { display: block; width: 56px; height: 56px; margin-bottom: 18px; overflow: visible; color: var(--blue); fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.product h3 { font-size: var(--step-1); line-height: 1.3; margin-bottom: 8px; }
.product p { max-width: 30ch; margin: 0; color: var(--muted); }

/* Hizmetler */
.service-list { margin: 28px 0; border-top: 1px solid var(--line); }
.service-list > div { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 8px 32px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.service-list dt { color: var(--ink); font-weight: 600; }
.service-list dd { margin: 0; color: var(--text); }

/* İletişim */
.contact-list { margin: 0 0 32px; font-style: normal; border-top: 1px solid var(--line); }
.contact-list > div { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 8px 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-label { color: var(--muted); font-size: var(--step--1); font-weight: 600; line-height: 1.9; }
.contact-value { color: var(--ink); font-size: var(--step-1); line-height: 1.5; overflow-wrap: anywhere; }
.contact-value a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; white-space: nowrap; }
.contact-value a:hover { color: var(--blue); }

/* ---------- Alt bilgi ---------- */
.site-footer { background: var(--ink); color: #b9c7d0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 32px; }
.footer-inner img { width: 150px; }
.footer-inner p { margin: 0; font-size: var(--step--1); }

/* ---------- Dar ekranlar ---------- */
@media (max-width: 900px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero-visual { order: 2; }
  .lens-frame { margin-left: 0; max-width: 560px; }
  .split > h2 { max-width: none; }
  .product-grid { grid-template-columns: 1fr; }
  .product, .product + .product { padding: 28px 0; border-left: 0; }
  .product + .product { border-top: 1px solid var(--line); }
  .product p { max-width: 46ch; }
}
@media (max-width: 860px) {
  :root { --header-h: 68px; }
  .brand { width: 170px; }
  .menu-toggle { display: flex; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 4px var(--gutter) 16px; background: var(--ink); border-top: 1px solid rgba(255,255,255,.12); box-shadow: 0 12px 24px rgba(0,0,0,.25); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 1rem; }
  .main-nav a[aria-current="true"] { border-bottom-color: rgba(255,255,255,.1); color: var(--cyan); }
}
@media (max-width: 560px) {
  .service-list > div, .contact-list > div { grid-template-columns: 1fr; gap: 2px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .lens-frame { border-radius: 30%; }
  .prose .prose-lead, .lead { font-size: 1.1875rem; }
}

/* ---------- Hareket tercihi ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide, .main-nav a, .btn, .menu-toggle span, .slide-dot::before { transition: none; }
}
