/*
Theme Name: MayVita
Theme URI: https://mayvita.com/
Author: Mehmet Sarıyar
Description: MayVita için özel tema.
Version: 1.0
*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
  font-family: "Segoe UI", sans-serif;
  background-color: #fff;
  color: #333;
  scroll-behavior: smooth;
}

/* Navbar */
.navbar {
  background-color: white;
  width: 1920px;
  height: 128px;
  padding: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
}

.container {
  width: 100%;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 100px;
  max-width: 100%;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 24px;
}

.nav-links a {
  text-decoration: none;
  color: #000;
  font-weight: 600;
  font-size: 16px;
}

.nav-links a:hover {
  color: #ad6e3d;
}

.nav-links a.active {
  color: #a4602d !important;
  border-bottom: 2px solid #a4602d;
  border-radius: 4px;
  transition: all 0.2s;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: #333;
  transition: 0.3s;
}

/* Navbar CTA butonları için görünürlük ayarları */
.nav-cta-desktop {
  display: none;
}

@media (min-width: 992px) {
  .nav-cta-desktop {
    display: flex;
    align-items: center;
    margin-left: 24px;
  }
  .nav-cta-mobile {
    display: none !important;
  }
}

@media (max-width: 991px) {
  .nav-cta-desktop,
  .navbar .nav-cta-desktop {
    display: none !important;
  }
  .nav-cta-mobile {
    display: block;
  }
  .navbar .container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .navbar-header-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
  .navbar .logo {
    margin: 0;
  }
  .navbar .menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
    z-index: 1002;
    position: relative;
    transition: background 0.2s;
  }
  .navbar .menu-toggle .bar {
    width: 28px;
    height: 4px;
    margin: 4px 0;
    background: #a4602d;
    border-radius: 2px;
    display: block;
    transition: 0.3s;
    position: relative;
  }
  /* Hamburger animasyonu */
  .navbar .menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .navbar .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  .navbar .menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  .navbar nav {
    width: 100%;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    text-align: center;
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
  }
  .nav-links.active {
    display: flex !important;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

.cta-button {
  background-color: #a4602d;
  color: white;
  width: 159px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 0;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  border: none;
  padding: 0;
  box-sizing: border-box;
}
.cta-button:hover {
  background-color: #83826b;
}

/* Responsive ayarlar */
@media (max-width: 1280px) {
  .navbar {
    width: 100%;
    height: auto;
    padding: 15px 0;
  }
  .container {
    flex-direction: column;
    gap: 10px;
  }
  .logo img {
    height: 60px;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    text-align: center;
  }
  .nav-links.active {
    display: flex !important;
  }
  .cta-button {
    width: 100%;
    text-align: center;
  }
}

.nav-cta-mobile { display: none; }
.navbar > .cta-button {
  display: flex;
}
@media (max-width: 768px) {
  .navbar > .cta-button {
    display: none !important;
  }
  .nav-cta-mobile {
    display: block;
    margin-top: 12px;
    margin-bottom: 8px;
    width: 100%;
  }
  .nav-cta-mobile .cta-button {
    width: 159px;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    height: 44px;
    padding: 0;
    border-radius: 0;
    background: #a4602d;
    box-shadow: none;
    color: #fff;
    font-weight: bold;
    letter-spacing: 0.5px;
    border: none;
    transition: background 0.2s;
  }
  .nav-cta-mobile .cta-button:hover {
    background: #83826b;
    color: #fff;
    text-decoration: none;
    transform: none;
    box-shadow: none;
  }
  .nav-cta-mobile .cta-button img {
    margin-right: 8px;
    width: 14px;
    height: 14px;
  }
}
@media (min-width: 769px) {
  .nav-cta-mobile {
    display: none !important;
  }
}

/* Hero */
.hero-slider {
  position: relative;
  width: 100%;
  max-width: 1950px;
  max-height: 1050px;
  margin: 0 auto;
  aspect-ratio: 16 / 9; /* 1920x1080 oranı */
  overflow: hidden;
}

.hero-slider .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 1;
}

