/* Crystal Tarım — marka tasarım sistemi
   Renkler: skill.md paleti | Fontlar: Montserrat / Source Sans 3
   Boşluk ölçeği: 8 / 16 / 24 / 32 / 48 / 64 / 96 */

:root {
  --primary: #2F8F4E;
  --primary-dark: #257A40;
  --secondary: #56B870;
  --accent: #D8A83D;
  --dark: #1F3B2D;
  --bg: #F5FAF5;
  --text: #21322A;
  --text-muted: #5A6B61;
  --white: #FFFFFF;
  --border: #DCEADF;

  --font-head: "Montserrat", "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;

  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-6: 48px;
  --s-8: 64px;
  --s-12: 96px;

  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(31, 59, 45, 0.08);
  --shadow-md: 0 8px 24px rgba(31, 59, 45, 0.12);
  --shadow-lg: 0 16px 40px rgba(31, 59, 45, 0.16);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
  margin: 0 0 var(--s-2);
}

h1 { font-size: clamp(2rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.25rem); }
h3 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0 0 var(--s-2); }

a { color: var(--primary); }

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

.section { padding: var(--s-12) 0; }
.section-alt { background: var(--white); }

.section-kicker {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--s-1);
}
.section-kicker.light { color: var(--secondary); }

.accent-underline {
  background-image: linear-gradient(transparent 68%, rgba(216, 168, 61, 0.45) 68%);
}

/* ---------- Butonlar ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  min-height: 48px;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(47, 143, 78, 0.35);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(47, 143, 78, 0.45);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover, .btn-ghost:focus-visible {
  background: var(--white);
  color: var(--dark);
}
.btn-block { width: 100%; border: none; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding-top: var(--s-1);
  padding-bottom: var(--s-1);
}
.brand { margin-right: auto; }
.brand img { width: 148px; height: auto; }

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--dark);
  text-decoration: none;
  padding: var(--s-1) 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav-list a:hover, .nav-list a:focus-visible {
  color: var(--primary);
  border-bottom-color: var(--accent);
}
.nav-cta {
  background: var(--primary);
  color: var(--white) !important;
  padding: 10px 20px !important;
  border-radius: 999px;
  border-bottom: none !important;
  transition: background-color 0.2s ease;
}
.nav-cta:hover, .nav-cta:focus-visible { background: var(--primary-dark); }

.lang-switch { position: relative; }
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 8px 10px;
  min-height: 40px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  color: var(--dark);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.lang-toggle:hover, .lang-toggle:focus-visible {
  border-color: var(--primary);
  background: rgba(47, 143, 78, 0.06);
}
.lang-toggle svg { transition: transform 0.2s ease; }
.lang-switch.open .lang-toggle svg { transform: rotate(180deg); }
.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 110;
  min-width: 168px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}
.lang-switch.open .lang-menu { display: block; }
.lang-menu a {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-muted);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.lang-menu a:hover, .lang-menu a:focus-visible {
  background: rgba(47, 143, 78, 0.1);
  color: var(--primary);
}
.lang-menu a[aria-current="page"] {
  background: var(--primary);
  color: var(--white);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--dark);
  padding: var(--s-1);
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  min-height: 88dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg, .hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(31, 59, 45, 0.82) 0%, rgba(31, 59, 45, 0.55) 45%, rgba(31, 59, 45, 0.18) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  padding-top: var(--s-8);
  padding-bottom: var(--s-12);
}
.hero-kicker {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-2);
}
.hero h1 { color: var(--white); max-width: 15ch; }
.hero-sub {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.15rem;
  max-width: 52ch;
  margin-bottom: var(--s-4);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.hero-curve {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 64px;
  z-index: 1;
}

/* ---------- Hakkımızda ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: var(--s-8);
  align-items: center;
}
.about-points {
  list-style: none;
  margin: var(--s-3) 0 0;
  padding: 0;
  display: grid;
  gap: var(--s-2);
}
.about-points li {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-weight: 600;
}
.about-points svg { color: var(--primary); flex-shrink: 0; }

.about-media video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: var(--dark);
  display: block;
}
.media-caption {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: var(--s-1);
  text-align: right;
}

/* ---------- Ürünler ---------- */
.products h2 { max-width: 22ch; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
  margin-top: var(--s-6);
}
.product-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.product-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-img img { transform: scale(1.05); }
.product-body { padding: var(--s-3); }
.product-body p { color: var(--text-muted); font-size: 0.97rem; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--primary);
  text-decoration: none;
  padding: var(--s-1) 0;
}
.text-link svg { transition: transform 0.2s ease; }
.text-link:hover svg, .text-link:focus-visible svg { transform: translateX(4px); }

