/* ============================================
   MES Tesisat — style.css
   ============================================ */

:root {
  --navy: #071a33;
  --navy-soft: #0d2747;
  --blue: #0f5fd7;
  --blue-light: #eaf4ff;
  --white: #ffffff;
  --green: #18b957;
  --green-dark: #129a47;
  --ink: #111827;
  --muted: #5b6675;
  --line: #e6ecf3;

  --radius: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 6px 18px rgba(7, 26, 51, .06);
  --shadow-md: 0 14px 40px rgba(7, 26, 51, .10);
  --shadow-lg: 0 24px 60px rgba(7, 26, 51, .16);
  --container: 1160px;
  --header-h: 72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  line-height: 1;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 24px rgba(15, 95, 215, .28);
}
.btn--primary:hover { background: #0c52bd; transform: translateY(-2px); }

.btn--whatsapp {
  background: var(--green);
  color: #fff;
  box-shadow: 0 10px 24px rgba(24, 185, 87, .28);
}
.btn--whatsapp:hover { background: var(--green-dark); transform: translateY(-2px); }

.btn--ghost {
  background: rgba(255, 255, 255, .08);
  color: #fff;
  border-color: rgba(255, 255, 255, .35);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .16); transform: translateY(-2px); }

.btn--header {
  background: var(--green);
  color: #fff;
  padding: 10px 18px;
  font-size: .9rem;
  box-shadow: 0 8px 20px rgba(24, 185, 87, .25);
}
.btn--header:hover { background: var(--green-dark); }

/* ============ HEADER ============ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 900;
  background: rgba(7, 26, 51, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  transition: background .3s ease, box-shadow .3s ease;
}
.header.scrolled { box-shadow: 0 8px 30px rgba(0, 0, 0, .25); }

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 1.22rem;
  letter-spacing: .3px;
  margin-right: auto;
}
.brand__icon {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--blue), #2a7bff);
  color: #fff;
  box-shadow: 0 6px 16px rgba(15, 95, 215, .4);
}
.brand__text { font-weight: 600; }
.brand__text strong { color: #7db8ff; font-weight: 800; }

.nav { display: flex; gap: 6px; }
.nav__link {
  color: rgba(255, 255, 255, .82);
  font-weight: 500;
  font-size: .96rem;
  padding: 9px 14px;
  border-radius: 10px;
  transition: color .15s ease, background .15s ease;
}
.nav__link:hover { color: #fff; background: rgba(255, 255, 255, .08); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: rgba(255, 255, 255, .08);
  border: none;
  border-radius: 11px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: #fff;
  margin-inline: auto;
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 70px) 0 90px;
  background: radial-gradient(1100px 600px at 80% -10%, #103a6b 0%, transparent 60%),
              linear-gradient(160deg, var(--navy) 0%, #0a223f 55%, #0c2c52 100%);
  color: #fff;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 18% 30%, rgba(125, 184, 255, .12), transparent 25%),
    radial-gradient(circle at 90% 70%, rgba(24, 185, 87, .10), transparent 30%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 50px;
}

.hero__eyebrow {
  display: inline-block;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: #7db8ff;
  background: rgba(125, 184, 255, .12);
  border: 1px solid rgba(125, 184, 255, .25);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero__title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.5px;
  margin-bottom: 14px;
}
.hero__title span { color: #7db8ff; }
.hero__subtitle {
  font-size: clamp(1.1rem, 2.4vw, 1.45rem);
  font-weight: 600;
  color: #d8e8ff;
  margin-bottom: 16px;
}
.hero__desc {
  font-size: 1.04rem;
  color: rgba(255, 255, 255, .78);
  max-width: 560px;
  margin-bottom: 28px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  list-style: none;
}
.hero__badges li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .92rem;
  color: rgba(255, 255, 255, .85);
  font-weight: 500;
}
.hero__badges .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(24, 185, 87, .18);
}

/* Hero visual card */
.hero__card {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 420px;
  margin-inline: auto;
  display: grid;
  place-items: center;
}
.hero__card-glow {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 95, 215, .45), transparent 70%);
  filter: blur(20px);
}
.hero__art { position: relative; width: 86%; }
.hero__chip {
  position: absolute;
  background: rgba(255, 255, 255, .96);
  color: var(--navy);
  font-weight: 600;
  font-size: .85rem;
  padding: 9px 14px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}
.hero__chip--1 { top: 12%; left: -6%; animation: float 5s ease-in-out infinite; }
.hero__chip--2 { bottom: 14%; right: -4%; animation: float 5s ease-in-out infinite 1.2s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ============ SECTIONS ============ */
.section { padding: 84px 0; }
.section--alt { background: var(--blue-light); }

.section__head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 52px;
}
.section__eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.section__title {
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.4px;
  color: var(--navy);
  margin-bottom: 14px;
}
.section__lead {
  font-size: 1.05rem;
  color: var(--muted);
}

