/* ===== GENEL AYARLAR ===== */
:root {
  --nx-accent: #BF9145;
  --nx-text: #1f2328;
  --nx-muted: #5b626a;
  --nx-bg: #fafbfc;
}

.nx-project {
  background: var(--nx-bg);
  padding: 64px 20px;
}

.nx-wrap {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

/* ===== SOL İÇERİK ===== */
.nx-main {
  flex: 1 1 640px;
  max-width: 780px;
}

.nx-eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--nx-accent);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.nx-title {
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.2;
  margin: .1em 0 .4em;
  color: var(--nx-text);
  font-weight: 800;
}

.nx-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}

.nx-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #e7e9ec;
  border-radius: 999px;
  background: #fff;
  color: var(--nx-muted);
  font-size: 14px;
}

.nx-lead {
  font-size: 19px;
  line-height: 1.8;
  color: #3a4046;
  max-width: 68ch;
  margin: 14px 0 26px;
}

.nx-sub {
  font-size: 20px;
  font-weight: 700;
  margin: 26px 0 12px;
  position: relative;
  color: #2a2f34;
}

.nx-sub::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 64px;
  height: 3px;
  background: var(--nx-accent);
  border-radius: 2px;
}

.nx-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 68ch;
}

.nx-list li {
  position: relative;
  padding-left: 18px;
  margin: 10px 0;
  line-height: 1.7;
  color: #454c52;
}

.nx-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .78em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--nx-accent);
  opacity: .9;
}

.nx-block p {
  max-width: 68ch;
  line-height: 1.8;
  color: #3a4046;
}

.nx-mark {
  color: var(--nx-accent);
  font-weight: 600;
  position: relative;
}

.nx-mark::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 2px;
  background: rgba(191, 145, 69, 0.3);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s ease;
}

.nx-mark:hover::after {
  transform: scaleX(1);
}

/* ===== SAĞ PANEL ===== */
.nx-aside {
  flex: 0 0 320px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-self: flex-start;
}

.nx-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  transition: transform .18s ease, 
              box-shadow .25s ease, 
              background .25s ease, 
              color .25s ease, 
              border-color .25s ease;
}

.nx-primary {
  background: var(--nx-accent);
  color: #fff;
  box-shadow: 0 10px 22px rgba(191, 145, 69, .25);
}

.nx-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(191, 145, 69, .35);
}

.nx-outline {
  background: #fff;
  color: var(--nx-accent);
  border: 2px solid var(--nx-accent);
}

.nx-outline:hover {
  background: var(--nx-accent);
  color: #fff;
  transform: translateY(-2px);
}

.nx-card {
  background: #fff;
  border: 1px solid #eceff2;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .05);
}

.nx-mini {
  font-size: 16px;
  margin: 0 0 8px;
  font-weight: 700;
  color: #2a2f34;
}

.nx-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nx-bullets li {
  position: relative;
  padding-left: 14px;
  margin: 8px 0;
  color: #525a61;
}

.nx-bullets li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--nx-accent);
}

/* ===== ANİMASYON ===== */
.nx-main,
.nx-aside,
.nx-chip,
.nx-btn,
.nx-card {
  animation: nxFade .6s ease both;
}

.nx-chip { animation-delay: .05s; }
.nx-btn { animation-delay: .1s; }
.nx-card { animation-delay: .15s; }

@keyframes nxFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .nx-wrap {
    gap: 28px;
  }
  .nx-aside {
    flex-basis: 100%;
  }
}

/* ===== VIDEO MODAL ===== */

/* Grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: start;
}

/* Kart */
.video-card {
  display: block;
  text-decoration: none;
  color: inherit;
  font: 600 16px/1.4 system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
}
.video-title {
  margin: 10px 2px 0;
  font-size: clamp(14px, 2.2vw, 18px);
  color: #222;
}

/* Oran koruyan çerçeve (fallback + modern) */
.video-frame {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #0a0a0a;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  transform: translateZ(0);
  transition: transform .35s ease, box-shadow .35s ease;
}

/* Fallback: padding tabanlı oran */
.video-frame::before {
  content: "";
  display: block;
  padding-bottom: 56.25%; /* 16:9 varsayılan */
}
.video-card[data-ratio="4x3"] .video-frame::before { padding-bottom: 75%; }
.video-card[data-ratio="1x1"] .video-frame::before { padding-bottom: 100%; }

/* Modern: aspect-ratio destekliyse kullan */
@supports (aspect-ratio: 16/9) {
  .video-frame { aspect-ratio: 16 / 9; }
  .video-frame::before { display: none; }
  .video-card[data-ratio="4x3"] .video-frame { aspect-ratio: 4 / 3; }
  .video-card[data-ratio="1x1"] .video-frame { aspect-ratio: 1 / 1; }
}

/* Thumbnail */
.video-frame .thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;   /* taşma yok, responsive kapla */
  object-position: center;
  display: block;
  filter: saturate(1.1) contrast(1.02);
  transition: transform .35s ease;
}

