/* ===== ESUA Life – Tek CSS (responsive, modern) ===== */
:root {
  --color-primary: #00204a;
  --color-accent: #00bbf0;
  --color-white: #ffffff;
  --color-text: #1a1a1a;
  --color-text-muted: #555;
  --color-bg: #ffffff;
  --color-bg-alt: #f5f5f5;
  --font-sans: 'Roboto', system-ui, sans-serif;
  --container: min(1170px, 100% - 2rem);
  --header-height: 56px;
  --radius: 8px;
  --shadow: 0 4px 12px rgba(0, 32, 74, 0.08);
  --shadow-hover: 0 8px 24px rgba(0, 32, 74, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background:
    radial-gradient(circle at top left, rgba(0, 187, 240, 0.08), transparent 55%),
    radial-gradient(circle at bottom right, rgba(0, 32, 74, 0.12), transparent 55%),
    var(--color-bg);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--color-accent); }
ul { list-style: none; margin: 0; padding: 0; }

/* ----- Container ----- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1rem; }

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.site-logo {
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-white);
}
.site-logo:hover { color: var(--color-white); opacity: 0.9; }
@media (min-width: 768px) { .site-logo { font-size: 1.125rem; } }

/* ----- Nav ----- */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--color-white);
  cursor: pointer;
  border-radius: var(--radius);
}
.nav-toggle:hover { background: rgba(255,255,255,0.1); }
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}
@media (min-width: 768px) { .nav-toggle { display: none; } }

.nav-menu {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: auto;
  z-index: 99;
  background: var(--color-primary);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.nav-menu.is-open { max-height: 80vh; overflow-y: auto; }
@media (min-width: 768px) {
  .nav-menu {
    position: static;
    max-height: none;
    flex-direction: row;
    align-items: center;
    padding: 0;
    background: transparent;
  }
}
.nav-menu a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--color-white);
  font-weight: 500;
  border-radius: var(--radius);
}
.nav-menu a:hover { color: var(--color-accent); background: rgba(255,255,255,0.05); }
.nav-menu a.active { color: var(--color-white); border-bottom: 3px solid var(--color-white); }
@media (min-width: 768px) { .nav-menu a { padding: 0.5rem 1rem; } }

/* ----- Page content ----- */
.page-main { min-height: 50vh; }

/* ----- Hero ----- */
.hero {
  position: relative;
  background: radial-gradient(circle at top left, rgba(0, 187, 240, 0.35), transparent 55%),
              linear-gradient(135deg, #03244f, #001633);
  color: var(--color-white);
  padding: 3.25rem 0 3.5rem;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at bottom right, rgba(0, 0, 0, 0.25), transparent 60%);
  opacity: 0.55;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: left;
}
.hero-eyebrow {
  font-size: 0.875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}
.hero h1 {
  margin: 0;
  font-size: 1.9rem;
  line-height: 1.2;
}
.hero-lead {
  margin: 0;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
@media (min-width: 768px) {
  .hero { padding: 4.5rem 0 4.75rem; }
  .hero-inner { flex-direction: column; max-width: 44rem; }
  .hero h1 { font-size: 2.4rem; }
  .hero-lead { font-size: 1.0625rem; }
}

/* ----- Section block ----- */
.section { padding: 3rem 0; }
.section--alt {
  background:
    radial-gradient(circle at top right, rgba(0, 187, 240, 0.08), transparent 55%),
    var(--color-bg-alt);
}
.section-header {
  text-align: center;
  margin-bottom: 2.25rem;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.85rem;
  border-radius: 999px;
  background: rgba(0, 32, 74, 0.05);
  color: var(--color-primary);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
}
.section-label-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--color-accent);
}
.section-title {
  margin: 0 0 0.6rem;
  font-size: 1.5rem;
  color: var(--color-primary);
}
.section-desc {
  max-width: 640px;
  margin: 0.25rem auto 0;
  color: var(--color-text-muted);
}
@media (min-width: 768px) {
  .section { padding: 4rem 0; }
  .section-title { font-size: 1.75rem; margin-bottom: 1.5rem; }
}

/* ----- About (2 col) ----- */
.about-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 768px) { .about-grid { grid-template-columns: 1fr 1fr; } }
.about-grid img { border-radius: var(--radius); box-shadow: var(--shadow); }
.about-grid h3 { margin: 0 0 1rem; color: var(--color-primary); font-size: 1.25rem; }
.about-grid p { margin: 0 0 1rem; }

/* ----- Logo grid (referanslar) ----- */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1.25rem;
  justify-items: center;
}
.logo-card {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  border: 1px solid rgba(0, 32, 74, 0.04);
}
.logo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(0, 187, 240, 0.4);
}
.logo-card img { max-width: 100%; height: auto; margin: 0 auto 0.5rem; }
.logo-card p { margin: 0; font-size: 0.875rem; font-weight: 500; color: var(--color-text); }
@media (max-width: 480px) { .logo-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 1rem; } }

/* ----- Logo sliders (index) ----- */
.logo-slider {
  overflow: hidden;
  position: relative;
  margin-bottom: 2.5rem;
}
.logo-slider-track {
  display: flex;
  gap: 1.25rem;
  animation: logo-slide 35s linear infinite;
}
.logo-slider-track:hover {
  animation-play-state: paused;
}
.logo-slider--corporate .logo-card {
  flex: 0 0 18%;
  min-width: 140px;
}
@media (max-width: 992px) {
  .logo-slider--corporate .logo-card {
    flex-basis: 24%;
  }
}
@media (max-width: 600px) {
  .logo-slider--corporate .logo-card {
    flex-basis: 32%;
  }
}

