/* ==========================================================================
   Koçak Otomasyon - Genel Site Stili
   Renk paleti: Siyah/Antrasit zemin (#0d0d0d, #121212) + Altın vurgu (#D4AF37,
   #C5A059) + Gümüş metin (#E0E0E0). --orange ve --text-muted değişken adları
   geriye dönük uyumluluk için korunmuştur; değerleri artık altın/gümüş tonlarıdır.
   ========================================================================== */

:root {
  --navy: #0d0d0d;            /* sayfa zemini */
  --navy-dark: #000000;       /* en koyu kat (footer) */
  --navy-light: #1c1710;      /* yükseltilmiş koyu yüzey (gradyan üst tonu) */
  --surface: #161310;         /* kart / bileşen zemini */
  --surface-alt: #1e1a12;     /* hover / rozet / alternatif bölüm zemini */
  --gray: #9a9285;            /* sıcak gri (ikincil) */
  --gray-light: #121212;      /* alternatif bölüm zemini (section-alt) */
  --gray-border: rgba(212, 175, 55, 0.16); /* altın tonlu ince çizgi */
  --orange: #D4AF37;          /* ALTIN ana vurgu rengi */
  --orange-dark: #b8952c;     /* koyu altın (hover) */
  --gold-soft: #C5A059;       /* ikincil altın (gradyan) */
  --white: #E0E0E0;           /* gümüş metin/parlak vurgu */
  --ink: #15120b;             /* altın/açık zeminler üzerinde koyu metin */
  --whatsapp: #25D366;
  --text: #EDEAE2;            /* ana gövde metni (sıcak kırık beyaz) */
  --text-muted: #9c9686;      /* ikincil/soluk metin */
  --radius: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.7);
  --shadow-gold: 0 12px 30px rgba(212, 175, 55, 0.22);
  --container: 1180px;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Montserrat', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--navy);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.25; margin: 0 0 0.6em; color: var(--white); }
p { margin: 0 0 1em; color: var(--text-muted); }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--orange); color: var(--ink);
  padding: 10px 16px; z-index: 200; border-radius: 0 0 8px 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 50px; font-weight: 600; font-size: 15px;
  border: 2px solid transparent; cursor: pointer; transition: all .2s ease;
  font-family: var(--font-heading);
}
.btn-primary { background: linear-gradient(135deg, var(--orange), var(--gold-soft)); color: var(--ink); font-weight: 700; }
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-2px); box-shadow: var(--shadow-gold); }
.btn-secondary { background: var(--surface-alt); color: var(--white); border-color: var(--gray-border); }
.btn-secondary:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--white); border-color: var(--gray-border); }
.btn-ghost:hover { background: var(--surface-alt); border-color: var(--orange); color: var(--orange); }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(13,13,13,.92);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--gray-border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.logo { display: flex; align-items: center; gap: 10px; line-height: 1; }
.logo-img { height: 44px; width: auto; }
.logo-text { display: flex; flex-direction: column; }
.logo-mark { font-family: var(--font-heading); font-weight: 700; font-size: 20px; color: var(--orange); letter-spacing: 1px; }
.logo-sub { font-size: 11px; letter-spacing: 3px; color: var(--white); font-weight: 600; }

.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav > ul { display: flex; gap: 28px; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  font-family: var(--font-heading); font-weight: 500; font-size: 15px; color: var(--text);
  padding: 8px 2px; position: relative;
}
.main-nav > ul > li > a.active,
.main-nav > ul > li > a:hover { color: var(--orange); }
.main-nav > ul > li > a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--orange);
}
.has-dropdown .dropdown {
  position: absolute; top: 100%; left: -16px; background: var(--surface); min-width: 260px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--gray-border); border-radius: var(--radius); padding: 10px;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s ease;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown li a { display: block; padding: 10px 14px; border-radius: 6px; font-size: 14px; color: var(--text); }
.dropdown li a:hover { background: var(--surface-alt); color: var(--orange); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--orange); border-radius: 2px; }

