/* ============================================================
   KARTONSTAND — Soft & Sade Tasarım Sistemi
   Font: Nunito · Palet: beyaz + sage yeşil + sıcak gri
   ============================================================ */

/* Fonts loaded via <link> in PHP head — no @import blocking */

:root {
  --bg:          #ffffff;
  --bg-alt:      #f7f6f4;
  --bg-soft:     #f0f0ee;
  --surface:     #ffffff;
  --border:      #e5e2dc;
  --border-2:    #d2cfc7;

  --text:        #2a2724;
  --text-2:      #5a5651;
  --text-3:      #9e9a94;

  --accent:      #5e8a52;
  --accent-dark: #466040;
  --accent-soft: #ebf2e8;
  --accent-mid:  #d4e7cf;

  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --radius-full: 999px;

  --shadow-xs: 0 1px 3px rgba(0,0,0,.05);
  --shadow-sm: 0 2px 10px rgba(0,0,0,.07), 0 1px 3px rgba(0,0,0,.05);
  --shadow-md: 0 6px 24px rgba(0,0,0,.10), 0 2px 8px rgba(0,0,0,.06);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.13), 0 4px 16px rgba(0,0,0,.07);

  --maxw: 1220px;
  --font: 'Nunito', system-ui, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Nunito', system-ui, sans-serif;
  --ease: cubic-bezier(.22,1,.36,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ── Layout ── */
.wrap      { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section   { padding: 80px 0; }
.section-sm{ padding: 56px 0; }

/* ── Type ── */
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; color: var(--text); }
.h-hero { font-size: clamp(34px,5vw,62px); font-weight: 800; line-height: 1.08; letter-spacing: -.025em; }
.h-sec  { font-size: clamp(26px,3.2vw,44px); font-weight: 700; letter-spacing: -.02em; }
.h-card { font-size: 17px; font-weight: 700; }
.lead   { font-size: clamp(16px,1.4vw,18px); color: var(--text-2); line-height: 1.7; }
.muted  { color: var(--text-3); }
.label  { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.accent-text { color: var(--accent); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font); font-weight: 700; font-size: 15px;
  padding: 12px 22px; border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  transition: all .2s var(--ease); white-space: nowrap; cursor: pointer;
}
.btn svg, .btn i { width: 17px; height: 17px; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border-2); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.btn-ghost  { background: transparent; color: var(--text-2); border-color: transparent; padding: 10px 14px; }
.btn-ghost:hover  { color: var(--accent); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 15px 28px; font-size: 16px; }

/* ── Card ── */
.card {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-xs);
  transition: border-color .25s, box-shadow .25s, transform .25s var(--ease);
}
.card:hover { border-color: var(--accent-mid); box-shadow: var(--shadow-md); transform: translateY(-3px); }

/* ── Chip ── */
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 700;
  padding: 4px 10px; border-radius: var(--radius-full);
  background: var(--bg-alt); color: var(--text-2); border: 1px solid var(--border);
}
.chip svg, .chip i { width: 13px; height: 13px; }
.chip-green { background: var(--accent-soft); color: var(--accent-dark); border-color: var(--accent-mid); }

/* ── Image placeholder ── */
.ph {
  background: #e9e6e0;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3); overflow: hidden; position: relative;
}
.ph-label {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-3);
}
.ph-label svg, .ph-label i { width: 24px; height: 24px; }
.ph-tag {
  position: absolute; top: 10px; left: 10px;
  background: var(--text); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
  padding: 4px 8px; border-radius: 6px;
}

/* ── Section label ── */
.sec-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.sec-label::before { content: ""; width: 18px; height: 2px; background: var(--accent); display: inline-block; border-radius: 2px; }

/* ── Divider ── */
.divider { height: 1px; background: var(--border); margin: 0; }

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  background: var(--bg-alt); border-bottom: 1px solid var(--border);
  font-size: 13px; color: var(--text-2);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 38px; gap: 16px; }
.topbar a { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); transition: color .15s; }
.topbar a:hover { color: var(--accent); }
.topbar svg, .topbar i { width: 14px; height: 14px; color: var(--accent); }
.tb-right { display: flex; gap: 20px; align-items: center; }
@media (max-width: 700px){ .topbar .wrap > *:first-child { display: none; } }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  overflow: visible;
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }

/* brand */
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--accent); display: grid; place-items: center; flex: none;
}
.brand-mark span { color: #fff; font-weight: 800; font-size: 18px; line-height: 1; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: -.02em; line-height: 1; }
.brand-name b { color: var(--accent); font-weight: 800; }
.brand-name small { display: block; font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-top: 3px; }

/* nav links */
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a { font-weight: 600; font-size: 15px; color: var(--text-2); padding: 8px 13px; border-radius: 8px; white-space: nowrap; transition: color .15s, background .15s; }
.nav-links a:hover { color: var(--text); background: var(--bg-alt); }
.nav-links a.active { color: var(--accent); }

.nav-cta { display: flex; align-items: center; gap: 8px; }
.nav-burger { display: none; background: none; border: 1.5px solid var(--border-2); border-radius: 8px; width: 40px; height: 40px; place-items: center; color: var(--text); }
.nav-burger i, .nav-burger svg { width: 20px; height: 20px; }

/* nav scroll shadow */
.nav.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.09); border-bottom-color: transparent; }
.nav-progress { position: absolute; bottom: -1px; left: 0; height: 2.5px; background: var(--accent); width: 0%; transition: width .1s linear; z-index: 2; }