/* Overlay ve efekti */
.video-frame .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.0), rgba(0,0,0,.25));
  pointer-events: none;
}

/* Play butonu */
.video-frame .play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: #c29548;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
    cursor: pointer;
    transition: transform .35s ease, background .35s ease, color .35s ease;
    display: flex;
    align-content: center;
    justify-content: center;
    align-items: center;
}

/* Badge */
.video-frame .badge {
  position: absolute;
  left: 12px; top: 12px;
  padding: 6px 10px;
  font-size: 12px;
  letter-spacing: .3px;
  background: rgba(0,0,0,.6);
  color: #fff;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  line-height:20px;
}

/* Hover/Focus halleri */
.video-card:hover .video-frame,
.video-card:focus-visible .video-frame {
  transform: scale(1.02);
  box-shadow: 0 14px 32px rgba(0,0,0,.35);
}
.video-card:hover .thumb,
.video-card:focus-visible .thumb {
  transform: scale(1.04);
}
.video-card:hover .play,
.video-card:focus-visible .play {
  transform: translate(-50%, -50%) scale(1.06);
  background: #fff;
  color: #ff2d55;
  outline: none;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .video-frame, .thumb, .play { transition: none; }
}

/* Modal */
.video-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(2px);
}
.video-modal.is-open { display: grid; place-items: center; }

.video-modal-content {
    position: relative;
    width: 100%;
    max-width: 42vh;
    height: fit-content;
    bottom: -40px;
}
.video-modal video {
  display: block;
  width: 100%;
  height: auto; /* genişlik kadar yükseklik */
  max-height: 90vh; /* taşmayı engelle */
  object-fit: contain; /* yatay ve dikey videoları düzgün göster */
  background: #000;
  border-radius: 12px;
}
.video-close {
    position: absolute;
    top: 15px;
    right: -13px;
    border: 0;
    background: rgba(255, 255, 255, .92);
    color: #111;
    font-size: 13px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .35);
    margin: 0px;
    text-align: center;
    padding: 0px !important;
    border-radius: 50%;
    width: 30px !important;
    height: 30px !important;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Küçük ekran iyileştirmeleri */
@media (max-width: 480px) {
  .video-frame .play { width: 56px; height: 56px; }
  .video-close { top: -40px; }
}

/* Teklif Formu */

:root { --accent: #BF9145; }

.tf-modern-section {
  background: linear-gradient(135deg, rgba(191,145,69,0.06), rgba(191,145,69,0.12));
  padding: clamp(60px, 8vw, 100px) 20px;
  text-align: center;
}

.tf-modern-container {
  max-width: 880px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  padding: 40px 30px;
  box-shadow: 0 10px 32px rgba(0,0,0,0.08);
}

.tf-modern-header {
  margin-bottom: 32px;
}
.tf-modern-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.tf-modern-subtitle {
  color: #444;
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.6;
  margin: 0 auto;
  max-width: 600px;
}

.tf-modern-form { text-align: left; }

.tf-modern-row {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-content: space-around;
}
.tf-modern-row input,
.tf-modern-row textarea {
  flex: 1;
  min-width: calc(50% - 10px);
  padding: 14px 16px;
  border: 1px solid rgba(191,145,69,0.35);
  border-radius: 10px;
  background: #fdfdfd;
  font-size: 16px;
  transition: border .2s, box-shadow .2s;
}

.tf-modern-row textarea {
  min-width: 100%;
}

.tf-modern-row input:focus,
.tf-modern-row textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(191,145,69,0.18);
  outline: none;
}

.tf-modern-consent {
  text-align: left;
  margin-bottom: 18px;
  font-size: 14px;
}
.tf-modern-consent .wpcf7-acceptance label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
  color: #333;
}
.tf-modern-consent input[type="checkbox"] {
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
  margin-top: 2px;
}
.tf-modern-consent a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
}

.wpcf7 input[type="submit"] {
  width: 100%;
  background: var(--accent);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  padding: 16px 20px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background .25s, box-shadow .25s;
}
.wpcf7 input[type="submit"]:hover {
  background: #a47a37;
  box-shadow: 0 8px 24px rgba(191,145,69,0.3);
}

/* Teşekkür Mesajı */
.tf-thanks-message {
  display: none;
  text-align: center;
  background: rgba(191,145,69,0.08);
  padding: 14px 16px;
  border-radius: 10px;
  color: #2b2b2b;
  margin-top: 20px;
}

/* CF7 hata mesajları */
.wpcf7-not-valid-tip { color: red; font-size: 13px; margin-top: 4px; }
.wpcf7-response-output { display: none !important; }

.tf-modern-row span {
    float: left;
    width: 50%;
    padding-right: 5px;
    padding-left: 5px;
}

.tf-modern-row.full span {
    width: 100% !important;
    max-width: 100% !important;
}

@media (max-width: 768px) {
  .tf-modern-row span {
    width: 100% !important;
  }
}
