/* =====================================================
   ÇIFTOĞLU İNŞAAT - LIGHT/DARK CORPORATE HYBRID THEME
   ===================================================== */

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

/* --- CSS Variables --- */
:root {
  --primary-dark: #0f1c30;       /* Top bar, stats banner, footer background */
  --gold: #b38e36;               /* Corporate gold/bronze color */
  --gold-hover: #9c7b2c;
  --white: #ffffff;
  --light-bg: #f8f9fa;           /* Off-white background for services/sections */
  --dark-text: #1b2a4a;          /* Dark headings */
  --body-text: #5e6b80;          /* Soft body copy */
  --border-light: #eaeef3;
  --shadow: 0 10px 30px rgba(27, 42, 74, 0.05);
  --shadow-hover: 0 20px 40px rgba(27, 42, 74, 0.1);
  --radius: 4px;                 /* Clean corporate square/semi-rounded corners */
  --transition: all 0.3s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Montserrat', sans-serif;
  background: var(--white);
  color: var(--body-text);
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { border: none; cursor: pointer; font-family: inherit; background: none; }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--light-bg); }
::-webkit-scrollbar-thumb { background: var(--gold); }

/* =====================================================
   TOP BAR (Dark Navy Blue)
   ===================================================== */
.top-bar {
  background: var(--primary-dark);
  padding: 10px 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}
.top-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar-left { display: flex; gap: 24px; }
.top-bar-item { display: flex; align-items: center; gap: 8px; }
.top-bar-item a:hover { color: var(--gold); transition: var(--transition); }
.top-bar-right { display: flex; gap: 16px; }
.top-bar-right a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  transition: var(--transition);
}
.top-bar-right a:hover { color: var(--gold); }

/* =====================================================
   HEADER / NAVBAR (Clean White)
   ===================================================== */
.header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
  transition: var(--transition);
  width: 100%;
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 85px;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 12px; max-width: 80%; }
.logo-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--gold), #d4af37);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; font-weight: 800; color: var(--white);
  flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; overflow: hidden; }
.logo-name { font-size: 1.15rem; font-weight: 800; color: var(--primary-dark); line-height: 1.1; letter-spacing: -0.5px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo-sub { font-size: 0.65rem; color: var(--gold); letter-spacing: 2px; text-transform: uppercase; font-weight: 700; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Nav Menu */
.nav-menu { display: flex; align-items: center; gap: 8px; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 16px;
  color: var(--dark-text);
  font-size: 0.85rem; font-weight: 700;
  text-transform: uppercase;
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--gold); }

/* Dropdown */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--gold);
  min-width: 200px;
  padding: 8px 0;
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  z-index: 100;
}
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: block;
  padding: 10px 20px;
  font-size: 0.82rem;
  color: var(--body-text);
  font-weight: 600;
  transition: var(--transition);
}
.dropdown a:hover { color: var(--gold); background: var(--light-bg); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
  z-index: 1001;
  background: transparent;
  border: none;
  padding: 0;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--primary-dark);
  transition: var(--transition);
}

/* Hamburger active transformation */
.hamburger.active span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--white);
  z-index: 1000;
  padding: 100px 24px 40px;
  overflow-y: auto;
}
.mobile-menu.open {
  display: block;
}
.mobile-nav-link {
  display: block;
  padding: 16px 0;
  font-size: 1.1rem;
  color: var(--primary-dark);
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-light);
}
.mobile-close {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 1.8rem;
  color: var(--primary-dark);
  background: none;
  border: none;
  cursor: pointer;
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex; align-items: center;
  background: #f4f6f9;
  overflow: hidden;
  width: 100%;
}
.hero-bg {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.95) 30%, rgba(255,255,255,0.7) 60%, rgba(255,255,255,0.1) 100%);
  z-index: 1;
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 24px;
  width: 100%;
}
.hero-text { max-width: 650px; }
.hero-badge {
  display: inline-block;
  font-size: 0.8rem; color: var(--gold); font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 16px;
}
.hero-title {
  color: var(--primary-dark);
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  font-weight: 800; line-height: 1.25;
  margin-bottom: 24px;
  text-transform: uppercase;
  word-wrap: break-word;
}
.hero-title .gold { color: var(--gold); }
.hero-desc { font-size: 1rem; color: var(--body-text); line-height: 1.7; margin-bottom: 30px; }
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

