/*!
Theme Name: gvnMakinaTheme
Theme URI: https://gmsguvenmakine.com/
Author: GMS Güven Makine
Description: GMS Güven Makine kurumsal teması.
Version: 1.3.1
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: gvnmakinatheme

Tasarım stilleri assets/css/main.css dosyasındadır.
*/

/* ========== PANELDEN GELEN GÖRSELLER ========== */
.news-media { overflow: hidden; }

.news-media img,
.catalog-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.catalog-photo { overflow: hidden; }

.solution-media img,
.entry-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ========== İÇERİK (sayfa, haber, çözüm detayı) ========== */
.entry-media {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 32px;
}

.entry-media img { height: auto; }

.entry-content {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}

.entry-content > *:first-child { margin-top: 0; }
.entry-content > *:last-child { margin-bottom: 0; }

.entry-content p,
.entry-content ul,
.entry-content ol {
  margin-bottom: 18px;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--navy);
  font-weight: 800;
  margin: 32px 0 12px;
  line-height: 1.25;
}

.entry-content h2 { font-size: 28px; }
.entry-content h3 { font-size: 20px; font-weight: 700; }
.entry-content h4 { font-size: 17px; font-weight: 700; }

.entry-content a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-content a:hover { color: var(--blue); }

.entry-content strong { color: var(--text); }

.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

.entry-content blockquote {
  border-left: 2px solid var(--navy);
  padding: 4px 0 4px 20px;
  margin: 24px 0;
  color: var(--text);
  font-size: 16px;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 18px;
  font-size: 14px;
}

.entry-content th,
.entry-content td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
}

.entry-content th {
  background: var(--bg);
  color: var(--navy);
  font-weight: 700;
}

.entry-footer {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

/* ========== GÖRSELLER ========== */
/* main.css'teki yedek slider görselinin WebP hali. */
.hero-slide {
  background:
    linear-gradient(90deg, rgba(255,255,255,0.94) 0%, rgba(255,255,255,0.82) 28%, rgba(255,255,255,0.28) 50%, rgba(255,255,255,0) 66%),
    url("assets/images/slider-1.webp") center right / cover no-repeat;
}

/* Yan yana butonlar aynı boya uzar; yazı dikeyde ortada kalsın. */
.hero-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ========== ÇÖZÜM KARTLARI ========== */
.work-media-link { display: block; }

/* ========== SLIDER ZOOM IN ========== */
/* Görsel (inline style dahil) ::before katmanına kopyalanır; yazılar ölçeklenmez. */
.hero-slide { overflow: hidden; }

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  transform-origin: right center;
  will-change: transform;
}

.hero-slide > .container { position: relative; }

.hero .carousel-item.active .hero-slide::before {
  animation: gms-hero-zoom-in 8s ease-out forwards;
}

@keyframes gms-hero-zoom-in {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero .carousel-item.active .hero-slide::before { animation: none; }
}

/* ========== KAYDIRMA ========== */
/* Lenis kaydırmayı kendisi yumuşatır; Bootstrap'in CSS smooth scroll'u onunla çakışır. */
html.lenis {
  scroll-behavior: auto;
}

html {
  scrollbar-color: var(--navy) var(--bg);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--navy);
  border: 2px solid var(--bg);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--navy-deep);
}

/* ========== TEKLİF KUTUSU ========== */
.cta-box {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px 26px;
}

.cta-box h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.cta-box p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
	margin-bottom: 20px;
}

/* ========== ANA SAYFA REFERANS ŞERİDİ ========== */
.logo-marquee {
  --gms-logo-cols: 6;
  --gms-logo-gap: 12px;
  --gms-logo-fade: 72px;
  overflow: hidden;
  container-type: inline-size;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--gms-logo-fade), #000 calc(100% - var(--gms-logo-fade)), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 var(--gms-logo-fade), #000 calc(100% - var(--gms-logo-fade)), transparent);
}

.logo-track {
  display: flex;
  width: max-content;
  animation: gms-marquee var(--gms-marquee-duration, 40s) linear infinite;
}

