/* Kurumsal karşılama sayfası (views/anasayfa.ejs), hizmet detay sayfaları
   (views/hizmet-detay.ejs) ve müşteri portalı (views/portal/*) için ortak
   marka stilleri. Admin panelini (views/admin/*) etkilemez — admin bu
   dosyayı hiç yüklemiyor, kendi public/css/style.css'ini kullanıyor. */

:root {
  --hh-red: #D7241B;
  --hh-red-dark: #A81A14;
  --hh-dark: #151414;
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.hh-navbar {
  background-color: var(--hh-dark);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.hh-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.hh-logo-img {
  height: 56px;
  width: auto;
  display: block;
}

.hh-hero {
  /* gorsel.avif (kullanıcı tarafından yüklendi) üzerine, yazının okunabilir
     kalması için koyu/kırmızı bir gradient overlay bindiriliyor. */
  background-image:
    linear-gradient(135deg, rgba(21, 20, 20, 0.90) 0%, rgba(42, 20, 20, 0.78) 55%, rgba(168, 26, 20, 0.60) 130%),
    url('/images/hero.avif');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--hh-dark); /* avif desteklenmezse/yüklenene kadar yedek */
  color: #fff;
  padding: 5.5rem 0 5rem;
}

.hh-hero h1 {
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.hh-hero p.lead {
  color: #e9e0e0;
  font-size: 1.15rem;
  max-width: 640px;
}

.hh-btn-red {
  background-color: var(--hh-red);
  border-color: var(--hh-red);
  color: #fff;
  font-weight: 600;
}
.hh-btn-red:hover {
  background-color: var(--hh-red-dark);
  border-color: var(--hh-red-dark);
  color: #fff;
}

.hh-section-title {
  font-weight: 800;
  color: var(--hh-dark);
  margin-bottom: 0.5rem;
}

.hh-section-title .hh-underline {
  display: block;
  width: 56px;
  height: 4px;
  background-color: var(--hh-red);
  margin-top: 0.6rem;
  border-radius: 2px;
}

.hh-section-alt {
  background-color: #f7f4f4;
}

.hh-service-card {
  border: 1px solid #eee0e0;
  border-radius: 0.6rem;
  padding: 1.75rem 1.5rem;
  height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.hh-service-card:hover {
  box-shadow: 0 0.5rem 1.25rem rgba(215, 36, 27, 0.12);
  transform: translateY(-2px);
}

.hh-service-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: rgba(215, 36, 27, 0.1);
  color: var(--hh-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.hh-service-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.hh-service-card p {
  flex-grow: 1;
}

.hh-bilgi-edin-btn {
  display: inline-flex;
  align-items: center;
  color: var(--hh-red);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  margin-top: auto;
}

.hh-bilgi-edin-btn:hover {
  color: var(--hh-red-dark);
  text-decoration: underline;
}

.hh-about-img {
  width: 100%;
  aspect-ratio: 1091 / 976; /* gorselv2.png'nin gerçek piksel oranı — kutu boşluksuz/kırpmasız tam oturur */
  height: auto;
  object-fit: cover;
  background-color: #f7f4f4;
  border-radius: 0.75rem;
  box-shadow: 0 0.75rem 1.75rem rgba(21, 20, 20, 0.15);
}

.hh-contact-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0.6rem;
  box-shadow: 0 0.5rem 1.25rem rgba(21, 20, 20, 0.12);
  display: block;
}

.hh-map-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  border-radius: 0.6rem;
  overflow: hidden;
  box-shadow: 0 0.5rem 1.25rem rgba(21, 20, 20, 0.12);
}

.hh-map-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.hh-contact-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: rgba(215, 36, 27, 0.1);
  color: var(--hh-red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* /hizmetler/:slug detay sayfaları */
.hh-detay-hero {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--hh-dark);
  color: #fff;
  padding: 3rem 0 2.5rem;
}

.hh-detay-hero-noimg {
  background-image: linear-gradient(135deg, var(--hh-dark) 0%, var(--hh-red-dark) 130%);
}

.hh-detay-hero h1 {
  font-weight: 800;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
}

.hh-back-link {
  color: #e9e0e0;
  text-decoration: none;
  font-size: 0.9rem;
}
.hh-back-link:hover {
  color: #fff;
}

.hh-detay-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.hh-detay-p {
  font-size: 1.05rem;
  line-height: 1.8;
}

.hh-detay-list {
  list-style: none;
  padding-left: 0;
}

.hh-detay-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  line-height: 1.7;
  color: #4a4646;
}

.hh-detay-list li i {
  color: var(--hh-red);
  margin-top: 0.3rem;
  flex-shrink: 0;
}

.hh-detay-cta {
  border-top: 1px solid #eee0e0;
  padding-top: 2.5rem;
}

.hh-footer {
  background-color: var(--hh-dark);
  color: #bdb5b5;
}

.hh-footer a {
  color: #fff;
  text-decoration: none;
}
.hh-footer a:hover {
  color: var(--hh-red);
}

@media (max-width: 767.98px) {
  .hh-logo-img {
    height: 44px;
  }
  .hh-hero {
    padding: 3.5rem 0 3rem;
    background-attachment: scroll; /* iOS Safari'de fixed davranışı bozulmasın */
  }
  .hh-hero .lead {
    max-width: 100%;
  }
}

/* Müşteri portalı (views/portal/login.ejs, views/portal/gecmis.ejs) */

.hh-portal-bg {
  background-color: var(--hh-dark);
  background-image: linear-gradient(135deg, rgba(21, 20, 20, 0.95) 0%, rgba(42, 20, 20, 0.92) 55%, rgba(168, 26, 20, 0.75) 130%);
  min-height: 100vh;
}

.hh-portal-card {
  background: #fff;
  border-radius: 0.75rem;
  padding: 2.25rem 2rem;
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.25);
}

