/* ==========================================================================
   MS CAM & ALÜMİNYUM
   Sade, düz yüzeyli, üretici firma arayüzü
   ========================================================================== */

:root {
  --ink: #15181b;
  --graphite: #262b30;
  --steel: #4a5258;
  --muted: #6b7378;
  --line: #d5d8d9;
  --line-soft: #e5e7e7;
  --paper: #f4f4f2;
  --white: #ffffff;

  --accent: #4f1a91;
  --accent-dark: #3a1270;
  --wa: #1fa855;
  --wa-dark: #178a45;

  --font-head: 'Archivo', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;

  --container: 1200px;
  --radius: 3px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--graphite);
  background: var(--paper);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  font-weight: 700;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
ul { list-style: none; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 5000;
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--steel); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-light { border-color: rgba(255,255,255,0.7); color: #fff; }
.btn-light:hover { background: #fff; color: var(--ink); }
.btn-whatsapp { background: var(--wa); color: #fff; }
.btn-whatsapp:hover { background: var(--wa-dark); }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.88rem; }
.btn-lg { padding: 1rem 1.8rem; font-size: 1rem; }
.btn-block { width: 100%; white-space: normal; text-align: center; }

/* ---------- Top bar ---------- */
.top-bar {
  background: var(--ink);
  color: #c9cdcf;
  font-size: 0.85rem;
  padding: 0.45rem 0;
}
.top-bar-content {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.top-bar a:hover { color: #fff; }
.top-bar-right { display: flex; gap: 1.5rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header.scrolled { box-shadow: 0 2px 12px rgba(21, 24, 27, 0.08); }

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
}

.brand-img { height: 36px; width: auto; display: block; }
.site-footer .brand-img { height: 44px; }
.mobile-drawer-header .brand-img { height: 34px; }
.brand-logo { display: flex; align-items: center; gap: 0.7rem; flex-shrink: 0; }
.brand-symbol {
  width: 38px;
  height: 38px;
  border: 3px solid var(--ink);
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
  padding: 3px;
}
.brand-symbol i { background: var(--ink); display: block; }
.brand-symbol i:nth-child(2) { background: var(--accent); }
.brand-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  line-height: 1;
}
.brand-sub { font-size: 0.75rem; color: var(--muted); margin-top: 3px; }

.nav-menu { display: flex; align-items: center; gap: 1.15rem; }
.nav-link {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--graphite);
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.nav-link:hover { color: var(--accent); }
.nav-link.active { color: var(--ink); border-bottom-color: var(--accent); }

.nav-actions { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.hotline-number {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  white-space: nowrap;
}
.hotline-number:hover { color: var(--accent); }

.hamburger-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 11px;
}
.hamburger-btn span { display: block; height: 2px; background: var(--ink); transition: transform 0.2s, opacity 0.2s; }
.hamburger-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Mobile drawer ---------- */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(21, 24, 27, 0.6);
  z-index: 1998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s;
}
.drawer-backdrop.active { opacity: 1; visibility: visible; }

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 86%;
  max-width: 360px;
  height: 100%;
  background: var(--white);
  z-index: 1999;
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  overflow-y: auto;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.25s ease, visibility 0.25s;
}
.mobile-drawer.open { transform: none; visibility: visible; }
.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.drawer-close-btn {
  width: 40px;
  height: 40px;
  font-size: 1.6rem;
  line-height: 1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.mobile-nav-links a {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-drawer-actions { margin-top: auto; display: grid; gap: 0.7rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(21,24,27,0.92) 0%, rgba(21,24,27,0.75) 45%, rgba(21,24,27,0.25) 100%);
}
.hero-inner { padding: 6rem 0 5.5rem; max-width: 700px; }
.hero-eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  color: #cdb8f2;
  margin-bottom: 1rem;
}
.hero-title {
  color: #fff;
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}
.hero-lead { font-size: 1.15rem; color: #d7dadc; margin-bottom: 2rem; max-width: 56ch; }
.hero-cta-group { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.fact-bar { background: var(--white); border-bottom: 1px solid var(--line); }
.fact-list { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact-list li { padding: 1.25rem 1.5rem 1.25rem 0; border-right: 1px solid var(--line-soft); }
.fact-list li + li { padding-left: 1.5rem; }
.fact-list li:last-child { border-right: 0; }
.fact-list strong { display: block; font-family: var(--font-head); color: var(--ink); font-size: 1rem; }
.fact-list span { font-size: 0.92rem; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section-white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 2.75rem; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 0.7rem; letter-spacing: -0.01em; }
.section-head p { color: var(--steel); }

/* ---------- Product rows ---------- */
.product-list { border-top: 1px solid var(--line); }
.product-row {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 2.5rem;
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.product-row:nth-child(even) .product-img { order: 2; }
.product-img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--line-soft); }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-label { font-family: var(--font-head); font-weight: 600; font-size: 0.85rem; color: var(--accent); margin-bottom: 0.4rem; }
.product-body h3 { font-size: 1.6rem; margin-bottom: 0.6rem; }
.product-body > p { color: var(--steel); margin-bottom: 1.1rem; }

.spec-list { border-top: 1px solid var(--line); margin-bottom: 1.4rem; }
.spec-list div {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.95rem;
}
.spec-list dt { color: var(--muted); }
.spec-list dd { color: var(--ink); font-weight: 600; }
.product-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }

/* ---------- Calculator ---------- */
.calc {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  border: 1px solid var(--line);
  background: var(--white);
}
.calc-form { padding: 2.25rem; border-right: 1px solid var(--line); }
.calc-summary { padding: 2.25rem; background: var(--paper); display: flex; flex-direction: column; gap: 1.5rem; }
.calc > * { min-width: 0; }
.calc fieldset { border: 0; margin-bottom: 1.9rem; min-width: 0; }
.calc legend { font-family: var(--font-head); font-weight: 700; color: var(--ink); margin-bottom: 0.8rem; padding: 0; }
.calc legend b { color: var(--accent); margin-right: 0.35rem; }

.system-selector-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 0.5rem; }
.system-tab-btn {
  padding: 0.7rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.88rem;
  background: var(--white);
  color: var(--graphite);
  text-align: left;
}
.system-tab-btn:hover { border-color: var(--ink); }
.system-tab-btn.active { background: var(--ink); border-color: var(--ink); color: #fff; }

.dimensions-grid, .options-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.slider-meta { display: flex; justify-content: space-between; font-weight: 600; color: var(--ink); margin-bottom: 0.5rem; }
.slider-val-tag { font-family: var(--font-head); }
.range-hint { display: block; font-size: 0.82rem; color: var(--muted); margin-top: 0.35rem; }

.range-input {
  width: 100%;
  height: 32px;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
}
.range-input::-webkit-slider-runnable-track { height: 4px; background: var(--line); border-radius: 2px; }
.range-input::-moz-range-track { height: 4px; background: var(--line); border-radius: 2px; }
.range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px; height: 24px;
  margin-top: -10px;
  background: var(--accent);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 1px var(--accent);
  border-radius: 50%;
}
.range-input::-moz-range-thumb {
  width: 18px; height: 18px;
  background: var(--accent);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 1px var(--accent);
  border-radius: 50%;
}

.field-group { display: flex; flex-direction: column; gap: 0.35rem; }
.field-label { font-weight: 600; font-size: 0.92rem; color: var(--ink); }
.field-select, .field-input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  background: var(--white);
  border: 1px solid #a9aeb1;
  border-radius: var(--radius);
  font: inherit;
  color: var(--ink);
}
.field-select:focus, .field-input:focus { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--ink); }
.field-textarea { min-height: 120px; resize: vertical; }

