/*
Theme Name: Creabuss
Theme URI: https://creabuss.com
Author: 4U Digital Media
Description: Creabuss — web tasarım, sosyal medya yönetimi ve dijital pazarlama ajansı için özel WordPress teması. Design DNA: mavi ton ailesi (#1993B8), Bricolage Grotesque + Plus Jakarta Sans, GSAP "ascending" motion.
Version: 0.2.3
License: Tüm hakları saklıdır
Text Domain: creabuss
*/

/* =========================================================
   DESIGN TOKENS — docs/specs/design-dna.md §1-3 (birebir)
   ========================================================= */

:root {
  /* Primary mavi skalası */
  --c-primary-50:  #ECF7FB;
  --c-primary-100: #D2ECF4;
  --c-primary-200: #A9DBE9;
  --c-primary-300: #79C6DC;
  --c-primary-400: #45AECD;
  --c-primary-500: #1993B8;
  --c-primary-600: #147E99;
  --c-primary-700: #116379;
  --c-primary-800: #0E4B5C;
  --c-primary-900: #0B3745;
  --c-primary-950: #072430;

  /* Ink / Paper / Nötrler (mavi-nötr) */
  --c-ink:   #072430;
  --c-paper: #F7FAFB;
  --c-white: #FFFFFF;

  --c-n-50:  #F7FAFB;
  --c-n-100: #EEF3F5;
  --c-n-200: #DCE5E9;
  --c-n-300: #C0CDD3;
  --c-n-400: #93A4AC;
  --c-n-500: #6B7C84;
  --c-n-600: #4E5D64;
  --c-n-700: #37444A;

  /* Accent + semantic */
  --c-accent:   #22C7E6;
  --c-success:  #1F9E6E;
  --c-warning:  #E0A100;
  --c-error:    #D64545;
  --c-whatsapp: #25D366;

  /* Gradient */
  --grad-brand: linear-gradient(135deg, #1993B8 0%, #22C7E6 100%);
  --grad-deep:  linear-gradient(160deg, #0B3745 0%, #072430 100%);
  --grad-glow:  radial-gradient(60% 60% at 50% 0%, rgba(34,199,230,.28), transparent 70%);

  /* Tipografi */
  --font-display: 'Bricolage Grotesque', system-ui, -apple-system, sans-serif;
  --font-body:    'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Spacing (8px tabanlı) */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px; --sp-5: 24px;
  --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px; --sp-10: 128px;
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(72px, 10vw, 140px);
  --section-y-sm: clamp(48px, 6vw, 88px);

  /* Radius (yuvarlak logo dili) */
  --r-sm: 10px; --r: 16px; --r-lg: 24px; --r-xl: 32px; --r-pill: 999px;

  /* Gölge (mavi-tint) */
  --sh-sm:   0 2px 8px rgba(7,36,48,.06);
  --sh:      0 12px 32px -12px rgba(11,55,69,.18);
  --sh-lg:   0 28px 60px -24px rgba(11,55,69,.28);
  --sh-glow: 0 0 0 1px rgba(34,199,230,.35), 0 18px 50px -18px rgba(25,147,184,.45);

  /* Nav */
  --nav-height: 76px;
  --nav-height-m: 64px;
}

/* =========================================================
   RESET & BASE — spec-global.md §0
   ========================================================= */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  line-height: 1.1;
  letter-spacing: 0;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 820px; margin: 0 auto; padding: 0 var(--gutter); }
.container--wide { max-width: 1400px; margin: 0 auto; padding: 0 var(--gutter); }

.section { padding: var(--section-y) 0; }
.section-sm { padding: var(--section-y-sm) 0; }
.section-alt { background: var(--c-n-50); }

.section-head { margin-bottom: clamp(32px, 5vw, 56px); max-width: 640px; }
.section-head .eyebrow { margin-bottom: var(--sp-4); }
.section-head h2 { font-size: clamp(30px, 4vw, 52px); font-weight: 600; color: var(--c-ink); }
.section-head p { margin-top: var(--sp-3); color: var(--c-n-600); font-size: 16px; max-width: 56ch; }
.section-head--split { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--sp-6); flex-wrap: wrap; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 13px;
  letter-spacing: 0; text-transform: uppercase; color: var(--c-primary-700);
}
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--c-primary-500); flex-shrink: 0; }
.eyebrow.on-dark { color: var(--c-primary-300); }
.eyebrow.on-dark::before { background: var(--c-primary-300); }

/* =========================================================
   HEADER / NAV — spec-global.md §2 (KARAR: her sayfada cam/açık)
   ========================================================= */

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-height);
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--c-n-200);
  transition: background .35s, box-shadow .35s;
}
.site-header.scrolled {
  background: rgba(255,255,255,.92);
  box-shadow: var(--sh-sm);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; gap: var(--sp-5);
}

