@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* DESIGN TOKENS */
:root {
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Color Palette */
  --primary: #0f172a;        /* Slate Blue (Koyu Lacivert) */
  --primary-light: #1e293b;  /* Slate 800 */
  --primary-tint: #334155;   /* Slate 700 */
  --secondary: #f59e0b;      /* Amber Yellow (Yol Yardım Sarısı) */
  --secondary-hover: #d97706;
  --action: #22c55e;         /* Emergency Green (Acil Arama Yeşili) */
  --action-hover: #16a34a;
  --bg-light: #f8fafc;       /* Temiz Açık Gri */
  --bg-white: #ffffff;
  --text-dark: #0f172a;
  --text-muted: #64748b;     /* Slate 500 */
  --text-light: #f8fafc;
  --border-color: #e2e8f0;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-glow: 0 0 20px rgba(34, 197, 94, 0.4);

  /* Spacing & Borders */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* RESET & BASE */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1.25rem;
  color: var(--text-muted);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* CONTAINER */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* HEADER & NAVIGATION */
.header {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-light);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--bg-white);
}

.logo span {
  color: var(--secondary);
}

.nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 0.5rem 0;
  color: rgba(248, 250, 252, 0.85);
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--secondary);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--bg-white);
}

.nav-link:hover::after {
  width: 100%;
}

/* Dropdown Menu styling */
.nav-item {
  position: relative;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  width: 260px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  padding: 0.75rem 0;
  display: flex;
  flex-direction: column;
  z-index: 200;
}

.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-link {
  padding: 0.75rem 1.25rem;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-left: 3px solid transparent;
}

.dropdown-link:hover {
  background: var(--bg-light);
  border-left-color: var(--secondary);
  color: var(--secondary-hover);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.875rem 1.75rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  min-height: 48px; /* Thumb-friendly min height */
  box-shadow: var(--shadow-sm);
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background-color: var(--secondary);
  color: var(--primary);
}

.btn-primary:hover {
  background-color: var(--secondary-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--primary-light);
  color: var(--bg-white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background-color: var(--primary);
  color: var(--secondary);
  transform: translateY(-2px);
}

.btn-action {
  background-color: var(--action);
  color: var(--bg-white);
  box-shadow: var(--shadow-glow);
}

.btn-action:hover {
  background-color: var(--action-hover);
  transform: translateY(-2px);
}

/* HAMBURGER FOR MOBILE */
.menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 110;
}

.menu-btn span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--bg-white);
  margin: 5px 0;
  transition: var(--transition);
}

/* HERO SECTION */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--text-light);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
  border-bottom: 5px solid var(--secondary);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle, rgba(245,158,11,0.1) 0%, transparent 70%);
  z-index: 1;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 650px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--secondary);
  color: var(--secondary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.hero-badge span {
  width: 8px;
  height: 8px;
  background-color: var(--secondary);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 1.5s infinite;
}

.hero h1 {
  color: var(--bg-white);
  margin-bottom: 1.5rem;
}

.hero h1 span {
  color: var(--secondary);
}

.hero p {
  color: var(--text-light);
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-graphic {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-svg {
  width: 100%;
  max-width: 400px;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.4));
}

/* SECTION BLOCKS */
.section {
  padding: 5rem 0;
}

.section-dark {
  background-color: var(--primary);
  color: var(--text-light);
}

.section-dark h2, .section-dark h3 {
  color: var(--bg-white);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-subtitle {
  color: var(--secondary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  display: block;
}

.section-header p {
  font-size: 1.1rem;
}

/* SILO SECTION LINKS & link juice */
.silo-path {
  background: var(--bg-white);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
}

.silo-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--text-muted);
}

.silo-breadcrumbs a {
  color: var(--primary);
  font-weight: 500;
}

.silo-breadcrumbs a:hover {
  color: var(--secondary);
}

.silo-breadcrumbs span.separator {
  user-select: none;
}

/* CARDS */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary);
}

.card-icon {
  width: 64px;
  height: 64px;
  background-color: rgba(15, 23, 42, 0.05);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.card:hover .card-icon {
  background-color: var(--secondary);
  color: var(--primary);
  transform: scale(1.05);
  transition: var(--transition);
}

.card-icon svg {
  width: 32px;
  height: 32px;
}

.card h3 {
  margin-bottom: 1rem;
}

.card p {
  flex-grow: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary);
  margin-top: 1.5rem;
}

