/* ─── Variables ─── */
:root {
  --primary: #1C1C1C;
  --primary-light: #2D2D2D;
  --accent: #F5A000;
  --accent-dark: #D4880A;
  --accent-light: #FFF3D4;
  --grey: #6B7280;
  --grey-light: #F3F4F6;
  --white: #FFFFFF;
  --text: #1F2937;
  --text-muted: #6B7280;
  --border: #E5E7EB;
  --shadow: 0 4px 24px rgba(0,0,0,.08);
  --radius: 12px;
}
* { box-sizing: border-box; }
body { font-family: 'Inter', Arial, sans-serif; color: var(--text); overflow-x: hidden; background: #fff; }
h1,h2,h3,h4,h5,h6 { font-family: 'Poppins', Arial, sans-serif; font-weight: 700; }
a { transition: .2s; }
img { max-width: 100%; }

/* ════════════════════════════════════════
   NAVBAR
════════════════════════════════════════ */
#mainNavbar {
  background: rgba(28,28,28,.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background .3s, padding .3s;
  padding: 12px 0;
}
#mainNavbar.scrolled {
  background: var(--primary) !important;
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
  padding: 8px 0;
}
.navbar-brand-wrap { text-decoration: none; display: flex; align-items: center; }
.nav-link { color: rgba(255,255,255,.9) !important; font-weight: 500; font-size: 14px; padding: 8px 12px !important; }
.nav-link:hover, .nav-link.active { color: var(--accent) !important; }
.navbar-toggler { border: 1px solid rgba(255,255,255,.3); padding: 5px 8px; }
.navbar-toggler-icon { filter: invert(1); }
.btn-nav-call {
  background: var(--accent);
  color: var(--primary) !important;
  border-radius: 8px;
  padding: 7px 14px !important;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
}
.btn-nav-call:hover { background: var(--accent-dark); }

/* ── Mobile navbar bg (so links are readable when expanded) ── */
@media (max-width: 991px) {
  #mainNavbar { background: var(--primary) !important; }
  .navbar-collapse { border-top: 1px solid rgba(255,255,255,.1); margin-top: 8px; padding-top: 8px; }
  .nav-link { padding: 10px 4px !important; border-bottom: 1px solid rgba(255,255,255,.06); }
}

/* ════════════════════════════════════════
   MEGA MENU — pure CSS hover, desktop only
════════════════════════════════════════ */
.nav-mega { position: static; }
.nav-mega-toggle { cursor: pointer; }
.mega-panel {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  top: 56px; /* navbar height */
  background: #fff;
  border-top: 3px solid var(--accent);
  box-shadow: 0 8px 40px rgba(0,0,0,.14);
  z-index: 999;
}
.nav-mega:hover .mega-panel { display: block; }
/* Keep panel visible while hovering over it */
.mega-panel:hover { display: block; }
.mega-col-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent-dark);
  margin-bottom: 8px;
}
.mega-link {
  display: block;
  font-size: 13px;
  color: var(--text);
  padding: 3px 0;
  text-decoration: none;
  line-height: 1.5;
  transition: .15s;
}
.mega-link:hover { color: var(--accent-dark); padding-left: 4px; }

/* ════════════════════════════════════════
   HERO SLIDER
════════════════════════════════════════ */
.hero-slider {
  position: relative;
  width: 100%;
  height: 88vh;
  min-height: 540px;
  overflow: hidden;
}
/* All carousel containers inherit the hero height */
.hero-slider .carousel,
.hero-slider .carousel-inner { height: 100%; }
/* Each active slide fills the full hero height */
.hero-slider .carousel-item { height: 100%; }

.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center right;
  transition: transform 8s ease;
}
.hero-slider .carousel-item.active .slide-bg { transform: scale(1.03); }
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
    rgba(8,11,18,.92) 0%,
    rgba(8,11,18,.78) 45%,
    rgba(8,11,18,.35) 100%);
}
.slide-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  padding-top: 75px;
  padding-bottom: 90px; /* space for hero-tags */
}
.slide-title {
  font-size: clamp(26px, 4.5vw, 52px);
  font-weight: 800;
  color: #fff;
  line-height: 1.12;
  letter-spacing: -.025em;
  margin-bottom: 16px;
}
.slide-subtitle {
  font-size: 16px;
  color: rgba(255,255,255,.78);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 28px;
}

