/* Genel yapı */
body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  color: #333;
  background-color: #fafafa;
  line-height: 1.6;
}

/* Navbar */
.navbar {
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar .container {
  width: 90%;
  max-width: 1900px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  width: 160px;
}

nav a {
  text-decoration: none;
  color: #555;
  margin-left: 20px;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: #b30000;
}

nav select#langSelect, #themeToggle {
  margin-left: 12px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  background: #fff;
  cursor: pointer;
}

/* Hero Bölümü */
.hero {
  background: linear-gradient(to bottom right, #fff, #ffeaea);
  text-align: center;
  padding: 100px 20px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center;
  opacity: 0.08; /* subtle overlay */
  pointer-events: none;
}

.hero { position: relative; overflow: hidden; }

.hero h1 {
  font-size: 2.8rem;
  color: #b30000;
}

.hero p {
  font-size: 1.2rem;
  color: white;
}

.btn {
  background-color: #b30000;
  color: #fff;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  margin-top: 20px;
}
.btn:hover {
  background-color: #a00000;
}

.btn.loading {
  background-color: #666;
  cursor: not-allowed;
  position: relative;
}

.btn.loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  margin: auto;
  border: 2px solid transparent;
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: button-loading-spinner 1s ease infinite;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

@keyframes button-loading-spinner {
  from {
    transform: translateY(-50%) rotate(0turn);
  }
  to {
    transform: translateY(-50%) rotate(1turn);
  }
}


/* Bölümler */
.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

section {
  padding: 80px 0;
}

h2 {
  color: #b30000;
  text-align: center;
  margin-bottom: 30px;
}

/* Süreç */
.process .steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.process .step {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.step-num {
  width: 36px;
  height: 36px;
  line-height: 36px;
  border-radius: 50%;
  background: #b30000;
  color: #fff;
  display: inline-block;
  margin-bottom: 10px;
  font-weight: 600;
}

/* Neden Biz */
.why-us {
  background: #fff;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.why-item {
  background: #fff7f7;
  border: 1px solid #ffe1e1;
  border-radius: 12px;
  padding: 20px;
}

/* Kart yapısı */
.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}

.card {
  background-color: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 25px;
  width: 280px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s;
}

/* Card Image Container */
.card-image-container {
  position: relative;
  width: 100%;
  height: 160px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(179, 0, 0, 0.1), rgba(179, 0, 0, 0.3));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-icon {
  font-size: 2rem;
  color: #b30000;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

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

.card:hover .card-overlay {
  opacity: 1;
}

.card:hover {
  transform: translateY(-5px);
}

.card h3 {
  color: #b30000;
}

.avatar {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 10px;
  border: 3px solid #ffe1e1;
}

/* Yorumlar */
.testimonials {
  background: linear-gradient(to bottom right, #fff, #fff3f3);
}

.testimonial-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.testimonial {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 20px;
  font-style: italic;
}

.testimonial span {
  display: block;
  margin-top: 10px;
  color: #777;
  font-style: normal;
}

/* SSS */
.accordion-item {
  border: 1px solid #eee;
  border-radius: 10px;
  background: #fff;
  margin-bottom: 12px;
  overflow: hidden;
}

.accordion-header {
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  background: #fff7f7;
  border: none;
  color: #b30000;
  font-weight: 600;
  cursor: pointer;
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 18px;
}

.accordion-panel p {
  margin: 14px 0 18px;
}

/* İletişim */
.contact {
  background-color: #fff7f7;
  text-align: left;
}

.contact a {
  color: #b30000;
  text-decoration: none;
  font-weight: 500;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}
.contact-form{
  width: 100%;
  height: 100%;
  padding: 3rem;
}
.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 12px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: auto;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #ddd;
  background: #fff;
  font-family: inherit;
  font-size: 0.95rem;
}

.contact-form textarea {
  resize: vertical;
}
.text-area{
  width: 95% !important;
}

/* Quick Quote */
.quick-quote {
  background: #fff;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}
.quick-quote-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.qq-form {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 10px;
}
.qq-form input, .qq-form select {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
}
.hp { display:none; }

@media (max-width: 768px) {
  .quick-quote-inner { flex-direction: column; align-items: stretch; }
  .qq-form { grid-template-columns: 1fr; }
}

/* Footer */
footer {
  background-color: #b30000;
  color: #fff;
  text-align: center;
  padding: 15px;
  font-size: 0.9rem;
}

/* Back to top */
#backToTop {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #b30000;
  color: #fff;
  border: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#backToTop.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* WhatsApp floating */
.whatsapp {
  position: fixed;
  right: 16px;
  bottom: 70px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: grid;
  place-items: center;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.social a{
  width: 100%;
}
/* Responsive */
@media (max-width: 1200px) {
  .container { width: 95%; }
  .hero h1 { font-size: 2.4rem; }
  .cards { gap: 20px; }
}

@media (max-width: 992px) {
  .navbar .container { flex-direction: column; gap: 15px; }
  nav { display: flex; flex-wrap: wrap; justify-content: center; }
  nav a { margin: 0 8px; }
  
  .hero { padding: 60px 20px; }
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1.1rem; }
  
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-list { grid-template-columns: repeat(2, 1fr); }
  .process .steps { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  
  .cards { justify-content: center; }
  .card { width: 300px; }
  
  section { padding: 60px 0; }
}

@media (max-width: 768px) {
  .quick-quote-inner { flex-direction: column; align-items: stretch; }
  .qq-form { grid-template-columns: 1fr; }
  
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form .form-row { grid-template-columns: 1fr; }
  
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  
  .navbar .container { padding: 10px 0; }
  nav { flex-direction: column; gap: 10px; }
  nav a { margin: 0; padding: 8px 0; }
  
  .logo { width: 140px; }
  
  #langSelect, #themeToggle {
    margin: 10px auto 0;
    display: block;
  }
}

@media (max-width: 640px) {
  .container { width: 98%; padding: 0 10px; }
  
  .hero { padding: 40px 15px; }
  .hero h1 { font-size: 1.8rem; }
  
  .cards { gap: 16px; }
  .card { width: 100%; max-width: 280px; }
  
  .testimonial-list { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .process .steps { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  
  .quick-quote-inner span { text-align: center; display: block; margin-bottom: 15px; }
  
  .whatsapp { bottom: 20px; right: 20px; }
  #backToTop { bottom: 80px; }
  
  h2 { font-size: 1.8rem; }
  section { padding: 40px 0; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.6rem; }
  .hero p { font-size: 0.95rem; }
  
  .btn { padding: 10px 20px; font-size: 0.9rem; }
  
  .card { padding: 20px; }
  .card h3 { font-size: 1.1rem; }
  
  .accordion-header { padding: 12px 16px; font-size: 0.95rem; }
  
  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    padding: 10px 12px;
    font-size: 0.9rem;
  }
}

/* Gallery */
.gallery {
  background: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
}

@media (max-width: 992px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .gallery-grid { grid-template-columns: 1fr; }
}