.logo-marquee:hover .logo-track,
.logo-marquee:focus-within .logo-track {
  animation-play-state: paused;
}

/* Gap is a margin, not flex gap, so -50% lands exactly on the start of the copy. */
.logo-track .logo-box {
  flex: 0 0 auto;
  width: calc((100cqw - (var(--gms-logo-cols) - 1) * var(--gms-logo-gap)) / var(--gms-logo-cols));
  margin-right: var(--gms-logo-gap);
}

@keyframes gms-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 991.98px) {
  .logo-marquee { --gms-logo-cols: 4; }
}

@media (max-width: 575.98px) {
  .logo-marquee { --gms-logo-cols: 2; --gms-logo-fade: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .logo-marquee { overflow-x: auto; }
  .logo-track { animation: none; }
  .logo-track [aria-hidden="true"] { display: none; }
}

/* ========== REFERANSLAR SAYFASI ========== */
.logo-grid.logo-grid-4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.logo-grid-4 .logo-box {
  height: 120px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.logo-grid-4 .logo-box:hover {
  color: var(--navy);
  border-color: var(--navy);
  box-shadow: 0 4px 12px rgba(14, 58, 93, 0.06);
}

@media (max-width: 767.98px) {
  .logo-grid.logo-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .logo-grid-4 .logo-box { height: 96px; }
}

/* ========== SEKTÖRLER SAYFASI ========== */
.sector-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(14, 58, 93, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.sector-card:hover {
  border-color: var(--navy);
  box-shadow: 0 12px 26px rgba(14, 58, 93, 0.1);
  transform: translateY(-2px);
}

.sector-card .sector-pill-icon { margin-bottom: 18px; }

.sector-card .sector-pill-icon .lucide {
  width: 20px;
  height: 20px;
  color: var(--navy);
}

.sector-card h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 10px;
}

.sector-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 18px;
}

.sector-card .btn-link-navy { margin-top: auto; }

/* ========== MAKİNE PARKI SAYFASI ========== */
.machine-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.machine-photo {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: #e8edf2;
}

.machine-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

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

.machine-photo:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

body:has(.machine-lightbox.show) .modal-backdrop { --bs-backdrop-opacity: 0.85; }

.machine-lightbox .modal-content {
  background: transparent;
  border: 0;
}

.machine-lightbox .carousel-item img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 85vh;
  margin: 0 auto;
  border-radius: 6px;
}

.machine-lightbox .carousel-control-prev,
.machine-lightbox .carousel-control-next,
.machine-lightbox-close {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.machine-lightbox .carousel-control-prev,
.machine-lightbox .carousel-control-next {
  top: 50%;
  transform: translateY(-50%);
}

.machine-lightbox .carousel-control-prev { left: 12px; }
.machine-lightbox .carousel-control-next { right: 12px; }

.machine-lightbox-close {
  position: absolute;
  top: -56px;
  right: 0;
  z-index: 2;
}

.machine-lightbox .carousel-control-prev:hover,
.machine-lightbox .carousel-control-next:hover,
.machine-lightbox-close:hover {
  background: var(--navy);
  color: #fff;
}

.machine-lightbox .lucide {
  width: 20px;
  height: 20px;
}

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

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

/* ========== İLETİŞİM SAYFASI ========== */
.contact-items {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

/* .sector-pill görünümü, iki satırlı içerikle. */
.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(14, 58, 93, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

a.contact-item:hover {
  border-color: var(--navy);
  box-shadow: 0 12px 26px rgba(14, 58, 93, 0.1);
  transform: translateY(-2px);
}

.contact-item .lucide {
  width: 20px;
  height: 20px;
  color: var(--navy);
}

.contact-item-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}

.contact-item-value {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.45;
}

.contact-form-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 36px 32px;
  scroll-margin-top: 110px;
}

.contact-form .form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.contact-form .form-control,
.contact-form .form-select {
  border: 1px solid var(--line);
  border-radius: 4px;
  background-color: #fff;
  font-size: 14px;
  color: var(--text);
  padding: 11px 14px;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(14, 58, 93, 0.12);
}

.contact-form textarea.form-control { min-height: 140px; }

.contact-form .wpcf7-form-control-wrap { display: block; }

.contact-form .wpcf7-acceptance .wpcf7-list-item { margin: 0; }

.contact-form .wpcf7-acceptance label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
}