/* ---------- Hero (video arka planlı) ---------- */
.hero {
  position: relative; overflow: hidden; min-height: 640px; display: flex; align-items: center;
  padding: 130px 0 90px; color: var(--text);
  background: linear-gradient(150deg, var(--navy) 0%, #000000 100%);
}
.hero-media { position: absolute; inset: 0; z-index: 0; background: #000; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(13,13,13,.94) 0%, rgba(13,13,13,.8) 42%, rgba(13,13,13,.55) 100%),
    radial-gradient(circle at 85% 15%, rgba(212,175,55,.20), transparent 55%);
}
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } }

.hero-content { position: relative; z-index: 2; max-width: 680px; }
.hero-eyebrow { display: inline-block; background: rgba(212,175,55,.12); color: var(--orange); border: 1px solid rgba(212,175,55,.4); padding: 6px 16px; border-radius: 50px; font-size: 13px; font-weight: 600; margin-bottom: 18px; }
.hero h1 { color: var(--white); font-size: clamp(28px, 4vw, 46px); margin-bottom: 18px; }
.hero p { color: #cfc9ba; font-size: 17px; max-width: 540px; }
.hero-cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-visual { position: relative; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/3; background: var(--surface); border: 1px solid var(--gray-border); }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-stats { display: flex; gap: 24px; margin-top: 40px; flex-wrap: wrap; }
.hero-stat strong { display: block; font-size: 28px; color: var(--orange); font-family: var(--font-heading); }
.hero-stat span { font-size: 13px; color: #b5ac98; }

/* ---------- Section base ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--gray-light); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.eyebrow { display: inline-block; color: var(--orange); font-weight: 700; letter-spacing: 2px; font-size: 13px; text-transform: uppercase; margin-bottom: 10px; }
.section-head h2 { font-size: clamp(24px, 3vw, 34px); }

/* ---------- Services grid ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card {
  background: var(--surface); border: 1px solid var(--gray-border); border-radius: var(--radius);
  padding: 34px 28px; transition: all .25s ease; position: relative; overflow: hidden;
}
.service-card:hover { transform: translateY(-6px) scale(1.015); box-shadow: var(--shadow-gold); border-color: var(--orange); }
.service-icon {
  width: 58px; height: 58px; border-radius: 14px; background: linear-gradient(135deg, var(--surface-alt), #000);
  border: 1px solid var(--gray-border);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px; color: var(--orange);
}
.service-card h3 { font-size: 19px; margin-bottom: 10px; }
.service-card p { font-size: 14.5px; margin-bottom: 18px; }
.service-link { font-weight: 600; color: var(--orange); font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.service-card:hover .service-link { text-decoration: underline; }

/* ---------- Why us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.why-card { text-align: center; padding: 30px 20px; }
.why-icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: var(--surface); border: 1px solid var(--gray-border); box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; color: var(--orange); font-size: 26px; }
.why-card h3 { font-size: 17px; }

/* ---------- Projects gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: var(--surface); border: 1px solid var(--gray-border); box-shadow: var(--shadow); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 16px 14px;
  background: linear-gradient(0deg, rgba(0,0,0,.92), transparent);
  color: var(--white); opacity: 0; transform: translateY(10px); transition: all .25s ease;
}
.gallery-item:hover .gallery-caption { opacity: 1; transform: translateY(0); }
.gallery-caption strong { font-family: var(--font-heading); font-size: 15px; display: block; }
.gallery-caption span { font-size: 12px; color: var(--orange); }

/* ---------- Testimonials ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card { background: var(--surface); border: 1px solid var(--gray-border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.testimonial-card .stars { color: var(--orange); margin-bottom: 12px; letter-spacing: 2px; }
.testimonial-card p { font-style: italic; color: var(--text); }
.testimonial-author { font-weight: 600; color: var(--orange); font-family: var(--font-heading); font-size: 14px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--orange), var(--gold-soft));
  border-radius: 20px; padding: 50px; display: flex; align-items: center; justify-content: space-between;
  gap: 30px; flex-wrap: wrap; color: var(--ink);
}
.cta-band h2 { color: var(--ink); margin-bottom: 6px; }
.cta-band p { color: rgba(21,18,11,.75); margin: 0; }
.cta-band .btn-secondary { background: var(--ink); color: var(--orange); border-color: var(--ink); }
.cta-band .btn-secondary:hover { background: #000; color: var(--gold-soft); }

/* ---------- About / Hakkımızda ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.badge-list { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }
.badge-pill { background: var(--surface-alt); border: 1px solid var(--gray-border); padding: 10px 18px; border-radius: 50px; font-size: 13px; font-weight: 600; color: var(--orange); }
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 20px; }
.vm-card { background: var(--surface); border-left: 4px solid var(--orange); padding: 26px; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Service detail page ---------- */
.service-hero { background: linear-gradient(160deg, #000000 0%, var(--navy-light) 100%); border-bottom: 1px solid var(--gray-border); color: var(--white); padding: 60px 0; }
.breadcrumb { font-size: 13px; color: var(--text-muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--text-muted); } .breadcrumb a:hover { color: var(--orange); }
.service-detail-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 50px; margin-top: 50px; }
.feature-list li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--gray-border); }
.feature-list li::before { content: '✓'; color: var(--orange); font-weight: 700; }
.sticky-card { position: sticky; top: 100px; background: var(--surface); border: 1px solid var(--gray-border); border-radius: var(--radius); padding: 30px; }
.sticky-card h3 { font-size: 18px; }
.related-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; }
.contact-info-card { background: var(--surface); border: 1px solid var(--gray-border); color: var(--text); border-radius: var(--radius); padding: 34px; }
.contact-info-card h3 { color: var(--white); }
.contact-info-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--gray-border); }
.contact-info-item strong { display: block; font-family: var(--font-heading); font-size: 14px; color: var(--white); }
.contact-info-item span, .contact-info-item a { color: var(--text-muted); font-size: 14px; }
.contact-info-item a:hover { color: var(--orange); }
.map-embed { border-radius: var(--radius); overflow: hidden; margin-top: 20px; border: 1px solid var(--gray-border); width: 100%; height: 260px; filter: grayscale(.3) invert(.92) contrast(.9); }