.hero-slider .slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Noktalar (dots) */
.hero-slider .dots {
  position: absolute;
  bottom: 20px;
  width: 100%;
  text-align: center;
  z-index: 3;
}

.hero-slider .dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 6px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.hero-slider .dot.active {
  background-color: rgba(255, 255, 255, 0.95);
}

/* Hakkımızda */
.about-section {
  text-align: center;
  padding: 60px 20px;
  background-color: #fff;
}

.about-section h2 {
  font-size: 24px;
  margin-bottom: 30px;
  font-weight: bold;
}

.about-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.about-logos img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.about-text {
  max-width: 800px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.7;
  color: #333;
}

/* Proje Özeti */
.overview-section-alt {
  width: 100%;
  height: 400px;
  background: url('images/overview-image.png') center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 10%;
}

.overview-overlay {
 
  padding: 30px;
  border-radius: 10px;
  display: flex;
  flex-direction: row; /* yan yana */
  gap: 20px;
  align-items: center;
}

.overview-boxes {
  display: flex;
  flex-direction: row; /* yan yana */
  gap: 20px;
}

.overview-card {
  background-color: #b0682a;
  color: #fff;
  padding: 60px 40px;
  text-align: center;
  border-radius: 5px;
  transition: all 0.3s ease; /* hover için geçiş */
}

.overview-card:hover {
  background-color: #8d4e1e; /* hover rengi */
  transform: scale(1.05); /* biraz büyüsün */
  cursor: pointer;
}

.overview-number {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 5px;
}

.overview-text {
  font-size: 14px;
  line-height: 1.3;
}

@media (max-width: 768px) {
  .overview-section-alt {
      height: 300px;
      padding-left: 0;
      justify-content: center;
  }
  .overview-overlay {
      flex-direction: column;
      padding: 20px;
  }
  .overview-boxes {
      flex-direction: column;
  }
}

@media (max-width: 991px) {
  /* Overview alanı mobil düzeni */
  .overview-section-alt {
    background: url('images/bg.png') center center/cover no-repeat;
    padding: 0 0 24px 0;
    position: static;
    height: auto;
    margin: 0;
  }
  .overview-card {
    width: 60vw;
    max-width: 140px;
    min-width: 80px;
    height: 48px;
    font-size: 0.78rem;
    margin: 0 auto 8px auto;
    box-sizing: border-box;
    opacity: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .overview-number {
    font-size: 1rem;
    line-height: 1.1;
    margin-bottom: 2px;
    font-weight: bold;
    text-align: center;
  }
  .overview-text {
    font-size: 0.65rem;
    line-height: 1.1;
    text-align: center;
    font-weight: 500;
  }
  /* Galeri ve iletişim arası boşlukları sıfırla */
  .gallery-section,
  .gallery-container,
  .gallery-thumbnails,
  .gallery-main-image,
  .contact-section,
  .contact-container {
    margin: 0;
    padding: 0;
    min-height: 0;
    height: auto;
  }
}


/* Proje Bölümü */
.proje-section {
  position: relative;
  background: url('images/bg.png') center center / cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 80px 20px;
}

.proje-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.3);
  z-index: 1;
}

.proje-overlay {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 0 auto;
}

.proje-baslik {
  font-size: 28px;
  margin-bottom: 20px;
}

.proje-altbaslik {
  font-size: 22px;
  margin: 40px 0 20px;
}

.proje-intro,
.proje-aciklama {
  max-width: 800px;
  margin: 0 auto 30px;
  font-size: 16px;
  line-height: 1.7;
}

.proje-planlar {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: nowrap; /* alt alta düşmeyi engelle */
  margin-bottom: 30px;
}

.proje-planlar img {
  width: 100%;
  border-radius: 10px;
  background: #fff;
  padding: 5px;
  transition: transform 0.3s;
}

.proje-planlar img:hover {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .proje-planlar {
    flex-direction: column;
    align-items: center;
  }
  .proje-planlar img {
    width: 90%;
  }
}