.logo-slider--family .logo-card {
  flex: 0 0 32%;
  min-width: 200px;
}
@media (max-width: 900px) {
  .logo-slider--family .logo-card {
    flex-basis: 48%;
  }
}
@media (max-width: 600px) {
  .logo-slider--family .logo-card {
    flex-basis: 100%;
  }
}

@keyframes logo-slide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ----- Service / Why cards (3 col) ----- */
.cards-3 {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 768px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
/* Kartlar koyu arka planlı bölümde: metin okunaklı kalsın */
.cards-3--light .card h3 { color: var(--color-primary); }
.cards-3--light .card p { color: var(--color-text-muted); }
.card img { width: 80px; height: auto; margin: 0 auto 1rem; }
.card h3 { margin: 0 0 0.5rem; font-size: 1.125rem; color: var(--color-primary); }
.card p { margin: 0; font-size: 0.9375rem; color: var(--color-text-muted); line-height: 1.6; }

/* ----- CTA ----- */
.cta { text-align: center; padding: 1rem 0; }
.cta a {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--color-accent);
  color: var(--color-white);
  font-weight: 600;
  border-radius: var(--radius);
}
.cta a:hover { background: #0090c4; color: var(--color-white); }

/* Reusable buttons in hero */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease, border-color 0.2s ease;
}
.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 12px 30px rgba(0, 187, 240, 0.4);
}
.btn-primary:hover {
  background: #0090c4;
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: 0 16px 38px rgba(0, 187, 240, 0.55);
}
.btn-secondary {
  background: rgba(0, 0, 0, 0.14);
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.28);
}
.btn-secondary:hover {
  background: rgba(0, 0, 0, 0.28);
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
}

/* ----- Contact page cards ----- */
.contact-cards {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}
@media (min-width: 600px) { .contact-cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); } }
.contact-card {
  display: block;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  color: inherit;
}
.contact-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); color: inherit; }
.contact-card .icon { font-size: 2rem; color: var(--color-primary); margin-bottom: 0.5rem; }
.contact-card h3 { margin: 0 0 0.25rem; font-size: 1rem; color: var(--color-primary); }
.contact-card p { margin: 0; font-size: 0.9375rem; color: var(--color-text-muted); }
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16/10;
  max-height: 400px;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ----- Family grids (referans görselleri) ----- */
.family-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 1024px) {
  .family-grid--wide {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .family-grid--wide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  .family-grid--wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.family-card {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  border: 1px solid rgba(0, 32, 74, 0.04);
}
.family-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(0, 187, 240, 0.4);
}

.family-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.family-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ----- Info footer (dark) ----- */
.info-section {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 3rem 0 2rem;
}
.info-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 768px) { .info-grid { grid-template-columns: 1fr 1fr auto 1fr; } }
.info-section h4 { margin: 0 0 1rem; font-size: 1rem; }
.info-section a { color: rgba(255,255,255,0.9); }
.info-section a:hover { color: var(--color-accent); }
.contact-links { display: flex; flex-direction: column; gap: 0.5rem; }
.contact-links a { display: flex; align-items: flex-start; gap: 0.5rem; }
.info-links { display: flex; flex-direction: column; gap: 0.5rem; }
.social-links { display: flex; gap: 1rem; margin-top: 0.75rem; }
.social-links a { font-size: 1.25rem; }
.map-embed { border-radius: var(--radius); overflow: hidden; max-width: 100%; }
.map-embed iframe { width: 100%; height: 220px; border: 0; display: block; }
@media (min-width: 768px) { .map-embed iframe { height: 200px; min-width: 280px; } }

/* ----- Footer ----- */
.site-footer {
  background: var(--color-white);
  text-align: center;
  padding: 1.5rem 1rem;
  color: var(--color-primary);
  font-size: 0.875rem;
}
.site-footer a { color: var(--color-accent); }
.site-footer a:hover { text-decoration: underline; }

/* ----- Sub page hero (small) ----- */
.sub-hero {
  background: radial-gradient(circle at top left, rgba(0, 187, 240, 0.28), transparent 55%),
              linear-gradient(135deg, #03244f, #001633);
  color: var(--color-white);
  padding: 2.4rem 0 2.6rem;
  box-shadow: 0 14px 40px rgba(0, 10, 40, 0.45);
}
.sub-hero h1 {
  margin: 0;
  font-size: 1.7rem;
  text-align: center;
}

/* ----- Utility ----- */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }

/* Özel: Referans logosu invert (beyaz arka plan için) */
.logo-card img.img-invert { filter: invert(1) grayscale(100%); }

/* ----- Subtle entrance animations ----- */
@keyframes fadeUp-soft {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-inner,
.about-grid,
.cards-3,
.logo-grid {
  animation: fadeUp-soft 0.65s ease-out both;
}

.logo-grid .logo-card:nth-child(1),
.logo-grid .logo-card:nth-child(2),
.logo-grid .logo-card:nth-child(3),
.logo-grid .logo-card:nth-child(4),
.logo-grid .logo-card:nth-child(5),
.logo-grid .logo-card:nth-child(6) {
  animation-delay: 0.08s;
}

/* Yüzen WhatsApp Butonu Stilleri */
.floating-whatsapp {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 35px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.floating-whatsapp:hover {
  background-color: #1ebe57;
  transform: scale(1.1);
  color: #fff;
}

/* Mobil için biraz daha küçültme ve kenara yaklaştırma */
@media screen and (max-width: 767px) {
  .floating-whatsapp {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
    font-size: 30px;
  }
}