.site-logo {
  position: relative; display: block; flex-shrink: 0;
  width: 176px; height: 40px; overflow: hidden;
}
.site-logo img {
  position: absolute; width: 297px; max-width: none; height: auto;
  left: -56px; top: -164px;
}

.site-nav { display: flex; align-items: center; }
.nav-list { display: flex; align-items: center; gap: var(--sp-6); list-style: none; }
.nav-list > li { position: relative; }
.nav-list a {
  font-family: var(--font-body); font-weight: 500; font-size: 15px;
  color: var(--c-ink); text-decoration: none; position: relative; padding: 6px 0;
}
.nav-list a::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px;
  background: var(--c-accent); transform: scaleX(0); transform-origin: left;
  transition: transform .3s cubic-bezier(.22,1,.36,1);
}
.nav-list a:hover, .nav-list a:focus-visible { color: var(--c-primary-700); }
.nav-list a:hover::after, .nav-list a:focus-visible::after { transform: scaleX(1); }
.nav-list a[aria-current="page"] { color: var(--c-primary-700); }
.nav-list a[aria-current="page"]::after { transform: scaleX(1); }

/* Portfolyo dropdown */
.nav-dropdown-panel {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%);
  min-width: 220px; background: var(--c-white); border: 1px solid var(--c-n-200);
  border-radius: var(--r); box-shadow: var(--sh); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(6px);
  transition: opacity .25s, transform .25s, visibility .25s;
  list-style: none;
}
.nav-has-dropdown:hover .nav-dropdown-panel,
.nav-has-dropdown:focus-within .nav-dropdown-panel {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.nav-dropdown-panel li a { display: block; padding: 12px 16px; font-size: 14px; border-radius: var(--r-sm); }
.nav-dropdown-panel li a:hover, .nav-dropdown-panel li a:focus-visible { background: var(--c-primary-50); }
.nav-dropdown-panel a::after { display: none; }

.header-cta { display: flex; align-items: center; gap: var(--sp-4); flex-shrink: 0; }

.nav-toggle {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; flex-shrink: 0;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--c-ink); transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobil tam ekran menü */
.mobile-menu {
  position: fixed; inset: 0; z-index: 200; background: var(--grad-deep);
  display: flex; flex-direction: column; justify-content: center; padding: var(--sp-9) var(--gutter);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu-close {
  position: absolute; top: var(--sp-5); right: var(--gutter); width: 44px; height: 44px;
  background: none; border: none; color: #fff; font-size: 28px; cursor: pointer;
}
.mobile-nav-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.mobile-nav-list a {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 7vw, 40px);
  color: #fff; text-decoration: none;
}
.mobile-sub-list { list-style: none; margin: 4px 0 8px 0; padding-left: 12px; display: flex; flex-direction: column; gap: 4px; }
.mobile-sub-list a { font-size: clamp(16px, 4vw, 20px); font-weight: 500; color: rgba(255,255,255,.75); }
.mobile-menu-foot { margin-top: var(--sp-8); display: flex; align-items: center; gap: var(--sp-5); flex-wrap: wrap; }
.mobile-menu-foot a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; font-size: 15px; }
body.menu-open { overflow: hidden; }

/* =========================================================
   WHATSAPP FLOAT — spec-global.md §3
   ========================================================= */

.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 56px; height: 56px; border-radius: var(--r-pill);
  background: var(--c-whatsapp); box-shadow: var(--sh-lg);
  display: grid; place-items: center; text-decoration: none;
  transition: transform .25s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 26px; height: 26px; fill: #fff; }
.wa-float-ring {
  position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--c-accent);
  opacity: 0; pointer-events: none;
}

/* =========================================================
   BUTONLAR — spec-global.md §4
   ========================================================= */

.btn-primary, .btn-ghost, .btn-wa, .btn-dark, .btn-outline-light {
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  border-radius: var(--r-pill); padding: 15px 28px;
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  text-decoration: none; border: none;
  transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s, background .3s, color .3s;
}
.btn-primary { background: var(--c-primary-600); color: #fff; box-shadow: var(--sh); }
.btn-primary:hover { background: var(--grad-brand); box-shadow: var(--sh-glow); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--c-primary-700); border: 1.5px solid var(--c-primary-300); }
.btn-ghost:hover { background: var(--c-primary-50); transform: translateY(-2px); }
.btn-wa { background: var(--c-whatsapp); color: #fff; box-shadow: var(--sh); }
.btn-wa:hover { filter: brightness(1.06); transform: translateY(-2px); box-shadow: var(--sh-lg); }
.btn-dark { background: var(--c-ink); color: #fff; }
.btn-dark:hover { background: var(--c-primary-800); transform: translateY(-2px); }
.btn-outline-light { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.5); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }

.on-dark .btn-primary { background: #fff; color: var(--c-primary-700); }
.on-dark .btn-primary:hover { background: var(--c-primary-50); box-shadow: var(--sh-lg); }

.btn--sm { padding: 11px 22px; font-size: 14px; }
.btn--lg { padding: 18px 36px; font-size: 16px; }
.btn--full { width: 100%; justify-content: center; }

.arw { display: inline-block; transition: transform .3s cubic-bezier(.22,1,.36,1); }
.btn-primary:hover .arw, .btn-ghost:hover .arw, .btn-outline-light:hover .arw { transform: translateX(4px); }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--c-accent); outline-offset: 3px;
}