/* Açılması için */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 60px;
  left: 0; top: 0;
  width: 100%; height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 80%;
  max-height: 80%;
}

.lightbox .close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.lightbox .close:hover {
  color: #bbb;
}

/* Galeri */

.gallery-section {
  padding-top: 60px;
  padding-bottom: 100px;
  text-align: center;
  background-color: #fff;
}

.gallery-section h2 {
  margin-bottom: 40px;
}

.gallery-container {
  display: flex;
  align-items: stretch;
  margin: 0 auto;
  max-width: 1200px;
}

.gallery-main-image {
  aspect-ratio: 16/9;
  width: 100%;
  max-width: 900px;
  position: relative;
  background: #fff;
  display: flex;
  align-items: stretch;
}

.gallery-main-image img#main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Masaüstü için */
.gallery-thumbnails {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 600px;
  max-height: 600px;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.gallery-thumbnails::-webkit-scrollbar {
  display: none;
}
.gallery-thumbnails img {
  width: 120px;
  height: calc((600px - 40px) / 5);
  object-fit: cover;
  border-radius: 0;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
  box-sizing: border-box;
}

.gallery-thumbnails img:hover {
  border: 2px solid #ad6e3d;
  box-shadow: 0 0 8px #ad6e3d33;
  z-index: 2;
}

.gallery-thumbnails img.active {
  border: 2px solid #ad6e3d;
  box-shadow: 0 0 8px #ad6e3d33;
  background: #f7f3ef;
  z-index: 2;
}

/* Mobil için */
@media (max-width: 768px) {
  .gallery-container {
    flex-direction: column;
  }

  .gallery-main-image {
    max-width: 100%;
  }

  .gallery-thumbnails {
    flex-direction: row;
    max-height: none;
    margin-top: 20px;
    overflow-x: auto;
  }

  .gallery-thumbnails img {
    width: 80px;
    border-radius: 8px;
  }
}

/* İleri geri butonlar */
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border-radius: 8px;
  cursor: pointer;
  z-index: 10;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  transition: background 0.3s;
}
.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }
.gallery-arrow:hover {
  background: #ad6e3d;
}
.gallery-arrow img {
  width: 44px;
  height: 44px;
  pointer-events: none;
}

/* Responsive */

@media (max-width: 768px) {
  .gallery-container {
    flex-direction: column;
  }

  .gallery-main-image {
    max-width: 100%;
  }

  .gallery-thumbnails {
    flex-direction: row;
    max-height: none;
    margin-top: 20px;
    overflow-x: auto;
  }

  .gallery-thumbnails img {
    width: 80px;
    border-radius: 8px;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
}
.contact-section {
  padding: 60px 20px;
  background: #dddddd;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: stretch;
}

.contact-header {
  width: 100%;
  text-align: center;
  margin-bottom: 32px;
  grid-column: 1 / -1;
}

.contact-header h2 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 8px;
}

.contact-header p {
  font-size: 1.1rem;
  color: #555;
}

form {
  flex: 1 1 400px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

form h2 {
  margin-bottom: 10px;
  font-size: 24px;
}

form input,
form textarea {
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  width: 100%;
}

form textarea {
  min-height: 120px;
  resize: vertical;
}

.kvkk {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #555;
  text-align: left;
}

.kvkk input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

button {
  padding: 12px;
  background: #312E2B;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s;
}

button:hover {
  background: #0056b3;
}

.map-container {
  flex: 1 1 400px;
  position: relative;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: 0;
  border-radius: 8px;
  filter: grayscale(100%) opacity(0.8);
  transition: filter 0.3s;
}

.map-container iframe:hover {
  filter: grayscale(0%) opacity(1);
}

@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
  }
  form, .map-container {
    flex: 1 1 100%;
  }
}

/*footer */
.footer {
  font-size: 0.9rem;
  color: #eee;
}

.footer-inner {
  background: url('images/footer.png') center center / cover no-repeat;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 60px 20px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.footer-inner::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6); /* koyu katman */
  z-index: -1;
}

