/* Shared subpage styles. Keeps base tokens from styles.css */
.page-hero {
  padding: 72px 0 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.0));
}
.page-hero .btn { margin-top: 8px; }
.page-hero h1 { margin: 0 0 8px; letter-spacing: -0.01em; }
.product-list, .service-flow, .about { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Remove top gap right after page hero for the product matrix section */
.page-hero + .section { padding-top: 20px; }

@media (max-width: 960px) {
  .product-list, .service-flow, .about { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .product-list, .service-flow, .about { grid-template-columns: 1fr; }
}


/* About page premium layout */
.about-layout { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; }
.about-stack { display: grid; gap: 64px; }
.anchor-section {
  scroll-margin-top: 96px; /* offset for sticky header/subnav */
}
.anchor-section h2 {
  margin: 4px 0 8px;
  font-size: 28px;
  letter-spacing: -0.01em;
}
.anchor-section p { color: var(--muted); }

/* Media collage styling */
.about-item { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 28px; align-items: start; overflow: hidden; padding: 24px; position: relative; box-shadow: var(--shadow-soft); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius); background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)); }
.about-item:nth-child(2n) { grid-template-columns: 0.85fr 1.15fr; }
.about-item:nth-child(2n) .about-content { order: 2; }
.about-item:nth-child(2n) .about-media { order: 1; }
.about-content { max-width: 72ch; }
.about-content p { margin: 0; line-height: 1.8; font-size: 17px; }