/* =========================================================
   KARTLAR — spec-global.md §5
   ========================================================= */

.card {
  background: var(--c-white); border: 1px solid var(--c-n-200); border-radius: var(--r-lg);
  padding: 28px; box-shadow: var(--sh-sm);
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s, border-color .35s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--sh); border-color: var(--c-primary-200); }
.card .ico {
  width: 52px; height: 52px; border-radius: 14px; background: var(--c-primary-50); color: var(--c-primary-600);
  display: grid; place-items: center; margin-bottom: var(--sp-4);
}
.card .ico svg { width: 24px; height: 24px; stroke-width: 1.8; }
.card h4 { font-family: var(--font-body); font-weight: 700; font-size: 20px; color: var(--c-ink); margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--c-n-600); line-height: 1.6; }
.card-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: var(--sp-4);
  color: var(--c-primary-700); font-size: 14px; font-weight: 600; text-decoration: none; position: relative;
}
.card-link .u { position: relative; }
.card-link .u::after {
  content: ''; position: absolute; left: 0; bottom: -3px; width: 100%; height: 2px;
  background: var(--c-accent); transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.card-link:hover .u::after, .card-link:focus-visible .u::after { transform: scaleX(1); }

/* =========================================================
   FORM — spec-global.md §6
   ========================================================= */

.field { margin-bottom: var(--sp-5); }
.field label { display: block; font-family: var(--font-body); font-weight: 600; font-size: 14px; color: var(--c-n-700); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--font-body); font-size: 16px; color: var(--c-ink);
  padding: 14px 16px; border: 1.5px solid var(--c-n-200); border-radius: var(--r);
  background: var(--c-white); transition: border-color .25s, box-shadow .25s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--c-n-400); }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--c-primary-500); box-shadow: 0 0 0 3px rgba(34,199,230,.25); outline: none;
}
.field textarea { min-height: 140px; resize: vertical; }
.field.has-error input, .field.has-error textarea { border-color: var(--c-error); }
.field-error { color: var(--c-error); font-size: 13px; margin-top: 4px; }
.field-kvkk { display: flex; align-items: flex-start; gap: 10px; margin-bottom: var(--sp-5); }
.field-kvkk input { accent-color: var(--c-primary-600); width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; }
.field-kvkk label { font-size: 13px; color: var(--c-n-600); font-weight: 400; }
.field-kvkk a { color: var(--c-primary-700); }