.footer-left, .footer-center, .footer-right {
  flex: 1 1 300px;
  text-align: center;
  margin: 10px 0;
}

.footer-left p,
.footer-right p,
.footer-right a {
  margin: 8px 0;
}

.footer-socials a img {
  width: 40px;
  margin: 0 5px;
  transition: transform 0.3s, filter 0.3s;
}

/* filter kaldırıldı - böylece svg / png zaten beyaz kalır */
.footer-socials a img:hover {
  transform: scale(1.2);
  filter: brightness(1.2);
}

.footer-center img {
  max-width: 180px;
}

.phone-number {
  display: block;
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  margin: 10px 0;
}

.phone-number:hover {
  color: #ccc;
}

.scroll-top {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid #777;
  border-radius: 3px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.3s;
}

.scroll-top:hover {
  background: #333;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #000000;
  padding: 10px 32px;
  border-radius: 0;
  flex-wrap: wrap;
}
.footer-bottom-left {
  text-align: left;
  flex: 1 1 50%;
  padding-left: 180px;
  padding-right: 40px;
}
.footer-bottom-right {
  text-align: right;
  flex: 1 1 50%;
  padding-right: 180px;
  padding-left: 36px;
}
@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 0 !important;
    background: #000;
  }
  .footer-bottom-left, .footer-bottom-right {
    font-size: 0.85rem !important;
    color: #bbb !important;
    text-align: center;
    padding: 0 !important;
    margin: 0 !important;
    width: 100%;
  }
}
@media (min-width: 769px) {
  .responsive-footer-bottom {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .contact-container {
    max-width: 98vw;
    padding: 0 4px;
  }
  form {
    padding: 18px 6px 16px 6px;
  }
}

.section-hr {
  width: 80%;
  max-width: 1200px;
  height: 2px;
  background: #fff;
  opacity: 0.7;
  border: none;
  margin: 32px auto;
}

#main-image {
  transition: opacity 0.4s;
}
#main-image.fade-out {
  opacity: 0;
}
#main-image.fade-in {
  opacity: 1;
}

.gallery-thumbnails::before,
.gallery-thumbnails::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 24px;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.2s;
}
.gallery-thumbnails::before {
  top: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,0.85), rgba(255,255,255,0));
  opacity: var(--thumbs-top-fade, 0);
}
.gallery-thumbnails::after {
  bottom: 0;
  background: linear-gradient(to top, rgba(255,255,255,0.85), rgba(255,255,255,0));
  opacity: var(--thumbs-bottom-fade, 0);
}

.mobile-footer { display: none; }
@media (max-width: 768px) {
  .desktop-footer { display: none !important; }
  .mobile-footer {
    display: block !important;
    background: #000;
    color: #bbb;
    text-align: center;
    font-size: 0.85rem;
    padding: 8px 0 6px 0;
    width: 100%;
  }
  .mobile-footer-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .mobile-footer a {
    color: #fff;
    font-weight: bold;
    text-decoration: none;
  }
  .mobile-footer-socials {
    margin-bottom: 2px;
    display: flex;
    justify-content: center;
    gap: 8px;
  }
  .mobile-footer-content > div {
    margin-bottom: 2px;
  }
}

.mobile-scroll-top button {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid #777;
  border-radius: 3px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.3s;
  background: none;
  color: inherit;
}
.mobile-scroll-top button:hover {
  background: #333;
}
@media (max-width: 768px) {
  .mobile-scroll-top button {
    width: 90%;
    margin: 0 auto;
    font-size: 1.1rem;
    padding: 10px 0;
  }
}

@media (max-width: 991px) {
  .gallery-section,
  .gallery-container,
  .gallery-thumbnails,
  .gallery-main-image,
  .contact-section,
  .contact-container {
    margin: 5px !important;
    padding: 5px !important;
    min-height: 0 !important;
    height: auto !important;
  }
}

@media (max-width: 768px) {
  .hero-slider {
    margin-top: 60px;
  }
}
