/*
Theme Name: GuvenliHavuz
Theme URI: https://guvenlihavuz.com
Author: GuvenliHavuz
Author URI: https://guvenlihavuz.com
Description: Kurumsal havuz bakım ve güvenlik teması - Bootstrap 5 tabanlı
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: guvenlihavuz
*/

/* CSS Variables */
:root {
  --gh-primary: #469da3;
  --gh-secondary: #09142f;
  --gh-body-bg: #fff;
  --gh-section-bg: #f8f9fa;
  --gh-text: #333333;
  --gh-text-light: #6c757d;
}

/* Base - tam beyaz arka plan (yüklenen resimlerin beyaz bg'si ile uyumlu) */
html {
  background-color: #ffffff !important;
}
body {
  background-color: #ffffff !important;
  color: var(--gh-text);
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: var(--gh-secondary);
}

a {
  color: var(--gh-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--gh-secondary);
}

/* Primary & Secondary Colors */
.bg-primary-custom { background-color: var(--gh-primary) !important; }
.bg-secondary-custom { background-color: var(--gh-secondary) !important; }
.text-primary-custom { color: var(--gh-primary) !important; }
.text-secondary-custom { color: var(--gh-secondary) !important; }

.btn-primary-custom {
  background-color: var(--gh-primary);
  border-color: var(--gh-primary);
  color: #fff;
}

.btn-primary-custom:hover {
  background-color: #3a878c;
  border-color: #3a878c;
  color: #fff;
}

.btn-outline-custom {
  border: 2px solid var(--gh-primary);
  color: var(--gh-primary);
}

.btn-outline-custom:hover {
  background-color: var(--gh-primary);
  color: #fff;
}

/* Header */
.gh-header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  padding: 1rem 0;
}

.gh-header .navbar-brand img,
.gh-header .navbar-brand .custom-logo {
  max-height: 50px;
  width: auto;
  height: auto;
}

.gh-header .nav-link {
  color: var(--gh-secondary) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
}

.gh-header .nav-link:hover,
.gh-header .nav-link.active {
  color: var(--gh-primary) !important;
}

/* Dropdown menü */
.gh-header .dropdown-menu {
  border: none;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  border-radius: 8px;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
}

.gh-header .dropdown-item {
  color: var(--gh-secondary);
  padding: 0.5rem 1.25rem;
}

.gh-header .dropdown-item:hover {
  background-color: rgba(70, 157, 163, 0.1);
  color: var(--gh-primary);
}

.gh-header .dropdown-toggle::after {
  margin-left: 0.35em;
}

/* Slider */
.gh-slider {
  position: relative;
  overflow: hidden;
}

.gh-slider .carousel-item {
  position: relative;
  height: 500px;
}

/* Slider resmi üzerinde siyah overlay – yazı daha okunaklı */
.gh-slider .carousel-item::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
  pointer-events: none;
}

.gh-slider .carousel-item img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: center 40%;
}

.gh-slider .carousel-caption,
.gh-slider .gh-slider-caption {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 0 !important;
  margin: 0 !important;
  z-index: 2;
}

.gh-slider .carousel-caption h5,
.gh-slider .gh-slider-caption h5 {
  font-size: 3rem !important;
  margin: 0 !important;
  width: 100%;
  color: #fff !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

/* Ana sayfa – Slider hemen altı Telefon & WhatsApp butonları (yan yana) */
.gh-hero-contact {
  background: linear-gradient(180deg, var(--gh-section-bg) 0%, #fff 100%);
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.gh-hero-contact__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}
.gh-hero-contact__buttons .gh-ekspertiz-btn {
  min-width: 220px;
  flex: 1 1 auto;
  max-width: 320px;
}

/* Carousel Info Section */
.gh-info-carousel {
  background: var(--gh-section-bg);
  padding: 2rem 0;
}

.gh-info-carousel .carousel-item {
  text-align: center;
  padding: 1rem 2rem;
}

.gh-info-carousel .carousel-indicators {
  position: relative;
  margin: 1rem 0 0;
}

.gh-info-carousel .carousel-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--gh-primary);
  opacity: 0.5;
}

.gh-info-carousel .carousel-indicators button.active {
  opacity: 1;
}

/* Cards Section */
.gh-cards .card {
  border: none;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  height: 100%;
}

.gh-cards .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.gh-cards .card-img-top {
  height: 200px;
  object-fit: cover;
}