/* Buttons */
.btn-primary {
  background: var(--gold);
  color: var(--white);
  font-weight: 700; font-size: 0.85rem;
  padding: 14px 28px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius);
  transition: var(--transition);
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { background: var(--gold-hover); }
.btn-secondary {
  background: transparent;
  color: var(--primary-dark);
  font-weight: 700; font-size: 0.85rem;
  padding: 14px 28px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 2px solid var(--primary-dark);
  border-radius: var(--radius);
  transition: var(--transition);
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-secondary:hover { background: var(--primary-dark); color: var(--white); }

/* =====================================================
   SECTION COMMON
   ===================================================== */
.section { padding: 80px 0; width: 100%; }
.section-alt { background: var(--light-bg); }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; width: 100%; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 48px; }
.section-badge {
  display: inline-block;
  font-size: 0.8rem; font-weight: 800;
  color: var(--gold); letter-spacing: 3px; text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  color: var(--primary-dark);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800; line-height: 1.3;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.section-desc { color: var(--body-text); font-size: 0.95rem; }

/* =====================================================
   SERVICES SECTION
   ===================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  width: 100%;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow);
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--gold);
}
.service-icon {
  width: 64px; height: 64px;
  background: rgba(179,142,54,0.08);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
  color: var(--gold);
  transition: var(--transition);
}
.service-card:hover .service-icon {
  background: var(--gold);
  color: var(--white);
}
.service-title {
  font-size: 1.15rem; font-weight: 700;
  color: var(--primary-dark); margin-bottom: 12px;
}
.service-desc { font-size: 0.88rem; color: var(--body-text); line-height: 1.6; margin-bottom: 20px; }
.service-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 700; color: var(--gold);
  text-transform: uppercase; letter-spacing: 1px;
}

/* =====================================================
   PROJECTS SECTION
   ===================================================== */
.projects-filter {
  display: flex; gap: 8px; justify-content: center;
  flex-wrap: wrap; margin-bottom: 32px;
}
.filter-btn {
  padding: 8px 18px;
  background: #f1f3f6;
  border: none;
  border-radius: var(--radius);
  color: var(--body-text);
  font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase;
  transition: var(--transition);
}
.filter-btn.active, .filter-btn:hover {
  background: var(--gold);
  color: var(--white);
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
}
.project-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.project-card img {
  width: 100%; height: 200px;
  object-fit: cover;
}
.project-overlay {
  padding: 16px;
  background: var(--white);
}
.project-cat {
  font-size: 0.7rem; font-weight: 700; color: var(--gold);
  text-transform: uppercase; letter-spacing: 1px; display: block; margin-bottom: 4px;
}
.project-name {
  font-size: 0.9rem; font-weight: 800; color: var(--primary-dark);
  text-transform: uppercase;
}

/* =====================================================
   STATS SECTION
   ===================================================== */
.stats-section {
  background: var(--primary-dark);
  padding: 60px 0;
  color: var(--white);
  width: 100%;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  text-align: center;
  width: 100%;
}
.stat-num {
  font-size: 2.8rem; font-weight: 800;
  color: var(--white); line-height: 1.1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 0.8rem; color: rgba(255,255,255,0.75);
  font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
}

/* =====================================================
   ABOUT SECTION
   ===================================================== */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  width: 100%;
}
.about-images {
  position: relative;
  width: 100%;
}
.about-img-main {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  width: 100%;
}
.about-badge-float {
  position: absolute; bottom: 15px; left: 15px;
  background: var(--white);
  padding: 12px 18px;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  display: flex; align-items: center; gap: 10px;
  border-left: 4px solid var(--gold);
}
.about-badge-num { font-size: 1.3rem; font-weight: 800; color: var(--gold); }
.about-badge-text { font-size: 0.7rem; font-weight: 700; color: var(--primary-dark); text-transform: uppercase; }

