/* ============================================
   Kamil Süllü Sulama Mühendislik — Ortak Stiller
   ============================================ */

:root {
  --color-blue: #33586B;
  --color-blue-dark: #2A4453;
  --color-green: #4E7A5C;
  --color-brown: #7A5A3A;
  --color-bg: #E2DFD2;
  --color-bg-light: #EDEBE0;
  --color-text: #2A2A24;
  --color-text-muted: #5C5C54;
  --color-text-on-dark: #E2DFD2;
  --color-text-on-dark-muted: #B9C8CE;
  --color-border: #CFCBBB;
  --font-base: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --max-width: 1140px;
  --radius: 8px;
  --media-btn-padding: 14px 18px;
  --media-btn-font: 15px;
  --media-btn-icon: 17px;
  --media-cell-w: 96px;
  --media-cell-h: 72px;
  --logo-height: 136px;
  --hero-padding: 96px 0 80px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--color-blue);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  row-gap: 10px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand-logo {
  display: block;
  line-height: 0;
}

.brand-logo-img {
  height: var(--logo-height);
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--color-text-on-dark-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s ease;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-text-on-dark);
  border-bottom-color: var(--color-text-on-dark);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text-on-dark);
  margin: 5px 0;
  transition: 0.2s ease;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: linear-gradient(160deg, var(--color-blue) 0%, var(--color-blue-dark) 100%);
  color: var(--color-text-on-dark);
  padding: var(--hero-padding);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  overflow: hidden;
}

.hero-bg-panel {
  flex: 1;
  min-width: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-bg-panel + .hero-bg-panel {
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.hero.has-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(rgba(42, 68, 83, 0.78), rgba(42, 68, 83, 0.88));
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 100%;
}

.hero-eyebrow {
  font-size: 13px;
  color: var(--color-text-on-dark-muted);
  margin-bottom: 14px;
}

.hero h1 {
  font-size: 46px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 18px;
}

.hero p {
  font-size: 16px;
  color: var(--color-text-on-dark-muted);
  margin-bottom: 32px;
  max-width: 520px;
}

/* ---------- Section basics ---------- */

section {
  padding: 72px 0;
}

.section-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-green);
  margin-bottom: 10px;
}

.section-title {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 16px;
  max-width: 560px;
}

.highlight-blue {
  text-transform: uppercase;
  color: var(--color-blue);
}

.section-desc {
  font-size: 15px;
  color: var(--color-text-muted);
  max-width: 560px;
  margin-bottom: 40px;
}

.ek-metin {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.6;
  white-space: pre-line;
  margin-bottom: 16px;
}
.about-text .ek-metin { margin-top: 14px; }
.reference-text .ek-metin { margin-top: 14px; margin-bottom: 0; }

/* ---------- About (Hakkımızda) ---------- */

