/*
Theme Name: TrafikKonya
Theme URI: https://instagram.com/trafikkonya
Author: TrafikKonya
Description: TrafikKonya için Apple tarzı, beyaz ağırlıklı, tek sayfalık dijital medya/reklam tanıtım teması. Sosyal medya gücü, sayaç animasyonlu istatistikler, hizmetler ve iletişim bölümlerini functions.php üzerinden düzenlenebilir dizilerle sunar.
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: trafik-konya
*/

/* =========================================================
   Tokens
========================================================= */
:root {
  --paper: #FFFFFF;
  --paper-dim: #F7F7F4;
  --ink: #0B0B0C;
  --ink-70: rgba(11,11,12,0.7);
  --ink-55: rgba(11,11,12,0.55);
  --ink-35: rgba(11,11,12,0.35);
  --line: rgba(11,11,12,0.09);
  --line-strong: rgba(11,11,12,0.16);

  --yellow: #FFC629;
  --yellow-deep: #E6A800;
  --yellow-wash: rgba(255,198,41,0.14);

  --font-display: 'Clash Display', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 148px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.4, 1);

  --max-w: 1180px;
  --radius: 14px;
  --radius-sm: 8px;
}

/* =========================================================
   Reset
========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

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

::selection { background: var(--yellow); color: var(--ink); }

/* =========================================================
   Type helpers
========================================================= */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-55);
  margin-bottom: var(--space-4);
}
.eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow);
  flex-shrink: 0;
}

.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--space-10) var(--space-6);
}
.section--tight { padding-top: var(--space-9); padding-bottom: var(--space-9); }
.section__head {
  max-width: 640px;
  margin-bottom: var(--space-8);
}
.section__head--center { max-width: 720px; margin-left: auto; margin-right: auto; text-align: center; }
.section__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.section__lede {
  margin-top: var(--space-4);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink-55);
}
.bg-dim { background: var(--paper-dim); }

/* Highlight sweep — signature device */
.mark {
  position: relative;
  white-space: nowrap;
}
.mark__stroke {
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: 0.02em;
  width: 104%;
  height: 0.34em;
  z-index: -1;
}
.mark__stroke path {
  fill: none;
  stroke: var(--yellow);
  stroke-width: 14;
  stroke-linecap: round;
  stroke-dasharray: 340;
  stroke-dashoffset: 340;
}
.is-visible .mark__stroke path,
.hero .mark__stroke path {
  animation: markDraw 0.8s var(--ease-out) forwards;
}

@keyframes markDraw {
  to { stroke-dashoffset: 0; }
}

/* =========================================================
   Reveal on scroll
========================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal-group] > * { transition-delay: calc(var(--i, 0) * 70ms); }

/* =========================================================
   Nav
========================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  transition: background 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), backdrop-filter 0.3s;
}
.nav.is-scrolled {
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 1px 0 var(--line);
}
.nav__brand { display: flex; align-items: center; gap: 8px; }
.nav__brand-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
}
.nav__brand-text em { color: var(--ink); font-style: normal; }
.nav__brand-dot { color: var(--yellow); }

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-70);
  transition: color 0.2s;
  position: relative;
}
.nav__link:hover { color: var(--ink); }

.nav__actions { display: flex; align-items: center; gap: var(--space-4); }
.nav__menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav__menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.25s var(--ease-out), opacity 0.25s;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  transform: translateY(-100%);
  transition: transform 0.4s var(--ease-out);
}
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
}

/* =========================================================
   Buttons
========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: 999px;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), background 0.2s, border-color 0.2s;
  cursor: pointer;
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.btn--primary {
  background: var(--ink);
  color: var(--paper);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(11,11,12,0.22); }
.btn--primary:active { transform: translateY(0); }

.btn--accent {
  background: var(--yellow);
  color: var(--ink);
}
.btn--accent:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(255,198,41,0.38); }

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

.btn--small { padding: 9px 18px; font-size: 0.85rem; }
.btn--large { padding: 17px 34px; font-size: 1.05rem; }

/* =========================================================
   Hero
========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--space-10) + 40px) var(--space-5) var(--space-9);
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  max-width: 160vw;
  height: 700px;
  background: radial-gradient(closest-side, var(--yellow-wash), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero__content { position: relative; z-index: 2; max-width: 900px; }
.hero__content > * {
  opacity: 0;
  animation: heroIn 0.85s var(--ease-out) forwards;
}
.hero .eyebrow { animation-delay: 0.15s; }
.hero__title { animation-delay: 0.28s; }
.hero__subhead { animation-delay: 0.46s; }
.hero__actions { animation-delay: 0.6s; }
.hero__proof { animation-delay: 0.74s; }
@keyframes heroIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 6.6vw, 5.2rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-5);
}

.hero__subhead {
  max-width: 46ch;
  margin: 0 auto var(--space-7);
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  line-height: 1.6;
  color: var(--ink-55);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-5);
  color: var(--ink-35);
}
.hero__proof span { font-size: 0.82rem; font-weight: 500; letter-spacing: 0.02em; }
.hero__proof .dot { color: var(--line-strong); }

/* =========================================================
   About
========================================================= */
.about__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-9);
  align-items: center;
}
.about__body {
  margin-top: var(--space-5);
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--ink-55);
  max-width: 54ch;
}
.about__stats {
  display: flex;
  gap: var(--space-7);
  margin-top: var(--space-7);
}
.about__stat-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.7rem;
}
.about__stat-label {
  font-size: 0.82rem;
  color: var(--ink-35);
  margin-top: 2px;
}

