/* Genel Ayarlar ve Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Open Sans", Arial, sans-serif;
  color: #444;
  background-color: #f7f7f7;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  color: #212940;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Üst Bar (Top Bar) */
.top-bar {
  background-color: #373e53;
  color: #fff;
  font-size: 14px;
  padding: 10px 0;
}

.top-bar-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.top-contact a,
.top-contact span {
  color: #fff;
  margin-right: 20px;
  transition: color 0.3s;
}

.top-contact a:hover {
  color: #aebfd1;
}

.top-social a {
  color: #fff;
  font-size: 16px;
}

/* Ana Başlık (Header) */
.main-header {
  background-color: #d8d8d8;
  padding: 50px 0;
  text-align: center;
}

.brand-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
}

.brand-logo {
  max-width: 150px;
  margin-bottom: 15px;
}

.brand-title {
  font-size: 32px;
  letter-spacing: 1.5px;
  color: #212940;
}

.hero-quote {
  margin-top: 20px;
  font-family: "Playfair Display", serif;
}

.quote-text {
  font-size: 24px;
  color: #212940;
}

.quote-author {
  font-size: 20px;
  color: #555;
  margin-top: 5px;
}

/* Temel Değerler (Koyu Kutular) */
.core-values {
  background-color: #fff;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0; /* Boşluksuz yan yana */
}

.value-box {
  padding: 50px 30px;
  text-align: center;
  color: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.value-box:nth-child(1) {
  background-color: #212940;
}
.value-box:nth-child(2) {
  background-color: #212940;
  border-left: 2px solid rgba(255, 255, 255, 0.05);
}
.value-box:nth-child(3) {
  background-color: #212940;
  border-left: 2px solid rgba(255, 255, 255, 0.05);
}

.value-box h3 {
  color: #fff;
  margin: 20px 0;
  font-size: 24px;
}

.value-icon {
  font-size: 36px;
  color: #fff;
}

.value-box p {
  font-size: 15px;
  font-weight: 300;
}

/* Hizmetlerimiz Kutuları */
.services {
  background-color: #fff;
  padding: 60px 0;
}

.container-narrow {
  max-width: 1000px;
  margin: 0 auto;
}

.section-divider {
  width: 60px;
  height: 2px;
  background-color: #333;
  margin: 0 auto 50px;
}

.services-grid {
  gap: 30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.service-box {
  background-color: #fff;
  border: 1px solid #eaeaea;
  padding: 40px 25px;
  text-align: center;
  border-radius: 4px;
  cursor: pointer;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 280px;
}

.service-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  border-color: #ddd;
}

.service-icon {
  font-size: 32px;
  color: #212940;
  margin-bottom: 20px;
}

.service-box h3 {
  font-size: 20px;
  margin-bottom: 15px;
}

.service-box p {
  font-size: 14px;
  color: #666;
}

/* Footer (Alt Bilgi) */
.main-footer {
  background: linear-gradient(135deg, #1e2535 0%, #2a3449 100%);
  color: #e2e8f0;
  padding-top: 70px;
  border-top: 5px solid #aebfd1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 3fr 2fr 3fr;
  gap: 30px;
  margin-bottom: 40px;
}

.footer-logo-col img {
  max-width: 200px;
  display: block;
  margin-bottom: 20px;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.main-footer h4 {
  color: #fff;
  font-size: 20px;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.main-footer h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background-color: #aebfd1;
}

.footer-contact p {
  font-size: 15px;
  margin-bottom: 15px;
  color: #cbd5e1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-contact a {
  color: #cbd5e1;
  transition: color 0.3s;
}
.footer-contact a:hover {
  color: #fff;
  text-decoration: underline;
}
.highlight {
  color: #fff;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 15px;
}

.footer-links a {
  color: #cbd5e1;
  font-size: 15px;
  transition: color 0.3s;
  position: relative;
  padding-left: 15px;
}

.footer-links a::before {
  content: "\f105";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 0;
  color: #aebfd1;
  transition: transform 0.3s;
}

.footer-links a:hover {
  color: #fff;
}
.footer-links a:hover::before {
  transform: translateX(3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #ccc;
}
.footer-bottom-inner a {
  color: #ccc;
  font-size: 16px;
}
.footer-bottom-inner a:hover {
  color: #fff;
}

/* Popup Modal Styles */
.popup {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  overflow: hidden; /* prevents body scroll when open if setup */
}

.popup-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 40px 30px;
  width: 90%;
  max-width: 600px;
  border-radius: 6px;
  position: relative;
  max-height: 85vh;
  overflow-y: auto;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 30px;
  color: #aaa;
  cursor: pointer;
  line-height: 1;
}

.close-btn:hover {
  color: #333;
}

#popup_dynamic_content h3 {
  text-align: center;
  font-size: 26px;
  margin-bottom: 20px;
}

#popup_dynamic_content h4 {
  margin-top: 25px;
  margin-bottom: 10px;
  font-size: 18px;
}

#popup_dynamic_content p {
  text-align: justify;
  margin-bottom: 15px;
  font-size: 15px;
  line-height: 1.7;
}

#popup_dynamic_content ul {
  margin-left: 20px;
  margin-bottom: 15px;
  text-align: justify;
  font-size: 15px;
  line-height: 1.7;
}
#popup_dynamic_content li {
  margin-bottom: 8px;
}

/* Responsive Media Queries */
@media screen and (min-width: 769px) {
  .brand-wrapper {
    flex-direction: row;
  }
  .brand-logo {
    margin-right: 25px;
    margin-bottom: 0;
  }
}

@media screen and (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  /* Logo centered on tab */
  .footer-logo-col {
    grid-column: span 2;
    text-align: center;
  }
  .footer-logo-col img {
    margin: 0 auto;
  }
  .footer-map {
    grid-column: span 2;
  }
}

@media screen and (max-width: 768px) {
  .brand-title {
    font-size: 24px;
    text-align: center;
  }
  .quote-text {
    font-size: 20px;
  }
  .value-box {
    border-left: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .top-bar-inner {
    flex-direction: column;
  }
  .top-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .top-contact span,
  .top-contact a {
    margin-right: 0;
  }
}

@media screen and (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-logo-col,
  .footer-map {
    grid-column: span 1;
  }
  .footer-bottom-inner {
    flex-direction: column;
    gap: 15px;
  }
}

/* Floating Phone Button */
.floating-phone {
  position: fixed;
  left: 20px;
  bottom: 40px;
  z-index: 999;
  display: flex;
  align-items: center;
  background-color: #212940;
  color: #fff;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  overflow: hidden;
  width: 60px;
  height: 60px;
  transition:
    width 0.3s ease,
    background-color 0.3s ease;
}

.floating-phone:hover {
  background-color: #373e53;
}

.floating-phone.expanded {
  width: 170px;
}

.fp-icon {
  min-width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  color: #fff;
  animation: phonePulse 2s infinite;
  border-radius: 50%;
}

.fp-text {
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.fp-text a {
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  display: block;
  padding-right: 20px;
}

.floating-phone.expanded .fp-text {
  opacity: 1;
}

@keyframes phonePulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(33, 41, 64, 0.7);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(33, 41, 64, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(33, 41, 64, 0);
  }
}

@media screen and (max-width: 768px) {
  .floating-phone {
    bottom: 20px;
    left: 15px;
  }
}
