/* ============================================
   EGEMEN Mabed & Mimari Cami Donanımları
   Logo uyumlu renk paleti: teal + altın
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Figtree:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  /* Renk: teal + metalik altın (kurumsal) */
  --bg: #f2f6f6;
  --bg-soft: #e6efef;
  --surface: #ffffff;
  --surface-hover: #f8fbfb;
  
  --primary: #165a5c;
  --primary-dark: #0d4a4c;
  --primary-light: #1e7274;
  --primary-soft: #e4f0f0;
  --accent: #c9a227;
  --accent-soft: #f5edd6;
  --accent-warm: #b8860b;
  
  --text: #1a3233;
  --text-muted: #4d6a6b;
  --border: #d4e4e4;
  --border-light: #e8f0f0;
  
  /* Gölge ölçeği */
  --shadow-xs: 0 1px 2px rgba(22, 90, 92, 0.04);
  --shadow-sm: 0 2px 8px rgba(22, 90, 92, 0.06);
  --shadow: 0 4px 16px rgba(22, 90, 92, 0.08);
  --shadow-md: 0 8px 24px rgba(22, 90, 92, 0.10);
  --shadow-lg: 0 16px 40px rgba(22, 90, 92, 0.12);
  --shadow-xl: 0 24px 56px rgba(22, 90, 92, 0.14);
  --shadow-subtle: var(--shadow-xs);
  --shadow-strong: var(--shadow-lg);
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Figtree', sans-serif;
  
  /* Boşluk ölçeği */
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  
  /* Tipografi ölçeği */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  
  --transition: 0.2s ease;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-scroll: 0.6s;
  --focus-ring: 2px solid var(--primary);
  --focus-offset: 2px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  max-width: 100vw;
}

/* ----- Açılış ekranı (splash): logo 0.8s dönüş, sonra sayfa açılır ----- */
.splash {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  transition: opacity 0.4s var(--ease-out-smooth), visibility 0.4s step-end;
}
.splash.splash--out {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-out-smooth), visibility 0s 0.4s;
}
.splash-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}
.splash-logo {
  width: 240px;
  height: 240px;
  object-fit: contain;
  animation: splash-logo-spin 0.8s var(--ease-out-smooth) forwards;
}
@keyframes splash-logo-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .splash-logo {
    animation: none;
  }
}

::selection {
  background: var(--primary-soft);
  color: var(--text);
}

*:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--primary-light);
}

/* Erişilebilirlik: sadece ekran okuyucu için görünür */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========== Header & Navigation ========== */
/* Fixed: sayfa kaydıkça header her zaman üstte kalsın (tüm sayfalar) */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: var(--surface);
  border-bottom: 1px solid var(--border-light);
  z-index: 100;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s var(--ease-out), border-color 0.2s ease;
}
.site-header.header--scrolled {
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--border);
}
@media (prefers-reduced-motion: reduce) {
  .site-header { transition: none; }
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-4) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--primary);
  letter-spacing: -0.02em;
}
.logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.logo-text .tagline {
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.logo span {
  color: var(--text);
  font-weight: 500;
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-list a {
  display: block;
  padding: var(--space-2) var(--space-4);
  color: var(--text);
  font-weight: 500;
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  transition: background 0.2s var(--ease-out), color 0.2s ease;
}
.nav-list a:hover,
.nav-list a.active {
  background: var(--primary-soft);
  color: var(--primary);
}

/* Mobile menu button */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--primary);
}
.nav-toggle svg {
  width: 24px;
  height: 24px;
}

/* ========== Main content ========== */
/* Header fixed olduğu için içerik alta taşınmasın diye üst boşluk */
.main {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-20) var(--space-6) var(--space-16);
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.25s var(--ease-out), transform 0.2s var(--ease-out), box-shadow 0.25s var(--ease-out), border-color 0.2s ease;
}
.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(180deg, var(--primary-light) 0%, var(--primary) 100%);
  color: #fff;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.12);
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.btn-primary:hover {
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.08);
}
.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-xs), inset 0 1px 0 rgba(255,255,255,0.1);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary-soft);
  border-color: var(--primary-light);
}
.btn-outline:active {
  transform: translateY(0);
}

/* ========== Section spacing ========== */
.section {
  padding: var(--space-16) 0;
}
.section-head {
  margin-bottom: var(--space-3);
}
.section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(var(--text-2xl), 2.5vw, 1.875rem);
  color: var(--text);
  margin-bottom: var(--space-2);
  letter-spacing: -0.03em;
  line-height: 1.18;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: var(--text-lg);
  line-height: 1.7;
  max-width: 42rem;
  margin-bottom: var(--space-8);
  letter-spacing: 0.01em;
}

/* ========== Footer (kurumsal: koyu teal, 3 sütun) ========== */
.site-footer {
  position: relative;
  background: #0f2223;
  color: #e8eeec;
  padding: var(--space-16) var(--space-6) var(--space-10);
  margin-top: auto;
  overflow: hidden;
}

.site-footer .footer-bg {
  position: absolute;
  inset: 0;
  background-image: url("../assets/footer-bg.jpg"), url("../assets/hero.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.12;
  z-index: 0;
}

.site-footer .footer-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 34, 35, 0.98) 0%, rgba(15, 34, 35, 0.96) 100%);
  z-index: 1;
}

