/* =========================================================
   EYVAH NEREDEYİM
   style.css
   Responsive: Web • Tablet • Android • iPhone • iPad
   ========================================================= */

:root {
  --ink: #17211d;
  --muted: #64716b;
  --green: #236b50;
  --green-dark: #18543e;
  --sand: #f5f2e9;
  --line: #e4e8e2;
  --soft: #fbfcfa;
  --white: #ffffff;
  --shadow: 0 6px 20px rgba(0, 0, 0, .08);
  --shadow-hover: 0 10px 28px rgba(0, 0, 0, .12);
  --radius: 16px;
  --container: 1160px;
}

/* =========================================================
   TEMEL
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  width: 100%;
  min-width: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea,
select {
  font: inherit;
}

/* =========================================================
   ÜST MENÜ
   ========================================================= */

.site-header {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
}

.site-header nav {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.site-header nav a,
.section-heading > a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
  transition: color .2s ease;
}

.site-header nav a:hover,
.section-heading > a:hover {
  color: var(--green);
}

/* =========================================================
   SAYFA GENELİ
   ========================================================= */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 22px 60px;
}

.section {
  width: 100%;
  padding: 42px 0 4px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.section-heading > div {
  min-width: 0;
}

.section-heading h2,
.page-intro h1 {
  margin: 2px 0;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
}

.empty-card {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  color: var(--muted);
}

/* =========================================================
   ANA SAYFA HERO
   =========================================================
   Not:
   Ana sayfa fotoğrafını CSS background olarak tanımlamıyoruz.
   index.php içindeki gerçek <img> kullanılıyor.
   Böylece fotoğrafın oranı korunuyor ve cover kırpması olmuyor.
   ========================================================= */

.hero {
  position: relative;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  color: #fff;
  background: #71877b;
}

.hero-home {
  position: relative;
  width: 100%;
  min-height: 0;
  height: auto;
  overflow: hidden;
  isolation: isolate;
}

/* index.php'deki ana fotoğraf */
.hero-home-image {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center center;
  background: #e9eeec;
}

/* Fotoğraf üstü karartma */
.hero-home-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(15, 37, 29, .68) 0%,
      rgba(15, 37, 29, .30) 48%,
      rgba(15, 37, 29, .08) 100%
    );
}

/* Hero yazıları */
.hero-copy {
  position: absolute;
  z-index: 2;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  max-width: 610px;
  padding: 40px;
}

.hero h1 {
  margin: 4px 0 8px;
  color: #fff;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
}

.hero p:not(.eyebrow) {
  max-width: 560px;
  margin: 6px 0;
  color: #fff;
  font-size: 16px;
  line-height: 1.45;
}

.eyebrow {
  margin: 0;
  color: inherit;
  font-size: 11px;
  letter-spacing: .16em;
  font-weight: 800;
  opacity: .9;
}

.hero .button {
  display: inline-block;
  margin-top: 14px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  color: #173b2d;
  text-decoration: none;
  font-weight: 750;
  transition: transform .2s ease, box-shadow .2s ease;
}

.hero .button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .16);
}

/* =========================================================
   SAYFA TANITIM ALANI
   ========================================================= */

.page-intro {
  max-width: 760px;
  padding: 48px 0 25px;
}

.page-intro .eyebrow,
.section-heading .eyebrow {
  color: var(--green);
}

.page-intro p:last-child {
  color: var(--muted);
}

/* =========================================================
   YOUTUBE VİDEO KARTLARI
   ========================================================= */

.video-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
  align-items: start;
}

.video-card {
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.video-card a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.video-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  background: #e9ecef;
}

