/* ============================================================
   MEXSAN — Alt sayfa stilleri (hizmet detay, kurumsal, iletişim)
   ============================================================ */

/* ---------- Sayfa hero (breadcrumb bandı) ---------- */
.page-hero {
  position: relative;
  padding: 84px 0 96px;
  background:
    radial-gradient(800px 350px at 85% 0%, rgba(47, 111, 206, 0.25), transparent 60%),
    linear-gradient(160deg, var(--navy-950) 0%, var(--navy-800) 60%, var(--navy-700) 100%);
  color: #fff;
  overflow: hidden;
}
.page-hero .bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.14;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(5, 15, 36, 0.65), transparent 70%);
}
.page-hero .container { position: relative; z-index: 2; }
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(220, 231, 248, 0.75);
}
.breadcrumb a { color: rgba(220, 231, 248, 0.9); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--red-400); }
.breadcrumb .sep { color: var(--red-400); font-weight: 800; }
.page-hero h1 {
  margin-top: 16px;
  font-size: clamp(30px, 4.4vw, 50px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.5px;
  max-width: 800px;
}
.page-hero .page-sub {
  margin-top: 14px;
  max-width: 640px;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(220, 231, 248, 0.8);
}

/* ---------- İçerik + kenar çubuğu yerleşimi ---------- */
.page-section { padding: 90px 0; background: var(--bg-white); }
.layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 54px;
  align-items: start;
}

/* ---------- Zengin içerik tipografisi ---------- */
.detail { min-width: 0; }
.detail .lead-big {
  font-size: 19px;
  line-height: 1.75;
  color: var(--ink-900);
  font-weight: 600;
  padding-left: 22px;
  border-left: 4px solid var(--red-600);
}
.detail-body { margin-top: 30px; }
.detail-body h2 {
  font-size: 27px;
  font-weight: 800;
  color: var(--navy-800);
  margin: 38px 0 16px;
  letter-spacing: -0.3px;
}
.detail-body h3 { font-size: 21px; font-weight: 800; color: var(--navy-800); margin: 30px 0 12px; }
.detail-body p { font-size: 15.5px; line-height: 1.85; color: var(--ink-600); margin-bottom: 16px; }
.detail-body strong { color: var(--navy-800); }
.detail-body ul { margin: 18px 0 22px; display: grid; gap: 12px; }
.detail-body ul li {
  position: relative;
  padding-left: 34px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-600);
}
.detail-body ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(176, 31, 36, 0.1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b01f24' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center/11px no-repeat;
}

/* ---------- Galeri ---------- */
.gallery { margin-top: 44px; }
.gallery h2 { font-size: 27px; font-weight: 800; color: var(--navy-800); margin-bottom: 22px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.gallery-grid figure {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
}
.gallery-grid img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.gallery-grid figure:hover img { transform: scale(1.07); }
.gallery-grid figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 34px 16px 13px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(to top, rgba(5, 15, 36, 0.8), transparent);
}
.gallery-grid figure:first-child { grid-column: 1 / -1; }
.gallery-grid figure:first-child img { height: 340px; }

/* ---------- Kenar çubuğu ---------- */
.sidebar { display: grid; gap: 26px; position: sticky; top: calc(var(--header-h) + 24px); }
.widget {
  background: var(--bg-light);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
}
.widget > h4 {
  font-size: 17px;
  font-weight: 800;
  color: var(--navy-800);
  padding-bottom: 12px;
  margin-bottom: 16px;
  position: relative;
}
.widget > h4::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 34px; height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--red-600), var(--red-400));
}
.side-nav { display: grid; gap: 8px; }
.side-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink-600);
  transition: all 0.25s var(--ease);
}
.side-nav a svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--ink-400); transition: transform 0.25s; }
.side-nav a:hover { color: var(--blue-600); border-color: var(--blue-500); transform: translateX(4px); }
.side-nav a:hover svg { transform: translateX(3px); color: var(--blue-600); }
.side-nav a.active {
  color: #fff;
  background: linear-gradient(135deg, var(--navy-700), var(--blue-600));
  border-color: transparent;
}
.side-nav a.active svg { color: #fff; }

/* Kenar çubuğu CTA kartı */
.side-cta {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  padding: 34px 28px;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(300px 180px at 85% 0%, rgba(255, 90, 96, 0.25), transparent 60%),
    linear-gradient(150deg, var(--navy-900), var(--navy-700));
}
.side-cta .ic {
  width: 62px; height: 62px;
  margin: 0 auto;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: pulse 2.2s infinite;
}
.side-cta .ic svg { width: 26px; height: 26px; }
.side-cta h4 { margin-top: 18px; font-size: 18px; font-weight: 800; color: #fff; }
.side-cta p { margin-top: 8px; font-size: 13.5px; color: rgba(220, 231, 248, 0.75); line-height: 1.6; }
.side-cta .num {
  display: block;
  margin-top: 14px;
  font-size: 21px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.3px;
}
.side-cta .num:hover { color: var(--red-400); }
.side-cta .btn { margin-top: 18px; width: 100%; justify-content: center; }

/* WRAS kartı */
.side-wras { text-align: center; }
.side-wras img { border-radius: 12px; margin-inline: auto; }
.side-wras p { margin-top: 14px; font-size: 13.5px; color: var(--ink-600); line-height: 1.6; }

/* ---------- Hizmetler liste sayfası (açık zemin kart varyantı) ---------- */
.services-light .service-card {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.services-light .service-card:hover { background: #fff; box-shadow: var(--shadow-md); border-color: var(--line); }
.services-light .service-body h3 { color: var(--navy-800); }
.services-light .service-body p { color: var(--ink-600); }
.services-light .service-link { color: var(--red-600); }

/* ---------- İletişim sayfası ---------- */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 60px;
}
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 34px 26px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.contact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.contact-card .ic {
  width: 62px; height: 62px;
  margin: 0 auto;
  border-radius: 18px;
  display: grid; place-items: center;
  color: #fff;
  background: linear-gradient(140deg, var(--navy-700), var(--blue-500));
  box-shadow: 0 12px 26px rgba(27, 79, 156, 0.3);
}
.contact-card:nth-child(2) .ic { background: linear-gradient(140deg, var(--red-600), var(--red-400)); box-shadow: 0 12px 26px rgba(176, 31, 36, 0.3); }
.contact-card .ic svg { width: 27px; height: 27px; }
.contact-card h3 { margin-top: 18px; font-size: 18px; font-weight: 800; color: var(--navy-800); }
.contact-card p, .contact-card a { display: block; margin-top: 8px; font-size: 15px; color: var(--ink-600); line-height: 1.6; }
.contact-card a:hover { color: var(--red-600); }

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: stretch;
}
.contact-form-wrap {
  background: var(--bg-light);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 42px;
}
.contact-form-wrap h2 { font-size: 26px; font-weight: 800; color: var(--navy-800); }
.contact-form-wrap > p { margin-top: 8px; font-size: 14.5px; color: var(--ink-600); }
.form-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 700; color: var(--navy-800); }
.field input, .field textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: #fff;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink-900);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(47, 111, 206, 0.12);
}
.field .err { font-size: 12.5px; color: var(--red-600); font-weight: 600; }
.form-submit { margin-top: 24px; }