/* Neden Havuz Bariyeri? - Avantaj bloğu */
.gh-why-barrier {
  background: linear-gradient(160deg, var(--gh-section-bg) 0%, #fff 60%);
  padding: 4rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}
.gh-why-barrier__title {
  text-align: center;
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--gh-secondary);
  margin-bottom: 0.75rem;
}
.gh-why-barrier__lead {
  text-align: center;
  color: var(--gh-text-light);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.5;
}
.gh-why-barrier__grid {
  margin-top: 0.5rem;
}
.gh-why-barrier__item {
  background: #fff;
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  height: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(70, 157, 163, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.gh-why-barrier__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}
.gh-why-barrier__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gh-primary) 0%, #3a878c 100%);
  color: #fff;
  margin-bottom: 1.25rem;
}
.gh-why-barrier__icon svg {
  flex-shrink: 0;
}
.gh-why-barrier__item-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gh-secondary);
  margin-bottom: 0.5rem;
}
.gh-why-barrier__item-text {
  font-size: 0.95rem;
  color: var(--gh-text);
  line-height: 1.5;
  margin: 0;
}

/* Hızlı çözüm - Sektörel hedefleme (küçük kutular) */
.gh-quick-sectors {
  padding: 3rem 0;
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.gh-quick-sectors__title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gh-secondary);
  margin-bottom: 0.25rem;
}
.gh-quick-sectors__sub {
  text-align: center;
  font-size: 0.9rem;
  color: var(--gh-text-light);
  margin-bottom: 1.75rem;
}
.gh-quick-sectors__grid {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.gh-quick-sectors__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  padding: 1.25rem 0.75rem;
  background: var(--gh-section-bg);
  border-radius: 10px;
  border: 1px solid rgba(70, 157, 163, 0.12);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.gh-quick-sectors__box:hover {
  background: rgba(70, 157, 163, 0.08);
  border-color: rgba(70, 157, 163, 0.2);
  transform: translateY(-2px);
}
.gh-quick-sectors__emoji {
  font-size: 1.75rem;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.gh-quick-sectors__label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gh-secondary);
  text-align: center;
  line-height: 1.3;
}