.media-collage { position: relative; min-height: 220px; }
.media-glow { position: absolute; inset: -20px; background: radial-gradient(40% 40% at 60% 40%, rgba(255,59,48,0.25), rgba(255,59,48,0) 60%); filter: blur(18px); z-index: 0; }
.media-main { position: relative; z-index: 1; width: 100%; height: 240px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.about-item#misyonumuz .media-main { object-position: 50% 40%; }
.media-float { position: absolute; z-index: 2; right: -8px; bottom: -10px; width: 46%; height: 140px; object-fit: cover; border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; box-shadow: 0 18px 38px rgba(0,0,0,0.45); transform: rotate(-2deg); }

@media (max-width: 960px) {
  .about-item { grid-template-columns: 1fr; padding: 18px; gap: 20px; }
  .about-item:nth-child(2n) .about-content, .about-item:nth-child(2n) .about-media { order: initial; }
  .media-main { height: 200px; }
  .media-float { position: absolute; right: 8px; bottom: 8px; transform: none; width: 42%; height: 120px; }
}

/* Phone-only: ensure Vizyonumuz stacks text first, image second (no tablet/desktop change) */
@media (max-width: 600px) {
  /* Force single column for Vizyonumuz to avoid empty right column */
  .about-item#vizyonumuz { grid-template-columns: 1fr; }
  .about-item#vizyonumuz .about-content { grid-row: 1; grid-column: 1; width: 100%; max-width: none; }
  .about-item#vizyonumuz .about-media { grid-row: 2; grid-column: 1; }
}


/* Hizmetler sayfası: ana sayfa hero'dan ayrışan düzen ve overlay */
.hero.hero--page .hero-video { filter: saturate(110%) brightness(0.75); }
.hero.hero--page .hero-overlay { display: block; position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
/* Hizmetler sayfasında içerik konumunu klasik sol-üst hizaya alalım */
.hero.hero--page .hero-inner { display: grid; grid-template-columns: 1.2fr 0.8fr; align-items: center; }
.hero.hero--page .hero-content { position: relative; right: auto; bottom: auto; text-align: left; padding-top: 0; padding-bottom: 0; }
.hero.hero--page .hero-content h1 { font-size: 48px; text-shadow: 0 8px 28px rgba(0,0,0,0.45); padding-left: 0; }
.hero.hero--page .lead { padding-left: 0; }
/* Hizmetler hero butonları sağda hizalansın */
.hero.hero--page .hero-aside { justify-self: end; align-self: center; margin-top: 12px; text-align: right; }
.hero.hero--page .hero-aside .service-chips { justify-content: flex-end; }

@media (max-width: 600px) {
  .hero.hero--page .hero-inner { grid-template-columns: 1fr; }
  .hero.hero--page .hero-aside { justify-self: start; text-align: left; }
  .hero.hero--page .hero-aside .service-chips { justify-content: flex-start; }
  .hero.hero--page .hero-content h1 { font-size: 34px; }
}

/* İletişim sayfası: hero düzenini bağımsız yap (sol metin, sağ form) */
.hero.hero--contact { padding-top: 32px; }
.hero.hero--contact .hero-video { filter: saturate(110%) brightness(0.75); }
.hero.hero--contact .hero-overlay { display: block; position: absolute; inset: 0; background: rgba(0,0,0,0.45); }
.hero.hero--contact .hero-inner { display: grid; grid-template-columns: 1fr; align-items: start; gap: 16px; }
.hero.hero--contact .hero-header { grid-column: 1 / -1; text-align: center; margin: 8px 0; }
.hero.hero--contact .hero-header h1 { color: #ffffff; margin: 6px 0 4px; }
.hero.hero--contact .hero-content { position: relative; right: auto; bottom: auto; text-align: left; padding-top: 0; padding-bottom: 0; }
.hero.hero--contact .hero-content h1 { font-size: 40px; text-shadow: 0 8px 28px rgba(0,0,0,0.45); padding-left: 0; color: #ffffff; margin: 0; }
.hero.hero--contact .lead { padding-left: 0; text-align: center; margin: 0; max-width: none; }
@media (min-width: 960px) {
  .hero.hero--contact .lead { white-space: nowrap; }
}

/* Üç eşit kutulu elite düzen */
.hero.hero--contact .hero-three-boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 12px;
  align-items: start;
}

.hero.hero--contact .hero-three-boxes .card {
  background: #ffffff;
  border: 1px solid rgba(2,6,23,0.12);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(2,6,23,0.35);
  padding: 0; /* decouple sizing from shared rule */
  min-height: auto;
  display: flex;
  flex-direction: column;
}

.hero.hero--contact .hero-three-boxes .contact-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  min-height: 260px;
  padding: 22px; /* per-card padding */
}

.hero.hero--contact .hero-three-boxes .map-card {
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
  min-height: 340px; /* slightly taller for bottom alignment */
  padding: 22px; /* per-card padding */
}

.hero.hero--contact .hero-three-boxes .form-card {
  background: linear-gradient(135deg, #ffffff 0%, #fef7f0 100%);
  min-height: 360px;
  padding: 20px; /* per-card padding */
}

.hero.hero--contact .hero-three-boxes .section-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 12px;
  color: #1e293b;
  text-align: center;
  border-bottom: 2px solid #02214c;
  padding-bottom: 8px;
}

.hero.hero--contact .hero-three-boxes .contact-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero.hero--contact .hero-three-boxes .contact-list li {
  padding: 8px 12px;
  background: rgba(255,255,255,0.8);
  border-radius: 8px;
  border-left: 4px solid #02214c;
  font-size: 14px;
  line-height: 1.4;
}

.hero.hero--contact .hero-three-boxes .contact-list strong {
  display: block;
  color: #1e293b;
  font-weight: 600;
  margin-bottom: 2px;
}

/* Sadece iletişim kartında WhatsApp butonunun boşluk davranışını sıkılaştır */
.hero.hero--contact .hero-three-boxes .contact-card .btn-whatsapp {
  margin-top: 10px;
}

.hero.hero--contact .hero-three-boxes .map-embed {
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.hero.hero--contact .hero-three-boxes .map-embed iframe {
  width: 100%;
  height: 100%;
  min-height: 325px; /* ensure map fills the increased card height */
  border: 0;
}

.hero.hero--contact .hero-three-boxes .contact-form {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hero.hero--contact .hero-three-boxes .form-grid {
  flex: 1;
  display: grid;
  gap: 8px;
}

.hero.hero--contact .hero-three-boxes .form-grid label {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hero.hero--contact .hero-three-boxes .form-grid .full {
  grid-column: 1 / -1;
}

.hero.hero--contact .hero-three-boxes input,
.hero.hero--contact .hero-three-boxes textarea {
  padding: 9px 10px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero.hero--contact .hero-three-boxes input:focus,
.hero.hero--contact .hero-three-boxes textarea:focus {
  border-color: #02214c;
  box-shadow: 0 0 0 3px rgba(2, 33, 76, 0.12);
  outline: none;
}

.hero.hero--contact .hero-three-boxes .btn-whatsapp {
  margin-top: auto;
  background: linear-gradient(180deg, #25D366, #1DA851);
  color: #fff;
  padding: 14px 20px;
  border-radius: 10px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero.hero--contact .hero-three-boxes .btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
}

/* İletişim formu gönder butonu: header mavisinin daha açık uyumlu tonu */
.hero.hero--contact .hero-three-boxes .contact-form .btn {
  background: linear-gradient(180deg, #3a64a3 0%, #2a5594 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18), 0 8px 20px rgba(58, 100, 163, 0.35);
  margin-top: 10px;
  padding: 14px 20px;
  font-weight: 600;
  border-radius: 10px;
}
.hero.hero--contact .hero-three-boxes .contact-form .btn:hover { 
  filter: brightness(1.06);
  transform: translateY(-1px);
}

@media (max-width: 960px) {
  .hero.hero--contact .hero-inner { grid-template-columns: 1fr; }
  .hero.hero--contact .hero-three-boxes { 
    grid-template-columns: 1fr; 
    gap: 20px; 
    margin-top: 24px; 
  }
  .hero.hero--contact .hero-three-boxes .card { 
    min-height: auto; 
    padding: 24px; 
  }
  .hero.hero--contact .hero-three-boxes .map-embed iframe { 
    min-height: 240px; 
  }
}

@media (max-width: 600px) {
  .hero.hero--contact .hero-content h1 { font-size: 34px; }
  .hero.hero--contact .hero-three-boxes { 
    gap: 16px; 
    margin-top: 20px; 
  }
  .hero.hero--contact .hero-three-boxes .card { 
    padding: 20px; 
  }
  .hero.hero--contact .hero-three-boxes .section-title { 
    font-size: 20px; 
  }
  .hero.hero--contact .hero-three-boxes .map-embed iframe { 
    min-height: 200px; 
  }
}

/* Projelerimiz: profesyonel callout, filtre çipleri ve kartlar */
.portfolio-callout { display: flex; align-items: center; gap: 20px; padding: 24px; border-radius: var(--radius); border: 1px solid rgba(2,6,23,0.08); background: linear-gradient(135deg, rgba(2,6,23,0.035), rgba(2,6,23,0.06)); box-shadow: var(--shadow-soft); }
.portfolio-callout .portfolio-icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.12)); box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 12px 32px rgba(2,6,23,0.25); }
.portfolio-callout .portfolio-content h2 { margin: 0 0 6px; }
.portfolio-callout .portfolio-content p { margin: 0 0 10px; color: var(--muted); }
.portfolio-callout .portfolio-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.portfolio-callout .portfolio-note { display: block; margin-top: 8px; opacity: .8; }

.section-intro { text-align: center; max-width: 760px; margin: 0 auto 20px; opacity: .9; }
.section-title { text-align: center; margin-bottom: 8px; }

.portfolio-filter { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.portfolio-filter .service-chip { padding: 8px 12px; border-radius: 999px; background: #f1f2f4; color: #0f172a; border: 1px solid rgba(2,6,23,0.08); box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset; }

.projects-grid .card { transition: transform .18s ease, box-shadow .18s ease, border-color .2s ease; border: 1px solid rgba(2,6,23,0.08); box-shadow: var(--shadow-soft); overflow: hidden; }
.projects-grid .card:hover { transform: translateY(-3px); box-shadow: 0 24px 60px rgba(2,6,23,0.2); border-color: rgba(2,6,23,0.18); }
.projects-grid .card img { height: 320px; object-fit: contain; width: 100%; display: block; background: #0b1220; }
.projects-grid .card .card-body { padding: 14px 16px; }
.projects-grid .card .card-body h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -0.01em; }
.projects-grid .card .card-body p { margin: 0; color: var(--muted); }

/* Proje içi mini slider */
.project { display: flex; flex-direction: column; }
.project-slider { position: relative; overflow: hidden; background: linear-gradient(180deg, #0b1220, #0a0f1c); }
.project-viewport { position: relative; width: 100%; overflow: hidden; }
.project-track { position: relative; z-index: 1; display: flex; margin: 0; padding: 0; list-style: none; transition: transform 360ms ease; }
.project-track li { min-width: 100%; display: block; }
.project-track img { width: 100%; height: 360px; object-fit: contain; background: #0b1220; }
.project-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.24); background: rgba(8,12,20,0.55); color: #fff; cursor: pointer; display: grid; place-items: center; backdrop-filter: blur(4px); box-shadow: 0 8px 24px rgba(0,0,0,0.35); z-index: 2; }
.project-nav:hover { background: rgba(8,12,20,0.75); }
.project-nav.prev { left: 10px; }
.project-nav.next { right: 10px; }

@media (max-width: 600px) {
  .portfolio-callout { 
    padding: 18px; 
    gap: 14px; 
    flex-direction: column;
    text-align: center;
  }
  .portfolio-callout .portfolio-icon { width: 48px; height: 48px; border-radius: 12px; }
  .portfolio-callout .portfolio-content h2 {
    font-size: 18px;
    line-height: 1.3;
    word-break: break-word;
    hyphens: auto;
  }
  .portfolio-callout .portfolio-content p {
    font-size: 14px;
    line-height: 1.4;
  }
  .portfolio-callout .portfolio-actions {
    justify-content: center;
    gap: 8px;
  }
  .projects-grid .card img { height: 240px; }
  .project-track img { height: 280px; }
  
  /* Projelerimiz hero section mobile fixes */
  .section:first-of-type h1 { 
    font-size: 28px; 
    line-height: 1.2; 
    margin-bottom: 12px;
    word-break: break-word;
  }
  .section:first-of-type .lead { 
    font-size: 14px; 
    line-height: 1.5; 
    margin-bottom: 16px;
    word-break: break-word;
    hyphens: auto;
    white-space: normal;
    max-width: none;
  }
  .section:first-of-type .projects-cta {
    margin-top: 16px;
  }
}

/* İki sütunlu proje satırı (sol metin, sağ slider) */
.projects-list { display: grid; gap: 22px; }
.project-item { display: grid; grid-template-columns: 1fr 1.2fr; gap: 20px; align-items: center; padding: 18px; border: 1px solid rgba(2,6,23,0.08); border-radius: var(--radius); background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)); box-shadow: var(--shadow-soft); }
.project-item .project-content h3 { margin: 0 0 8px; letter-spacing: -0.01em; }
.project-item .project-content p { margin: 0 0 10px; color: var(--muted); }
.project-bullets { margin: 0; padding-left: 18px; color: var(--muted); }
.project-bullets li { margin: 4px 0; }

@media (max-width: 960px) {
  .project-item { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  /* Medium mobile and tablet fixes for Projelerimiz */
  .portfolio-callout .portfolio-content h2 {
    font-size: 20px;
    line-height: 1.4;
  }
  .section:first-of-type h1 { 
    font-size: 32px; 
  }
  .section:first-of-type .lead { 
    font-size: 15px; 
    white-space: normal;
    max-width: none;
  }
}

/* Desktop and tablet: keep lead text on single line */
@media (min-width: 769px) {
  .section:first-of-type .lead {
    white-space: nowrap;
    max-width: none;
  }
}