.alert-success {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 14px;
  background: #e8f7ee;
  border: 1px solid #bfe8cf;
  color: #176639;
  font-size: 14.5px;
  font-weight: 600;
  margin-bottom: 22px;
}
.alert-success svg { width: 22px; height: 22px; flex-shrink: 0; }

.contact-map {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  min-height: 420px;
  display: grid;
}
.contact-map iframe, .contact-map img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  border: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .page-hero { padding: 60px 0 70px; }
  .page-section { padding: 64px 0; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid figure:first-child img, .gallery-grid img { height: 230px; }
  .contact-form-wrap { padding: 28px 22px; }
  .form-grid { grid-template-columns: 1fr; }
}

/* ---------- Lightbox (galeri büyütme) ---------- */
.lb-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 15, 36, 0.92);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}
.lb-overlay.open { opacity: 1; visibility: visible; }
.lb-stage {
  position: relative;
  max-width: min(1100px, 92vw);
  max-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-stage img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  transform: scale(0.96);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.lb-overlay.open .lb-stage img { transform: scale(1); }
.lb-caption {
  margin-top: 16px;
  max-width: 700px;
  text-align: center;
  color: #dce7f8;
  font-size: 14.5px;
  font-weight: 600;
}
.lb-counter {
  margin-top: 6px;
  color: rgba(220, 231, 248, 0.55);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 2px;
}
.lb-close {
  position: fixed;
  top: 22px; right: 22px;
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.25s;
}
.lb-close:hover { background: var(--red-600); border-color: var(--red-600); transform: rotate(90deg); }
.lb-close svg { width: 20px; height: 20px; }
.lb-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: all 0.25s;
}
.lb-arrow:hover { background: var(--blue-600); border-color: var(--blue-600); }
.lb-arrow svg { width: 22px; height: 22px; }
.lb-prev { left: 24px; }
.lb-next { right: 24px; }
.lb-arrow.hidden { display: none; }
@media (max-width: 700px) {
  .lb-arrow { width: 42px; height: 42px; }
  .lb-prev { left: 10px; }
  .lb-next { right: 10px; }
  .lb-close { top: 12px; right: 12px; }
}

/* ---------- SSS (akordiyon) ---------- */
.faq-list { display: grid; gap: 14px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.25s, border-color 0.25s;
}
.faq-item[open] { border-color: rgba(27, 79, 156, 0.35); box-shadow: var(--shadow-md); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--navy-800);
  transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--blue-600); }
.faq-q { flex: 1; }
.faq-toggle {
  width: 34px; height: 34px;
  flex-shrink: 0;
  border-radius: 10px;
  display: grid; place-items: center;
  color: var(--blue-600);
  background: rgba(27, 79, 156, 0.08);
  transition: all 0.3s var(--ease);
}
.faq-toggle svg { width: 16px; height: 16px; }
.faq-item[open] .faq-toggle { background: var(--red-600); color: #fff; transform: rotate(180deg); }
.faq-a {
  padding: 0 22px 22px 22px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-600);
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin: 0 22px 22px;
  padding-left: 0; padding-right: 0;
}

/* ---------- 404 sayfası ---------- */
.error-page { min-height: 60vh; display: flex; align-items: center; }
.error-box-404 { max-width: 640px; margin: 0 auto; text-align: center; }
.err-code {
  font-size: clamp(90px, 16vw, 150px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -6px;
  color: var(--navy-800);
  display: flex; align-items: center; justify-content: center; gap: 4px;
}
.err-code .drop { font-size: 0.55em; letter-spacing: 0; animation: bob 2.2s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.error-box-404 h1 { margin-top: 12px; font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; color: var(--navy-800); }
.error-box-404 p { margin-top: 12px; font-size: 16px; color: var(--ink-600); line-height: 1.7; }
.err-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.err-links { margin-top: 34px; font-size: 14px; color: var(--ink-600); display: flex; flex-wrap: wrap; gap: 8px 14px; justify-content: center; }
.err-links a { color: var(--blue-600); font-weight: 700; }
.err-links a:hover { color: var(--red-600); }