.video-card h3 {
  margin: 12px 12px 8px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.video-card p {
  margin: 0 12px 12px;
  color: var(--muted);
  font-size: 13px;
}

/* =========================================================
   SAYFA ALTI
   ========================================================= */

.site-footer {
  width: 100%;
  margin-top: 40px;
  padding: 28px 22px;
  background: var(--sand);
}

.footer-inner {
  width: 100%;
  max-width: 1116px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-inner small {
  margin-left: auto;
  color: var(--muted);
}

/* =========================================================
   TABLET / KÜÇÜK LAPTOP
   ========================================================= */

@media (max-width: 1100px) {

  .site-header {
    padding-left: 20px;
    padding-right: 20px;
  }

  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .video-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

  .site-header {
    align-items: flex-start;
  }

  .site-header nav {
    gap: 8px 15px;
  }

  .hero-copy {
    padding: 32px;
  }

  .hero h1 {
    font-size: clamp(28px, 5vw, 40px);
  }

  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

}

/* =========================================================
   TELEFON
   ========================================================= */

@media (max-width: 700px) {

  .site-header {
    width: 100%;
    padding: 14px 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .brand {
    width: 100%;
  }

  .site-header nav {
    width: 100%;
    justify-content: flex-start;
    gap: 7px 14px;
  }

  .site-header nav a {
    font-size: 13px;
  }

  .container {
    width: 100%;
    padding: 0 16px 45px;
  }

  .section {
    padding: 32px 0 4px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .section-heading h2,
  .page-intro h1 {
    font-size: 28px;
  }

  /* Hero fotoğrafı doğal oranını korur */
  .hero {
    border-radius: 16px;
  }

  .hero-home {
    width: 100%;
    height: auto;
  }

  .hero-home-image {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .hero-home-overlay {
    background:
      linear-gradient(
        90deg,
        rgba(15, 37, 29, .72) 0%,
        rgba(15, 37, 29, .34) 68%,
        rgba(15, 37, 29, .10) 100%
      );
  }

  .hero-copy {
    top: 50%;
    max-width: 78%;
    padding: 20px;
  }

  .hero h1 {
    font-size: 29px;
    line-height: 1.1;
  }

  .hero p:not(.eyebrow) {
    font-size: 14px;
    line-height: 1.35;
  }

  .hero .eyebrow {
    font-size: 9px;
    letter-spacing: .11em;
  }

  .hero .button {
    margin-top: 10px;
    padding: 8px 14px;
    font-size: 14px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .footer-inner small {
    margin-left: 0;
    width: 100%;
  }

}

/* =========================================================
   DAR TELEFON
   ========================================================= */

@media (max-width: 600px) {

  .video-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .video-card h3 {
    font-size: 16px;
  }

}

/* =========================================================
   ÇOK DAR TELEFON
   ========================================================= */

@media (max-width: 420px) {

  .site-header {
    padding-left: 13px;
    padding-right: 13px;
  }

  .site-header nav {
    gap: 6px 11px;
  }

  .site-header nav a {
    font-size: 12px;
  }

  .container {
    padding-left: 13px;
    padding-right: 13px;
  }

  .hero {
    border-radius: 13px;
  }

  .hero-copy {
    max-width: 82%;
    padding: 15px;
  }

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

  .hero p:not(.eyebrow) {
    font-size: 12px;
  }

  .hero .eyebrow {
    font-size: 8px;
  }

  .hero .button {
    padding: 7px 12px;
    font-size: 13px;
  }

}

/* =========================================================
   YATAY TELEFON
   ========================================================= */

@media (max-width: 900px) and (orientation: landscape) {

  .hero-copy {
    padding: 22px 28px;
  }

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

  .hero p:not(.eyebrow) {
    font-size: 14px;
  }

}

/* =========================================================
   DOKUNMATİK EKRANLAR
   ========================================================= */

@media (hover: none) and (pointer: coarse) {

  .video-card:hover {
    transform: none;
    box-shadow: var(--shadow);
  }

  .hero .button:hover {
    transform: none;
    box-shadow: none;
  }

  .site-header nav a {
    padding-top: 3px;
    padding-bottom: 3px;
  }

}

/* =========================================================
   ERİŞİLEBİLİRLİK
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }

}
