/*
Theme Name: Kurtuluş Yapı
Theme URI: https://www.manavgatpvcaluminyum.com/
Author: Webkoding
Description: Kurtuluş Alüminyum & PVC — SEO odaklı, hafif, responsive kurumsal tema. Sıfır bağımlılık, sıfır page-builder.
Version: 1.0.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: kurtulus
*/

/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
  --brand: #1668d6;
  --brand-dark: #1155b3;
  --brand-light: #e8f1fd;
  --ink: #0f1722;
  --ink-deep: #0a1422;
  --ink-mid: #11283f;
  --muted: #5b6573;
  --muted-soft: #7d93af;
  --line: #e4e8ee;
  --line-soft: #eef1f5;
  --surface: #f5f7fa;
  --white: #fff;
  --green: #1faf54;
  --green-dark: #178a42;

  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px -2px rgba(15, 23, 34, .08);
  --shadow: 0 10px 30px -12px rgba(15, 23, 34, .18);
  --shadow-lg: 0 24px 60px -20px rgba(15, 23, 34, .28);

  --font-head: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --wrap: 1200px;
  --header-h: 86px;
  --gap: clamp(16px, 3vw, 28px);
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  /* Rengi bulunduğu bölümden miras alır: koyu bölümde beyaz, açık bölümde koyu.
     Sabit koyu renk verilirse koyu zeminli hero'larda başlık okunmaz hale geliyordu. */
  color: inherit;
  line-height: 1.2;
  margin: 0 0 .6em;
  text-wrap: balance;
}

h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem); font-weight: 700; letter-spacing: -.015em; }
h3 { font-size: clamp(1.15rem, 1rem + .7vw, 1.4rem); font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand); text-decoration: none; transition: color .2s; }
a:hover { color: var(--brand-dark); }

img, svg, video { max-width: 100%; height: auto; display: block; }

ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }
li { margin-bottom: .4em; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Accessibility helpers */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--brand);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ==========================================================================
   Layout
   ========================================================================== */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 24px);
}

.section { padding-block: clamp(48px, 7vw, 88px); }
.section--tight { padding-block: clamp(32px, 5vw, 56px); }
.section--surface { background: var(--surface); }
.section--dark { background: var(--ink-deep); color: #cfd8e3; }
.section--dark h2, .section--dark h3 { color: #fff; }

.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-light);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.lead { font-size: 1.08rem; color: var(--muted); }

.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--brand-dark); color: #fff; box-shadow: var(--shadow); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }

.btn--wa { background: var(--green); color: #fff; }
.btn--wa:hover { background: var(--green-dark); color: #fff; }

.btn--lg { padding: 17px 30px; font-size: 1rem; }
.btn--block { width: 100%; }

/* ==========================================================================
   Header
   ========================================================================== */
.topbar {
  background: var(--ink-deep);
  color: #9fb0c4;
  font-size: .85rem;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
  flex-wrap: wrap;
}
.topbar a { color: #cfd8e3; }
.topbar a:hover { color: #fff; }
.topbar__contact { display: flex; gap: 18px; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: 6px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.5) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.site-header.is-stuck { box-shadow: var(--shadow); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-h);
}

.site-logo img { max-height: 52px; width: auto; }
.site-logo__text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  line-height: 1.1;
}
.site-logo__text small {
  display: block;
  font-family: var(--font-body);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted-soft);
}

/* Desktop nav */
.nav-main { display: none; }
.nav-main ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav-main li { margin: 0; position: relative; }
.nav-main a {
  display: block;
  padding: 10px 14px;
  font-family: var(--font-head);
  font-size: .93rem;
  font-weight: 500;
  color: var(--ink);
  border-radius: var(--radius-sm);
}
.nav-main a:hover,
.nav-main .current-menu-item > a,
.nav-main .current_page_item > a,
.nav-main .current-menu-ancestor > a,
.nav-main .current_page_ancestor > a {
  background: var(--brand-light);
  color: var(--brand);
}

/* Dropdowns */
.nav-main .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  display: block;
  flex-direction: column;
  gap: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .18s, transform .18s, visibility .18s;
  max-height: 70vh;
  overflow-y: auto;
}
.nav-main li:hover > .sub-menu,
.nav-main li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-main .sub-menu a { font-size: .9rem; padding: 9px 12px; font-weight: 400; }
.nav-main .sub-menu .sub-menu { top: 0; left: 100%; }