.about-text .section-header { text-align: left; margin-bottom: 20px; }
.about-list { margin: 20px 0; display: flex; flex-direction: column; gap: 10px; }
.about-list-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.88rem; color: var(--body-text); font-weight: 500;
}
.about-list-item::before {
  content: '✓';
  color: var(--gold); font-weight: bold;
}

/* =====================================================
   ILCE DISTRICTS
   ===================================================== */
.ilce-districts {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  width: 100%;
}
.ilce-districts a {
  display: block;
  text-align: center;
  padding: 12px 8px;
  background: var(--white);
  border: 1px solid var(--border-light);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--body-text);
  transition: var(--transition);
}
.ilce-districts a.active, .ilce-districts a:hover {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

/* =====================================================
   CTA BANNER
   ===================================================== */
.cta-section {
  background: var(--primary-dark);
  padding: 50px 0;
  color: var(--white);
  width: 100%;
}
.cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  flex-wrap: wrap;
}
.cta-text h2 {
  font-size: 1.6rem; font-weight: 800; text-transform: uppercase;
  margin-bottom: 6px;
}
.cta-text p { color: rgba(255,255,255,0.7); }
.btn-cta-gold {
  background: var(--gold); color: var(--white);
  font-weight: 700; padding: 12px 24px;
  text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  background: #091220;
  color: rgba(255,255,255,0.7);
  padding: 60px 0 24px;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  width: 100%;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 32px;
  margin-bottom: 40px;
}
.footer-brand .logo-name { color: var(--white); }
.footer-desc { margin-top: 12px; line-height: 1.7; }
.footer-col-title {
  font-size: 0.85rem; font-weight: 700; color: var(--white);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px;
}
.footer-links a { display: block; margin-bottom: 10px; transition: var(--transition); }
.footer-links a:hover { color: var(--gold); }
.footer-contact-item { margin-bottom: 12px; }

/* =====================================================
   WHATSAPP & LIGHTBOX
   ===================================================== */
.whatsapp-btn {
  position: fixed; bottom: 20px; right: 20px;
  width: 50px; height: 50px; background: #25d366;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  z-index: 9999; box-shadow: 0 4px 12px rgba(37,211,102,0.3);
}
.whatsapp-btn svg { width: 26px; height: 26px; fill: white; }
.whatsapp-tooltip { display: none; }

/* =====================================================
   RESPONSIVE MEDIA QUERIES (FLAWLESS MOBILE ALIGNMENT)
   ===================================================== */

@media (max-width: 992px) {
  /* TOP BAR HIDE COMPLETELY ON TABLET/MOBILE TO PREVENT OVERFLOW */
  .top-bar {
    display: none !important;
  }
  
  .header {
    height: 70px;
  }
  .nav-inner {
    height: 70px;
    padding: 0 16px;
  }
  
  .nav-menu {
    display: none !important; /* Hide desktop nav menu completely */
  }
  .hamburger {
    display: flex !important; /* Show mobile hamburger icon */
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .ilce-districts {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  /* HERO MOBILE ADJUSTMENTS */
  .hero {
    min-height: auto;
    padding: 40px 0;
  }
  .hero-content {
    padding: 40px 16px;
  }
  .hero-title {
    font-size: 1.8rem;
    line-height: 1.3;
    margin-bottom: 16px;
  }
  .hero-desc {
    font-size: 0.9rem;
    margin-bottom: 24px;
  }
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  .hero-buttons a {
    width: 100%;
    justify-content: center;
  }
  
  /* SECTIONS MOBILE */
  .section {
    padding: 50px 0;
  }
  .container {
    padding: 0 16px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  
  .about-badge-float {
    position: relative;
    bottom: 0; left: 0;
    margin-top: 16px;
    width: 100%;
    box-shadow: none;
    border-left: 4px solid var(--gold);
    background: var(--light-bg);
  }
  
  .ilce-districts {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .cta-inner {
    flex-direction: column;
    text-align: center;
  }
  .btn-cta-gold {
    width: 100%;
    justify-content: center;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .logo-name {
    font-size: 1rem;
  }
  .logo-sub {
    font-size: 0.6rem;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .ilce-districts {
    grid-template-columns: 1fr;
  }
}