/* ── Hero action buttons ── */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.ha-phone, .ha-whatsapp, .ha-quote {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 10px;
  font-weight: 700; font-size: 15px; text-decoration: none;
  transition: .2s; white-space: nowrap;
}
.ha-phone   { background: var(--accent); color: var(--primary); }
.ha-phone:hover { background: var(--accent-dark); color: var(--primary); transform: translateY(-2px); }
.ha-whatsapp { background: #25D366; color: #fff; }
.ha-whatsapp:hover { background: #1cb85b; color: #fff; transform: translateY(-2px); }
.ha-quote   { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.35); }
.ha-quote:hover { background: #fff; color: var(--primary); border-color: #fff; }

/* ── Hero service tags (bottom strip) ── */
.hero-tags {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 10;
  background: rgba(5,8,18,.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(245,160,0,.18);
  padding: 11px 0;
}
.ht-inner {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
}
.ht-tag {
  display: inline-flex; align-items: center; gap: 5px;
  color: rgba(255,255,255,.78); text-decoration: none;
  font-size: 12px; font-weight: 600;
  padding: 5px 12px; border-radius: 20px;
  border: 1px solid rgba(255,255,255,.12);
  transition: .2s;
}
.ht-tag:hover { background: var(--accent); border-color: var(--accent); color: var(--primary); }
.ht-tag i { font-size: 9px; opacity: .6; }
.ht-all { border-color: rgba(245,160,0,.4); color: var(--accent); }
.ht-all:hover { background: var(--accent); color: var(--primary); }

/* Carousel indicators */
.carousel-indicators { bottom: 60px; z-index: 5; }
.carousel-indicators button {
  width: 24px; height: 3px; border-radius: 2px;
  border: none; background: rgba(255,255,255,.35); margin: 0 3px;
}
.carousel-indicators button.active { background: var(--accent); width: 36px; }
.carousel-control-prev, .carousel-control-next { z-index: 5; }

/* ════════════════════════════════════════
   STATS
════════════════════════════════════════ */
.stats-section { background: var(--primary); padding: 44px 0; }
.stat-item { text-align: center; padding: 12px 8px; }
.stat-number { font-size: 40px; font-weight: 800; color: var(--accent); line-height: 1; }
.stat-label { font-size: 12px; color: rgba(255,255,255,.55); margin-top: 5px; font-weight: 500; }

/* ════════════════════════════════════════
   SECTIONS
════════════════════════════════════════ */
.section { padding: 68px 0; }
.section-alt { background: var(--grey-light); }
.section-header { margin-bottom: 40px; }
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--accent-light); color: var(--accent-dark);
  font-size: 11px; font-weight: 700; padding: 5px 12px;
  border-radius: 6px; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 10px;
}
.section-title { font-size: clamp(22px, 3.5vw, 34px); font-weight: 800; color: var(--primary); margin-bottom: 10px; letter-spacing: -.02em; }
.section-subtitle { font-size: 15px; color: var(--text-muted); max-width: 540px; line-height: 1.65; }
.title-bar { width: 40px; height: 4px; background: var(--accent); border-radius: 2px; margin: 10px 0; }
.title-line { width: 40px; height: 4px; background: var(--accent); border-radius: 2px; margin: 6px 0 20px; }

/* ════════════════════════════════════════
   SERVICE CARDS
════════════════════════════════════════ */
.service-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; transition: .3s; height: 100%; text-decoration: none; display: block;
}
.service-card:hover { border-color: var(--accent); box-shadow: 0 6px 24px rgba(245,160,0,.14); transform: translateY(-3px); }
.service-icon, .icon-wrap {
  width: 48px; height: 48px; background: var(--accent-light); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; color: var(--accent-dark); margin-bottom: 14px;
}
.icon-wrap i { font-size: 19px; color: var(--accent-dark); }
.service-card h3, .card-title { font-size: 15px; font-weight: 700; color: var(--primary); margin-bottom: 7px; }
.service-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 12px; }
.service-link { font-size: 13px; font-weight: 600; color: var(--accent-dark); text-decoration: none; display: inline-flex; align-items: center; gap: 5px; }
.service-link:hover { gap: 8px; }

