/* ════════════════════════════════════════════════
   Keçiören Acil Diş Dental – Ultra Premium CSS
   Google Ads & Conversion (CRO) Focused Redesign
   ════════════════════════════════════════════════ */

:root {
  /* Premium Medical Colors */
  --c-primary: #0b7285;
  --c-primary-d: #084c5a;
  --c-primary-l: #128296;
  --c-accent: #f76707;
  --c-bg: #ffffff;
  --c-bg-off: #f8fafc;
  --c-surface: #ffffff;
  
  --c-text-main: #0f172a;
  --c-text-muted: #64748b;
  --c-border: #e2e8f0;

  /* CRO Specific */
  --c-success: #16a34a; /* Green for Whatsapp/Trust */
  --c-emergency: #ef4444; /* Red for urgent calls */

  /* Modern Radius */
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-full: 999px;

  /* Airy Shadows */
  --s-sm: 0 4px 12px rgba(15, 23, 42, 0.04);
  --s-md: 0 12px 32px rgba(15, 23, 42, 0.06);
  --s-lg: 0 24px 64px rgba(15, 23, 42, 0.08);

  /* Layout */
  --max-w: 1280px;
  --nav-h: 84px;

  /* Typography */
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── RESET & DEFAULTS ─── */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--c-text-main);
  background: var(--c-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; border-radius: 4px; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.03em; font-weight: 800; }
p { color: var(--c-text-muted); font-size: 1.125rem; }

/* ─── SKIP LINK ─── */
.skip-link {
  position: absolute; left: -9999px; top: -9999px; font-weight: 700;
  background: var(--c-primary); color: #fff; padding: 12px 24px; border-radius: var(--r-md);
  z-index: 10000;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ═══════════════ NAVBAR ═══════════════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h);
  background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  z-index: 1000; border-bottom: 1px solid rgba(15, 23, 42, 0.05); transition: var(--transition);
}
.navbar.scrolled { box-shadow: var(--s-sm); height: 72px; }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 100%; }

.brand { display: flex; align-items: center; gap: 12px; font-size: 1.2rem; }
.brand-icon {
  width: 44px; height: 44px;
  background: var(--c-primary); color: #fff; border-radius: var(--r-sm);
  display: grid; place-items: center; font-size: 1.4rem;
}
.brand-name { font-weight: 500; font-size: 1.1rem; }
.brand-name strong { color: var(--c-primary); font-weight: 900; }

.nav-menu { display: flex; align-items: center; gap: 8px; }
.nav-menu a {
  padding: 10px 18px; border-radius: var(--r-full); font-weight: 600; font-size: 0.95rem;
  color: var(--c-text-muted);
}
.nav-menu a:hover, .nav-menu a.active { color: var(--c-primary); background: var(--c-bg-off); }
.nav-menu .nav-cta {
  background: var(--c-primary); color: #fff; margin-left: 8px;
}
.nav-menu .nav-cta:hover { background: var(--c-primary-d); transform: translateY(-2px); box-shadow: var(--s-sm); }

.menu-toggle {
  display: none; width: 44px; height: 44px; flex-direction: column; gap: 6px; justify-content: center; align-items: center;
}
.menu-toggle span { width: 24px; height: 2px; background: var(--c-text-main); transition: var(--transition); }

/* ═══════════════ HERO SLIDER (Redefined as Hero Section) ═══════════════ */
/* By relying less on a traditional clunky JS slider and more on a bold hero, we gain conversions */
.hero-slider {
  margin-top: var(--nav-h); width: 100%; height: 90vh; min-height: 600px; max-height: 800px;
  position: relative; overflow: hidden; background: #000;
}
.slider-shell { width: 100%; height: 100%; position: relative; }
.slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}
/*.slide.is-active { animation: fadeSlide 0.5s ease-out forwards; }*/
@keyframes fadeSlide { from { opacity: 0; } to { opacity: 1; } }

.slide img { width: 100%; height: 100%; object-fit: cover; opacity: 0.7; }

