/* ==========================================================================
   custom.css — İkizler Dekorasyon
   Modern, responsive-first override layer. Loaded AFTER main.min.css so it
   wins the cascade without touching the purchased Arissa theme stylesheet.
   Tüm marka renkleri değişkenlerde — tek yerden değiştirilebilir.
   ========================================================================== */

:root {
  --brand-dark: #1f2a37;      /* koyu slate — başlık/footer zemini */
  --brand-darker: #16202b;
  --accent: #c8973f;          /* sıcak altın — dekorasyon hissi */
  --accent-hover: #b3822f;
  --ink: #2b2b2b;             /* gövde metni */
  --muted: #6b7280;
  --paper: #ffffff;
  --paper-alt: #f7f8fa;
  --line: #e6e8ec;
  --radius: 10px;
  --shadow-sm: 0 2px 8px rgba(16, 24, 40, .06);
  --shadow-md: 0 10px 30px rgba(16, 24, 40, .12);
  --container: 1200px;
  --transition: .25s ease;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Ekran okuyucu / SEO için görünmez başlık */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Temel responsive-first sağlamlaştırma ------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;            /* yatay taşmayı kes (mobil) */
}

/* Görseller asla taşmasın */
img { max-width: 100%; height: auto; }

/* Odak erişilebilirliği (SEO/a11y) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* --- Tipografi ----------------------------------------------------------- */
h1, h2, h3, h4, h5,
.title-1, .title-2, .title-3, .entry-title, .widget-title {
  font-family: var(--font-display);
  color: var(--brand-dark);
  letter-spacing: -.015em;
  font-weight: 600;
}
h1 { line-height: 1.1; }
p  { line-height: 1.75; }
.title-sub { font-family: var(--font-body); letter-spacing: .14em; font-weight: 600; }

/* --- Butonlar (Arissa .au-btn + genel) ----------------------------------- */
.au-btn,
a.btn,
button.btn,
.btn-submit,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border-radius: var(--radius);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.au-btn:hover,
a.btn:hover,
button.btn:hover,
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
/* Ana vurgu butonu */
.au-btn--primary,
.au-btn--accent {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
}
.au-btn--primary:hover,
.au-btn--accent:hover {
  background: var(--accent-hover) !important;
  border-color: var(--accent-hover) !important;
}

/* --- Header cilası ------------------------------------------------------- */
#header { transition: box-shadow var(--transition); }
.header-1 { box-shadow: var(--shadow-sm); }
.site-logo img { width: clamp(160px, 22vw, 240px); height: auto; }

.header-nav-menu .menu > .menu-item > a {
  position: relative;
  font-weight: 600;
  transition: color var(--transition);
}
.header-nav-menu .menu > .menu-item > a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}
.header-nav-menu .menu > .menu-item:hover > a { color: var(--accent); }
.header-nav-menu .menu > .menu-item:hover > a::after { width: 100%; }
.header-nav-menu .sub-menu .menu-item a:hover { color: var(--accent); }

/* Mobil menü nefes alsın */
.header-nav-menu-mobile .menu-mobile .menu-item a {
  padding: 14px 6px;
  font-size: 16px;
  border-bottom: 1px solid rgba(0,0,0,.05);
}
.header-mobile__bar-inner .logo img { width: clamp(150px, 45vw, 220px); }
.hamburger .hamburger-inner,
.hamburger .hamburger-inner::before,
.hamburger .hamburger-inner::after { background-color: var(--brand-dark); }

/* --- Bölüm ritmi --------------------------------------------------------- */
section { padding-block: clamp(2.25rem, 6vw, 4.5rem); }