/* ════════════════════════════════════════
   PROJECT CARDS
════════════════════════════════════════ */
.project-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); transition: .3s; background: #fff; }
.project-card:hover { transform: translateY(-3px); box-shadow: 0 10px 32px rgba(0,0,0,.1); }
.project-card img { width: 100%; height: 180px; object-fit: cover; transition: .4s; display: block; }
.project-card:hover img { transform: scale(1.05); }
.project-card .card-body { padding: 16px; }
.badge-city { background: var(--accent); color: var(--primary); font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: 5px; }
.badge-cat { background: var(--grey-light); color: var(--text); font-size: 10px; font-weight: 600; padding: 3px 9px; border-radius: 5px; }

/* ════════════════════════════════════════
   BLOG CARDS
════════════════════════════════════════ */
.blog-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: .3s; height: 100%; background: #fff; text-decoration: none; display: block; }
.blog-card:hover { border-color: var(--accent); box-shadow: 0 6px 24px rgba(245,160,0,.12); transform: translateY(-3px); }
.blog-card .card-img-top, .blog-card .card-img { height: 170px; object-fit: cover; width: 100%; display: block; }
.blog-card .card-body { padding: 16px; }
.blog-card h3 { font-size: 14px; color: var(--primary); margin: 7px 0 5px; font-weight: 700; line-height: 1.4; }
.blog-card p { font-size: 12px; color: var(--text-muted); line-height: 1.6; }