.slide-caption {
  position: absolute; inset: 0; z-index: 2; padding: 40px 24px;
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  background: radial-gradient(circle at center, rgba(11, 114, 133, 0.4) 0%, rgba(0, 0, 0, 0.7) 100%);
}
.caption-badge {
  background: var(--c-primary); color: #fff; padding: 8px 16px; border-radius: var(--r-full);
  font-weight: 800; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 24px;
}
.slide-caption .hero-title {
  color: #fff; font-size: clamp(2.5rem, 6vw, 4.5rem); max-width: 900px; margin-bottom: 24px;
}
.slide-caption p {
  color: rgba(255, 255, 255, 0.9); font-size: clamp(1.1rem, 2vw, 1.4rem); max-width: 700px; margin-bottom: 40px; font-weight: 400;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 18px 36px;
  border-radius: var(--r-full); font-weight: 700; font-size: 1.1rem;
  transition: var(--transition);
}
.btn-primary { background: var(--c-primary); color: #fff; box-shadow: 0 8px 24px rgba(11, 114, 133, 0.3); }
.btn-primary:hover { background: #fff; color: var(--c-primary); transform: translateY(-3px); }
.btn-secondary { background: rgba(255,255,255,0.1); color: #fff; backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.3); }
.btn-secondary:hover { background: #fff; color: var(--c-primary); }

.slider-btn, .slider-dots { display: flex; } /* Restored dots and buttons for better control */

/* ═══════════════ INFO BAR ═══════════════ */
.info-bar { background: var(--c-bg-off); border-bottom: 1px solid var(--c-border); padding: 0; }
.info-grid { display: flex; max-width: var(--max-w); margin: 0 auto; justify-content: space-between; }
.info-item {
  flex: 1; padding: 32px 24px; display: flex; align-items: center; gap: 16px;
  border-right: 1px solid var(--c-border);
}
.info-item:last-child { border-right: none; }
.info-icon {
  width: 56px; height: 56px; background: #fff; color: var(--c-primary);
  border-radius: var(--r-full); display: grid; place-items: center; font-size: 1.4rem;
  box-shadow: var(--s-sm);
}
.info-item strong { display: block; font-weight: 800; font-size: 1.1rem; color: var(--c-text-main); }
.info-item span { display: block; font-size: 0.9rem; color: var(--c-text-muted); }

/* ═══════════════ TICKER ═══════════════ */
.trust-ticker { background: var(--c-primary); padding: 16px 0; overflow: hidden; color: rgba(255,255,255,0.8); }
.ticker-track { display: flex; width: max-content; animation: ticker 40s linear infinite; gap: 64px; }
.ticker-track span { font-weight: 600; font-size: 0.95rem; display: flex; align-items: center; gap: 8px; }
.ticker-track i { color: #fff; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ═══════════════ SECTIONS & HEADERS ═══════════════ */
.section { padding: 120px 0; }
.section-alt { background: var(--c-bg-off); border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); }

.section-header { text-align: center; max-width: 768px; margin: 0 auto 80px; }
.section-badge {
  display: inline-block; background: rgba(11, 114, 133, 0.1); color: var(--c-primary);
  padding: 8px 16px; border-radius: var(--r-full); font-weight: 800; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em;
  margin-bottom: 24px;
}
.section-header h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 24px; }
.section-desc { font-size: 1.25rem; }

/* ═══════════════ CARDS (Services, Features) ═══════════════ */
.services-grid, .features-grid, .process-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}

.service-card, .feature-card {
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg);
  padding: 48px 32px; transition: var(--transition); position: relative;
}
.service-card:hover, .feature-card:hover {
  transform: translateY(-8px); box-shadow: var(--s-md); border-color: rgba(11, 114, 133, 0.3);
}

.service-icon, .feature-icon, .process-icon {
  width: 72px; height: 72px; background: rgba(11, 114, 133, 0.05); color: var(--c-primary);
  border-radius: var(--r-md); display: grid; place-items: center; font-size: 1.8rem; margin-bottom: 24px;
}

.service-card h3, .feature-card h3 { font-size: 1.4rem; margin-bottom: 16px; }
.service-card p, .feature-card p { font-size: 1rem; margin-bottom: 24px; }
.card-link { font-weight: 800; color: var(--c-primary); display: flex; align-items: center; gap: 8px; }
.card-link:hover { gap: 12px; }

.service-tag {
  display: inline-block; background: var(--c-bg-off); color: var(--c-text-muted);
  padding: 6px 12px; border-radius: var(--r-sm); font-size: 0.8rem; font-weight: 600;
}

/* Process specific */
.process-card { display: flex; gap: 24px; }
.process-step { display: flex; flex-direction: column; align-items: center; font-size: 1.5rem; font-weight: 900; color: var(--c-border); }
.process-line { flex: 1; width: 2px; background: var(--c-border); margin-top: 8px; }
.process-body { padding-bottom: 48px; }
.process-body h3 { font-size: 1.5rem; margin-top: -6px; margin-bottom: 16px; }

/* ═══════════════ STATS ═══════════════ */
.stats-section { padding: 80px 0; border-bottom: 1px solid var(--c-border); }
.stats-grid { display: flex; justify-content: space-around; text-align: center; }
.stat-number { font-size: 4rem; font-weight: 900; color: var(--c-primary); line-height: 1; }
.stat-suffix { font-size: 2rem; font-weight: 900; color: var(--c-text-muted); }
.stat-label { font-size: 1.1rem; font-weight: 600; margin-top: 12px; }

/* ═══════════════ FAQ ═══════════════ */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.faq-item {
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-md);
  padding: 24px; cursor: pointer; transition: var(--transition);
}
.faq-item:hover { border-color: var(--c-primary); }
.faq-item summary {
  font-weight: 800; font-size: 1.2rem; color: var(--c-text-main); list-style: none;
  display: flex; gap: 16px; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { margin-top: 16px; margin-left: 36px; font-size: 1.05rem; }
.faq-q-icon { color: var(--c-primary); font-size: 1.2rem; }
.faq-item[open] .faq-q-icon i { transform: rotate(45deg); transition: var(--transition); }

/* ═══════════════ CONTACT GRID ═══════════════ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.contact-info { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.contact-card { display: flex; gap: 16px; }
.contact-card-icon {
  width: 56px; height: 56px; background: var(--c-bg-off); color: var(--c-primary);
  border-radius: var(--r-full); display: grid; place-items: center; font-size: 1.4rem; flex-shrink: 0;
}
.contact-card h4 { font-size: 1.1rem; margin-bottom: 4px; }
.contact-card p { font-size: 0.95rem; }

/* The Ads Conversion Vital Element */
.contact-cta-box {
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-d));
  border-radius: var(--r-xl); padding: 56px 40px; color: #fff; text-align: center;
  box-shadow: var(--s-lg);
}
.cta-pulse {
  width: 80px; height: 80px; background: rgba(255,255,255,0.2); border-radius: 50%;
  display: grid; place-items: center; font-size: 2rem; margin: 0 auto 32px;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.4); }
  70% { box-shadow: 0 0 0 20px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
.contact-cta-box h3 { font-size: 2.2rem; margin-bottom: 16px; color: #fff; }
.contact-cta-box p { color: rgba(255,255,255,0.8); margin-bottom: 40px; }
.btn-emergency {
  display: inline-flex; flex-direction: column; align-items: center; padding: 24px 48px;
  background: #fff; color: var(--c-primary); border-radius: var(--r-lg); font-weight: 900;
  font-size: 1.4rem; box-shadow: var(--s-md); width: 100%; transition: var(--transition);
}
.btn-emergency:hover { transform: translateY(-4px) scale(1.02); box-shadow: var(--s-lg); }
.btn-emergency small { font-size: 1.8rem; letter-spacing: 2px; margin-top: 4px; }
.cta-checks { display: flex; justify-content: center; gap: 24px; margin-top: 32px; font-weight: 600; font-size: 0.9rem; }

/* ═══════════════ SEO COPY ═══════════════ */
.seo-copy { max-width: 800px; margin: 0 auto; }
.seo-copy h2 { font-size: 2rem; margin-bottom: 24px; }
.seo-copy p { margin-bottom: 24px; }

/* ═══════════════ FOOTER ═══════════════ */
.footer { background: var(--c-text-main); color: #fff; padding: 100px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 64px; }
.footer-brand .brand { color: #fff; margin-bottom: 24px; }
.footer-brand p { color: var(--c-text-muted); }
.footer-col h4 { font-size: 1.2rem; margin-bottom: 24px; }
.footer-col ul { display: flex; flex-direction: column; gap: 16px; }
.footer-col a { color: var(--c-text-muted); font-weight: 500; }
.footer-col a:hover { color: #fff; margin-left: 4px; }
.footer-contact li { display: flex; gap: 12px; color: var(--c-text-muted); }
.footer-contact i { color: var(--c-primary); margin-top: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 32px; text-align: center; color: var(--c-text-muted); }

/* ═══════════════ FLOATING ACTION BUTTON (FAB) - DESKTOP ═══════════════ */
.fab-container { position: fixed; bottom: 32px; right: 32px; display: flex; flex-direction: column; gap: 16px; z-index: 999; }
.fab-btn {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; font-size: 1.8rem; box-shadow: var(--s-md); transition: var(--transition);
}
.fab-whatsapp { background: var(--c-success); }
.fab-phone { background: var(--c-primary); }
.fab-btn:hover { transform: scale(1.1) translateY(-4px); box-shadow: var(--s-lg); }

/* ═══════════════ RESPONSIVE (MOBILE & TABLET) ═══════════════ */

/* Tablet */
@media (max-width: 1024px) {
  .info-grid { flex-wrap: wrap; }
  .info-item { min-width: 50%; border-right: none; border-bottom: 1px solid var(--c-border); }
  .services-grid, .features-grid, .process-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .slide-caption { text-align: left; align-items: flex-start; }
}

/* Mobile - Extremely CRO Focused */
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .services-grid, .features-grid, .process-grid { grid-template-columns: 1fr; gap: 24px; }
  .stats-grid { flex-direction: column; gap: 40px; }
  .contact-info { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-checks { flex-direction: column; gap: 12px; }
  
  .slide-caption { justify-content: flex-end; padding: 24px; }
  .slide-caption .hero-title { font-size: 2.2rem; }
  .btn { width: 100%; justify-content: center; }
  
  /* Navbar Mobile */
  .nav-menu {
    position: fixed; top: var(--nav-h); left: 0; right: 0; background: #fff;
    flex-direction: column; padding: 24px; gap: 16px; box-shadow: var(--s-md);
    transform: translateY(-150%); transition: var(--transition); z-index: 999;
  }
  .nav-menu.open { transform: translateY(0); }
  body.menu-open { overflow: hidden; }
  .menu-toggle { display: flex; }
  .nav-cta { display: none; } /* Replaced by Sticky FAB */

  /* 🔥 Sticky Mobile Ads Conversion FAB 🔥 */
  body { padding-bottom: 80px; /* Space for sticky bar */ }
  .fab-container {
    bottom: 0; right: 0; left: 0; flex-direction: row; gap: 0;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.1); background: #fff;
  }
  .fab-btn {
    border-radius: 0; height: 80px; width: 50%; font-size: 1.4rem;
    display: flex; gap: 12px; font-weight: 800; animation: none;
  }
  /* Override styles to add text on mobile FAB */
  .fab-whatsapp::after { content: "WhatsApp"; font-size: 1.1rem; }
  .fab-phone { background: var(--c-primary); }
  .fab-phone::after { content: "Hemen Ara"; font-size: 1.1rem; }
  .fab-phone i { animation: pulseIcon 1.5s infinite; }
  @keyframes pulseIcon { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.2); } }
}