/* --- Footer elden geçirildi --------------------------------------------- */
.footer {
  background: var(--brand-dark);
  color: #cfd6de;
  position: relative;
}
.footer .bg-overlay { display: none; }        /* eski parallax overlay kapat */
.footer,
.footer.bg-parallax { background-image: none !important; }
.footer .widget-title {
  color: #fff;
  font-weight: 700;
  margin-bottom: 1.1rem;
  position: relative;
  padding-bottom: .6rem;
}
.footer .widget-title::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 42px; height: 3px;
  background: var(--accent);
  border-radius: 2px;
}
.footer a { color: #cfd6de; transition: color var(--transition); }
.footer a:hover { color: var(--accent); }
.footer .widget-address li { margin-bottom: .55rem; line-height: 1.6; }
.footer .widget_pages ul li { margin-bottom: .5rem; }
.footer .list-social__item a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #fff;
  margin-right: 8px;
  transition: background var(--transition), transform var(--transition);
}
.footer .list-social__item a:hover {
  background: var(--accent);
  transform: translateY(-3px);
}
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 2.5rem;
  padding: 1.25rem 0;
  text-align: center;
  font-size: .9rem;
  color: #9aa4b0;
}
.footer__bottom a { color: var(--accent); }

/* --- İletişim formu ------------------------------------------------------ */
.form-contact input,
.form-contact textarea {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-contact input:focus,
.form-contact textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200, 151, 63, .15);
}

/* --- Küçük ekran ince ayarları ------------------------------------------ */
@media (max-width: 991.98px) {
  section { padding-block: clamp(1.75rem, 8vw, 2.75rem); }
  .footer .footer-col { margin-bottom: 2rem; }
  .footer [class*="p-l-70"] { padding-left: 0 !important; }
}

@media (max-width: 575.98px) {
  h1 { font-size: clamp(1.6rem, 8vw, 2.2rem); }
  h2 { font-size: clamp(1.4rem, 7vw, 1.9rem); }
}

/* Yukarı çık butonu vurgusu (theme-to-top) */
.back-to-top,
.js-back-to-top { background: var(--accent) !important; }