.calc-summary h3 { font-size: 1.15rem; }
.summary-spec-list { border-top: 1px solid var(--line); }
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--steel);
}
.summary-row strong { color: var(--ink); text-align: right; }
.price-box { background: var(--ink); color: #fff; padding: 1.4rem; }
.calc-price-title { font-size: 0.88rem; color: #aab0b3; margin-bottom: 0.3rem; }
.calc-price-value { font-family: var(--font-head); font-weight: 800; font-size: 2rem; line-height: 1.1; color: #fff; }
.calc-price-value span { font-size: 1.1rem; font-weight: 600; color: #cdb8f2; }
.calc-price-note { font-size: 0.82rem; color: #aab0b3; margin-top: 0.7rem; }
.calc-actions { display: grid; gap: 0.6rem; margin-top: auto; }

/* ---------- Before / after ---------- */
.ba-wrapper { max-width: 980px; }
.ba-frame {
  position: relative;
  height: 480px;
  overflow: hidden;
  user-select: none;
  background: var(--ink);
}
.ba-layer { position: absolute; inset: 0; }
.ba-layer img { width: 100%; height: 100%; object-fit: cover; }
.ba-layer-before { z-index: 2; clip-path: inset(0 50% 0 0); }
.ba-layer-after { z-index: 1; }
.ba-badge {
  position: absolute;
  bottom: 1rem;
  padding: 0.3rem 0.7rem;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.82rem;
}
.ba-layer-before .ba-badge { left: 1rem; }
.ba-layer-after .ba-badge { right: 1rem; }
.ba-divider {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 3px;
  background: #fff;
  z-index: 3;
  transform: translateX(-50%);
  cursor: ew-resize;
  touch-action: none;
}
.ba-handle-grip {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
.ba-divider:focus-visible .ba-handle-grip { outline: 3px solid var(--accent); outline-offset: 2px; }
.ba-caption { font-size: 0.9rem; color: var(--muted); margin-top: 0.8rem; }

/* ---------- Why us ---------- */
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem 2rem; }
.reason { border-top: 3px solid var(--ink); padding-top: 1.1rem; }
.reason h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.reason p { color: var(--steel); font-size: 1rem; }

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 2rem 1.5rem; counter-reset: step; }
.steps li { counter-increment: step; border-top: 3px solid var(--ink); padding-top: 1rem; }
.steps li::before {
  content: counter(step);
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2rem;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.steps h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.steps p { font-size: 0.97rem; color: var(--steel); }

/* ---------- Comparison table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--white); }
.compare { width: 100%; border-collapse: collapse; min-width: 560px; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--line-soft); }
.compare thead th { font-family: var(--font-head); background: var(--ink); color: #fff; font-size: 0.95rem; }
.compare tbody th { font-family: var(--font-head); font-weight: 600; color: var(--ink); width: 22%; background: var(--paper); }
.compare td { color: var(--graphite); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }

/* ---------- Lightbox navigation ---------- */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  background: rgba(21,24,27,0.7);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  border: 1px solid rgba(255,255,255,0.4);
}
.lightbox-nav:hover { background: var(--accent); border-color: var(--accent); }
.lightbox-prev { left: 0.5rem; }
.lightbox-next { right: 0.5rem; }

/* ---------- Gallery ---------- */
.gallery-tab-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.75rem; }
.gallery-nav-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.9rem;
}
.gallery-nav-btn:hover { border-color: var(--ink); }
.gallery-nav-btn.active { background: var(--ink); border-color: var(--ink); color: #fff; }

.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }
.portfolio-item {
  position: relative;
  display: block;
  height: 260px;
  overflow: hidden;
  padding: 0;
  background: var(--line-soft);
  text-align: left;
  transition: opacity 0.2s, transform 0.2s;
}
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.portfolio-item:hover img { transform: scale(1.04); }
.portfolio-info-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2.5rem 1.1rem 1rem;
  background: linear-gradient(to top, rgba(21,24,27,0.85), transparent);
  color: #fff;
}
.portfolio-tag { display: block; font-size: 0.8rem; color: #cdb8f2; font-family: var(--font-head); font-weight: 600; }
.portfolio-item-title { font-size: 1.05rem; color: #fff; }

/* ---------- FAQ ---------- */
.faq-container { max-width: 820px; border-top: 1px solid var(--line); }
.faq-card { border-bottom: 1px solid var(--line); }
.faq-card summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1.15rem 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
}
.faq-card summary::-webkit-details-marker { display: none; }
.faq-card summary::after { content: '+'; font-size: 1.5rem; line-height: 1; color: var(--accent); flex-shrink: 0; }
.faq-card[open] summary::after { content: '\2212'; }
.faq-text-inner { padding: 0 2rem 1.3rem 0; color: var(--steel); }

/* ---------- Contact ---------- */
.contact-layout-grid { display: grid; grid-template-columns: 5fr 6fr; gap: 3rem; align-items: start; }
.contact-info h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); margin-bottom: 0.7rem; }
.contact-info > p { color: var(--steel); margin-bottom: 1.75rem; }
.contact-details { border-top: 1px solid var(--line); }
.contact-details div { padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.contact-details dt { font-size: 0.85rem; color: var(--muted); }
.contact-details dd { font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; color: var(--ink); }
.contact-details dd a:hover { color: var(--accent); }

.contact-form-panel { background: var(--white); border: 1px solid var(--line); padding: 2.25rem; }
.contact-form-panel h3 { font-size: 1.35rem; margin-bottom: 0.35rem; }
.form-lead { color: var(--steel); font-size: 0.95rem; margin-bottom: 1.5rem; }
.contact-fields-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field-col-full { grid-column: 1 / -1; }
.form-note { font-size: 0.85rem; color: var(--muted); }
.form-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.92rem; color: var(--steel); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; accent-color: var(--accent); }
.consent a { color: var(--ink); text-decoration: underline; }
.field-input[aria-invalid="true"], .field-select[aria-invalid="true"] { border-color: #b3261e; border-width: 2px; }
.field-error { color: #b3261e; font-size: 0.85rem; }
.form-status.is-error { border-left-color: #b3261e; }
.legal { max-width: 780px; padding: 3.5rem 0 5rem; }
.legal h1 { font-size: clamp(1.9rem, 3.5vw, 2.5rem); margin-bottom: 0.6rem; }
.legal h2 { font-size: 1.25rem; margin: 2rem 0 0.6rem; }
.legal p, .legal li { color: var(--graphite); margin-bottom: 0.7rem; }
.legal ul { list-style: disc; margin: 0 0 1rem 1.4rem; }
.legal .legal-meta { color: var(--muted); font-size: 0.92rem; margin-bottom: 1.5rem; }
.legal table { width: 100%; border-collapse: collapse; margin: 0.5rem 0 1rem; font-size: 0.95rem; }
.legal th, .legal td { text-align: left; padding: 0.6rem 0.7rem; border: 1px solid var(--line); vertical-align: top; }
.legal th { background: var(--white); font-family: var(--font-head); }
.legal .todo { background: #fff3cd; padding: 0 0.25rem; }
.form-status { font-weight: 600; color: var(--ink); background: var(--paper); border-left: 4px solid var(--accent); padding: 0.8rem 1rem; }
.form-status[hidden] { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #aab0b3; padding: 4rem 0 1.75rem; }
.footer-columns-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; margin-bottom: 3rem; }
.site-footer .brand-title { color: #fff; }
.site-footer .brand-sub { color: #aab0b3; }
.site-footer .brand-symbol { border-color: #fff; }
.site-footer .brand-symbol i { background: #fff; }
.site-footer .brand-symbol i:nth-child(2) { background: var(--accent); }
.footer-col-about p { margin-top: 1rem; max-width: 36ch; font-size: 0.95rem; }
.footer-head { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer-links-list { display: grid; gap: 0.5rem; font-size: 0.95rem; }
.footer-links-list a:hover { color: #fff; }
.footer-sub-bar { border-top: 1px solid #343a3f; padding-top: 1.4rem; font-size: 0.88rem; }

/* ---------- Floating / mobile bar ---------- */
.floating-whatsapp {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  display: grid;
  place-items: center;
  z-index: 900;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
.floating-whatsapp:hover { background: var(--wa-dark); }
.floating-whatsapp svg { width: 28px; height: 28px; fill: currentColor; }

.mobile-sticky-action-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 950;
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 0.6rem 1rem;
}
.mobile-sticky-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }

/* ---------- Modals ---------- */
.lightbox-modal, .service-spec-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(21, 24, 27, 0.88);
}
.lightbox-modal.active, .service-spec-modal.active { display: flex; }
.lightbox-box { position: relative; max-width: 960px; width: 100%; text-align: center; }
.lightbox-box img { max-height: 78vh; width: auto; margin: 0 auto; }
.lightbox-title { color: #fff; margin-top: 0.9rem; }
.lightbox-exit-btn {
  position: absolute;
  top: -3rem; right: 0;
  width: 44px; height: 44px;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
}
.service-modal-inner {
  position: relative;
  background: var(--white);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.25rem;
}
.service-modal-inner h3 { font-size: 1.5rem; margin: 0 2.5rem 1.1rem 0; }
.modal-dismiss-btn {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 40px; height: 40px;
  font-size: 1.6rem;
  line-height: 1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.modal-copy p { color: var(--steel); margin-bottom: 1.1rem; }
.modal-copy h4 { font-size: 1rem; margin-bottom: 0.5rem; }
.modal-copy ul { list-style: disc; margin: 0 0 1.25rem 1.3rem; color: var(--graphite); }
.modal-copy li { margin-bottom: 0.3rem; }
.modal-footer { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }

/* ---------- Responsive ---------- */
@media (max-width: 1420px) {
  .nav-actions .hotline-number { display: none; }
}

@media (max-width: 1180px) {
  .nav-menu, .nav-actions .hotline-number, .nav-actions .btn { display: none; }
  .hamburger-btn { display: flex; }
  .calc { grid-template-columns: minmax(0, 1fr); }
  .calc-form { border-right: 0; border-bottom: 1px solid var(--line); }
  .contact-layout-grid { grid-template-columns: 1fr; }
  .reasons { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .footer-columns-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .top-bar-right { display: none; }
  .section { padding: 3.5rem 0; }
  .hero-inner { padding: 3.5rem 0 3.25rem; }
  .hero-media::after { background: rgba(21,24,27,0.78); }
  .fact-list { grid-template-columns: 1fr 1fr; }
  .fact-list li { border-right: 0; border-bottom: 1px solid var(--line-soft); padding-left: 0 !important; }
  .product-row { grid-template-columns: 1fr; gap: 1.25rem; }
  .product-row:nth-child(even) .product-img { order: 0; }
  .spec-list div { grid-template-columns: 1fr; gap: 0; }
  .system-selector-tabs { grid-template-columns: 1fr 1fr; }
  .system-tab-btn { min-height: 48px; }
  .btn-sm { min-height: 44px; }
  .gallery-nav-btn { min-height: 44px; }
  .footer-links-list { gap: 0; }
  .footer-links-list a { display: block; padding: 0.6rem 0; }
  .contact-details dd a { display: inline-block; padding: 0.3rem 0; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-item { height: 230px; }
  .product-actions .btn { flex: 1 1 auto; }
  .calc-form, .calc-summary, .contact-form-panel { padding: 1.5rem 1.15rem; }
  .dimensions-grid, .options-grid, .contact-fields-grid { grid-template-columns: 1fr; }
  .ba-frame { height: 320px; }
  .reasons { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-columns-grid { grid-template-columns: 1fr; gap: 2rem; }
  .lightbox-nav { top: auto; bottom: -3.5rem; transform: none; }
  .floating-whatsapp { display: none; }
  .mobile-sticky-action-bar { display: block; }
  body { padding-bottom: 68px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ==========================================================================
   Satır içi stillerden taşınan sınıflar
   ========================================================================== */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.fieldset-last { margin-bottom: 0; }
.map-link { color: var(--accent); font-size: 0.95rem; text-decoration: underline; }
.opt { font-weight: 400; color: var(--muted); }
.form-actions { display: grid; gap: 0.7rem; }
.footer-note { font-size: 0.95rem; margin-bottom: 1rem; }
.link-underline { text-decoration: underline; }
.footer-sub-bar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-sub-bar.plain { border-top: 0; padding-top: 0; }
.scroll-hint { display: none; font-size: 0.85rem; color: var(--muted); margin: 0.6rem 0 0; }

/* ==========================================================================
   Mobil iyileştirmeler
   ========================================================================== */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-tap-highlight-color: rgba(79, 26, 145, 0.15); }
a, button, summary, label, input, select, textarea { touch-action: manipulation; }

/* Çentik ve yan güvenli alanlar */
.container {
  padding-left: max(1.5rem, env(safe-area-inset-left));
  padding-right: max(1.5rem, env(safe-area-inset-right));
}

/* Alanlara odaklanınca sabit başlık ve alt çubuğun altında kalmasın */
.field-input, .field-select, .consent { scroll-margin-top: calc(var(--header-h) + 24px); scroll-margin-bottom: 110px; }

.mobile-drawer { height: 100vh; height: 100dvh; overscroll-behavior: contain; padding-bottom: calc(1.5rem + env(safe-area-inset-bottom)); }
.lightbox-modal, .service-spec-modal, .service-modal-inner { overscroll-behavior: contain; }
.lightbox-box img { max-height: 70vh; max-height: 70dvh; max-width: 100%; }
.service-modal-inner { max-height: 90vh; max-height: 90dvh; }
.ba-frame { touch-action: pan-y; }

/* Canlı fiyat şeridi: slider'ı kaydırırken fiyat görünür kalır */
.calc-wrap { position: relative; }
.calc-live { display: none; }

/* Klavye açıkken alt çubuk yer kaplamasın */
body.kb-open .mobile-sticky-action-bar { display: none !important; }

@media (max-width: 1180px) {
  .calc-live {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    position: sticky;
    top: var(--header-h);
    z-index: 20;
    background: var(--ink);
    color: #fff;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    border-bottom: 3px solid var(--accent);
  }
  .calc-live strong { font-family: var(--font-head); font-size: 1.05rem; white-space: nowrap; }
}

@media (max-width: 820px) {
  .scroll-hint { display: block; }
  .mobile-sticky-action-bar { padding-bottom: calc(0.6rem + env(safe-area-inset-bottom)); }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .hero-cta-group .btn { flex: 1 1 100%; }
  .nav-container { gap: 0.75rem; }
  .field-input, .field-select { min-height: 48px; font-size: 1rem; }
  .field-textarea { min-height: 130px; }
  .consent input { width: 24px; height: 24px; }
  .consent { padding: 0.3rem 0; }
  .lightbox-modal { padding: 1rem; }
  .lightbox-exit-btn { top: -3.2rem; }
  .lightbox-nav { width: 52px; height: 52px; }
  .faq-card summary { min-height: 52px; }
}

/* Telefon yatay modu: başlık ve alt çubuk ekranı yemesin */
@media (max-height: 500px) and (orientation: landscape) {
  :root { --header-h: 56px; }
  .top-bar, .mobile-sticky-action-bar, .floating-whatsapp { display: none; }
  body { padding-bottom: 0; }
  .hero-inner { padding: 2rem 0; }
  .brand-img { height: 30px; }
  .section { padding: 2.5rem 0; }
  .calc-live { top: var(--header-h); }
}

.not-found-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.5rem; }

/* Dar telefonlarda (320–360 px) başlık taşmasın */
@media (max-width: 360px) {
  .brand-img { height: 30px; }
  .nav-container { gap: 0.5rem; }
}

/* Dokunmatik cihazlar: genişlikten bağımsız olarak rahat dokunma hedefleri */
@media (pointer: coarse) {
  .brand-logo { min-height: 44px; }
  .btn-sm, .gallery-nav-btn { min-height: 44px; }
  .range-input { height: 44px; }
  .footer-links-list { gap: 0; }
  .footer-links-list a { display: flex; align-items: center; min-height: 44px; }
  .map-link, .link-underline, .contact-details dd a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer-sub-bar .link-underline { min-height: 44px; }
}
