/* ============================================================
   Elazığ Merkez Sıhhi Tesisat — Premium Design System v2
   ============================================================ */

:root {
  /* iOS vh fix — updated by JS */
  --vh: 1vh;

  /* Core palette */
  --c-bg:          #05080f;
  --c-bg-2:        #080d18;
  --c-bg-3:        #0c1425;
  --c-surface:     #0f1a2e;
  --c-surface-2:   #132040;
  --c-border:      rgba(255,255,255,.07);
  --c-border-2:    rgba(99,179,237,.15);

  /* Brand */
  --c-blue:        #2563eb;
  --c-blue-light:  #3b82f6;
  --c-blue-glow:   #60a5fa;
  --c-orange:      #f97316;
  --c-orange-light:#fb923c;
  --c-green:       #10b981;
  --c-purple:      #8b5cf6;
  --c-cyan:        #06b6d4;

  /* Text */
  --c-text:        #f1f5f9;
  --c-text-2:      #94a3b8;
  --c-text-3:      #64748b;
  --c-white:       #ffffff;

  /* Gradients */
  --g-blue:        linear-gradient(135deg,#1d4ed8,#3b82f6);
  --g-orange:      linear-gradient(135deg,#ea580c,#f97316);
  --g-hero:        linear-gradient(135deg,#05080f 0%,#0c1a3a 50%,#091428 100%);
  --g-card:        linear-gradient(135deg,rgba(255,255,255,.04) 0%,rgba(255,255,255,.01) 100%);
  --g-section:     linear-gradient(180deg,#05080f 0%,#080d18 100%);

  /* Glass */
  --glass-bg:      rgba(255,255,255,.04);
  --glass-bg-2:    rgba(255,255,255,.07);
  --glass-border:  rgba(255,255,255,.08);
  --glass-blur:    blur(20px);

  /* Shadows */
  --s-sm:    0 2px 8px rgba(0,0,0,.4);
  --s-md:    0 8px 32px rgba(0,0,0,.5);
  --s-lg:    0 20px 60px rgba(0,0,0,.6);
  --s-blue:  0 0 40px rgba(37,99,235,.35);
  --s-blue2: 0 0 80px rgba(37,99,235,.2);
  --s-orange:0 0 40px rgba(249,115,22,.3);

  /* Radius */
  --r-sm:  8px;
  --r:     14px;
  --r-lg:  20px;
  --r-xl:  28px;
  --r-2xl: 40px;
  --r-full:9999px;

  /* Transition */
  --t:      all .3s cubic-bezier(.4,0,.2,1);
  --t-fast: all .15s ease;
  --t-slow: all .6s cubic-bezier(.4,0,.2,1);

  /* Fonts */
  --font:   'Inter', sans-serif;
  --font-h: 'Poppins', sans-serif;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Layout ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ── Typography ─────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-h);
  line-height: 1.15;
  font-weight: 700;
  color: var(--c-text);
}

.gradient-text {
  background: linear-gradient(135deg, var(--c-blue-glow) 0%, #a5f3fc 50%, var(--c-orange-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.highlight {
  background: linear-gradient(135deg, var(--c-blue-light), var(--c-blue-glow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: .92rem;
  transition: var(--t);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: var(--t-fast);
}
.btn:hover::before { background: rgba(255,255,255,.08); }

.btn-primary {
  background: var(--g-blue);
  color: #fff;
  box-shadow: 0 4px 20px rgba(37,99,235,.4), inset 0 1px 0 rgba(255,255,255,.15);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37,99,235,.6), inset 0 1px 0 rgba(255,255,255,.2);
}
.btn-primary:active { transform: translateY(0); }

.btn-accent {
  background: var(--g-orange);
  color: #fff;
  box-shadow: 0 4px 20px rgba(249,115,22,.35);
}
.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(249,115,22,.55);
}

.btn-glass {
  background: var(--glass-bg-2);
  color: var(--c-text);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
}
.btn-glass:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(99,179,237,.4);
  color: var(--c-blue-glow);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(37,99,235,.2);
}

.btn-outline {
  background: transparent;
  color: var(--c-blue-glow);
  border: 1.5px solid rgba(99,179,237,.4);
}
.btn-outline:hover {
  background: rgba(37,99,235,.1);
  border-color: var(--c-blue-glow);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(37,99,235,.2);
}

.btn-white {
  background: #fff;
  color: var(--c-blue);
  font-weight: 700;
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,.3);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.35);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.7);
  transform: translateY(-2px);
}

.btn-lg { padding: 16px 34px; font-size: 1rem; }
.btn-sm { padding: 9px 20px; font-size: .82rem; }