/* ════════════════════════════════════════
   REVIEWS
════════════════════════════════════════ */
.reviews-section { background: var(--primary); padding: 68px 0; }
.google-rating-box { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 22px; text-align: center; }
.g-score { font-size: 52px; font-weight: 800; color: var(--accent); line-height: 1; }
.g-stars { color: #FFC107; font-size: 18px; margin: 6px 0; }
.g-count { font-size: 12px; color: rgba(255,255,255,.5); }
.review-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 18px; color: #fff; height: 100%; }
.review-stars { color: #FFC107; font-size: 13px; margin-bottom: 8px; }
.review-text { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,.8); margin-bottom: 14px; }
.review-author { display: flex; align-items: center; gap: 10px; }
.review-avatar-icon { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--primary); font-size: 14px; flex-shrink: 0; object-fit: cover; }
.review-name { font-weight: 700; font-size: 13px; color: #fff; }
.review-source { font-size: 11px; color: rgba(255,255,255,.4); display: flex; align-items: center; gap: 3px; margin-top: 2px; }
.btn-google-maps { background: #fff; color: var(--primary); font-weight: 700; padding: 9px 18px; border-radius: 8px; text-decoration: none; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; transition: .2s; }
.btn-google-maps:hover { background: var(--accent); color: var(--primary); }

/* ════════════════════════════════════════
   BUTTONS
════════════════════════════════════════ */
.btn-accent { background: var(--accent); color: var(--primary) !important; padding: 11px 24px; border-radius: 10px; font-weight: 700; border: none; text-decoration: none; display: inline-flex; align-items: center; gap: 7px; transition: .25s; }
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-submit { background: var(--accent); color: var(--primary); padding: 13px 24px; border-radius: 10px; font-weight: 700; font-size: 15px; border: none; transition: .25s; width: 100%; cursor: pointer; }
.btn-submit:hover { background: var(--accent-dark); }
.btn-cta-dark { background: var(--primary); color: #fff; padding: 13px 26px; border-radius: 10px; font-weight: 700; border: none; text-decoration: none; display: inline-flex; align-items: center; gap: 7px; transition: .25s; }
.btn-cta-dark:hover { background: #333; color: #fff; transform: translateY(-2px); }
.btn-cta-outline { background: transparent; color: var(--primary); padding: 13px 26px; border-radius: 10px; font-weight: 700; border: 2px solid var(--primary); text-decoration: none; display: inline-flex; align-items: center; gap: 7px; transition: .25s; }
.btn-cta-outline:hover { background: var(--primary); color: #fff; }

/* ════════════════════════════════════════
   PAGE HERO
════════════════════════════════════════ */
/* padding-top accounts for the fixed navbar (~60px) + breathing room */
.page-hero { background: var(--primary); padding: 100px 0 40px; color: #fff; }
.page-hero h1 { font-size: clamp(20px, 3.5vw, 34px); font-weight: 800; margin-bottom: 10px; }
.breadcrumb { margin-bottom: 0; }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.3); }
.breadcrumb-item a { color: rgba(255,255,255,.6); text-decoration: none; }
.breadcrumb-item a:hover { color: var(--accent); }
.breadcrumb-item.active { color: rgba(255,255,255,.9); }

/* ════════════════════════════════════════
   FORMS
════════════════════════════════════════ */
.form-control, .form-select { border: 2px solid var(--border); padding: 10px 14px; border-radius: 10px; font-size: 14px; transition: .2s; background: #fff; }
.form-control:focus, .form-select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(245,160,0,.1); outline: none; }
.form-label { font-size: 13px; font-weight: 600; color: var(--primary); margin-bottom: 5px; }

/* ════════════════════════════════════════
   WHY US / FEATURES
════════════════════════════════════════ */
.feature-row { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.feature-icon-sm { width: 42px; height: 42px; background: var(--accent-light); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--accent-dark); flex-shrink: 0; }

/* ════════════════════════════════════════
   CTA SECTION
════════════════════════════════════════ */
.cta-section { background: var(--accent); padding: 52px 0; }
.cta-section h2 { font-size: clamp(20px, 3.5vw, 32px); font-weight: 800; color: var(--primary); }
.cta-section p { font-size: 15px; color: rgba(28,28,28,.7); }

/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
.footer { background: var(--primary); color: rgba(255,255,255,.6); padding: 52px 0 18px; }
.footer h5 { color: #fff; font-weight: 700; margin-bottom: 14px; font-size: 13px; letter-spacing: .03em; text-transform: uppercase; }
.footer a { color: rgba(255,255,255,.5); text-decoration: none; transition: .2s; display: block; margin-bottom: 6px; font-size: 13px; }
.footer a:hover { color: var(--accent); }
.footer p { font-size: 13px; line-height: 1.7; }
.footer-divider { border-top: 1px solid rgba(255,255,255,.07); margin-top: 32px; padding-top: 16px; font-size: 12px; }

/* ════════════════════════════════════════
   WHATSAPP FLOAT (desktop)
════════════════════════════════════════ */
.whatsapp-float { position: fixed; bottom: 24px; left: 24px; z-index: 9999; width: 54px; height: 54px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; color: #fff; box-shadow: 0 4px 16px rgba(37,211,102,.45); text-decoration: none; animation: wpulse 2.5s infinite; }
/* Google reCAPTCHA v3 rozeti sağ altta kalır; WhatsApp butonuyla çakışmaması için WhatsApp sola alındı. */
.whatsapp-float:hover { color: #fff; transform: scale(1.08); }
@keyframes wpulse { 0%,100% { box-shadow: 0 4px 16px rgba(37,211,102,.45) } 50% { box-shadow: 0 4px 32px rgba(37,211,102,.7) } }

/* ════════════════════════════════════════
   MOBILE BOTTOM BAR
════════════════════════════════════════ */
.mobile-bottom-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 9998; background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -3px 16px rgba(0,0,0,.1);
  display: none;
  gap: 6px;
  padding: 8px 10px;
  /* Respect iOS safe area */
  padding-bottom: max(8px, env(safe-area-inset-bottom));
}
.mobile-bottom-bar .mbb-btn {
  flex: 1; display: flex; align-items: center; justify-content: center;
  gap: 5px; padding: 11px 4px; border-radius: 10px; font-weight: 700;
  font-size: 12px; text-decoration: none; border: none; cursor: pointer;
  line-height: 1;
}
.mbb-whatsapp { background: #25D366; color: #fff !important; }
.mbb-call { background: var(--accent); color: var(--primary) !important; }
.mbb-quote { background: var(--primary); color: #fff !important; }

/* ════════════════════════════════════════
   PAGINATION
════════════════════════════════════════ */
.pagination { gap: 4px; flex-wrap: wrap; }
.page-item .page-link { color: var(--primary); border: 1px solid var(--border); border-radius: 8px !important; padding: 7px 13px; font-size: 14px; font-weight: 600; transition: .2s; }
.page-item .page-link:hover { background: var(--accent-light); border-color: var(--accent); color: var(--accent-dark); }
.page-item.active .page-link { background: var(--accent); border-color: var(--accent); color: var(--primary); box-shadow: none; }
.page-item.disabled .page-link { color: #ccc; background: #f9f9f9; }

/* ════════════════════════════════════════
   SERVICE AREA PAGES
════════════════════════════════════════ */
.area-tag { display: inline-block; background: var(--grey-light); color: var(--text); border: 1px solid var(--border); padding: 5px 12px; border-radius: 8px; font-size: 12px; font-weight: 600; text-decoration: none; transition: .15s; }
.area-tag:hover { background: var(--accent-light); border-color: var(--accent); color: var(--accent-dark); }
.prose h2 { font-size: 20px; font-weight: 700; color: var(--primary); margin: 22px 0 10px; padding-bottom: 7px; border-bottom: 2px solid var(--accent-light); }
.prose h3 { font-size: 17px; font-weight: 700; color: var(--primary); margin: 16px 0 8px; }
.prose p { line-height: 1.8; margin-bottom: 13px; font-size: 15px; }
.prose ul { padding-left: 20px; margin-bottom: 13px; }
.prose ul li { margin-bottom: 5px; line-height: 1.7; font-size: 15px; }
.prose strong { color: var(--primary); }

/* ════════════════════════════════════════
   SIDEBAR WIDGETS
════════════════════════════════════════ */
.sidebar-widget { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.sidebar-widget h5 { font-size: 14px; font-weight: 700; margin-bottom: 12px; color: var(--primary); padding-bottom: 8px; border-bottom: 2px solid var(--accent); display: inline-block; }
.sidebar-cta { background: var(--primary); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }

/* ════════════════════════════════════════
   RESPONSIVE — TABLET (≤991px)
════════════════════════════════════════ */
@media (max-width: 991px) {
  /* Show mobile bottom bar */
  .mobile-bottom-bar { display: flex; }
  body { padding-bottom: 70px; }

  /* Hide desktop WhatsApp float */
  .whatsapp-float { display: none !important; }

  /* Hero slider: viewport-relative height */
  .hero-slider { height: 74vh; min-height: 420px; }
  .slide-content { padding-top: 68px; padding-bottom: 80px; }
  .slide-title { font-size: clamp(20px, 5.5vw, 34px); margin-bottom: 10px; }
  .slide-subtitle { font-size: 13px; margin-bottom: 16px; max-width: 100%; }
  .ha-phone, .ha-whatsapp, .ha-quote { padding: 11px 16px; font-size: 13px; }
  .hero-tags { padding: 8px 0; }
  .ht-tag { font-size: 11px; padding: 4px 10px; }

  /* Page hero mobile — smaller top pad */
  .page-hero { padding: 88px 0 32px; }

  /* Sections */
  .section { padding: 48px 0; }
  .section-header { margin-bottom: 28px; }

  /* Stats tighter */
  .stat-number { font-size: 32px; }
  .stat-item { padding: 10px 4px; }
}

/* ════════════════════════════════════════
   RESPONSIVE — MOBILE (≤575px)
════════════════════════════════════════ */
@media (max-width: 575px) {
  /* Slider: shorter on small phones */
  .hero-slider { height: 68vh; min-height: 380px; }
  .slide-title { font-size: 20px; }
  .slide-subtitle { font-size: 12px; margin-bottom: 14px; }
  .hero-actions { gap: 7px; }
  .ha-phone, .ha-whatsapp { flex: 1; justify-content: center; }
  .ha-quote { display: none; }
  .hero-tags .ht-inner { gap: 4px; }
  .ht-tag { font-size: 10px; padding: 4px 8px; }
  /* Hide some tags on very small screens */
  .ht-tag:nth-child(n+6) { display: none; }

  /* Sections */
  .section { padding: 36px 0; }
  .section-title { font-size: 20px; }

  /* Stats 2×2 */
  .stat-number { font-size: 28px; }
  .stat-label { font-size: 11px; }

  /* Cards */
  .service-card { padding: 14px; }
  .service-icon, .icon-wrap { width: 40px; height: 40px; font-size: 16px; margin-bottom: 10px; }
  .service-card h3 { font-size: 13px; }
  .service-link { font-size: 12px; }
  .project-card img { height: 150px; }
  .project-card .card-body { padding: 12px; }

  /* CTA section */
  .cta-section { padding: 36px 0; }
  .btn-cta-dark, .btn-cta-outline { width: 100%; justify-content: center; }

  /* Footer */
  .footer { padding: 36px 0 14px; }

  /* Bottom bar icons only on very small */
  .mbb-btn { font-size: 11px; padding: 10px 2px; }
}