.about__art { position: relative; aspect-ratio: 1 / 1; max-width: 440px; margin: 0 auto; }
.about__art svg { width: 100%; height: 100%; }
.about__art-node { fill: var(--ink); }
.about__art-node--accent { fill: var(--yellow); }
.about__art-ring { fill: none; stroke: var(--line-strong); stroke-width: 1.4; }
.about__art-beam { stroke: var(--ink-35); stroke-width: 1.2; stroke-dasharray: 3 5; }

/* =========================================================
   Social grid
========================================================= */
.social__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
.social-card {
  padding: var(--space-6);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.25s, transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.social-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(11,11,12,0.06);
}
.social-card__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--paper-dim);
  color: var(--ink);
  margin-bottom: var(--space-5);
}
.social-card__icon svg { width: 22px; height: 22px; }
.social-card__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: var(--space-1);
}
.social-card__count {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink);
}
.social-card__count-label {
  font-size: 0.82rem;
  color: var(--ink-35);
  margin-top: 2px;
}
.social-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-4);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-55);
  transition: gap 0.2s, color 0.2s;
}
.social-card__link:hover { color: var(--ink); gap: 9px; }

/* =========================================================
   Stats (rakamlarla)
========================================================= */
.stats { text-align: center; }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  letter-spacing: -0.01em;
}
.stat__label {
  display: block;
  margin-top: var(--space-3);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-55);
}

/* =========================================================
   Services
========================================================= */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
.service-card {
  padding: var(--space-7) var(--space-6);
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s, border-color 0.25s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(11,11,12,0.07);
  border-color: var(--line-strong);
}
.service-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
}
.service-card__icon svg { width: 24px; height: 24px; }
.service-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.18rem;
  margin-bottom: var(--space-2);
}
.service-card__desc {
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--ink-55);
}
.services__grid .service-card:nth-child(4),
.services__grid .service-card:nth-child(5) {
  grid-column: span 1;
}
@media (min-width: 861px) {
  .services__grid { grid-template-columns: repeat(6, 1fr); }
  .services__grid .service-card:nth-child(1) { grid-column: span 2; }
  .services__grid .service-card:nth-child(2) { grid-column: span 2; }
  .services__grid .service-card:nth-child(3) { grid-column: span 2; }
  .services__grid .service-card:nth-child(4) { grid-column: 2 / span 2; }
  .services__grid .service-card:nth-child(5) { grid-column: 4 / span 2; }
}

/* =========================================================
   References
========================================================= */
.refs__strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-5);
  align-items: center;
}
.ref-logo {
  aspect-ratio: 16 / 9;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-35);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  filter: grayscale(1);
  opacity: 0.7;
  transition: opacity 0.25s, filter 0.25s;
}
.ref-logo:hover { opacity: 1; filter: grayscale(0); color: var(--ink); }
.ref-logo--image { border-style: solid; border-color: var(--line); padding: var(--space-3); }
.ref-logo--image img { width: 100%; height: 100%; object-fit: contain; }

/* =========================================================
   Contact
========================================================= */
.contact {
  text-align: center;
}
.contact__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.12;
  margin-bottom: var(--space-5);
}
.contact__lede {
  max-width: 52ch;
  margin: 0 auto var(--space-8);
  font-size: 1.05rem;
  color: var(--ink-55);
  line-height: 1.6;
}
.contact__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  text-align: left;
}
.contact-card {
  padding: var(--space-6);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: transform 0.25s var(--ease-out), border-color 0.25s, box-shadow 0.25s;
}
.contact-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 16px 32px rgba(11,11,12,0.06);
}
.contact-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--yellow);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
}
.contact-card__icon svg { width: 20px; height: 20px; }
.contact-card__label {
  font-size: 0.8rem;
  color: var(--ink-35);
  margin-bottom: 4px;
}
.contact-card__value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}

/* =========================================================
   Footer
========================================================= */
.site-footer {
  border-top: 1px solid var(--line);
  padding: var(--space-8) var(--space-6) var(--space-7);
}
.site-footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  flex-wrap: wrap;
}
.site-footer__brand { display: flex; align-items: center; gap: 8px; }
.site-footer__brand-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
}
.site-footer__links {
  display: flex;
  gap: var(--space-5);
}
.site-footer__links a {
  font-size: 0.85rem;
  color: var(--ink-55);
  transition: color 0.2s;
}
.site-footer__links a:hover { color: var(--ink); }
.site-footer__note {
  font-size: 0.8rem;
  color: var(--ink-35);
}
.site-footer__bottom {
  max-width: var(--max-w);
  margin: var(--space-6) auto 0;
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-size: 0.78rem;
  color: var(--ink-35);
}

/* =========================================================
   Responsive
========================================================= */
@media (max-width: 980px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__art { order: -1; max-width: 300px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .contact__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__actions .btn--ghost { display: none; }
  .nav__menu-btn { display: block; }
  .social__grid { grid-template-columns: repeat(2, 1fr); }
  .services__grid { grid-template-columns: repeat(2, 1fr) !important; }
  .services__grid .service-card { grid-column: span 1 !important; }
  .refs__strip { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .section { padding: var(--space-8) var(--space-4); }
  .social__grid { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr; gap: var(--space-7); }
  .contact__grid { grid-template-columns: 1fr; }
  .refs__strip { grid-template-columns: repeat(2, 1fr); }
  .site-footer__inner { flex-direction: column; align-items: flex-start; }
}

/* =========================================================
   Reduced motion
========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero__content > * { opacity: 1; transform: none; animation: none; }
  [data-reveal] { opacity: 1; transform: none; }
  .mark__stroke path { stroke-dashoffset: 0; }
}