.form-card { background: var(--surface); border: 1px solid var(--gray-border); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 7px; color: var(--white); font-family: var(--font-heading); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--gray-border); border-radius: 8px;
  font-family: var(--font-body); font-size: 14.5px; background: var(--navy-dark); color: var(--text); transition: border-color .2s;
}
.form-row input::placeholder, .form-row textarea::placeholder { color: #6b6559; }
.form-row select option { background: var(--surface); color: var(--text); }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(212,175,55,.15); }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-msg { padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; font-size: 14px; font-weight: 500; }
.form-msg.success { background: rgba(37,211,102,.12); color: #4fd88a; border: 1px solid rgba(37,211,102,.35); }
.form-msg.error { background: rgba(211,71,60,.12); color: #ef7b71; border: 1px solid rgba(211,71,60,.4); }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 20px; }
.form-hint a { color: var(--orange); text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: var(--text-muted); padding-top: 60px; border-top: 1px solid var(--gray-border); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; }
.footer-logo .logo-mark { color: var(--orange); }
.footer-logo .logo-sub { color: var(--white); }
.site-footer h4 { color: var(--white); font-size: 15px; margin-bottom: 16px; }
.site-footer p { color: var(--text-muted); font-size: 14px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: #a49d8c; font-size: 14px; }
.footer-col ul li a:hover { color: var(--orange); }
.footer-contact li { display: flex; gap: 8px; align-items: flex-start; }
.social-links { display: flex; gap: 12px; margin-top: 16px; }
.social-links a { border: 1px solid var(--gray-border); padding: 8px 14px; border-radius: 50px; font-size: 13px; color: var(--text-muted); }
.social-links a:hover { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.footer-bottom { border-top: 1px solid var(--gray-border); padding: 18px 0; margin-top: 10px; }
.footer-bottom p { margin: 0; font-size: 13px; text-align: center; color: #6b6559; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.94); z-index: 300;
  display: flex; align-items: center; justify-content: center; padding: 30px;
  opacity: 0; visibility: hidden; transition: opacity .25s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 90vw; max-height: 88vh; border-radius: 10px; box-shadow: var(--shadow-lg); border: 1px solid var(--gray-border); }
.lightbox-hint { position: absolute; top: 24px; right: 30px; color: var(--white); font-size: 14px; }

/* ---------- Floating action buttons ---------- */
.float-actions { position: fixed; right: 20px; bottom: 20px; z-index: 150; display: flex; flex-direction: column; gap: 12px; }
.float-btn {
  width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.45); transition: transform .2s ease;
}
.float-btn:hover { transform: scale(1.08); }
.float-whatsapp { background: var(--whatsapp); }
.float-call { background: linear-gradient(135deg, var(--orange), var(--gold-soft)); color: var(--ink); }

/* ---------- Metrekare fiyat hesaplama ---------- */
.calc-section {
  position: relative;
  background:
    radial-gradient(circle at 50% -10%, rgba(212, 175, 55, .10), transparent 62%),
    var(--gray-light);
  border-top: 1px solid var(--gray-border);
  border-bottom: 1px solid var(--gray-border);
}
.calc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; align-items: start; }
.calc-card {
  background: var(--surface); border: 1px solid var(--gray-border); border-radius: 16px;
  padding: 30px 28px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.calc-card::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--gold-soft));
}
.calc-card-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.calc-icon {
  flex-shrink: 0; width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, var(--surface-alt), #000);
  border: 1px solid var(--gray-border); color: var(--orange);
  display: flex; align-items: center; justify-content: center;
}
.calc-card-head h3 { font-size: 19px; margin: 0 0 6px; }
.calc-card-head p { font-size: 13.5px; margin: 0; }
.calc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.calc-card .form-row label {
  text-transform: uppercase; letter-spacing: .6px; font-size: 11.5px; color: var(--text-muted);
}
.calc-submit { margin-top: 6px; }
.calc-error {
  margin: 14px 0 0; padding: 11px 14px; border-radius: 8px; font-size: 13.5px;
  background: rgba(211, 71, 60, .12); color: #ef7b71; border: 1px solid rgba(211, 71, 60, .4);
}
.calc-result { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--gray-border); }
.calc-result-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  padding: 7px 0; font-size: 14px; color: var(--text-muted);
}
.calc-result-row strong {
  color: var(--white); font-family: var(--font-heading); font-weight: 600;
  text-align: right; font-size: 14.5px;
}
.calc-result-total {
  margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--gray-border); font-size: 15px;
}
.calc-result-total strong { color: var(--orange); font-size: 22px; }
.calc-result-note { font-size: 12.5px; color: var(--text-muted); margin: 12px 0 0; }
.calc-result-actions { display: grid; gap: 10px; margin-top: 18px; }
.calc-disclaimer {
  max-width: 780px; margin: 34px auto 0; text-align: center; font-size: 13px; color: var(--text-muted);
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
[hidden] { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services-grid, .why-grid, .gallery-grid, .testimonial-grid, .related-services { grid-template-columns: repeat(2, 1fr); }
  .calc-grid { grid-template-columns: 1fr; }
  .about-grid, .contact-grid, .service-detail-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .sticky-card { position: static; }
  .hero { min-height: 560px; }
}

@media (max-width: 768px) {
  .site-header {
    backdrop-filter: none; -webkit-backdrop-filter: none;
    background: rgba(13,13,13,.98);
  }
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; top: 78px; left: 0; right: 0; bottom: 0; background: var(--navy);
    flex-direction: column; align-items: stretch; padding: 24px 20px; gap: 20px;
    transform: translateX(100%); transition: transform .3s ease; overflow-y: auto;
    border-top: 1px solid var(--gray-border); z-index: 9999;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav > ul { flex-direction: column; gap: 4px; }
  .main-nav > ul > li > a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--gray-border); }
  .has-dropdown .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; background: transparent; display: none; padding-left: 12px; }
  .has-dropdown.open .dropdown { display: block; }
  .nav-cta { flex-direction: column; align-items: stretch; margin-top: 10px; }
  .services-grid, .why-grid, .gallery-grid, .testimonial-grid, .related-services, .form-grid-2, .vm-grid { grid-template-columns: 1fr; }
  .calc-card { padding: 24px 20px; }
  .calc-fields { grid-template-columns: 1fr 1fr; gap: 12px; }
  .calc-result-total strong { font-size: 20px; }
  .section { padding: 56px 0; }
  .hero { padding: 100px 0 60px; min-height: auto; }
  .cta-band { padding: 34px 24px; flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; text-align: left; }
  .float-btn { width: 52px; height: 52px; }
}