/* ── Section ─────────────────────────────────────────────── */
.section { padding: 110px 0; position: relative; }
.section-alt { background: var(--c-bg-2); }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 72px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(37,99,235,.12);
  color: var(--c-blue-glow);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--r-full);
  border: 1px solid rgba(37,99,235,.2);
  margin-bottom: 18px;
}

.section-title {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  margin-bottom: 16px;
  font-family: var(--font-h);
  color: var(--c-text);
}

.section-desc {
  font-size: 1.05rem;
  color: var(--c-text-2);
  line-height: 1.75;
}

.section-footer { text-align: center; margin-top: 56px; }

/* ── Divider line ─────────────────────────────────────────── */
.divider {
  width: 60px; height: 3px;
  background: var(--g-blue);
  border-radius: 2px;
  margin: 0 auto 24px;
}

/* ── NAVBAR ─────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: var(--t);
}

.navbar.scrolled {
  background: rgba(5,8,15,.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--c-border);
  padding: 12px 0;
  box-shadow: 0 4px 30px rgba(0,0,0,.5);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  transition: var(--t);
}
.logo:hover { opacity: .88; transform: translateY(-1px); }

.logo-svg {
  height: 42px;
  width: auto;
  display: block;
  transition: var(--t);
}
.logo:hover .logo-svg { filter: drop-shadow(0 4px 12px rgba(37,99,235,.6)); }

/* Fallback text logo (hidden when SVG loads) */
.logo-icon {
  width: 44px; height: 44px;
  background: var(--g-blue);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 4px 16px rgba(37,99,235,.5), inset 0 1px 0 rgba(255,255,255,.2);
  transition: var(--t);
}
.logo:hover .logo-icon { transform: rotate(-8deg) scale(1.05); box-shadow: 0 6px 24px rgba(37,99,235,.7); }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-main { font-family: var(--font-h); font-size: 1.2rem; font-weight: 800; color: var(--c-white); letter-spacing: -.01em; }
.logo-sub { font-size: .68rem; font-weight: 600; color: var(--c-blue-glow); letter-spacing: .1em; text-transform: uppercase; }

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links a {
  padding: 8px 15px;
  border-radius: var(--r-full);
  font-size: .875rem;
  font-weight: 500;
  color: var(--c-text-2);
  transition: var(--t-fast);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--c-text);
  background: rgba(255,255,255,.06);
}
.nav-links a.active {
  color: var(--c-blue-glow);
  background: rgba(37,99,235,.12);
}

/* Nav right */
.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-phone {
  display: flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: .875rem;
  color: var(--c-text-2);
  transition: var(--t-fast);
}
.nav-phone i { color: var(--c-blue-glow); }
.nav-phone:hover { color: var(--c-text); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--r-sm);
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: var(--t);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── PAGE HERO (inner pages) ─────────────────────────────── */
.page-hero {
  padding: 160px 0 90px;
  position: relative;
  overflow: hidden;
  background: var(--c-bg);
}

.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(37,99,235,.25) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 80%, rgba(249,115,22,.1) 0%, transparent 60%);
}

.page-hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(37,99,235,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,.05) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.page-hero-content { position: relative; z-index: 1; }

.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: .82rem;
  color: var(--c-text-3);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--c-blue-glow); transition: var(--t-fast); }
.breadcrumb a:hover { color: var(--c-text); }
.breadcrumb i { font-size: .65rem; }

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--c-text);
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 1.1rem;
  color: var(--c-text-2);
  max-width: 620px;
  line-height: 1.7;
}

/* ── CTA SECTION ─────────────────────────────────────────── */
.cta-section {
  position: relative;
  padding: 90px 0;
  overflow: hidden;
}

.cta-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #2563eb 100%);
}

.cta-bg::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 80% at 0% 50%, rgba(0,0,0,.3), transparent),
    radial-gradient(ellipse 50% 80% at 100% 50%, rgba(249,115,22,.2), transparent);
}

.cta-bg::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='20' cy='20' r='12'/%3E%3C/g%3E%3C/svg%3E");
}

.cta-content {
  position: relative; z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.cta-text h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: #fff;
  margin-bottom: 10px;
}
.cta-text p { color: rgba(255,255,255,.8); font-size: 1.05rem; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── FOOTER ─────────────────────────────────────────────── */
.footer {
  background: #020509;
  border-top: 1px solid rgba(255,255,255,.05);
  color: var(--c-text-2);
}

.footer-top { padding: 80px 0 52px; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.6fr;
  gap: 52px;
}

.footer-brand .logo { margin-bottom: 20px; display: inline-flex; }
.footer-brand .logo-svg { height: 38px; opacity: .92; }
.footer-brand p {
  font-size: .875rem;
  line-height: 1.75;
  color: var(--c-text-3);
  margin-bottom: 28px;
  max-width: 300px;
}

.social-links { display: flex; gap: 10px; flex-wrap: wrap; }

.social-link {
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,.05);
  border: 1px solid var(--c-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-text-3);
  font-size: .9rem;
  transition: var(--t);
}
.social-link:hover {
  background: var(--c-blue);
  border-color: var(--c-blue);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(37,99,235,.4);
}

