/* Fontlar: Helvetica Now Display veya Inter */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  margin: 0;
  background: #fff;
  color: #111;
  line-height: 1.5;
}
a { text-decoration: none; color: inherit; }

/* Menü */
.menu-bar {
  width: min(calc(100vw - 48px), 1697px);
  max-width: 1697px;
  min-width: 220px;
  height: 64px;
  margin: 26px auto 0 auto;
  border-radius: 32px;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 3px 18px 0 rgba(0,0,0,0.05);
  border: 1px solid rgba(156,156,156,0.19);
  backdrop-filter: blur(6px) brightness(100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  padding: 0 clamp(20px, 6vw, 40px) 0 clamp(20px, 1vw, 24px);
  transition: width 0.35s cubic-bezier(.6,1.3,.35,1.01), padding 0.3s;
  box-sizing: border-box;
}

.logo-block {
  display: flex;
  align-items: center;
}

.menu-bar .logo {
  height: 38px;
  margin-right: clamp(8px, 12vw, 180px);
}

.main-nav {
  display: flex;
  gap: clamp(8px, 2.5vw, 28px);
  margin-left: auto;
  flex-wrap: nowrap;
  min-width: 0;
  overflow: hidden;
}

.main-nav a {
  font-size: clamp(13px, 1.1vw, 18px);
  color: #000;
  text-decoration: none;
  padding: 3px clamp(8px, 2vw, 20px);
  border-radius: 18px;
  font-weight: 500;
  transition: background .2s, color .2s;
  min-width: 0;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  box-sizing: border-box;
}

.main-nav a.active,
.main-nav a:hover {
  color: #ffb400;
  background: rgba(255,255,255,0.08);
}

@media (max-width: 900px) {
  .menu-bar {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    width: calc(100vw - 12px);
    max-width: 900px;
    min-width: 220px;
    padding: 0 6px;
    height: 64px;
    border-radius: 32px;
    background: rgba(255,255,255,0.95);
    border: 1px solid rgba(156,156,156,0.19);
    box-shadow: 0 3px 18px 0 rgba(0,0,0,0.05);
    backdrop-filter: blur(6px) brightness(100%);
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    box-sizing: border-box;
  }

  .menu-bar .logo {
    display: none !important;
  }

  .main-nav {
    display: none !important;
    gap: clamp(2px, 1vw, 18px);
  }

  .main-nav a {
    font-size: clamp(11px, 1vw, 16px);
    padding: 3px clamp(2px, 1vw, 8px);
  }

  .menu-toggle {
    display: flex !important;
  }

  .mobile-logo {
    display: block !important;
  }
}

@media (max-width: 700px) {
  .main-nav {
    gap: 2px;
  }

  .main-nav a {
    font-size: 10px;
    padding: 2px 2px;
  }
}

.mobile-logo {
  display: none;
  position: fixed;
  top: 38px;
  left: clamp(8px, 6vw, 48px);
  height: 38px;
  z-index: 3001;
  margin: 0;
  pointer-events: none;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  z-index: 3000;
  width: 44px;
  height: 44px;
  justify-content: center;
  align-items: center;
  position: fixed;
  right: 24px;
  top: 38px;
  padding: 0;
  margin: 0;
}

.menu-toggle .bar {
  position: absolute;
  left: 50%;
  width: 28px;
  height: 4px;
  background: #111;
  border-radius: 3px;
  transform: translateX(-50%);
  transition: all .24s cubic-bezier(.6,1.3,.25,1.02);
  opacity: 1;
}

.menu-toggle .bar:nth-child(1) { top: 12px; }
.menu-toggle .bar:nth-child(2) { top: 20px; }
.menu-toggle .bar:nth-child(3) { top: 28px; }

.menu-toggle .close-x {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: none;
  pointer-events: none;
}

.menu-toggle.active .bar {
  opacity: 0;
}

.menu-toggle.active .close-x {
  display: block;
  animation: fadeinX .17s both;
}

@keyframes fadeinX {
  from { opacity: 0; scale: 0.8; }
  to   { opacity: 1; scale: 1; }
}

.mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 22px;
  right: 12px;
  width: 124vw;
  max-width: 160px;
  background: rgba(255,255,255,0.66);
  border-radius: 32px;
  box-shadow: 0 8px 52px 0 rgba(30,30,30,0.22);
  z-index: 2001;
  padding: 68px 18px 24px 18px;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s;
  backdrop-filter: blur(18px) brightness(1.05);
  -webkit-backdrop-filter: blur(18px) brightness(1.05);
  align-items: flex-end;
}

.mobile-menu.active {
  display: flex;
  opacity: 1;
  pointer-events: auto;
  animation: menuFadeIn .22s both;
}