.about {
  background: var(--color-bg-light);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.about-text p {
  color: var(--color-text-muted);
  font-size: 15px;
  margin-bottom: 14px;
}

.about-list {
  list-style: none;
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about-list li {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.about-list strong {
  display: block;
  color: var(--color-blue);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.about-list span {
  font-size: 14px;
  color: var(--color-text-muted);
}

/* ---------- Hakkımızda görseli ---------- */

.about-grid.single {
  grid-template-columns: 1fr;
}

.about-photo-img {
  width: 100%;
  border-radius: 12px;
  display: block;
}

.about-photo {
  max-width: 100%;
  justify-self: end;
}

.about-grid.photo-left .about-text { order: 2; }
.about-grid.photo-left .about-photo { order: 1; justify-self: start; }

.slider-holder {
  max-width: 100%;
}

.about-slider {
  border-radius: 12px;
}

.about-slider .slide-caption {
  padding: 34px 22px 26px;
}

.about-slider .slide-caption h3 { font-size: 20px; }
.about-slider .slide-caption p  { font-size: 14px; }
.about-slider .slider-arrow     { width: 36px; height: 36px; font-size: 21px; }
.about-slider .slider-arrow.prev { left: 10px; }
.about-slider .slider-arrow.next { right: 10px; }

.reference-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.reference-row {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 0.9fr);
  gap: 0;
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
}

.reference-row:has(.reference-media.is-empty),
.reference-row.no-media {
  grid-template-columns: 1fr;
}

.reference-text {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.reference-no {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--color-green);
  margin-bottom: 6px;
}

.reference-text h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--color-blue);
  margin-bottom: 18px;
}

.reference-fields {
  display: flex;
  flex-direction: column;
}

.reference-field {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  padding: 11px 0;
  border-top: 1px solid var(--color-border);
}

.reference-field dt {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.reference-field dd {
  font-size: 15px;
  color: var(--color-text);
}

.reference-field dd.strong {
  font-weight: 600;
  color: var(--color-blue);
}

.reference-field dd.multi {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

/* ---------- Referans medya butonları ---------- */

.reference-media {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  padding: 28px 32px;
  background: var(--color-bg);
  border-left: 1px solid var(--color-border);
  min-width: 0;
}

.reference-media.is-empty {
  display: none;
}

.media-group {
  min-width: 0;
}

.media-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: var(--media-btn-padding);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-bg-light);
  color: var(--color-blue);
  font-family: inherit;
  font-size: var(--media-btn-font);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.media-btn:hover {
  background: var(--color-blue);
  border-color: var(--color-blue);
  color: #fff;
}

.media-btn-icon {
  font-size: var(--media-btn-icon);
  line-height: 1;
  flex-shrink: 0;
}

.media-btn-label {
  flex: 1;
}

.media-btn-count {
  flex-shrink: 0;
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  border-radius: 13px;
  background: var(--color-border);
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.media-btn:hover .media-btn-count {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* --- kaydırılabilir şerit --- */

.media-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  min-width: 0;
}

.media-track {
  flex: 1;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  min-width: 0;
  padding: 2px;
}

.media-track::-webkit-scrollbar {
  display: none;
}

.media-cell {
  position: relative;
  flex-shrink: 0;
  width: var(--media-cell-w);
  height: var(--media-cell-h);
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--color-border);
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.media-cell:hover {
  border-color: var(--color-blue);
}

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

.cell-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 42, 51, 0.42);
  color: #fff;
  font-size: 18px;
}

.strip-arrow {
  flex-shrink: 0;
  width: 26px;
  height: var(--media-cell-h);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg-light);
  color: var(--color-blue);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.strip-arrow:hover:not(:disabled) {
  background: var(--color-blue);
  color: #fff;
}

.strip-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

.media-strip.no-scroll .strip-arrow {
  display: none;
}

/* ---------- Galeri modalı ---------- */

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.gallery-modal[hidden] {
  display: none;
}

.gallery-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 30, 37, 0.9);
}

.gallery-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 900px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  background: var(--color-bg-light);
  border-radius: 14px;
  overflow: hidden;
}

.gallery-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: var(--color-blue);
}

.gallery-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-on-dark);
}

.gallery-close {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: var(--color-text-on-dark);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.gallery-close:hover {
  background: rgba(255, 255, 255, 0.24);
}

.gallery-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1B2B33;
  padding: 12px;
}

.gallery-stage img,
.gallery-stage video {
  max-width: 100%;
  max-height: 62vh;
  object-fit: contain;
  border-radius: 6px;
}

.gallery-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 12px;
  background: var(--color-bg-light);
  border-bottom: 1px solid var(--color-border);
}

.gallery-arrow {
  width: 38px;
  height: 38px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: var(--color-bg);
  color: var(--color-blue);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.gallery-arrow:hover {
  background: var(--color-blue);
  color: #fff;
}

.gallery-counter {
  font-size: 14px;
  color: var(--color-text-muted);
  min-width: 56px;
  text-align: center;
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
  padding: 14px;
  overflow-x: auto;
  background: var(--color-bg-light);
}

.gallery-thumb {
  position: relative;
  flex-shrink: 0;
  width: 84px;
  height: 64px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: var(--color-border);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-thumb.active {
  border-color: var(--color-blue);
}

.thumb-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 42, 51, 0.45);
  color: #fff;
  font-size: 16px;
}

/* ---------- Contact card (used inside hero) ---------- */

.contact-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-item .icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.contact-item .label {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 2px;
}

.contact-item .value {
  font-size: 15px;
  font-weight: 500;
}

/* ---------- Metin içi bağlantılar ---------- */

.metin-link {
  color: var(--color-blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

.metin-link:hover {
  color: var(--color-green);
}

.text-block.dark .metin-link,
.slide-caption .metin-link,
.hero-contact .metin-link {
  color: #fff;
}

.text-block.dark .metin-link:hover,
.slide-caption .metin-link:hover,
.hero-contact .metin-link:hover {
  color: var(--color-text-on-dark-muted);
}

/* ---------- Bölüm: Bağlantı butonları ---------- */

.link-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: stretch;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--radius);
  background: var(--color-blue);
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  border: 1px solid transparent;
  transition: background 0.15s ease, transform 0.15s ease;
}