.site-footer .footer-inner,
.site-footer .footer-bottom {
  position: relative;
  z-index: 2;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.footer-col {
  min-width: 0;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #fff;
  margin-bottom: 0.75rem;
}

.footer-logo img {
  height: 120px;
  width: auto;
  opacity: 0.95;
}

.footer-logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

.footer-tagline {
  display: block;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 0.15rem;
}

.footer-desc {
  font-size: 0.9rem;
  color: rgba(232, 238, 236, 0.85);
  max-width: 300px;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.footer-social {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.footer-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.footer-social-icon:hover {
  background: var(--accent);
  color: #1a3233;
}

.footer-social-icon svg {
  width: 20px;
  height: 20px;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid rgba(255, 255, 255, 0.15);
  display: inline-block;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(232, 238, 236, 0.9);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-contact-list {
  list-style: none;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: rgba(232, 238, 236, 0.9);
}

.footer-contact-list a {
  color: rgba(232, 238, 236, 0.95);
  text-decoration: none;
}

.footer-contact-list a:hover {
  color: var(--accent);
}

.footer-contact-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.footer-contact-icon svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  max-width: 1200px;
  margin: var(--space-12) auto 0;
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: var(--text-sm);
  color: rgba(232, 238, 236, 0.55);
  text-align: center;
  letter-spacing: 0.02em;
}

.footer-bottom p {
  margin: 0;
}
.footer-credit {
  margin-top: 0.5rem !important;
  font-size: 0.8rem;
  opacity: 0.85;
  letter-spacing: 0.12em;
}

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .footer-desc {
    max-width: none;
  }
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .logo img {
    height: 40px;
  }
  .logo .logo-text .tagline {
    display: none;
  }
  .logo .logo-text span:first-child {
    font-size: 1.1rem;
  }
  .nav-toggle {
    display: block;
  }
  
  .nav-list {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--surface);
    flex-direction: column;
    align-items: stretch;
    padding: 5rem 1.5rem 2rem;
    box-shadow: -4px 0 24px var(--shadow-strong);
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 99;
  }
  .nav-list.is-open {
    transform: translateX(0);
  }
  .nav-list a {
    padding: 0.85rem 1rem;
    border-radius: var(--radius);
  }
  
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-brand p {
    max-width: none;
  }
  .footer-nav {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .section {
    padding: var(--space-10) 0;
  }
  .section-title {
    font-size: 1.375rem;
  }
  .main {
    padding: var(--space-16) var(--space-4) var(--space-12);
  }
}

/* ----- Mobil / telefon: yatay kayma (scroll) olmasın ----- */
@media (max-width: 767px) {
  html, body {
    overflow-x: hidden;
    max-width: 100%;
    position: relative;
  }
  body {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  .header-inner {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }
  .main,
  .site-footer .footer-inner,
  .site-footer .footer-bottom {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
    max-width: 100%;
  }
  .section {
    max-width: 100%;
    overflow-x: hidden;
  }
}

/* ----- Sağ alt sabit iletişim (WhatsApp + E-posta + Instagram) ----- */
.float-contact {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}
.float-contact-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s var(--ease-out-smooth), box-shadow 0.25s ease, opacity 0.25s ease;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(8px) scale(0.96);
}
.float-contact-btn.float-contact-btn--wa {
  animation: float-contact-in 0.55s var(--ease-out-smooth) forwards;
  animation-delay: 0.1s;
}
.float-contact-btn.float-contact-btn--mail {
  animation: float-contact-in 0.55s var(--ease-out-smooth) forwards;
  animation-delay: 0.18s;
}
.float-contact-btn.float-contact-btn--ig {
  animation: float-contact-in 0.55s var(--ease-out-smooth) forwards;
  animation-delay: 0.26s;
}
.float-contact-btn:hover {
  transform: translateY(-2px) scale(1.06);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.float-contact-btn:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.float-contact-btn svg {
  width: 24px;
  height: 24px;
}
.float-contact-btn--wa {
  background: #25d366;
  color: #fff;
}
.float-contact-btn--wa:hover {
  background: #20bd5a;
  color: #fff;
}
.float-contact-btn--mail {
  background: var(--primary);
  color: #fff;
}
.float-contact-btn--mail:hover {
  background: var(--primary-light);
  color: #fff;
}
.float-contact-btn--ig {
  background: radial-gradient(circle at 30% 30%, #fdf497 0%, #fd5949 45%, #d6249f 70%, #285AEB 100%);
  color: #fff;
}
.float-contact-btn--ig:hover {
  filter: brightness(1.05);
  color: #fff;
}
@keyframes float-contact-in {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.9);
  }
  60% {
    opacity: 1;
    transform: translateY(-2px) scale(1.04);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@media (max-width: 768px) {
  .float-contact {
    bottom: 1rem;
    right: 1rem;
  }
  .float-contact-btn {
    width: 44px;
    height: 44px;
  }
  .float-contact-btn svg {
    width: 22px;
    height: 22px;
  }
}