/* ============ SERVICES ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(15, 95, 215, .3);
}
.service-card__icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--blue-light), #d6e9ff);
  color: var(--blue);
  margin-bottom: 18px;
}
.service-card__icon svg { width: 28px; height: 28px; }
.service-card h3 {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.service-card p {
  font-size: .94rem;
  color: var(--muted);
}

/* ============ WHY ============ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.why-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform .22s ease, box-shadow .22s ease;
}
.why-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.why-card__num {
  display: inline-block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--green);
  margin-bottom: 12px;
}
.why-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.why-card p { font-size: .94rem; color: var(--muted); }

/* ============ STEPS ============ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.step {
  position: relative;
  text-align: center;
  padding: 26px 20px;
  border-radius: var(--radius);
  background: var(--blue-light);
  border: 1px solid var(--line);
}
.step__num {
  display: grid;
  place-items: center;
  width: 50px; height: 50px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
  box-shadow: 0 8px 18px rgba(7, 26, 51, .25);
}
.step h3 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.step p { font-size: .9rem; color: var(--muted); }

/* ============ GALLERY ============ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.gallery-card {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  background: #fff;
}
.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery-card:hover img { transform: scale(1.06); }
.gallery-card figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px 16px 14px;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  background: linear-gradient(to top, rgba(7, 26, 51, .85), transparent);
}

/* Fotoğraf henüz eklenmemişse: zarif yer tutucu */
.gallery-card.is-empty {
  background: linear-gradient(135deg, var(--navy) 0%, #0c2c52 100%);
}
.gallery-card.is-empty img { display: none; }
.gallery-card.is-empty::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(125,184,255,.16), transparent 50%),
    radial-gradient(circle at 75% 70%, rgba(24,185,87,.12), transparent 50%);
}
.gallery-card.is-empty::after {
  content: "📷  Fotoğraf yakında";
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  color: rgba(255, 255, 255, .7);
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .3px;
}
.gallery-card.is-empty figcaption {
  background: rgba(7, 26, 51, .55);
  z-index: 1;
}

/* ============ REVIEWS ============ */
.reviews-badge {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  font-size: 1rem;
  color: var(--muted);
}
.reviews-badge__stars {
  color: #f5a623;
  letter-spacing: 2px;
  font-size: 1.15rem;
}
.reviews-badge strong { font-size: 1.25rem; color: var(--navy); }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.review-card {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
}
.review-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.review-card__stars {
  display: block;
  color: #f5a623;
  letter-spacing: 2px;
  font-size: 1.05rem;
  margin-bottom: 12px;
}
.review-card p {
  color: var(--ink);
  font-size: .98rem;
  margin-bottom: 16px;
}
.review-card cite {
  font-style: normal;
  font-weight: 700;
  color: var(--navy);
}

/* ============ CONTACT ============ */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}
.contact__card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}
.contact__card h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
}
.contact__person {
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 22px;
}
.contact__list { list-style: none; margin-bottom: 26px; }
.contact__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-size: 1rem;
  color: var(--ink);
}
.contact__list svg { width: 22px; height: 22px; color: var(--blue); flex-shrink: 0; margin-top: 2px; }
.contact__list a { font-weight: 700; color: var(--navy); }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.contact__actions .btn--ghost { color: var(--navy); border-color: var(--line); background: #f4f8fd; }
.contact__actions .btn--ghost:hover { background: #e9f2fc; }

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

/* ============ FOOTER ============ */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, .8);
  padding-top: 50px;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 26px;
  padding-bottom: 36px;
}
.footer__brand .brand__text { font-size: 1.3rem; color: #fff; }
.footer__brand p { max-width: 360px; margin-top: 10px; font-size: .95rem; }
.footer__contact { display: flex; flex-direction: column; gap: 8px; }
.footer__contact a { font-weight: 700; color: #7db8ff; font-size: 1.1rem; }
.footer__contact span { font-size: .92rem; }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 18px 0;
  text-align: center;
  font-size: .85rem;
  color: rgba(255, 255, 255, .6);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer__credit { color: rgba(255, 255, 255, .5); font-size: .82rem; }
.footer__credit strong { color: #7db8ff; font-weight: 600; }

/* ============ SABİT YEŞİL ARAMA BUTONU ============ */
.call-fab {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: .98rem;
  padding: 14px 22px;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(24, 185, 87, .45);
  transition: transform .2s ease, background .2s ease;
}
.call-fab:hover { background: var(--green-dark); transform: translateY(-50%) scale(1.04); }
.call-fab svg { width: 22px; height: 22px; position: relative; z-index: 1; }
.call-fab__text { position: relative; z-index: 1; }
.call-fab__pulse {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--green);
  animation: pulse 2.2s ease-out infinite;
  z-index: 0;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(24, 185, 87, .5); }
  70% { box-shadow: 0 0 0 16px rgba(24, 185, 87, 0); }
  100% { box-shadow: 0 0 0 0 rgba(24, 185, 87, 0); }
}

/* Mobil WhatsApp FAB (gizli — sadece mobilde görünür) */
.wa-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  box-shadow: 0 10px 26px rgba(24, 185, 87, .45);
}
.wa-fab svg { width: 28px; height: 28px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__card { max-width: 320px; order: -1; }
  .hero__chip { font-size: .8rem; }
  .contact { grid-template-columns: 1fr; }

  .nav-toggle { display: flex; }
  .btn--header { display: none; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: var(--navy);
    padding: 10px 16px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
    transform: translateY(-130%);
    transition: transform .3s ease;
  }
  .nav.open { transform: translateY(0); }
  .nav__link { padding: 14px 12px; border-radius: 10px; font-size: 1.05rem; }
}

@media (max-width: 560px) {
  .section { padding: 60px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .contact__card { padding: 26px; }
  .hero__actions .btn { flex: 1 1 100%; }

  /* Mobilde sabit ara butonu yuvarlak ikon olsun */
  .call-fab {
    top: auto;
    bottom: 18px;
    right: 18px;
    transform: none;
    width: 60px; height: 60px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
  .call-fab:hover { transform: scale(1.05); }
  .call-fab__text { display: none; }
  .call-fab svg { width: 26px; height: 26px; }

  /* WhatsApp butonunu ara butonunun üstüne koy */
  .wa-fab { display: flex; bottom: 88px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; }
}
