/* İpek Vinç (ipekvinc.com) — Optimize Edilmiş Modern Frontend CSS */
:root {
  --primary: #e31e24;
  --primary-hover: #c4151b;
  --dark: #141414;
  --dark-light: #1e1e1e;
  --gray-900: #0f172a;
  --gray-800: #1e293b;
  --gray-600: #334155;
  --gray-400: #cbd5e1;
  --gray-100: #f1f5f9;
  --gray-50: #f8fafc;
  --white: #ffffff;
  --whatsapp: #25d366;
  --whatsapp-hover: #1eb956;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --radius: 8px;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; max-width: 100vw; width: 100%; }
body { font-family: var(--font-sans); color: var(--gray-800); background-color: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; max-width: 100vw; width: 100%; position: relative; }
img, picture, svg, video { max-width: 100%; height: auto; }

/* Structural Responsive Grids (Mobile Overflow Prevention) */
.two-col-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.three-col-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.content-sidebar-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: start; }

@media (max-width: 992px) {
  .two-col-grid,
  .three-col-grid,
  .content-sidebar-grid {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }
}

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; width: 100%; }
.container-fluid { width: 100%; padding: 0 20px; }

/* Typography */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); color: var(--dark); font-weight: 800; line-height: 1.25; margin-bottom: 1rem; }
h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); }
p { margin-bottom: 1rem; color: var(--gray-600); }
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-hover); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 26px; font-size: 1rem; font-weight: 700; border-radius: var(--radius); border: none; cursor: pointer; transition: all 0.25s ease; text-decoration: none; }
.btn-primary { background-color: var(--primary); color: var(--white) !important; }
.btn-primary:hover { background-color: var(--primary-hover); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-dark { background-color: var(--dark); color: var(--white) !important; }
.btn-dark:hover { background-color: var(--dark-light); transform: translateY(-2px); }
.btn-outline { background-color: transparent; border: 2px solid var(--white); color: var(--white) !important; }
.btn-outline:hover { background-color: var(--white); color: var(--dark) !important; }
.btn-whatsapp { background-color: var(--whatsapp); color: #0f172a !important; font-weight: 800; }
.btn-whatsapp:hover { background-color: var(--whatsapp-hover); color: #000000 !important; }
.btn-sm { padding: 8px 16px; font-size: 0.875rem; }
.btn-lg { padding: 16px 36px; font-size: 1.125rem; }

/* Header & Navbar */
.top-bar { background-color: var(--dark); color: var(--gray-400); font-size: 0.875rem; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.top-bar-content { display: flex; justify-content: space-between; align-items: center; }
.top-bar-left, .top-bar-right { display: flex; align-items: center; gap: 20px; }
.top-bar a { color: var(--gray-400); }
.top-bar a:hover { color: var(--white); }

.navbar { background-color: var(--white); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 1000; padding: 14px 0; }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.brand-logo img { height: 58px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 24px; list-style: none; }
.nav-links a { font-weight: 700; color: var(--dark); font-size: 0.95rem; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.mobile-nav-toggle { display: none; background: none; border: none; font-size: 1.75rem; color: var(--dark); cursor: pointer; }

/* Hero Section */
.hero { position: relative; min-height: 580px; display: flex; align-items: center; background-image: url('/assets/img/hero-banner.webp'); background-size: cover; background-position: center; color: var(--white); padding: 80px 0; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,23,42,0.92) 0%, rgba(15,23,42,0.7) 60%, rgba(15,23,42,0.4) 100%); }
.hero-content { position: relative; z-index: 2; max-width: 720px; }
.hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero p { color: #cbd5e1; font-size: 1.2rem; margin-bottom: 2rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 2rem; }
@media (max-width: 768px) {
  .hero { background-image: url('/assets/img/hero-banner-mobile.webp') !important; min-height: 480px; padding: 50px 0; }
}
.badge { background: rgba(255,255,255,0.12); backdrop-filter: blur(8px); padding: 6px 14px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; color: #f1f5f9; border: 1px solid rgba(255,255,255,0.18); }

/* Quick Quote Floating Bar */
.quick-stats { background-color: var(--dark); color: var(--white); padding: 30px 0; border-bottom: 4px solid var(--primary); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-item h3 { font-size: 2.25rem; color: var(--primary); margin-bottom: 4px; }
.stat-item p { font-size: 0.9rem; color: var(--gray-400); margin: 0; }

/* Services Section */
.section { padding: 80px 0; }
.section-gray { background-color: var(--gray-50); }
.section-header { text-align: center; max-width: 680px; margin: 0 auto 50px; }
.section-tag { color: #c4151b; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; font-size: 0.85rem; display: block; margin-bottom: 8px; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; }
.service-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: all 0.3s ease; border: 1px solid #e2e8f0; display: flex; flex-direction: column; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.service-img-wrapper { position: relative; height: 230px; overflow: hidden; }
.service-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.service-card:hover .service-img-wrapper img { transform: scale(1.06); }
.service-badge { position: absolute; top: 14px; right: 14px; background: var(--primary); color: var(--white); font-size: 0.8rem; font-weight: 700; padding: 4px 10px; border-radius: 4px; }
.service-body { padding: 24px; flex-grow: 1; display: flex; flex-direction: column; }
.service-body h3 { font-size: 1.35rem; margin-bottom: 10px; }
.service-body p { font-size: 0.95rem; flex-grow: 1; }
.service-meta { display: flex; gap: 15px; font-size: 0.85rem; color: var(--gray-600); margin: 15px 0; padding-top: 15px; border-top: 1px solid #f1f5f9; }

/* Location Hub Cards */
.districts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-top: 30px; }
.district-pill { display: flex; align-items: center; justify-content: space-between; background: var(--white); padding: 12px 14px; border-radius: var(--radius); border: 1px solid #e2e8f0; font-weight: 700; color: var(--dark); transition: all 0.2s; box-shadow: 0 1px 2px rgba(0,0,0,0.04); font-size: 0.9rem; }
.district-pill:hover { border-color: var(--primary); background: var(--primary); color: var(--white); transform: translateY(-2px); }

/* FAQ Accordion / GEO Blocks */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.faq-item { background: var(--white); border: 1px solid #e2e8f0; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.faq-item h4 { font-size: 1.15rem; color: var(--dark); margin-bottom: 10px; display: flex; align-items: flex-start; gap: 10px; }
.faq-item h4::before { content: "Q."; color: var(--primary); font-weight: 900; }
.faq-item p { margin: 0; font-size: 0.95rem; line-height: 1.6; }

/* Form Styles */
.form-card { background: var(--white); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow-lg); border: 1px solid #e2e8f0; }
@media (max-width: 768px) {
  .form-card { padding: 22px 16px !important; }
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 8px; color: var(--dark); }
.form-control { width: 100%; padding: 12px 16px; font-size: 1rem; border: 1px solid #cbd5e1; border-radius: 6px; font-family: inherit; transition: border-color 0.2s; }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(227,30,36,0.15); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* Footer */
.footer { background-color: var(--dark); color: #cbd5e1; padding: 70px 0 20px; font-size: 0.95rem; }
.footer h4 { color: var(--white); font-size: 1.15rem; margin-bottom: 20px; position: relative; padding-bottom: 10px; }
.footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px; background-color: var(--primary); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 50px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: #cbd5e1; }
.footer-links a:hover { color: var(--white); padding-left: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 25px; text-align: center; font-size: 0.875rem; color: #cbd5e1; }
.footer-signature a { color: #cbd5e1; font-weight: 600; }
.footer-signature a:hover { color: var(--primary); }

/* Breadcrumb */
.breadcrumb-bar { background: var(--gray-50); padding: 14px 0; border-bottom: 1px solid #e2e8f0; font-size: 0.875rem; }
.breadcrumb-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; align-items: center; }
.breadcrumb-list li+li::before { content: "›"; margin-right: 8px; color: var(--gray-400); }
.breadcrumb-list a { color: var(--gray-600); }
.breadcrumb-list span { color: var(--dark); font-weight: 700; }

/* Mobile Bottom Fixed Action Bar */
.mobile-bottom-bar { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: var(--dark); z-index: 9999; box-shadow: 0 -4px 15px rgba(0,0,0,0.25); padding: 10px 14px; gap: 10px; }
.mobile-bottom-bar a { flex: 1; padding: 14px; font-size: 1rem; font-weight: 800; text-align: center; border-radius: 6px; display: flex; align-items: center; justify-content: center; gap: 8px; }

/* Responsive Media Queries */
@media (max-width: 992px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .top-bar { display: none; }
  .mobile-nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 20px; box-shadow: var(--shadow-lg); gap: 16px; border-top: 1px solid #e2e8f0; }
  .nav-links.open { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .mobile-bottom-bar { display: flex; }
  body { padding-bottom: 70px; } /* Prevent footer hide by bar */
}

/* GEO Entity Box (AI & Search Engine Summary Block) */
.geo-entity-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-left: 5px solid var(--primary);
  border-radius: var(--radius);
  padding: 24px;
  margin: 30px 0;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}
.geo-entity-box h4 {
  color: var(--dark);
  font-size: 1.15rem;
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.geo-entity-box p {
  margin: 0 0 8px 0;
  font-size: 0.95rem;
  color: var(--gray-800);
  line-height: 1.6;
}
.geo-entity-box p:last-child {
  margin-bottom: 0;
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0f172a;
  color: #fff;
  border-top: 2px solid var(--primary);
  padding: 16px 0;
  z-index: 10000;
  box-shadow: 0 -10px 25px rgba(0,0,0,0.3);
  font-size: 0.9rem;
}
.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.cookie-text {
  flex: 1;
  min-width: 280px;
  line-height: 1.5;
  color: #cbd5e1;
}
.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* Calculator Grid Responsive */
@media (max-width: 768px) {
  .calculator-grid {
    grid-template-columns: 1fr !important;
  }
  .cookie-content {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-actions {
    display: flex;
  }
  .cookie-actions button {
    flex: 1;
  }
}