/* Güven göstergesi - tek satır */
.gh-trust-bar {
  padding: 1.25rem 0;
  background: linear-gradient(90deg, rgba(70, 157, 163, 0.12) 0%, rgba(70, 157, 163, 0.06) 100%);
  border-top: 1px solid rgba(70, 157, 163, 0.15);
  border-bottom: 1px solid rgba(70, 157, 163, 0.15);
}
.gh-trust-bar__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem 2.5rem;
}
.gh-trust-bar__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gh-secondary);
}
.gh-trust-bar__check {
  color: var(--gh-primary);
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Ana sayfa – Sıkça Sorulan Sorular bölümü (col-6 + col-6 resim) - tam beyaz */
.gh-sss-section,
.gh-sss-section .container,
.gh-sss-section .row {
  background-color: #ffffff !important;
  background-image: none !important;
}
.gh-sss-section {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.gh-sss-section__title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gh-secondary);
}
.gh-sss-section__image-wrap {
  position: sticky;
  top: 1.5rem;
  background-color: #ffffff !important;
}
.gh-sss-section__image {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  background-color: #ffffff;
}
.gh-sss-section__image-placeholder {
  min-height: 320px;
  background: var(--gh-section-bg);
  border: 2px dashed rgba(70, 157, 163, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.gh-sss-section__placeholder-text {
  font-weight: 600;
  color: var(--gh-text-light);
}
.gh-sss-section__placeholder-hint {
  font-size: 0.85rem;
  color: var(--gh-text-light);
  opacity: 0.8;
}

/* Büyük CTA alanı - Ücretsiz Keşif + Telefon & WhatsApp */
.gh-cta-block {
  background: linear-gradient(135deg, var(--gh-secondary) 0%, #1a2d4a 100%);
  padding: 4rem 0;
  color: #fff;
}
.gh-cta-block__inner {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.gh-cta-block__title {
  font-size: 1.85rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.gh-cta-block__lead {
  font-size: 1.1rem;
  opacity: 0.95;
  margin-bottom: 2rem;
  line-height: 1.5;
}
.gh-cta-block__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}
.gh-cta-block__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gh-cta-block__btn:hover {
  color: inherit;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.gh-cta-block__btn--main {
  background: var(--gh-primary);
  color: #fff;
  border: 2px solid var(--gh-primary);
}
.gh-cta-block__btn--main:hover {
  background: #3a878c;
  border-color: #3a878c;
  color: #fff;
}
.gh-cta-block__btn--phone {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.4);
}
.gh-cta-block__btn--phone:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}
.gh-cta-block__btn--whatsapp {
  background: #25d366;
  color: #fff;
  border: 2px solid #25d366;
}
.gh-cta-block__btn--whatsapp:hover {
  background: #20bd5a;
  border-color: #20bd5a;
  color: #fff;
}
.gh-cta-block__btn-icon {
  display: inline-flex;
  flex-shrink: 0;
}

/* Section with dirty white bg */
.gh-section-light {
  background-color: var(--gh-section-bg);
  padding: 4rem 0;
}

/* Gallery */
.gh-gallery .gallery-item {
  overflow: hidden;
  border-radius: 8px;
}

.gh-gallery .gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s;
}

.gh-gallery .gallery-item:hover img {
  transform: scale(1.05);
}

/* Blog Cards */
.gh-blog .card {
  border: none;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  height: 100%;
  transition: box-shadow 0.2s;
}

.gh-blog .card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.gh-blog .card-img-top {
  height: 200px;
  object-fit: cover;
}

/* Sayfalama */
.pagination {
  justify-content: center;
  gap: 0.25rem;
}

.pagination .page-link {
  color: var(--gh-primary);
  border-color: rgba(70, 157, 163, 0.3);
}

.pagination .page-link:hover {
  background-color: rgba(70, 157, 163, 0.1);
  border-color: var(--gh-primary);
  color: var(--gh-secondary);
}

.pagination .page-item.active .page-link {
  background-color: var(--gh-primary);
  border-color: var(--gh-primary);
  color: #fff;
}

/* Footer */
.gh-footer {
  background-color: var(--gh-secondary);
  color: rgba(255,255,255,0.85);
  padding: 3rem 0 1.5rem;
}

.gh-footer a {
  color: rgba(255,255,255,0.85);
}

.gh-footer a:hover {
  color: var(--gh-primary);
}

.gh-footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 2rem;
  padding-top: 1.5rem;
}

/* Contact Form */
.gh-contact-form .form-control:focus {
  border-color: var(--gh-primary);
  box-shadow: 0 0 0 0.2rem rgba(70, 157, 163, 0.25);
}

.gh-contact-form .btn-primary {
  background-color: var(--gh-primary);
  border-color: var(--gh-primary);
}

/* Page Header */
.gh-page-header {
  background: linear-gradient(135deg, var(--gh-secondary) 0%, #1a2d4a 100%);
  color: #fff;
  padding: 3rem 0;
  margin-bottom: 3rem;
}
.gh-page-header h1 {
  color: #fff;
}

/* Ücretsiz Ekspertiz - İletişim bilgileri (Telefon & WhatsApp) */
.gh-ekspertiz-contact {
  background: linear-gradient(145deg, #ffffff 0%, var(--gh-section-bg) 100%);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(70, 157, 163, 0.12);
}
.gh-ekspertiz-contact__title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gh-secondary);
  margin-bottom: 0.35rem;
}
.gh-ekspertiz-contact__lead {
  color: var(--gh-text-light);
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
}
.gh-ekspertiz-contact__buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.gh-ekspertiz-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  text-align: left;
}
.gh-ekspertiz-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  color: inherit;
}
.gh-ekspertiz-btn__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
}
.gh-ekspertiz-btn__icon svg {
  flex-shrink: 0;
}
.gh-ekspertiz-btn__text {
  display: block;
  font-size: 1rem;
}
.gh-ekspertiz-btn__detail {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.9;
}
.gh-ekspertiz-btn--phone {
  background: linear-gradient(135deg, var(--gh-primary) 0%, #3a878c 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(70, 157, 163, 0.35);
}
.gh-ekspertiz-btn--phone .gh-ekspertiz-btn__icon {
  color: var(--gh-primary);
  background: #fff;
}
.gh-ekspertiz-btn--whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}
.gh-ekspertiz-btn--whatsapp .gh-ekspertiz-btn__icon {
  color: #25d366;
  background: #fff;
}
.gh-ekspertiz-contact__extra {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.gh-ekspertiz-contact__item {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: var(--gh-text);
}
.gh-ekspertiz-contact__item:last-child {
  margin-bottom: 0;
}
.gh-ekspertiz-contact__label {
  font-weight: 600;
  color: var(--gh-secondary);
  margin-right: 0.35rem;
}

/* About Page - Vision & Mission */
.gh-vision-mission {
  background: var(--gh-section-bg);
  padding: 2rem;
  border-radius: 8px;
}

/* Sıkça Sorulan Sorular - Accordion */
.gh-sss-accordion .accordion-button:not(.collapsed) {
  background-color: rgba(70, 157, 163, 0.08);
  color: var(--gh-secondary);
}
.gh-sss-accordion .accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(70, 157, 163, 0.25);
  border-color: var(--gh-primary);
}
.gh-sss-accordion .accordion-button::after {
  flex-shrink: 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .gh-header .navbar-brand img,
  .gh-header .navbar-brand .custom-logo {
    max-height: 36px;
  }

  .gh-slider .carousel-item img {
    height: 300px;
  }

  .gh-header .navbar-collapse {
    margin-top: 1rem;
  }
}