@keyframes menuFadeIn {
  from { transform: translateY(-18px) scale(0.98); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

.mobile-menu a {
  font-size: 18px;
  font-weight: 600;
  color: #111;
  padding: 8px 0;
  border-radius: 16px;
  text-align: right;
  margin: 0;
  background: none;
  transition: none;
}

.mobile-menu a:hover {
  background: none;
  color: #111;
}

.mobile-menu a.active {
  background: none;
  color: #ffb400;
}


/* Yalıtım Bölümü */
.yalitim-section {
  max-width: 1750px;
  margin: 65px auto;
  padding: 36px 0 0 0;
}
.yalitim-section h2 {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 15px;
  letter-spacing: .01em;
}
.yalitim-section .highlight { color: #ffb400; font-weight: 700; }

.yalitim-grid {
  display: flex;
  margin: 40px;
  gap: 36px;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
}

/* Kart */
.yalitim-card {
  background: #fff;
  border: 1px solid #ffb400;
  width: 370px;
  min-width: 250px;
  max-width: 370px;
  height: 500px; /* Sabit kart yüksekliği */
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 2px 12px 0 rgba(0,0,0,0.03);
  transition: background 0.22s cubic-bezier(.85,.07,.63,1.18), box-shadow 0.20s, transform 0.24s cubic-bezier(.85,.07,.63,1.18);
  cursor: pointer;
  position: relative;
  z-index: 1;
}
.yalitim-card:hover {
  background: #ffb400;
  box-shadow: 0 8px 38px 0 #ffb4003b;
  transform: scale(1.06);
  z-index: 2;
}
.yalitim-card:hover h3,
.yalitim-card:hover p {
  color: #fff;
}

/* Görsel alanı (her zaman kare, grayscale default, renkli hover) */
.yalitim-img {
  width: 100%;
  height: 240px;          /* Sabit yükseklik! (Oran bozulmaz, tümü eşit olur) */
  overflow: hidden;
  background: #eee;
  position: relative;
  flex-shrink: 0;
}
.yalitim-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(0.95);
  transition: filter 0.3s;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}
.yalitim-card:hover .yalitim-img img {
  filter: grayscale(0) brightness(1) contrast(1);
}

.card-1 { border-radius: 0px 0 0 36px; }
.card-2 { border-radius: 0 0 0 0; }
.card-3 { border-radius: 0 0 0 0; }
.card-4 { border-radius: 0 36px 0px 0; }

.img-1 { border-top-left-radius: 0px; }
.img-4 { border-top-right-radius: 0px; }

/* Kart İçerik */
.yalitim-card-body {
  padding: 30px 35px 75px 20px;
  flex: 1;
  background: none;
  transition: background 0.22s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
}
.yalitim-card h3 {
  margin: 0 0 14px 0;
  font-size: 1.38rem;
  font-weight: 700;
  color: #222;
  letter-spacing: .02em;
  transition: color 0.2s;
}
.yalitim-card p {
  color: #222;
  font-size: 1.08rem;
  margin: 0;
  transition: color 0.2s;
}

/* "Devamını Oku" butonu sadece hover'da */
.yalitim-readmore {
  display: none;
  margin-top: 18px;
  color: #fff;
  font-weight: 600;
  background: none;
  border: none;
  font-size: 1.04rem;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}
.yalitim-card:hover .yalitim-readmore {
  display: block;
  animation: fadeIn 0.35s;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px);}
  to   { opacity: 1; transform: none;}
}

/* Responsive kırılımlar */
@media (max-width: 1100px) {
  .menu-bar { width: 98vw; }
  .yalitim-grid { gap: 20px; }
  .yalitim-card { width: 47vw; min-width: 210px; }
}
@media (max-width: 700px) {
  .yalitim-grid { flex-direction: column; gap: 18px; align-items: center;}
  .yalitim-card { width: 94vw; max-width: 99vw; }
  .yalitim-section h2 { font-size: 1.55rem; }
}

.mobile-yalitim {
  display: none;
}

/* Sadece mobilde göster */
@media (max-width: 900px) {
  .desktop-yalitim, .yalitim-grid {
    display: none !important;
    padding: 100px 16px 48px 16px;
  }
  .yalitim-section h2 {
    margin-top: 15px;
    font-size: 1.35rem;
    text-align: center;
  }
   
  .mobile-yalitim {
    display: flex;
    flex-direction: column;
    gap: 70px;
    padding: 10px 16px 48px 16px;
  }

  .yalitim-mobile-card {
    display: flex;
    background: #fff;
    border: 2px solid #ffb400;
    margin-top: -65px;
    border-radius: 0px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
  }

  .yalitim-mobile-card img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    flex-shrink: 0;
    filter: grayscale(1) brightness(0.95);
  }
 

  .yalitim-mobile-card .text {
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .yalitim-mobile-card .text h3 {
    font-size: 1.0rem;
    font-weight: 700;
    margin: 0 0 6px 0;
    color: #111;
  }

  .yalitim-mobile-card .text p {
    font-size: 0.85rem;
    color: #333;
    line-height: 1.2;
    margin: 0;
  }
}


