/* ============================================================
   Demirkaya Group - style.css
   Kurumsal, sade, premium tasarım. Vanilla CSS, framework yok.
   ============================================================ */

/* ---------- CSS Değişkenleri ---------- */
:root {
  /* Renkler */
  --primary: #16305e;        /* koyu lacivert */
  --primary-2: #1f4480;
  --dark: #0e1626;          /* antrasit / çok koyu */
  --text: #233043;
  --muted: #61708a;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;        /* kırık beyaz */
  --line: #e6eaf0;
  --whatsapp: #25d366;

  /* Tipografi */
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;

  /* Ölçü */
  --container: 1200px;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(14, 22, 38, 0.06);
  --shadow-md: 0 12px 34px rgba(14, 22, 38, 0.10);
  --shadow-lg: 0 24px 60px rgba(14, 22, 38, 0.16);
  --header-h: 84px;
  --header-h-stuck: 66px;
}

/* ---------- Reset / Baz ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--dark);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p {
  margin: 0 0 1rem;
  color: var(--text);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover { color: var(--primary-2); }

/* Erişilebilirlik: görünür focus */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--primary-2);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-2);
  margin-bottom: 0.9rem;
}

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-2);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.btn-light {
  background: #fff;
  color: var(--primary);
}
.btn-light:hover {
  background: #f0f3f8;
  color: var(--primary-2);
  box-shadow: var(--shadow-md);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
}
.btn-whatsapp:hover {
  filter: brightness(1.05);
  color: #fff;
  box-shadow: var(--shadow-md);
}