.contact-form .wpcf7-acceptance input { margin-top: 3px; accent-color: var(--navy); }

.contact-form .btn-navy {
  font-size: 12px;
  padding: 13px 26px;
}

.contact-form .btn-navy:disabled {
  background: var(--navy);
  color: #fff;
  opacity: 0.45;
}

.contact-form .wpcf7-not-valid-tip {
  font-size: 12px;
  margin-top: 4px;
}

.contact-form .form-control.wpcf7-not-valid { border-color: #dc3232; }

.contact-form .wpcf7-response-output {
  margin: 20px 0 0 !important;
  padding: 12px 16px !important;
  border-radius: 4px;
  font-size: 14px;
  background: #fff;
}

.contact-map {
  height: 420px;
  border-top: 1px solid var(--line);
  background: #e8edf2;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 575.98px) {
  .contact-form-card { padding: 26px 20px; }
  .contact-map { height: 300px; }
  /* iOS Safari 16px altındaki alanlarda odaklanınca sayfayı yakınlaştırır. */
  .contact-form .form-control,
  .contact-form .form-select { font-size: 16px; }
}

/* ========== ALT BANT ========== */
.credit-band {
  background: #04141f;
  border-top: 1px solid #1c3348;
  padding: 8px 0;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.credit-band a {
  color: #8fa0b0;
  transition: color 0.2s ease;
}

.credit-band a:hover { color: var(--orange); }

/* ========== YUKARI ÇIK ========== */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1030;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 10px 24px rgba(7, 30, 50, 0.18);
  opacity: 0;
  visibility: hidden;
  translate: 0 12px;
  transition: opacity 0.25s ease, translate 0.25s ease, visibility 0.25s, background-color 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  translate: 0 0;
}

.back-to-top:hover { background: var(--navy-deep); }

.back-to-top:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

@media (max-width: 575.98px) {
  .back-to-top { right: 16px; bottom: 16px; width: 40px; height: 40px; }
}

/* ========== KAYDIRINCA BELİREN İÇERİK ========== */
/* transform yerine translate: kartların kendi hover transform'larıyla çakışmaz. */
.gms-reveal {
  opacity: 0;
  translate: 0 20px;
  transition: none;
}

.gms-reveal.is-revealed {
  opacity: 1;
  translate: 0 0;
  transition: opacity 0.6s ease, translate 0.6s ease;
  transition-delay: var(--gms-reveal-delay, 0ms);
}

/* ========== MOBİL DÜZELTMELER ========== */
.lang-switch { white-space: nowrap; }

/* g-5 satırının negatif kenar boşluğu container dolgusundan geniş; sayfayı yana taşırıyor. */
.container:has(> .row.g-5) { overflow-x: clip; }

@media (max-width: 575.98px) {
  .section-head { flex-wrap: wrap; }
}

/* ========== SAYFALAMA ========== */
.pagination {
  display: block;
  margin-top: 48px;
}

.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.pagination .page-numbers {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--navy);
  font-family: Montserrat, Inter, sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.pagination .page-numbers.dots {
  border: 0;
  background: transparent;
  color: var(--muted);
}

.pagination .lucide {
  width: 16px;
  height: 16px;
}

.logo-box img {
  max-width: 78%;
  max-height: 70px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ========== WORDPRESS UYUMU ========== */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #fff;
  clip: auto !important;
  clip-path: none;
  color: var(--navy);
  display: block;
  font-size: 14px;
  font-weight: 700;
  height: auto;
  left: 8px;
  padding: 12px 20px;
  top: 8px;
  width: auto;
  z-index: 100000;
}

.admin-bar .site-header { top: 32px; }

@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

@media (max-width: 600px) {
  .admin-bar .site-header { top: 0; }
}

.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: var(--muted); margin-top: 6px; }