/* --- Sabit WhatsApp butonu ---------------------------------------------- */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 22px;
  z-index: 1080;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  font-size: 30px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .45);
  transition: transform var(--transition), box-shadow var(--transition);
  animation: wa-pulse 2.4s infinite;
}
.wa-float:hover {
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(37, 211, 102, .6);
}
.wa-float i { line-height: 1; }
.wa-float__label {
  position: absolute;
  right: 72px;
  white-space: nowrap;
  background: var(--brand-dark);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  opacity: 0;
  transform: translateX(8px);
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}
.wa-float:hover .wa-float__label { opacity: 1; transform: translateX(0); }
.wa-float__label::after {
  content: "";
  position: absolute;
  right: -5px; top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--brand-dark);
}
@keyframes wa-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); }
  70%  { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
/* Header/footer sosyal listesinde WhatsApp yeşili */
.list-social .ic-wa,
.footer .list-social__item .ic-wa:hover { color: #25d366; }

@media (max-width: 575.98px) {
  .wa-float { width: 52px; height: 52px; font-size: 27px; right: 16px; bottom: 16px; }
  .wa-float__label { display: none; }
}

/* --- Hizmet kartı numara "watermark"ı (grid hizası düzeltmesi) ----------- */
.media-service .media__title { position: relative; }
.media-service .media__title .number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 82px;
  line-height: 1;
  color: #f1f2f4;            /* çok soluk hayalet numara */
  font-weight: 700;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}
.media-service .media__title .title { position: relative; z-index: 1; }

/* --- Proje slider'ı: bozuk/stilsiz slick dot'larını ve varsayılan okları
       gizle, özel okları düzenle --------------------------------------- */
.slick-project .slick-dots,
.slick-project ul.slick-dots {
  display: none !important;
}
.slick-project button.slick-prev,
.slick-project button.slick-next {
  display: none !important;      /* slick'in gri varsayılan ok kutuları */
}
.slick-project .slick__nav {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin-top: 24px;
}
.slick-project .slick__nav .slick-arrow {
  cursor: pointer;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--paper-alt);
  color: var(--brand-dark);
  font-size: 18px;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.slick-project .slick__nav .slick-arrow:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

/* ==========================================================================
   MODERNIZASYON v2
   ========================================================================== */

/* --- Anasayfa HERO (Revolution) slider bullet'larını YAN YANA yap -------- */
/* Tema JS'i her bullet'a inline `position:absolute` verip dikey (üst üste)
   yığıyordu; temanın asıl yatay flex düzenini !important ile zorluyoruz. */
.tp-bullets.au-rev-bullet-1,
.au-rev-bullet-1.tp-bullets {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  width: auto !important;
  height: auto !important;
  white-space: nowrap;
}
.au-rev-bullet-1 .tp-bullet {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  float: none !important;
  margin: 0 10px !important;
}

/* --- Bozuk/stilsiz slick numaralı dot'larını her yerde gizle ------------- */
/* Tema JS'i konumu bozuk "01 02 03 04" dot'ları basıyordu; oklar navigasyon
   için yeterli. */
.slick-dots,
.slick__dots,
ul.slick-dots {
  display: none !important;
}

/* --- Tıklayınca büyüyen görseller + lightbox ---------------------------- */
.is-zoomable { cursor: zoom-in; }
.lb-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 20, 27, .92);
  backdrop-filter: blur(4px);
  padding: 4vw;
}
.lb-overlay.is-open { display: flex; animation: lb-fade .2s ease; }
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
.lb-figure { margin: 0; max-width: 92vw; max-height: 88vh; text-align: center; }
.lb-img {
  max-width: 92vw;
  max-height: 82vh;
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
  animation: lb-zoom .25s ease;
}
@keyframes lb-zoom { from { transform: scale(.94); opacity: .6; } to { transform: scale(1); opacity: 1; } }
.lb-caption { color: #e8eaed; margin-top: 14px; font-size: 15px; font-weight: 600; }
.lb-close, .lb-nav {
  position: absolute;
  background: rgba(255,255,255,.1);
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
}
.lb-close { top: 20px; right: 24px; width: 46px; height: 46px; font-size: 28px; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 22px; }
.lb-prev { left: 18px; }
.lb-next { right: 18px; }
.lb-close:hover, .lb-nav:hover { background: var(--accent); }
@media (max-width: 575.98px) {
  .lb-nav { width: 42px; height: 42px; }
  .lb-close { top: 12px; right: 12px; }
}

/* --- Referanslarımız: temiz beyaz logo kartları -------------------------- */
.section.bg-pattern-01 { background: var(--paper-alt) !important; }
.section.bg-pattern-01 .bg-overlay,
.section.bg-pattern-01::before { display: none !important; }
.section.bg-pattern-01 .section-title--light .title-1 { color: var(--brand-dark); }
.img-client {
  display: flex !important;
  align-items: center;
  justify-content: center;
  height: 120px;
  padding: 22px;
  margin-bottom: 24px !important;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.img-client img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: .72;
  transition: filter var(--transition), opacity var(--transition);
}
.img-client:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.img-client:hover img { filter: grayscale(0); opacity: 1; }

/* --- Sosyal ikonları büyüt + modernize (header) ------------------------- */
.header-social .list-social { display: flex; align-items: center; gap: 8px; }
.header-social .list-social__item a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--paper-alt);
  color: var(--brand-dark);
  font-size: 20px;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.header-social .list-social__item a:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-3px);
}
.header-social .ic-wa:hover { background: #25d366 !important; }

/* Footer sosyal ikonları biraz daha iri */
.footer .list-social__item a { width: 46px; height: 46px; font-size: 20px; }

/* Menü ve buton dokunma hedeflerini büyüt (mobil SEO / erişilebilirlik) */
.header-nav-menu .menu > .menu-item > a { font-size: 16px; padding: 10px 14px; }

/* --- Modern kart & bölüm cilası ----------------------------------------- */
.media-service {
  padding: 30px 22px;
  border-radius: var(--radius);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.media-service:hover {
  background: #fff;
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.media-service .media__img > img { transition: transform var(--transition); }
.media-service:hover .media__img > img { transform: translateY(-3px) scale(1.04); }

/* Proje kartlarında görsel oranını sabitle, hover zoom */
.media-project { border-radius: var(--radius); overflow: hidden; }
.media-project .media__img { overflow: hidden; }
.media-project .media__img img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform .5s ease;
}
.media-project:hover .media__img img { transform: scale(1.06); }

/* ==========================================================================
   RESPONSIVE-FIRST — akışkan tipografi + taşma düzeltmeleri
   ========================================================================== */

/* Sayfa asla yatay kaymasın */
html { overflow-x: hidden; }
img, svg, video, iframe, embed, object { max-width: 100%; }

/* Uzun kelimeler ekranı taşırmasın */
h1, h2, h3, h4,
.title-1, .title-2, .title-3, .entry-title, .key, .widget-title {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Akışkan başlık boyutları (clamp): masaüstünde büyük, mobilde küçülür,
   tema sınıflarını !important ile ezerek taşmayı bitirir */
.title-2,
.entry-title    { font-size: clamp(1.7rem, 4.6vw, 2.9rem) !important; line-height: 1.16 !important; }
.title-1        { font-size: clamp(1.5rem, 4vw, 2.4rem)  !important; line-height: 1.2  !important; }
.title-3        { font-size: clamp(1.25rem, 3vw, 1.8rem) !important; }
.entry-meta .key,
.section-title .title-1 { font-size: clamp(1.4rem, 3.6vw, 2.1rem) !important; }

/* Galeri (isotope) görselleri kolon genişliğine otursun (inline width temizliği) */
.wp-post-image { width: 100% !important; height: auto; display: block; }
.masonry-row .isotope-item a { display: block; overflow: hidden; border-radius: var(--radius); }
.masonry-row .isotope-item img { transition: transform .5s ease; }
.masonry-row .isotope-item a:hover img { transform: scale(1.05); }

/* Hizmet kartı numarası mobilde küçülsün */
.media-service .media__title .number { font-size: clamp(46px, 11vw, 82px); }

/* İletişim formu taşmasın */
.form-contact, .form-contact form { max-width: 100%; }
.form-contact .form-group,
.form-contact input,
.form-contact textarea,
.form-contact select { width: 100% !important; max-width: 100%; }
.contact-info__item { overflow-wrap: break-word; }

/* Footer logosu mobilde taşmasın */
.footer .widget img,
.footer .logo img { max-width: min(230px, 66vw); height: auto; }

/* --- Tablet ve altı --------------------------------------------------- */
@media (max-width: 991.98px) {
  /* Mobilde layout'u genişleten sabit/min genişlikleri sıfırla (yatay taşma) */
  .sub-menu { min-width: 0 !important; }
  .header-nav-menu-mobile,
  .header-nav-menu-mobile .menu,
  .header-nav-menu-mobile .sub-menu,
  .header-nav-menu-mobile .menu-item { min-width: 0 !important; max-width: 100% !important; }
  .media-about-2 { display: block !important; }
  .media-about-2 .media__img { min-width: 0 !important; width: 100% !important; }
  .project-style-3 .entry-summary { max-width: 100% !important; position: static !important; }

  .header-mobile__bar-inner .logo img { max-width: 180px; }
  section, .section { padding-top: clamp(2rem, 8vw, 3.5rem); padding-bottom: clamp(2rem, 8vw, 3.5rem); }
  .footer { padding-top: 3rem; }
  .footer [class*="p-l-"] { padding-left: 0 !important; }
}

/* --- Telefon ---------------------------------------------------------- */
@media (max-width: 575.98px) {
  .container, .container-fluid, .wrap { padding-left: 16px !important; padding-right: 16px !important; }
  .page-heading, .section-title { text-align: left; }
  .entry-title { hyphens: none; }
  .img-client { height: 96px; padding: 16px; }
  .media-project .media__img img { height: 220px; }
  /* masaüstü mega görsel kolonları tek sütuna insin */
  .col-lg-8.isotope-item { width: 100%; }
}