.footer-links h4, .footer-contact h4 {
  color: var(--c-text);
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: 24px;
  font-family: var(--font-h);
  position: relative;
  padding-bottom: 12px;
}
.footer-links h4::after, .footer-contact h4::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 30px; height: 2px;
  background: var(--g-blue);
  border-radius: 2px;
}

.footer-links ul { display: flex; flex-direction: column; gap: 11px; }
.footer-links a {
  display: flex; align-items: center; gap: 9px;
  font-size: .855rem;
  color: var(--c-text-3);
  transition: var(--t-fast);
}
.footer-links a i { font-size: .6rem; color: var(--c-blue-light); opacity: .6; }
.footer-links a:hover { color: var(--c-text); padding-left: 4px; }
.footer-links a:hover i { opacity: 1; }

.contact-items { display: flex; flex-direction: column; gap: 16px; }
.contact-item {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: .855rem; color: var(--c-text-3);
}
.contact-item i { color: var(--c-blue-glow); font-size: .9rem; margin-top: 2px; flex-shrink: 0; }
.contact-item a { transition: var(--t-fast); }
.contact-item a:hover { color: var(--c-text); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.04);
  padding: 22px 0;
}
.footer-bottom-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: .8rem; color: var(--c-text-3); }
.footer-bottom-links { display: flex; gap: 22px; }
.footer-bottom-links a { font-size: .78rem; color: var(--c-text-3); transition: var(--t-fast); }
.footer-bottom-links a:hover { color: var(--c-blue-glow); }

/* ── WHATSAPP FLOAT ─────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 24px; right: 24px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  padding: 13px 22px;
  border-radius: var(--r-full);
  display: flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: .875rem;
  box-shadow: 0 6px 30px rgba(37,211,102,.45);
  z-index: 900;
  transition: var(--t);
}
.whatsapp-float:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(37,211,102,.6);
}
.whatsapp-float i { font-size: 1.3rem; }

/* ── BACK TO TOP ─────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 24px; left: 24px; right: auto;
  width: 50px; height: 50px;
  background: var(--g-blue);
  color: #fff;
  border-radius: var(--r-full);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,99,235,.5);
  z-index: 900;
  opacity: 0;
  transform: translateY(20px) scale(.8);
  transition: var(--t);
  pointer-events: none;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.back-to-top:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 30px rgba(37,99,235,.7);
}

/* ── ANIMATIONS ─────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(249,115,22,.6); }
  70%  { box-shadow: 0 0 0 14px rgba(249,115,22,0); }
  100% { box-shadow: 0 0 0 0 rgba(249,115,22,0); }
}
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
@keyframes rotate-slow {
  to { transform: rotate(360deg); }
}
@keyframes blob {
  0%,100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  50%      { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
}

.pulse { animation: pulse-ring 2s ease infinite; }

/* ── CARD BASE ───────────────────────────────────────────── */
.card-glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  backdrop-filter: var(--glass-blur);
  transition: var(--t);
}
.card-glass:hover {
  background: rgba(255,255,255,.06);
  border-color: rgba(99,179,237,.2);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,.4), 0 0 40px rgba(37,99,235,.12);
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .nav-phone span { display: none; }
}

@media (max-width: 768px) {
  .logo-svg { height: 34px; }
  .footer-brand .logo-svg { height: 32px; }
  .section { padding: 72px 0; }
  .container { padding: 0 18px; }

  .nav-links {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(5,8,15,.97);
    backdrop-filter: blur(24px);
    flex-direction: column;
    align-items: flex-start;
    padding: 88px 24px 36px;
    gap: 4px;
    transform: translateX(-100%);
    transition: var(--t);
    box-shadow: var(--s-lg);
    z-index: 999;
    height: 100vh;
    border-right: 1px solid var(--c-border);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.05rem; padding: 13px 18px; width: 100%; border-radius: var(--r); }
  .hamburger { display: flex; z-index: 1001; }
  .nav-phone { display: none; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .whatsapp-float span { display: none; }
  .whatsapp-float { padding: 15px; bottom: 24px; }
  .back-to-top { bottom: 24px; left: 14px; right: auto; width: 44px; height: 44px; }
  .cta-content { flex-direction: column; text-align: center; }
  .cta-actions { justify-content: center; }
}

@media (max-width: 480px) {
  .btn-lg { padding: 14px 26px; font-size: .95rem; }
}