.hh-portal-card h4 {
  font-weight: 800;
  color: var(--hh-dark);
}

.hh-portal-card .form-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--hh-dark);
}

.hh-portal-card .form-control:focus {
  border-color: var(--hh-red);
  box-shadow: 0 0 0 0.2rem rgba(215, 36, 27, 0.15);
}

.hh-portal-page {
  background-color: #f7f4f4;
  min-height: 100vh;
}

.hh-portal-panel {
  background: #fff;
  border-radius: 0.6rem;
  padding: 1.5rem;
  box-shadow: 0 0.25rem 0.75rem rgba(21, 20, 20, 0.06);
  border: 1px solid #eee0e0;
}

.hh-portal-panel h5 {
  font-weight: 700;
  color: var(--hh-dark);
}

.hh-plaka-badge {
  background-color: rgba(215, 36, 27, 0.08);
  color: var(--hh-red);
  border: 1px solid rgba(215, 36, 27, 0.25);
  font-weight: 700;
  padding: 0.4rem 0.75rem;
  border-radius: 0.4rem;
  font-size: 0.9rem;
}

.hh-islem-card {
  border: 1px solid #eee0e0;
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  margin-bottom: 0.85rem;
  background: #fdfcfc;
}

.hh-islem-card:last-child {
  margin-bottom: 0;
}

.hh-islem-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.hh-islem-plaka {
  color: var(--hh-red);
  font-weight: 700;
}

.hh-islem-tarih {
  color: #8a8484;
  font-size: 0.85rem;
}

.hh-islem-card ul {
  margin-bottom: 0;
  padding-left: 1.1rem;
}

.hh-islem-card li {
  color: #4a4646;
  line-height: 1.6;
}

.hh-arac-ozet {
  border: 1px solid #eee0e0;
  border-radius: 0.5rem;
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.75rem;
  background: #fdfcfc;
}

.hh-arac-ozet:last-child {
  margin-bottom: 0;
}

.hh-arac-ozet-baslik {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.hh-arac-ozet-detay {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  color: #4a4646;
  font-size: 0.85rem;
  margin: 0;
}

.hh-arac-ozet-detay span i {
  color: var(--hh-red);
  margin-right: 0.3rem;
}

.hh-whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  background-color: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 0.4rem 1rem rgba(21, 20, 20, 0.25);
  z-index: 1030;
  transition: transform 0.15s ease;
}

.hh-whatsapp-float:hover {
  transform: scale(1.08);
  color: #fff;
}