.link-btn:hover {
  background: var(--color-blue-dark);
  transform: translateY(-1px);
}

.link-btn-icon {
  font-size: 19px;
  line-height: 1;
}

.text-block.dark .link-btn {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
}

.text-block.dark .link-btn:hover {
  background: rgba(255, 255, 255, 0.24);
}

/* İletişim bilgileri bağlantı olsa da yazı gibi görünür */
.contact-item a.value {
  color: inherit;
  text-decoration: none;
  display: block;
}

.contact-item a.value[href] {
  cursor: pointer;
}

.hero-contact {
  margin-top: 0;
  max-width: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 12px 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.hero-contact .contact-item {
  border-bottom: none;
  padding: 22px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-contact .contact-item:last-child {
  border-right: none;
}

.hero-contact .contact-item .icon {
  width: 44px;
  height: 44px;
  font-size: 17px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--color-text-on-dark);
}

.hero-contact .contact-item .label {
  font-size: 15px;
  color: var(--color-text-on-dark-muted);
  margin-bottom: 4px;
}

.hero-contact .contact-item .value {
  font-size: 19px;
  font-weight: 500;
  color: var(--color-text-on-dark);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--color-blue-dark);
  color: var(--color-text-on-dark-muted);
  padding: 24px 0;
  text-align: center;
}

.footer-bottom {
  font-size: 12px;
  color: #8FA3AB;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr !important;
  }

  .about-photo, .slider-holder, .single-image {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    justify-self: stretch;
  }
  .about-grid.photo-left .about-text { order: 0; }
  .about-grid.photo-left .about-photo { order: 0; }

  .reference-row {
    grid-template-columns: 1fr;
  }

  .reference-media {
    border-left: none;
    border-top: 1px solid var(--color-border);
    padding: 20px 24px 24px;
  }

  .gallery-modal {
    padding: 12px;
  }

  .gallery-stage img,
  .gallery-stage video {
    max-height: 52vh;
  }

  .gallery-title {
    font-size: 13px;
  }
}

@media (max-width: 640px) {
  .link-buttons {
    flex-direction: column;
  }

  .link-btn {
    justify-content: center;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-blue);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease;
  }

  .nav-links.open {
    max-height: 240px;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-toggle {
    display: block;
  }

  .brand-logo-img {
    height: 88px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-contact {
    grid-template-columns: 1fr;
  }

  .hero-contact .contact-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .hero-contact .contact-item:last-child {
    border-bottom: none;
  }
}

/* ---------- Serbest yazı bölümü ---------- */

.text-block .text-body {
  font-size: 16px;
  color: var(--color-text-muted);
  max-width: 780px;
}

.text-block.dark {
  background: var(--color-blue-dark);
}

.text-block.dark .section-title {
  color: var(--color-text-on-dark);
}

.text-block.dark .text-body {
  color: var(--color-text-on-dark-muted);
}

/* ---------- Serbest galeri bölümü ---------- */

.free-media {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 26px;
  align-items: start;
}

@media (max-width: 640px) {
  .free-media {
    grid-template-columns: 1fr;
  }
}

/* ---------- Slayt bölümü ---------- */

.slider {
  position: relative;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: var(--color-border);
}

.slider-track {
  position: absolute;
  inset: 0;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.7s ease-in-out;
  display: flex;
  align-items: flex-end;
}

.slide.active {
  opacity: 1;
}

.slide-caption {
  width: 100%;
  padding: 46px 36px 30px;
  background: linear-gradient(to top, rgba(26, 42, 51, 0.86) 0%, rgba(26, 42, 51, 0.35) 60%, transparent 100%);
  color: #fff;
}

.slide-caption h3 {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.25;
}

.slide-caption p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.84);
  max-width: 620px;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--color-blue);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: background 0.15s ease;
}

.slider-arrow:hover {
  background: #fff;
}

.slider-arrow.prev { left: 16px; }
.slider-arrow.next { right: 16px; }

.slider-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}

.slider-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.slider-dot.on {
  background: #fff;
  transform: scale(1.25);
}

@media (max-width: 640px) {
  .slide-caption {
    padding: 34px 20px 26px;
  }
  .slide-caption h3 { font-size: 19px; }
  .slide-caption p { font-size: 13px; }
  .slider-arrow { width: 36px; height: 36px; font-size: 21px; }
  .slider-arrow.prev { left: 8px; }
  .slider-arrow.next { right: 8px; }
}

/* ---------- Tek görsel bölümü ---------- */

.single-image {
  max-width: 100%;
}

.single-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}