.form-msg { border-radius: var(--r); padding: 14px 18px; font-size: 14px; margin-top: var(--sp-4); display: none; }
.form-msg.is-visible { display: block; }
.form-msg.success { background: #E9F7F1; color: var(--c-success); }
.form-msg.error { background: #FBEAEA; color: var(--c-error); }

/* =========================================================
   FOOTER — spec-global.md §7
   ========================================================= */

.site-footer {
  background: var(--grad-deep); color: #fff; position: relative; overflow: hidden;
  padding: clamp(56px, 7vw, 88px) 0 30px;
}
.site-footer::before {
  content: ''; position: absolute; inset: 0; background: var(--grad-glow); pointer-events: none;
}
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-end; gap: var(--sp-6);
  flex-wrap: wrap; margin-bottom: clamp(40px, 6vw, 72px); position: relative; z-index: 1;
}
.footer-wordmark {
  font-family: var(--font-display); font-weight: 300; font-size: clamp(40px, 8vw, 90px); line-height: 1;
}
.footer-wordmark .s1 { color: var(--c-primary-400); }
.footer-wordmark .s2 { color: #fff; }
.footer-slogan { color: rgba(255,255,255,.75); font-size: 15px; max-width: 340px; margin-bottom: var(--sp-4); }

.footer-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-6);
  position: relative; z-index: 1; padding-bottom: clamp(32px, 5vw, 56px);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-col h4 { font-family: var(--font-body); font-weight: 700; font-size: 14px; color: #fff; margin-bottom: var(--sp-4); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  color: var(--c-primary-100); font-size: 14px; text-decoration: none; position: relative; display: inline-block;
}
.footer-col a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1px;
  background: var(--c-accent); transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.footer-col a:hover, .footer-col a:focus-visible { color: #fff; }
.footer-col a:hover::after, .footer-col a:focus-visible::after { transform: scaleX(1); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--sp-3);
  padding-top: var(--sp-5); position: relative; z-index: 1;
}
.footer-copy { color: var(--c-primary-300); font-size: 13px; }
.footer-social { display: flex; gap: var(--sp-4); list-style: none; }
.footer-social a { color: var(--c-primary-200); display: grid; place-items: center; }
.footer-social a:hover { color: #fff; }
.footer-social svg { width: 20px; height: 20px; }

/* =========================================================
   PAGE HEADER (iç sayfa) — spec-hizmet §A / spec-portfolyo / spec-vaka
   ========================================================= */

.page-header {
  background: var(--grad-deep); position: relative; overflow: hidden; color: #fff;
  padding: calc(var(--nav-height) + clamp(48px, 7vw, 88px)) 0 clamp(48px, 7vw, 80px);
}
.page-header::before { content: ''; position: absolute; inset: 0; background: var(--grad-glow); pointer-events: none; }
.page-header .container { position: relative; z-index: 1; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-family: var(--font-body); font-weight: 500; font-size: 13px; color: var(--c-primary-200); margin-bottom: var(--sp-5); flex-wrap: wrap; }
.breadcrumb a { color: var(--c-primary-200); text-decoration: none; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { opacity: .5; }
.breadcrumb [aria-current="page"] { color: #fff; }
.page-header h1 { font-size: clamp(34px, 5vw, 64px); font-weight: 600; color: #fff; margin: var(--sp-4) 0 var(--sp-5); }
.page-header h1 .hl { color: var(--c-primary-300); }
.page-header .lead { color: rgba(255,255,255,.85); font-size: clamp(16px, 1.4vw, 18px); max-width: 56ch; margin-bottom: var(--sp-6); }
.page-header .cta-row { display: flex; gap: var(--sp-4); flex-wrap: wrap; }

/* Segment tab (portfolyo) */
.pf-switch { display: flex; gap: var(--sp-3); margin-top: var(--sp-6); flex-wrap: wrap; position: relative; z-index: 1; }
.pf-switch a {
  padding: 12px 24px; border-radius: var(--r-pill); font-size: 14px; font-weight: 600; text-decoration: none;
  background: var(--c-primary-50); color: var(--c-primary-700); transition: background .25s, color .25s;
}
.pf-switch a.is-active { background: var(--c-primary-600); color: #fff; }
.pf-switch a:hover:not(.is-active) { background: var(--c-primary-100); }

/* =========================================================
   ANIMASYON ALTYAPISI — spec-global §8
   ========================================================= */

.page-curtain { position: fixed; inset: 0; z-index: 300; background: var(--grad-deep); }
.reveal { opacity: 0; transform: translateY(24px); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
body.no-js-anim .reveal, body.no-js-anim .page-curtain { opacity: 1; transform: none; display: none; }
body.no-js-anim .page-curtain { display: none; }

.skip-link {
  position: absolute; top: -100%; left: 16px; z-index: 400; background: var(--c-primary-600); color: #fff;
  padding: 12px 24px; border-radius: var(--r-sm); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 8px; }
::selection { background: var(--c-accent); color: var(--c-ink); }

@media print {
  .site-header, .site-footer, .wa-float, .page-curtain { display: none !important; }
  body { padding-top: 0; }
}

/* =========================================================
   RESPONSIVE — spec-global §1 (mobil-first, ≤768px = mobil davranış)
   ========================================================= */

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-list { gap: 20px; }
  .site-logo { width: 150px; height: 36px; }
  .site-logo img { width: 259px; left: -49px; top: -143px; }
  .header-cta .btn--sm { padding-left: 18px; padding-right: 18px; }
}

@media (max-width: 768px) {
  :root { --nav-height: 64px; }
  body { padding-top: var(--nav-height); }
  body.home { padding-top: 0; }
  .site-nav, .header-cta .btn-primary { display: none; }
  .nav-toggle { display: flex; }
  .site-logo { width: 144px; height: 34px; }
  .site-logo img { width: 248px; left: -47px; top: -137px; }
  .section { padding: var(--section-y-sm) 0; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-6) var(--sp-4); }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .page-header { padding: calc(var(--nav-height-m) + 40px) 0 clamp(40px, 8vw, 56px); }
  .page-header h1 { font-size: clamp(28px, 7vw, 40px); }
  .page-header .cta-row a { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