.card:hover .card-link {
  color: var(--secondary-hover);
}

/* DETAILS & TRUST STATS */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.stat-item {
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-light);
}

/* TRUSTPILOT / GOOGLE REVIEW SECTION */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.review-card {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.reviewer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.reviewer-avatar {
  width: 44px;
  height: 44px;
  background-color: var(--primary);
  border-radius: 50%;
  color: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.reviewer-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.stars {
  display: flex;
  gap: 0.1rem;
  color: #fbbf24; /* Google Yellow */
}

.stars svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.review-text {
  font-size: 0.95rem;
  font-style: italic;
  margin-bottom: 0;
}

/* FAQ SECTION (ACCORDION) */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  width: 100%;
  padding: 1.5rem;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--secondary);
  transition: var(--transition);
}

.faq-item.active .faq-question::after {
  content: '−';
  transform: rotate(180deg);
}

.faq-item.active {
  border-color: var(--secondary);
  box-shadow: var(--shadow-md);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 1.5rem;
  color: var(--text-muted);
}

.faq-item.active .faq-answer {
  max-height: 200px; /* arbitrary large value */
  padding-bottom: 1.5rem;
}

/* EMERGENCY CTA STICKY MOBILE BAR */
.sticky-emergency-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--primary);
  border-top: 3px solid var(--secondary);
  color: var(--bg-white);
  z-index: 999;
  box-shadow: 0 -10px 25px rgba(0,0,0,0.15);
  display: none; /* Handled via CSS/JS media query */
}

.sticky-bar-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  height: 64px;
}

.sticky-bar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 100%;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--bg-white);
}

.sticky-bar-btn.call {
  background-color: var(--action);
  color: var(--bg-white);
  font-size: 0.95rem;
  animation: pulse-border 2s infinite;
}

.sticky-bar-btn.whatsapp {
  background-color: #25d366; /* Official WhatsApp Color */
}

.sticky-bar-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* FOOTER */
.footer {
  background-color: var(--primary);
  color: rgba(248, 250, 252, 0.7);
  padding: 5rem 0 7rem; /* extra padding at bottom for mobile sticky bar */
  border-top: 4px solid var(--secondary);
  margin-top: auto;
}

.footer h3, .footer h4 {
  color: var(--bg-white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  color: rgba(248, 250, 252, 0.6);
  margin: 1rem 0 1.5rem;
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: var(--secondary);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

.footer-contact {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact li {
  display: flex;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.footer-contact svg {
  width: 20px;
  height: 20px;
  color: var(--secondary);
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
}

/* DISTRICTS PAGE SPECIFIC MAP AREA */
.district-map-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
}

.map-frame {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

/* CONTACT PAGE SPECIFICS */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
}

.contact-info-card {
  background: var(--bg-white);
  padding: 3rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
}

.contact-item-icon {
  width: 48px;
  height: 48px;
  background-color: rgba(245, 158, 11, 0.1);
  color: var(--secondary-hover);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-icon svg {
  width: 24px;
  height: 24px;
}

.contact-item h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.contact-item p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* ANIMATIONS */
@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(245, 158, 11, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
  }
}

@keyframes pulse-border {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-content {
    margin: 0 auto;
  }
  
  .hero-ctas {
    justify-content: center;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .district-map-container, .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header .container {
    height: 70px;
  }
  
  .menu-btn {
    display: block;
  }
  
  .nav {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--primary);
    flex-direction: column;
    padding: 3rem 1.5rem;
    gap: 1.5rem;
    transition: var(--transition);
    overflow-y: auto;
    z-index: 90;
  }
  
  .nav.active {
    left: 0;
  }
  
  .nav-item {
    width: 100%;
    text-align: center;
  }
  
  .nav-dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: transparent;
    border: none;
    box-shadow: none;
    width: 100%;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
  }
  
  .nav-item.active .nav-dropdown {
    max-height: 500px;
    margin-top: 0.5rem;
  }
  
  .nav-link {
    font-size: 1.1rem;
    display: block;
    width: 100%;
  }
  
  .dropdown-link {
    color: rgba(248, 250, 252, 0.8);
    justify-content: center;
    padding: 0.5rem;
  }
  
  .header-cta {
    display: none; /* We show it in sticky mobile bar */
  }
  
  .sticky-emergency-bar {
    display: block;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