.header-cta { display: none; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s, opacity .2s;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before,
.nav-toggle span::after { content: ''; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer */
.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #fff;
  padding: 20px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.2, 0, 0, 1);
  visibility: hidden;
}
.nav-mobile.is-open { transform: translateX(0); visibility: visible; }
.nav-mobile__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.nav-mobile ul { list-style: none; margin: 0; padding: 0; }
.nav-mobile li { margin: 0; border-bottom: 1px solid var(--line-soft); }
.nav-mobile a {
  display: block;
  padding: 14px 4px;
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--ink);
}
.nav-mobile .sub-menu { padding-left: 14px; border-left: 2px solid var(--brand-light); margin-bottom: 8px; }
.nav-mobile .sub-menu a { font-family: var(--font-body); font-weight: 400; font-size: .92rem; padding: 10px 4px; color: var(--muted); }
.nav-mobile__cta { margin-top: 24px; display: grid; gap: 10px; }

body.nav-open { overflow: hidden; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--ink-deep), var(--ink-mid));
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(22, 104, 214, .28), transparent 60%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  padding-block: clamp(48px, 8vw, 96px);
}
.hero__title { color: #fff; margin-bottom: 18px; }
.hero__text { color: #b9c6d6; font-size: 1.08rem; max-width: 56ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.hero .eyebrow { background: rgba(22, 104, 214, .22); color: #8fc0ff; }

/* Page hero (interior) */
.page-hero {
  background: linear-gradient(135deg, var(--ink-deep), var(--ink-mid));
  color: #fff;
  padding-block: clamp(36px, 5vw, 64px);
}
.page-hero h1 { color: #fff; margin-bottom: 10px; }
.page-hero__text { color: #a9b8ca; max-width: 68ch; margin: 0; }

/* Breadcrumbs */
.breadcrumbs {
  font-size: .84rem;
  color: #8ba0b8;
  margin-bottom: 14px;
}
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumbs li { margin: 0; display: inline-flex; align-items: center; gap: 6px; }
.breadcrumbs li + li::before { content: '/'; color: #4f637a; }
.breadcrumbs a { color: #cfd8e3; }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs [aria-current] { color: #fff; }

/* ==========================================================================
   Cards
   ========================================================================== */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s cubic-bezier(.2, 0, 0, 1), box-shadow .3s, border-color .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfdcf0; }

.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, 0, 0, 1); }
.card:hover .card__media img { transform: scale(1.06); }

.card__body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__title { font-size: 1.08rem; margin: 0; }
.card__title a { color: var(--ink); }
.card:hover .card__title a { color: var(--brand); }
.card__text { color: var(--muted); font-size: .93rem; margin: 0; flex: 1; }
.card__more {
  font-family: var(--font-head);
  font-size: .88rem;
  font-weight: 600;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card__more::after { content: '→'; transition: transform .25s; }
.card:hover .card__more::after { transform: translateX(4px); }

/* ==========================================================================
   Stats
   ========================================================================== */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; }
.stat { text-align: center; padding: 24px 12px; border-radius: var(--radius); background: var(--surface); }
.stat__num { font-family: var(--font-head); font-size: clamp(1.7rem, 1.2rem + 2vw, 2.4rem); font-weight: 700; color: var(--brand); line-height: 1; }
.stat__label { font-size: .88rem; color: var(--muted); margin-top: 8px; }

/* ==========================================================================
   Gallery (product images)
   ========================================================================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.gallery__item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  cursor: zoom-in;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery__item:hover img { transform: scale(1.06); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 20, 34, .94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: var(--radius-sm); }
.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .2s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, .25); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__nav--prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: #9fb0c4; font-size: .9rem; }

/* ==========================================================================
   Content (prose)
   ========================================================================== */
.prose { max-width: 74ch; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose img { border-radius: var(--radius); margin-block: 1.4em; }
.prose ul, .prose ol { color: var(--ink); }
.prose blockquote {
  margin: 1.6em 0;
  padding: 18px 22px;
  border-left: 3px solid var(--brand);
  background: var(--brand-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink);
}
.prose table { width: 100%; border-collapse: collapse; margin-block: 1.4em; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 14px; text-align: start; }
.prose th { background: var(--surface); font-family: var(--font-head); }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Layout: content + sidebar */
.content-layout { display: grid; gap: clamp(28px, 4vw, 48px); align-items: start; }

/* ==========================================================================
   Spec table (product)
   ========================================================================== */
.specs { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.specs__row { display: flex; gap: 16px; padding: 13px 18px; border-bottom: 1px solid var(--line-soft); }
.specs__row:last-child { border-bottom: 0; }
.specs__row:nth-child(odd) { background: var(--surface); }
.specs__key { font-family: var(--font-head); font-weight: 600; font-size: .9rem; min-width: 42%; color: var(--ink); }
.specs__val { color: var(--muted); font-size: .93rem; }

/* ==========================================================================
   FAQ (accordion)
   ========================================================================== */
.faq { display: grid; gap: 10px; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  text-align: start;
}
.faq__q::after {
  content: '+';
  flex: 0 0 auto;
  font-size: 1.3rem;
  color: var(--brand);
  transition: transform .25s;
}
.faq__q[aria-expanded="true"]::after { transform: rotate(45deg); }
.faq__a { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease; color: var(--muted); }
.faq__item.is-open .faq__a { padding: 0 20px 20px; max-height: 600px; }

/* ==========================================================================
   Forms
   ========================================================================== */
.form { display: grid; gap: 16px; }
.form__row { display: grid; gap: 16px; grid-template-columns: 1fr; }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--font-head); font-size: .88rem; font-weight: 600; color: var(--ink); }
.field .req { color: #d33; }

input[type="text"], input[type="email"], input[type="tel"], input[type="search"],
select, textarea {
  width: 100%;
  padding: 13px 15px;
  font-family: inherit;
  font-size: .96rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(22, 104, 214, .14);
}
textarea { min-height: 130px; resize: vertical; }
::placeholder { color: #9aa4b1; }

.form__note { font-size: .82rem; color: var(--muted-soft); }
.form__msg { padding: 14px 16px; border-radius: var(--radius-sm); font-size: .93rem; }
.form__msg--ok { background: #e8f7ee; color: #14572c; border: 1px solid #b8e3c8; }
.form__msg--err { background: #fdecec; color: #8a1f1f; border: 1px solid #f3c4c4; }

/* honeypot */
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; }

/* ==========================================================================
   Contact info blocks
   ========================================================================== */
.info-list { display: grid; gap: 18px; list-style: none; margin: 0; padding: 0; }
.info-list li { margin: 0; display: flex; gap: 14px; align-items: flex-start; }
.info-list__icon {
  flex: 0 0 auto;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: var(--brand-light);
  color: var(--brand);
  border-radius: var(--radius-sm);
}
.info-list__label { font-family: var(--font-head); font-weight: 600; font-size: .88rem; color: var(--ink); }
.info-list__val { color: var(--muted); font-size: .95rem; }
.info-list__val a { color: var(--muted); }
.info-list__val a:hover { color: var(--brand); }

.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map-embed iframe { display: block; width: 100%; height: 380px; border: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink-deep); color: #90a2b7; padding-block: clamp(44px, 6vw, 72px) 0; }
.site-footer h3 {
  color: #fff;
  font-size: .95rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.site-footer a { color: #b9c6d6; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; font-size: .93rem; }

.footer-grid { display: grid; gap: clamp(28px, 4vw, 44px); grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.footer-brand__logo { margin-bottom: 16px; }
.footer-brand p { font-size: .93rem; color: #8095ab; }

.footer-bottom {
  margin-top: clamp(36px, 5vw, 56px);
  padding-block: 22px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: .85rem;
  color: #6f8199;
}

/* ==========================================================================
   Floating actions
   ========================================================================== */
.floaters {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  display: grid;
  gap: 10px;
}
.floater {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: #fff;
  box-shadow: var(--shadow);
  transition: transform .2s;
}
.floater:hover { transform: scale(1.07); color: #fff; }
.floater--wa { background: var(--green); }
.floater--tel { background: var(--brand); }

/* Mobile sticky call bar */
.callbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 85;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px -10px rgba(15, 23, 34, .2);
}
.callbar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .92rem;
}
.callbar a + a { border-left: 1px solid var(--line); }
.callbar__wa { color: var(--green); }
.callbar__tel { color: var(--brand); }

/* ==========================================================================
   Marquee (dealer strip)
   ========================================================================== */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: #fff; padding-block: 18px; }
.marquee__track { display: flex; gap: 48px; width: max-content; animation: marquee 32s linear infinite; }
.marquee__item {
  font-family: var(--font-head);
  font-size: .9rem;
  font-weight: 600;
  color: var(--muted-soft);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */
/* JS çalışmazsa içerik GÖRÜNÜR kalır. Eskiden koşulsuz opacity:0 idi;
   JavaScript bir hata verse ürün kartları hiç görünmüyordu. */
.js .reveal { opacity: 0; transform: translateY(24px); }
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity .7s cubic-bezier(.2, 0, 0, 1), transform .7s cubic-bezier(.2, 0, 0, 1);
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.pagination { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 40px; }
.pagination .page-numbers {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding-inline: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .92rem;
  color: var(--ink);
}
.pagination .page-numbers:hover { border-color: var(--brand); color: var(--brand); }
.pagination .current { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ==========================================================================
   WordPress core classes
   ========================================================================== */
.alignleft { float: left; margin: 0 1.4em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.4em; }
.aligncenter { margin-inline: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .85rem; color: var(--muted-soft); text-align: center; margin-top: 6px; }
.sticky, .gallery-caption, .bypostauthor { }

/* ==========================================================================
   Breakpoints
   ========================================================================== */
@media (min-width: 600px) {
  .form__row--2 { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1.05fr .95fr; }
  .content-layout--sidebar { grid-template-columns: minmax(0, 1fr) 320px; }
  .callbar { display: none; }
}

@media (min-width: 1024px) {
  .nav-main { display: block; }
  .header-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none; }
}

/* Small screens: give room for the sticky call bar */
@media (max-width: 899px) {
  body { padding-bottom: 56px; }
  .floaters { bottom: 70px; }
}

/* ==========================================================================
   Motion / print
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .floaters, .callbar, .nav-mobile, .topbar { display: none !important; }
  body { color: #000; }
  a { color: #000; text-decoration: underline; }
}

/* ==========================================================================
   Tasarım katmanı — design/design.css (port)
   Çakışan tanımlarda tasarımınki kazanır; bu blok dosyanın sonundadır.
   Not: prototip runtime'ına ait kurallar (.sc-placeholder, #dc-root,
   body{background:#0a1422}, x-dc) bilinçli olarak alınmadı — WP'de zararlı.
   ========================================================================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
button[disabled] { opacity: .42; cursor: not-allowed; }
::placeholder { color: #9aa4b1; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent, #1668d6) !important; box-shadow: 0 0 0 3px rgba(22, 104, 214, .14); }
a:focus-visible, button:focus-visible { outline: 2px solid rgba(22, 104, 214, .6); outline-offset: 2px; border-radius: 6px; }

.ag-card { transform: perspective(900px); transition: transform .45s cubic-bezier(.2, 0, 0, 1), border-color .3s, box-shadow .3s; will-change: transform; }
.ag-shine { position: absolute; top: 0; left: 0; width: 55%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: translateX(-160%) skewX(-16deg); opacity: 0; transition: transform .8s ease, opacity .3s; pointer-events: none; }
.ag-card:hover .ag-shine { transform: translateX(260%) skewX(-16deg); opacity: 1; }
.ag-proj-img { transition: transform .7s cubic-bezier(.2, 0, 0, 1); }
.ag-proj:hover .ag-proj-img { transform: scale(1.07); }
.ag-proj:hover .ag-proj-go { opacity: 1; transform: translateY(0); }

@keyframes agup { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes agfade { from { opacity: 0; } to { opacity: 1; } }
@keyframes agsweep { 0% { transform: translateX(-130%) skewX(-18deg); } 60%, 100% { transform: translateX(240%) skewX(-18deg); } }
@keyframes agmarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes agfloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
@keyframes agreveal { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
@keyframes agpulse { 0%, 100% { box-shadow: 0 3px 10px -4px rgba(31, 175, 84, .32); } 50% { box-shadow: 0 5px 14px -5px rgba(31, 175, 84, .45); } }

.ag-rv { animation: agreveal .75s cubic-bezier(.2, 0, 0, 1) both; }
[data-stagger].ag-rv { animation: none; }
[data-stagger].ag-rv > * { animation: agreveal .62s cubic-bezier(.2, 0, 0, 1) both; }
[data-stagger].ag-rv > *:nth-child(2) { animation-delay: .07s; }
[data-stagger].ag-rv > *:nth-child(3) { animation-delay: .14s; }
[data-stagger].ag-rv > *:nth-child(4) { animation-delay: .21s; }
[data-stagger].ag-rv > *:nth-child(5) { animation-delay: .28s; }
[data-stagger].ag-rv > *:nth-child(6) { animation-delay: .35s; }
[data-stagger].ag-rv > *:nth-child(7) { animation-delay: .42s; }
[data-stagger].ag-rv > *:nth-child(8) { animation-delay: .49s; }
[data-stagger].ag-rv > *:nth-child(n+9) { animation-delay: .55s; }

/* Mega menü paneli (Kurtulus_Mega_Walker çıktısı) */
.ag-mega-panel { opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(8px); transition: opacity .2s ease, transform .2s ease, visibility .2s; }
.ag-mega:hover .ag-mega-panel,
.ag-mega:focus-within .ag-mega-panel { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.ag-mega .scp0:hover { color: var(--accent, #1668d6) !important; }
.ag-mega-panel .scp1:hover { background: rgb(244, 248, 253); }
.ag-header-cta:hover { background: #1257b4 !important; transform: translateY(-1px); }
.ag-floaters .scpe:hover { transform: scale(1.07); }

/* Header/menü glue — tasarım masaüstü içindi, mobil davranışı tema devralır */
.ag-nav { display: none !important; }
#site-header .custom-logo { height: 46px; width: auto; display: block; }
.ag-foot-logo .custom-logo { height: 46px; width: auto; display: block; }
/* Menü atanmamışsa devreye giren yedek liste */
.ag-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 26px; }
.ag-nav ul a { font: 500 14.5px Inter, system-ui, sans-serif; color: rgb(51, 64, 79); text-decoration: none; }

@media (max-width: 1023px) {
  .ag-header-cta { display: none !important; }
}

@media (min-width: 1024px) {
  .ag-nav { display: flex !important; }
}

@media (max-width: 899px) {
  .ag-foot-grid { grid-template-columns: 1fr 1fr !important; }
  .ag-floaters { bottom: 76px !important; }
}

@media (max-width: 599px) {
  .ag-foot-grid { grid-template-columns: 1fr !important; }
}

@media (prefers-reduced-motion: reduce) {
  [data-stagger].ag-rv > * { animation: none !important; }
  .ag-rv { animation: none !important; }
  * { scroll-behavior: auto !important; }
}

/* ==========================================================================
   Ana sayfa — mobil uyum
   Tasarım masaüstü içindi; bölüm ızgaraları dar ekranda tek sütuna iner.
   Inline style'lara dokunmamak için !important şart.
   ========================================================================== */
@media (max-width: 1023px) {
  .ag-hero-grid,
  .ag-neden-grid,
  .ag-contact-grid,
  .ag-certs-grid,
  #ag-calc { grid-template-columns: 1fr !important; }
  .ag-hero-grid { min-height: 0 !important; }
  #ag-calc > div + div { border-left: 0 !important; border-top: 1px solid rgb(228, 232, 238) !important; }
  #ag-proj-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .ag-dealer-grid { grid-template-columns: 1fr !important; }
  .ag-dealer-grid > div:nth-child(2) { border-right: 0 !important; padding-right: 0 !important; }
}

@media (max-width: 599px) {
  #ag-proj-grid,
  .ag-cert-imgs { grid-template-columns: 1fr !important; }
}

/* Hero — beyaz düzen, mobil uyum */
@media (max-width: 900px) {
  .ag-hero-grid { grid-template-columns: 1fr !important; }
  .ag-hero-stats { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 460px) {
  .ag-hero-stats { grid-template-columns: 1fr !important; }
}


/* Header logosu — panelden yüklenen özel logo da aynı boyutta dursun */
.ag-logo .custom-logo-link { display: block; }
.ag-logo .custom-logo { height: 64px; width: auto; max-width: none; display: block; }

@media (max-width: 640px) {
  .ag-logo .custom-logo,
  .site-header img[src*="kurtulus-logo"] { height: 52px; }
}

/* ==========================================================================
   Mobil erişilebilirlik düzeltmeleri
   Responsive testte bulundu: 20 dokunma hedefi 36px'in altındaydı ve
   14 metin 12px'in altındaydı. Google hem sıralamada hem erişilebilirlikte
   bunları sayıyor. Masaüstü tasarımı korunuyor, sadece <900px'te devreye girer.
   ========================================================================== */
@media (max-width: 900px) {

  /* 1) Dokunma hedefleri en az 44px — parmakla basılabilsin */
  .site-footer a,
  footer a[class^="scp"],
  a[href^="tel:"],
  a[href^="https://wa.me"] {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  /* Fiyat/ölçü hesaplayıcı seçenek butonları */
  .agc-opt {
    min-height: 44px !important;
    padding-inline: 18px !important;
  }

  /* "Tüm ürünleri görün" gibi metin bağlantıları */
  a[href$="/urunler/"],
  a[href*="urun-kategori"] {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  /* 2) 12px altı metinleri okunur boyuta çıkar */
  [style*="font: 600 9.5px"],
  [style*="font: 700 9.5px"],
  [style*="font: 600 10px"],
  [style*="font: 700 10px"],
  [style*="font: 600 10.5px"],
  [style*="font: 700 10.5px"],
  [style*="font: 400 11px"],
  [style*="font: 600 11px"],
  [style*="font: 600 11.5px"],
  [style*="font: 400 11.5px"] {
    font-size: 12px !important;
    line-height: 1.45 !important;
  }

  /* Harf aralığı geniş etiketler dar ekranda taşmasın */
  [style*="letter-spacing: 0.18em"],
  [style*="letter-spacing: 0.2em"],
  [style*="letter-spacing: 0.16em"] {
    letter-spacing: .1em !important;
    word-break: break-word;
  }
}

/* Çok dar ekranlarda hero istatistik kutuları tek sıraya sıkışmasın */
@media (max-width: 520px) {
  .ag-hero-stats { grid-template-columns: 1fr 1fr !important; }
}

/* ==========================================================================
   Denetimde bulunan mobil hataları
   ========================================================================== */

/* 1) İletişim sayfası: 2 sütunlu grid mobilde tek sütuna inmiyordu.
      Sağdaki WhatsApp kutusu ekranın dışına taşıyordu. */
@media (max-width: 900px) {
  .ag-iletisim-grid { grid-template-columns: 1fr !important; }
}

/* 2) Yüzen WhatsApp/Ara butonları mobilde "Class 3" gibi kart etiketlerinin
      üstüne biniyordu. Alt sabit "Ara/WhatsApp" barı zaten aynı işi görüyor,
      bu yüzden dar ekranda yüzen butonları gizliyoruz — çift CTA gereksizdi. */
@media (max-width: 640px) {
  .ag-floaters { display: none !important; }
}

/* 640–900px arası (tablet): bar yok, yüzen butonlar kalsın ama
   içerikle çakışmasın diye biraz yukarı alınsın. */
@media (min-width: 641px) and (max-width: 900px) {
  .ag-floaters { bottom: 84px !important; }
}

/* İletişim kartları: flex öğesinin varsayılan min-width:auto değeri, uzun metni
   (ör. "Alpaslan ARANMAZ · Koordinatör") sarmalatmayıp kartı ekrandan taşırıyordu. */
@media (max-width: 640px) {
  .ag-iletisim-grid a,
  .ag-iletisim-grid > div > a { min-width: 0 !important; }
  .ag-iletisim-grid span { min-width: 0; overflow-wrap: anywhere; }
  .map-embed iframe, .ag-iletisim-grid iframe { max-width: 100%; }
}
