/* =========================================================
   KARAT GLOBAL METAL — Kurumsal Web Sitesi
   Tasarım sistemi  |  Beyaz + Lacivert + Altın vurgu
   ========================================================= */

/* ----------  1. Değişkenler  ---------- */
:root {
  --navy-900: #0f1b30;
  --navy-800: #142240;
  --navy:     #16243f;
  --navy-700: #24365c;
  --navy-600: #33496f;

  --gold:      #d89a3a;
  --gold-600:  #c48127;
  --gold-100:  #f8ecd6;

  --bg:        #ffffff;
  --bg-soft:   #f4f6fa;
  --bg-softer: #eef1f7;
  --line:      #e4e8f0;

  --text:      #1b2536;
  --muted:     #5c6675;
  --muted-2:   #8a93a3;
  --white:     #ffffff;

  --radius:    14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(16, 27, 48, .06);
  --shadow:    0 12px 30px rgba(16, 27, 48, .10);
  --shadow-lg: 0 26px 60px rgba(16, 27, 48, .16);

  --container: 1200px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  --font-head: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ----------  2. Reset / Base  ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.18; font-weight: 700; color: var(--navy); letter-spacing: -.01em; }

::selection { background: var(--gold); color: #fff; }

/* ----------  3. Layout yardımcıları  ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }

.section { padding: 92px 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy); color: #dfe5ef; }
.section--tight { padding: 64px 0; }

.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-head);
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold); border-radius: 2px; }
.section-head.center .eyebrow { justify-content: center; }

.section-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.section--navy .section-title { color: #fff; }
.section-lead { margin-top: 16px; color: var(--muted); font-size: 1.06rem; }
.section--navy .section-lead { color: #b7c1d4; }

/* ----------  4. Butonlar  ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: .96rem;
  padding: 13px 26px; border-radius: 999px;
  transition: background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-600); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-700); }
.btn-outline { border: 1.6px solid rgba(255,255,255,.6); color: #fff; }
.btn-outline:hover { background: #fff; color: var(--navy); }
.btn-outline-navy { border: 1.6px solid var(--line); color: var(--navy); background:#fff; }
.btn-outline-navy:hover { border-color: var(--navy); }
.btn-lg { padding: 16px 34px; font-size: 1.02rem; }
.btn-block { width: 100%; justify-content: center; }

/* ----------  5. Header / Navigasyon  ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s, background .3s;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); background: rgba(255,255,255,.96); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-logo { height: 52px; width: auto; }
.brand-logo.is-hidden { display: none; }
.brand-text {
  display: none; flex-direction: column; line-height: 1;
  font-family: var(--font-head); font-weight: 800; letter-spacing: .04em;
  font-size: 1.28rem; color: var(--navy);
}
.brand-text.is-shown { display: inline-flex; }
.brand-text b { font-weight: 800; color: var(--gold); }
.brand-text span { font-size: .62rem; font-weight: 600; letter-spacing: .28em; color: var(--muted); margin-top: 4px; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-family: var(--font-head); font-weight: 500; font-size: .96rem; color: var(--text);
  padding: 10px 15px; border-radius: 9px; position: relative; transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--gold-600); }
.nav-links a.active { color: var(--navy); font-weight: 600; }
.nav-links a.active::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 4px; height: 2px;
  background: var(--gold); border-radius: 2px;
}
.nav-cta { display: flex; align-items: center; gap: 14px; }

.menu-toggle { display: none; width: 46px; height: 46px; border-radius: 11px; border: 1px solid var(--line); position: relative; background: #fff; }
.menu-toggle span, .menu-toggle::before, .menu-toggle::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 20px; height: 2px; background: var(--navy);
  transform: translate(-50%, -50%); transition: .3s var(--ease); border-radius: 2px;
}
.menu-toggle::before { transform: translate(-50%, -7px); }
.menu-toggle::after  { transform: translate(-50%, 5px); }
.menu-toggle.open span { opacity: 0; }
.menu-toggle.open::before { transform: translate(-50%, -50%) rotate(45deg); }
.menu-toggle.open::after  { transform: translate(-50%, -50%) rotate(-45deg); }

/* ----------  6. Hero  ---------- */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, rgba(15,27,48,.94) 0%, rgba(20,34,64,.82) 42%, rgba(15,27,48,.5) 100%);
}
.hero-inner { padding: 118px 0 122px; max-width: 720px; }
.hero .eyebrow { color: var(--gold); }
.hero .eyebrow::before { background: var(--gold); }
.hero h1 { color: #fff; font-size: clamp(2.15rem, 5.4vw, 3.7rem); line-height: 1.08; }
.hero h1 span { color: var(--gold); }
.hero p { margin-top: 20px; font-size: 1.16rem; color: #d7deea; max-width: 580px; }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 15px; }
.hero-stats { margin-top: 54px; display: flex; flex-wrap: wrap; gap: 40px; }
.hero-stats .num { font-family: var(--font-head); font-weight: 700; font-size: 2.1rem; color: #fff; }
.hero-stats .num b { color: var(--gold); }
.hero-stats .lbl { font-size: .9rem; color: #aeb8ca; }

/* mini hero (iç sayfalar) */
.page-hero { position: relative; color: #fff; overflow: hidden; }
.page-hero-bg { position: absolute; inset: 0; z-index: -2; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(15,27,48,.93), rgba(20,34,64,.78)); }
.page-hero-inner { padding: 84px 0 74px; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4.4vw, 3rem); }
.page-hero p { margin-top: 14px; color: #cdd5e3; max-width: 620px; font-size: 1.08rem; }
.crumb { display: flex; gap: 10px; align-items: center; font-size: .88rem; color: #aeb8ca; margin-bottom: 16px; }
.crumb a:hover { color: var(--gold); }
.crumb span { color: var(--gold); }

/* ----------  7. Genel grid  ---------- */
.grid { display: grid; gap: 26px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }

/* ----------  8. Hizmet kartları  ---------- */
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.service-card:hover .service-media img { transform: scale(1.07); }
.service-media::after { content:""; position:absolute; inset:0; background:linear-gradient(to top, rgba(15,27,48,.28), transparent 55%); }
.service-icon {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  width: 50px; height: 50px; border-radius: 13px; background: var(--gold);
  display: grid; place-items: center; color: #fff; box-shadow: 0 8px 18px rgba(216,154,58,.4);
}
.service-icon svg { width: 26px; height: 26px; }
.service-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.service-body h3 { font-size: 1.24rem; }
.service-body p { margin-top: 10px; color: var(--muted); font-size: .98rem; flex: 1; }
.service-link {
  margin-top: 18px; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--navy);
  transition: gap .25s, color .25s;
}
.service-link svg { width: 17px; height: 17px; transition: transform .25s; }
.service-card:hover .service-link { color: var(--gold-600); }
.service-card:hover .service-link svg { transform: translateX(4px); }

/* ----------  9. Özellik / Neden biz  ---------- */
.feature { display: flex; gap: 18px; align-items: flex-start; }
.feature-ic {
  flex: 0 0 auto; width: 52px; height: 52px; border-radius: 14px;
  background: var(--gold-100); color: var(--gold-600); display: grid; place-items: center;
}
.feature-ic svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.12rem; }
.feature p { margin-top: 6px; color: var(--muted); font-size: .97rem; }
.section--navy .feature-ic { background: rgba(216,154,58,.16); color: var(--gold); }
.section--navy .feature h3 { color: #fff; }
.section--navy .feature p { color: #aab4c6; }

/* ----------  10. Split (görsel + metin)  ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; }
.split-media .badge {
  position: absolute; right: -18px; bottom: -18px; background: var(--navy); color: #fff;
  padding: 20px 24px; border-radius: var(--radius); box-shadow: var(--shadow-lg); text-align: center;
}
.split-media .badge .num { font-family: var(--font-head); font-weight: 700; font-size: 2rem; color: var(--gold); line-height:1; }
.split-media .badge .lbl { font-size: .82rem; color: #c4cdda; margin-top: 6px; }
.split .lead-list { margin-top: 22px; display: grid; gap: 12px; }
.lead-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); }
.lead-list li svg { flex: 0 0 auto; width: 22px; height: 22px; color: var(--gold-600); margin-top: 2px; }
.section--navy .lead-list li { color: #d3dae6; }

/* ----------  11. İstatistik bandı  ---------- */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat .num { font-family: var(--font-head); font-weight: 700; font-size: clamp(2rem, 4vw, 2.9rem); color: var(--navy); }
.section--navy .stat .num { color: #fff; }
.stat .num b { color: var(--gold); }
.stat .lbl { color: var(--muted); font-size: .96rem; margin-top: 4px; }
.section--navy .stat .lbl { color: #aab4c6; }

/* ----------  12. Galeri  ---------- */
.gallery-filter { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 38px; }
.filter-btn {
  font-family: var(--font-head); font-weight: 500; font-size: .92rem; color: var(--muted);
  padding: 9px 20px; border-radius: 999px; border: 1px solid var(--line); background: #fff; transition: .25s;
}
.filter-btn:hover { color: var(--navy); border-color: var(--navy-600); }
.filter-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }

.gallery { columns: 3; column-gap: 18px; }
.gallery-item {
  break-inside: avoid; margin-bottom: 18px; border-radius: var(--radius); overflow: hidden;
  position: relative; cursor: pointer; box-shadow: var(--shadow-sm); background: var(--bg-soft);
}
.gallery-item img { width: 100%; transition: transform .6s var(--ease); }
.gallery-item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,27,48,.55), transparent 55%);
  opacity: 0; transition: opacity .3s;
}
.gallery-item .cap {
  position: absolute; left: 16px; bottom: 14px; z-index: 2; color: #fff;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  opacity: 0; transform: translateY(8px); transition: .3s;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover::after,
.gallery-item:hover .cap { opacity: 1; transform: translateY(0); }
.gallery-item.is-hidden { display: none; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 120; display: none; place-items: center;
  background: rgba(9, 15, 28, .92); padding: 30px; }
.lightbox.open { display: grid; }
.lightbox img { max-width: 92vw; max-height: 84vh; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lb-close, .lb-nav { position: absolute; color: #fff; background: rgba(255,255,255,.12); border-radius: 50%;
  width: 52px; height: 52px; display: grid; place-items: center; transition: background .2s; }
.lb-close:hover, .lb-nav:hover { background: var(--gold); }
.lb-close { top: 24px; right: 26px; font-size: 1.6rem; }
.lb-nav { top: 50%; transform: translateY(-50%); font-size: 2rem; }
.lb-prev { left: 22px; }
.lb-next { right: 22px; }
.lb-count { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); color: #cfd6e2; font-size: .9rem; }

/* ----------  13. CTA bandı  ---------- */
.cta-band { position: relative; overflow: hidden; color: #fff; border-radius: var(--radius-lg); }
.cta-band .bg { position: absolute; inset: 0; z-index: -2; }
.cta-band .bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band::after { content:""; position:absolute; inset:0; z-index:-1;
  background: linear-gradient(100deg, rgba(15,27,48,.95), rgba(36,54,92,.82)); }
.cta-band .inner { padding: 62px 56px; display: flex; align-items: center; justify-content: space-between; gap: 34px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3.2vw, 2.3rem); max-width: 620px; }
.cta-band p { color: #c8d0de; margin-top: 10px; max-width: 560px; }

/* ----------  14. İletişim  ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 42px; align-items: start; }
.info-card { display: flex; gap: 16px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: .3s var(--ease); }
.info-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.info-ic { flex: 0 0 auto; width: 50px; height: 50px; border-radius: 13px; background: var(--navy); color: var(--gold); display: grid; place-items: center; }
.info-ic svg { width: 24px; height: 24px; }
.info-card h4 { font-size: 1.05rem; }
.info-card p, .info-card a { color: var(--muted); font-size: .98rem; margin-top: 3px; word-break: break-word; }
.info-card a:hover { color: var(--gold-600); }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-head); font-weight: 500; font-size: .9rem; margin-bottom: 7px; color: var(--navy); }
.field input, .field textarea, .field select {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--text);
  padding: 13px 15px; border: 1.4px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-soft);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 4px rgba(216,154,58,.14);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: .84rem; color: var(--muted-2); margin-top: 8px; }
.form-alert { display: none; margin-top: 16px; padding: 14px 18px; border-radius: var(--radius-sm);
  background: #e9f7ee; color: #1f7a44; font-size: .95rem; border: 1px solid #bce4ca; }
.form-alert.show { display: block; }

.map-wrap { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); line-height: 0; }
.map-wrap iframe { width: 100%; height: 360px; border: 0; }

/* ----------  15. Footer  ---------- */
.site-footer { background: var(--navy-900); color: #aeb8ca; padding-top: 68px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 46px; }
.footer-brand .brand-text { color: #fff; }
.footer-brand .brand-text span { color: #8593ab; }
.footer-about { margin-top: 18px; font-size: .95rem; color: #93a0b7; max-width: 320px; }
.footer-col h4 { color: #fff; font-size: 1.02rem; margin-bottom: 16px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a, .footer-contact li { font-size: .95rem; color: #a4b0c6; transition: color .2s; }
.footer-col a:hover { color: var(--gold); }
.footer-contact { display: grid; gap: 14px; }
.footer-contact li { display: flex; gap: 11px; align-items: flex-start; }
.footer-contact svg { flex: 0 0 auto; width: 19px; height: 19px; color: var(--gold); margin-top: 2px; }
.footer-social { display: flex; gap: 11px; margin-top: 18px; }
.footer-social a { width: 40px; height: 40px; border-radius: 11px; background: rgba(255,255,255,.07); display: grid; place-items: center; color: #cdd5e2; transition: .25s; }
.footer-social a:hover { background: var(--gold); color: #fff; transform: translateY(-3px); }
.footer-social svg { width: 19px; height: 19px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.09); padding: 22px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .88rem; color: #7e8ba3; }
.footer-bottom a:hover { color: var(--gold); }

/* ----------  16. WhatsApp yüzen buton  ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 26px rgba(37,211,102,.44);
  transition: transform .25s var(--ease); }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* ----------  17. Reveal animasyon  ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ----------  18. Responsive  ---------- */
@media (max-width: 1000px) {
  .g-4 { grid-template-columns: repeat(2, 1fr); }
  .g-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .gallery { columns: 2; }
  .split { gap: 40px; }
}
@media (max-width: 860px) {
  .nav-links {
    position: fixed; inset: 78px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 18px 22px;
    transform: translateY(-140%); transition: transform .4s var(--ease); box-shadow: var(--shadow);
    max-height: calc(100vh - 78px); overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 15px 8px; border-radius: 8px; border-bottom: 1px solid var(--bg-softer); font-size: 1.05rem; }
  .nav-links a.active::after { display: none; }
  .nav-links a.active { background: var(--bg-soft); }
  .menu-toggle { display: block; }
  .nav-cta .btn { display: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .cta-band .inner { padding: 44px 30px; }
}
@media (max-width: 680px) {
  .section { padding: 66px 0; }
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split-media { order: -1; }
  .split-media .badge { right: 14px; bottom: -14px; padding: 15px 18px; }
  .stats-band { grid-template-columns: 1fr 1fr; gap: 30px 18px; }
  .hero-stats { gap: 26px; }
  .hero-inner { padding: 92px 0 96px; }
  .form-row { grid-template-columns: 1fr; }
  .gallery { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: center; text-align: center; }
  .lb-nav { width: 44px; height: 44px; }
}