/*======================
=   WEB GÖRÜNÜMÜ       =
======================*/

/* İLETİŞİM + HARİTA (WEB) */
.contact-map-section {
  width: 100vw;
  max-width: 1920px;
  background: #ffb400;
  margin: 120px auto;
  padding: 50px 0;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-map-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin-right: 285px;
}

.contact-info {
  color: #fff;
  max-width: 360px;
  min-width: 260px;
  margin-left: 285px;
  flex: 1;
}
.contact-info h3 {
  font-size: 25px;
  font-weight: 800;
  margin-bottom: 20px;
}
.contact-details {
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
}
.contact-details b {
  color: #fff;
}
.map-block iframe {
  width: 460px;
  height: 215px;
  border-radius: 32px;
  border: none;
  display: block;
  background: #fff;
}

/*======================
=   MOBİL GÖRÜNÜMÜ     =
======================*/

/* MOBİL İLETİŞİM BLOĞU */
.contact-map-section-mobile {
  display: none;
  background: #ffb400;
  padding: 36px 20px;
  width: 100vw;
  margin-top: 60px;
  text-align: center;
}
.mobile-contact-title {
  font-size: 24px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 12px;
}
.mobile-map-block iframe {
  width: 100%;
  height: 160px;
  border: none;
  border-radius: 18px;
  background: #fff;
  margin-bottom: 16px;
}
.mobile-contact-details {
  font-size: 15px;
  color: #fff;
  line-height: 1.6;
}
.mobile-contact-details b {
  color: #fff;
}

@media (max-width: 900px) {
  /* Web bloklarını gizle */
  .contact-map-section,
  .form-section {
    display: none !important;
  }

  /* Mobil blokları göster */
  .contact-map-section-mobile,
  .form-section-mobile {
    display: block !important;
  }

  .input-row-mobile {
    flex-direction: column !important;
  }
}

/* FOOTER */
.footer-bottom {
  background: #fff;
  border-radius: 999px 999px 0 0;
  margin-top: 120px;
  padding: 30px 0 5px 0;
  box-shadow: 0 -5px 22px 0 rgba(50,50,50,0.06);
}
.footer-wrap {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}
.footer-logo img {
  height: 38px;
  margin-bottom: 0px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 25px 28px;
  justify-content: center;
  margin-bottom: 8px;
}
.footer-links a {
  color: #222;
  font-size: 15px;
  opacity: 0.90;
  transition: color 0.17s;
}
.footer-links a:hover { color: #ffb400; }
.footer-copyright {
  font-size: 13px;
  color: #888;
  text-align: center;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.footer-copyright b { color: #222; font-weight: 700; }

@media screen and (max-width: 900px) {
  .footer-bottom {
    border-radius: 28px 28px 0 0;
    padding: 24px 16px 8px 16px;
    margin-top: 40px;
    box-shadow: 0 -5px 22px rgba(50, 50, 50, 0.06);
  }

  .footer-wrap {
    gap: 18px;
    padding: 0 12px;
  }

  .footer-logo img {
    height: 36px;
    margin-bottom: 4px;
  }

  .footer-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* 3 sütun */
    gap: 10px 30px;
    justify-items: start; /* her hücre içeriğini sola yaslar */
    text-align: left;     /* yazıyı sola yaslar */
    margin-bottom: 10px;
    padding: 0 8px;
  }

  .footer-links a {
    font-size: 15px;
    opacity: 0.9;
    color: #222;
    transition: color 0.17s;
  }

  .footer-links a:hover {
    color: #ffb400;
  }

  .footer-copyright {
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
    margin: 6px auto 4px;
    padding: 0 8px;
    color: #444;
  }

  .footer-copyright b {
    color: #111;
  }
}



@media (max-width: 1140px) {
  .main-header, .header-bar, .main-nav, .hero, .services-section, .project-gallery, .contact-map-section, .form-section, .footer-bottom {
    padding-left: 10px;
    padding-right: 10px;
  }
}

@media (max-width: 1100px) {
  .contact-map-content { flex-direction: column; align-items: center; gap: 26px; }
  .map-block iframe { width: 92vw; min-width: 220px; height: 120px; }
  .footer-content { flex-direction: column; gap: 18px; align-items: center; }
  .footer-links { flex-direction: column; gap: 20px; align-items: center; }
}