/* ── mega trigger in nav ── */
.nav-item-mega { display: inline-flex; align-items: center; }
.mega-trigger { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; font-size: 15px; color: var(--text-2); padding: 8px 13px; border-radius: 8px; white-space: nowrap; cursor: pointer; background: none; border: none; font-family: var(--font); transition: color .15s, background .15s; }
.mega-trigger:hover, .nav-item-mega.open .mega-trigger { color: var(--accent); background: var(--accent-soft); }
.mega-trigger i, .mega-trigger svg { width: 15px; height: 15px; transition: transform .22s var(--ease); }
.nav-item-mega.open .mega-trigger i, .nav-item-mega.open .mega-trigger svg { transform: rotate(180deg); }

/* ── DROPDOWN — simple compact list ── */
.mega-overlay {
  position: fixed; z-index: 9000;
  display: none;
  /* top + left set by JS */
}
.mega-overlay .mega-panel {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,.13), 0 2px 8px rgba(0,0,0,.06);
  min-width: 238px;
  overflow: hidden;
  transform: translateY(-6px); opacity: 0;
  transition: transform .2s var(--ease), opacity .18s ease;
}
.mega-overlay.open .mega-panel { transform: translateY(6px); opacity: 1; }
.mega-scrim { display: none; }

.dd-head { padding: 10px 14px 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; color: var(--text-3); }
.dd-item { display: flex; align-items: center; gap: 9px; padding: 9px 14px; font-size: 14px; font-weight: 600; color: var(--text-2); text-decoration: none; transition: background .12s, color .12s; }
.dd-item:hover { background: var(--accent-soft); color: var(--accent-dark); }
.dd-item i, .dd-item svg { width: 15px; height: 15px; color: var(--accent); flex: none; opacity: .65; }
.dd-item:hover i, .dd-item:hover svg { opacity: 1; }
.dd-count { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--text-3); }
.dd-divider { height: 1px; background: var(--border); margin: 5px 0; }
.dd-footer { padding: 8px 14px 10px; border-top: 1px solid var(--border); background: var(--bg-alt); }
.dd-footer a { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--accent); text-decoration: none; transition: gap .15s; }
.dd-footer a:hover { gap: 10px; }
.dd-footer a i, .dd-footer a svg { width: 13px; height: 13px; }

/* ── WhatsApp FAB ── */
.fab-wa {
  position: fixed; bottom: 24px; right: 24px; z-index: 400;
  width: 52px; height: 52px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 4px 18px rgba(37,211,102,.45), 0 2px 8px rgba(0,0,0,.15);
  transition: transform .22s var(--ease), box-shadow .22s;
  text-decoration: none;
}
.fab-wa:hover { transform: scale(1.1); box-shadow: 0 8px 28px rgba(37,211,102,.55), 0 4px 14px rgba(0,0,0,.18); }
.fab-wa svg { width: 26px; height: 26px; }

/* mobile drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.3); z-index: 90; opacity: 0; pointer-events: none; transition: opacity .25s; }
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(340px, 88vw); z-index: 95; background: #fff; box-shadow: var(--shadow-md); transform: translateX(100%); transition: transform .28s var(--ease); display: flex; flex-direction: column; padding: 20px; }
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; gap: 10px; overflow: hidden; min-height: 38px; }
.drawer-head a { flex: 1; min-width: 0; overflow: hidden; }
.drawer-head img { height: 28px; max-width: 140px; object-fit: contain; display: block; }
.drawer-head .brand-name { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drawer-close { flex-shrink: 0; }
.drawer-close { background: none; border: 1.5px solid var(--border-2); border-radius: 8px; width: 38px; height: 38px; display: grid; place-items: center; }
.drawer-close i, .drawer-close svg { width: 18px; height: 18px; }
.drawer a { font-weight: 600; font-size: 17px; padding: 13px 0; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; color: var(--text); }
.drawer a i, .drawer a svg { width: 16px; height: 16px; color: var(--text-3); }
.drawer .btn { margin-top: 20px; justify-content: center; }
.drawer .btn-primary { color: #fff !important; }
.drawer .btn-primary i, .drawer .btn-primary svg { color: #fff !important; }

/* ── FOOTER improvements ── */
.footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 64px 0 0; }
.footer-inner { padding-bottom: 48px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.footer h4 { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 16px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer a { color: var(--text-2); font-size: 14.5px; transition: color .15s; }
.footer a:hover { color: var(--accent); }
.f-desc { font-size: 14px; color: var(--text-2); line-height: 1.7; margin-top: 14px; max-width: 32ch; }
.f-contact li { display: flex; gap: 9px; align-items: flex-start; color: var(--text-2); font-size: 14px; }
.f-contact svg, .f-contact i { width: 15px; height: 15px; color: var(--accent); flex: none; margin-top: 3px; }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 48px; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--text-3); }

/* ── Nav Mobile ── */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta .btn-outline { display: none; }
  .nav-cta .btn-primary { display: none; }
  .nav-burger { display: grid; }
  .nav .wrap { height: 56px; gap: 12px; }
  .nav-cta { gap: 6px; }
  .nav { border-bottom: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .brand img { height: 42px !important; max-width: 220px !important; }
}
@media (max-width: 480px) {
  .brand img { height: 38px !important; max-width: 180px !important; }
}
@media (max-width: 700px) {
  .topbar { font-size: 11px; }
  .topbar .wrap { height: auto; padding: 8px 16px; flex-wrap: wrap; gap: 6px; justify-content: center; }
  .tb-right { gap: 12px; }
  .topbar .wrap > *:first-child { display: none; }
}
@media (max-width: 500px){ .footer-grid { grid-template-columns: 1fr; } }