/* ---------- Teknoloji ---------- */
.tech-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--s-6);
  align-items: end;
  margin-bottom: var(--s-6);
}
.tech-intro { color: var(--text-muted); margin: 0; }
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
}
.tech-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s-4) var(--s-3);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.tech-item:hover {
  border-color: var(--secondary);
  box-shadow: var(--shadow-md);
}
.tech-item:nth-child(4), .tech-item:nth-child(5) { grid-column: span 1; }
.tech-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(47, 143, 78, 0.1);
  color: var(--primary);
  margin-bottom: var(--s-2);
}
.tech-item p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

/* ---------- Sürdürülebilirlik ---------- */
.sustain {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.88);
}
.sustain h2 { color: var(--white); }
.sustain-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--s-8);
  align-items: center;
}
.sustain-media img {
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.sustain-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
  margin-top: var(--s-4);
}
.sustain-item {
  display: flex;
  gap: var(--s-2);
  align-items: flex-start;
}
.sustain-item svg { color: var(--accent); flex-shrink: 0; margin-top: 4px; }
.sustain-item h3 { color: var(--white); font-size: 1rem; margin-bottom: 4px; }
.sustain-item p { font-size: 0.92rem; margin: 0; color: rgba(255, 255, 255, 0.72); }

/* ---------- Sayılar ---------- */
.stats { padding: var(--s-8) 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
  margin-top: var(--s-4);
}
.stat { text-align: left; border-left: 3px solid var(--accent); padding-left: var(--s-3); }
.stat-num {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  color: var(--primary);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  white-space: nowrap;
}
.stat-suffix {
  font-size: 0.6em;
  font-weight: 600;
  color: var(--text-muted);
  margin-left: 4px;
}
.stat-label {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ---------- Galeri ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  gap: var(--s-2);
  margin-top: var(--s-6);
}
.gallery-grid figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
}
.gallery-grid figure.wide { grid-column: span 2; }
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-grid figure:hover img { transform: scale(1.04); }

/* ---------- İletişim ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--s-8);
  align-items: start;
}
.contact-list {
  list-style: none;
  margin: var(--s-4) 0;
  padding: 0;
  display: grid;
  gap: var(--s-2);
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-weight: 600;
}
.contact-list svg { color: var(--primary); flex-shrink: 0; }
.contact-list a { color: var(--text); text-decoration: none; }
.contact-list a:hover { color: var(--primary); }

.social { display: flex; gap: var(--s-2); }
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(47, 143, 78, 0.1);
  color: var(--primary);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.social a:hover, .social a:focus-visible {
  background: var(--primary);
  color: var(--white);
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--s-4);
  box-shadow: var(--shadow-md);
  display: grid;
  gap: var(--s-3);
}
.form-row { display: grid; gap: var(--s-1); }
.form-row label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--dark);
}
.form-row label span { color: var(--accent); }
.form-row input, .form-row textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px var(--s-2);
  min-height: 48px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-row textarea { min-height: 110px; resize: vertical; }
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(47, 143, 78, 0.18);
}
.form-status { margin: 0; font-weight: 600; color: var(--primary); }
.form-status.error { color: #B4231F; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.78);
  padding: var(--s-8) 0 var(--s-3);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--s-6);
  padding-bottom: var(--s-6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.footer-brand img { margin-bottom: var(--s-2); }
.footer-brand p { font-size: 0.95rem; max-width: 36ch; }
.site-footer h3 {
  color: var(--white);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--s-2);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-1); }
.site-footer a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: color 0.2s ease;
}
.site-footer a:hover, .site-footer a:focus-visible { color: var(--secondary); }
.footer-bottom { padding-top: var(--s-3); font-size: 0.88rem; }
.footer-bottom p { margin: 0; }

/* ---------- Animasyonlar ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .product-img img, .gallery-grid img, .text-link svg { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .product-grid, .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: var(--s-6); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid figure.wide { grid-column: span 2; }
  .tech-head { grid-template-columns: 1fr; align-items: start; gap: var(--s-2); }
}

@media (max-width: 820px) {
  .section { padding: var(--s-8) 0; }
  .about-grid, .sustain-grid, .contact-grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .sustain-media { order: 2; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--s-4); }

  .nav-toggle { display: inline-flex; }
  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: var(--s-2) var(--s-3) var(--s-3);
  }
  .nav-list.open { display: flex; }
  .nav-list a {
    display: block;
    padding: 12px 4px;
    border-bottom: 1px solid var(--border);
  }
  .nav-cta { text-align: center; margin-top: var(--s-2); border-radius: 12px; }

  /* dil seçici solda, hamburger en sağda */
  .main-nav { order: 3; }
  .lang-switch { order: 2; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .product-grid, .tech-grid, .sustain-items { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery-grid figure.wide { grid-column: span 1; }
  .hero { min-height: 76vh; min-height: 76dvh; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .contact-form { padding: var(--s-3); }
}