/* ---------- Üst Menü (Header) ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease, height 0.3s ease;
  height: var(--header-h);
  background: transparent;
}

.site-header.is-stuck {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  height: var(--header-h-stuck);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Logo */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.brand-logo {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.site-header.is-stuck .brand-logo {
  width: 42px;
  height: 42px;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.brand-name span {
  color: #7ea0d4;
  font-weight: 500;
}
.site-header.is-stuck .brand-name {
  color: var(--dark);
}
.site-header.is-stuck .brand-name span {
  color: var(--primary-2);
}

/* Navigasyon */
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
}
.nav-link {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
  font-size: 0.98rem;
  position: relative;
  padding: 0.3rem 0;
}
.nav-link:hover { color: #fff; }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width 0.25s ease;
}
.nav-link:hover::after { width: 100%; }
.site-header.is-stuck .nav-link {
  color: var(--text);
}
.site-header.is-stuck .nav-link:hover {
  color: var(--primary);
}

/* Hamburger (mobil) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle-bar {
  width: 26px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.site-header.is-stuck .nav-toggle-bar {
  background: var(--dark);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 80px;
  background-color: var(--dark);
  background-image: url("../images/hero.webp");
  background-size: cover;
  background-position: center;
  color: #fff;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(9, 17, 31, 0.72),
    rgba(9, 17, 31, 0.55) 45%,
    rgba(9, 17, 31, 0.82)
  );
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.1rem;
}
.hero-title {
  color: #fff;
  margin-bottom: 1.2rem;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 620px;
  margin-bottom: 2rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---------- Genel Bölümler ---------- */
.section {
  padding: 96px 0;
}
.section-alt {
  background: var(--bg-alt);
}
.section-head {
  max-width: 640px;
  margin: 0 auto 3rem;
  text-align: center;
}
.section-head p {
  color: var(--muted);
  margin: 0.4rem 0 0;
}

/* ---------- Hakkımızda ---------- */
.about-grid {
  display: grid;
  gap: 2.5rem;
}
.about-heading h2 {
  max-width: 18ch;
}
.about-body p {
  color: var(--text);
  font-size: 1.05rem;
}
.about-body p:first-child {
  font-size: 1.15rem;
  color: var(--dark);
  font-weight: 500;
}

/* ---------- Hizmet Kartları ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.service-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--dark);
}
.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.service-card:hover .service-media img {
  transform: scale(1.05);
}
/* Görsel yokken gösterilen şık fallback gradient'leri */
.media-gayrimenkul { background: linear-gradient(135deg, #1a3a6b, #0e1626); }
.media-mimari     { background: linear-gradient(135deg, #243b5c, #101827); }
.media-yatirim   { background: linear-gradient(135deg, #1f4480, #0e1626); }
.media-site      { background: linear-gradient(135deg, #2b3f5c, #101827); }
.media-insaat    { background: linear-gradient(135deg, #20364f, #0e1626); }

.service-content {
  padding: 1.6rem 1.5rem 1.8rem;
  flex: 1;
}
.service-content h3 {
  margin-bottom: 0.5rem;
}
.service-content p {
  color: var(--muted);
  margin: 0;
}

/* ---------- Neden Demirkaya ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.why-item {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.why-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.why-item h3 {
  font-size: 1.1rem;
}
.why-item p {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
}

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
  padding: 72px 0;
  color: #fff;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta h2 {
  color: #fff;
  max-width: 30ch;
}
.cta-inner > div:first-child p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}
.cta-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- İletişim ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
}
.contact-info {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.contact-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
}
.contact-line {
  display: block;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-line:last-of-type {
  border-bottom: none;
}
.contact-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.2rem;
}
.contact-value {
  display: block;
  color: var(--text);
  font-weight: 500;
}
a.contact-line:hover .contact-value {
  color: var(--primary);
}
.map-btn {
  margin-top: 1.2rem;
  width: 100%;
}

.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  aspect-ratio: 16 / 10;
}
.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  display: block;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 56px 0 32px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.footer-logo {
  width: 48px;
  height: 48px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
}
.footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.footer-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
}
.footer-name span {
  color: #7ea0d4;
  font-weight: 500;
}
.footer-instagram {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  transition: color 0.2s ease;
}
.footer-instagram:hover {
  color: #fff;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}
.legal-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
}
.legal-link {
  background: none;
  border: none;
  padding: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.2s ease;
}
.legal-link:hover {
  color: #fff;
}

/* ---------- Sabit WhatsApp Butonu ---------- */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s ease, background 0.2s ease;
}
.whatsapp-float:hover {
  transform: scale(1.06);
  background: #1ebe5b;
}

/* ---------- Mobil Alt İletişim Çubuğu (yalnızca mobilde görünür) ---------- */
.mobile-contact-bar {
  display: none;
}

/* ---------- Modallar ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal[hidden] {
  display: none;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 17, 31, 0.6);
}
.modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: var(--radius);
  padding: 2.2rem;
  box-shadow: var(--shadow-lg);
}
.modal-panel h3 {
  margin-bottom: 1rem;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--bg-alt);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover {
  background: var(--line);
}

/* ---------- Reveal (hafif) animasyon ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Hareket azaltma tercihi ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html.js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobil menü: 900px altı */
@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: var(--shadow-md);
    transform: scaleY(0);
    transform-origin: top;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s ease, opacity 0.28s ease;
  }
  .main-nav.is-open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-list {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
  }
  .nav-list li {
    border-bottom: 1px solid var(--line);
  }
  .nav-list li:last-child {
    border-bottom: none;
  }
  .nav-link {
    display: block;
    padding: 1rem 24px;
    color: var(--text);
    font-size: 1rem;
  }
  .nav-link:hover {
    color: var(--primary);
    background: var(--bg-alt);
  }
  .nav-link::after {
    display: none;
  }
}

/* Küçük tablet / büyük mobil */
@media (max-width: 768px) {
  .section {
    padding: 72px 0;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .why-grid {
    grid-template-columns: 1fr;
  }

  /* Mobil alt iletişim çubuğu görünür */
  .mobile-contact-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    display: flex;
    background: #fff;
    box-shadow: 0 -4px 16px rgba(14, 22, 38, 0.1);
    border-top: 1px solid var(--line);
    padding: 6px;
    gap: 6px;
  }
  .mobile-contact-bar .mcbtn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
  }
  .mobile-contact-bar .mcbtn:first-child {
    background: var(--primary);
    color: #fff;
  }
  .mobile-contact-bar .mcbtn:last-child {
    background: var(--whatsapp);
    color: #fff;
  }
  .mobile-contact-bar .mcbtn:hover {
    color: #fff;
  }

  /* Alt çubuğun altına içerik binişini önle */
  body {
    padding-bottom: 64px;
  }

  /* Sabit WhatsApp butonu alt çubuğun üstüne al */
  .whatsapp-float {
    bottom: 84px;
    right: 16px;
    width: 52px;
    height: 52px;
  }
}

/* Dar mobil */
@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .brand-name {
    font-size: 1.15rem;
  }
  .cta-actions .btn {
    width: 100%;
  }
}