/* Tema renkleri api/theme-css.php ile yüklenir ( :root değişkenleri ) */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--color-background, #f5f5f0);
  color: var(--color-text, #333);
  line-height: 1.6;
}
a { color: var(--color-link-color, #1a5f4a); text-decoration: none; }
a:hover { color: var(--color-link-hover, #e8b923); }

/* Header */
.site-header {
  background: var(--color-header-bg, #1a5f4a);
  color: var(--color-white, #fff);
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 70px;
}
.logo { font-size: 1.5rem; font-weight: 700; color: var(--color-white); letter-spacing: 0.02em; display: inline-flex; align-items: center; }
.logo:hover { color: var(--color-accent, #e8b923); }
.logo-img { max-height: 50px; width: auto; max-width: 220px; object-fit: contain; vertical-align: middle; }
.logo:hover .logo-img { opacity: 0.9; }
.nav-menu { display: flex; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.nav-menu a {
  color: var(--color-white);
  padding: 0.75rem 1rem;
  display: block;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.nav-menu a:hover { background: rgba(255,255,255,0.15); color: var(--color-accent); }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; padding: 0.5rem; }

/* Slider */
.site-slider { position: relative; width: 100%; min-height: 420px; overflow: hidden; background: var(--color-primary-dark, #0f3d32); }
.site-slider .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease; display: flex; align-items: center; justify-content: center; text-align: center; z-index: 0; }
.site-slider .slide.active { opacity: 1; z-index: 1; }
.site-slider .slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.site-slider .slide-inner { position: relative; z-index: 1; padding: 3rem 2rem; max-width: 800px; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,0.4); }
.site-slider .slide-inner h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); margin: 0 0 0.5rem; }
.site-slider .slide-inner p { font-size: 1.05rem; margin: 0 0 1.25rem; opacity: 0.95; }
.site-slider .slide-dots { position: absolute; bottom: 1rem; left: 0; right: 0; z-index: 2; display: flex; justify-content: center; gap: 0.5rem; }
.site-slider .slide-dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: background 0.2s; }
.site-slider .slide-dots span.active { background: #fff; }
.site-slider .slide-prev, .site-slider .slide-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; background: rgba(0,0,0,0.3); color: #fff; border: none; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; font-size: 1.25rem; line-height: 1; }
.site-slider .slide-prev { left: 1rem; }
.site-slider .slide-next { right: 1rem; }
.site-slider .slide-prev:hover, .site-slider .slide-next:hover { background: rgba(0,0,0,0.5); }

/* Hero (slider yoksa veya tek slayt) */
.hero {
  min-height: 420px;
  background: linear-gradient(135deg, var(--color-primary-dark, #0f3d32) 0%, var(--color-primary, #1a5f4a) 100%);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}
.hero-inner { position: relative; z-index: 1; max-width: 800px; }
.hero h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin: 0 0 1rem; font-weight: 700; text-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.hero p { font-size: 1.1rem; margin: 0 0 1.5rem; opacity: 0.95; }
.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  background: var(--color-button-bg, #1a5f4a);
  color: var(--color-white) !important;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}
.btn:hover { background: var(--color-button-hover, #2d7a63); color: var(--color-white) !important; transform: translateY(-1px); }
.btn-accent { background: var(--color-accent); color: var(--color-primary-dark) !important; }
.btn-accent:hover { filter: brightness(1.1); color: var(--color-primary-dark) !important; }

/* Sections */
.section { padding: 4rem 2rem; max-width: 1200px; margin: 0 auto; }
.section-title { text-align: center; font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 2rem; color: var(--color-primary-dark); }
.section-dark {
  background: var(--color-background-dark, #1a1a1a);
  color: var(--color-white);
  padding: 4rem 2rem;
}
.section-dark .section-title { color: var(--color-white); }
.section-dark p { color: rgba(255,255,255,0.85); }

/* Cards / Grid */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.card {
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,0.12); }
.card-img { height: 180px; background: linear-gradient(135deg, var(--color-secondary), var(--color-primary)); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 3rem; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img:has(img) { padding: 0; font-size: 0; }
.card-body { padding: 1.25rem; }
.card h3 { margin: 0 0 0.5rem; font-size: 1.15rem; color: var(--color-primary-dark); }
.card p { margin: 0; color: var(--color-text-light); font-size: 0.95rem; }

/* CTA */
.cta-bar {
  background: var(--color-primary);
  color: var(--color-white);
  text-align: center;
  padding: 2rem;
}
.cta-bar h2 { margin: 0 0 0.5rem; font-size: 1.35rem; }
.cta-bar p { margin: 0 0 1rem; opacity: 0.9; }
.cta-bar .btn { background: var(--color-white); color: var(--color-primary) !important; }
.cta-bar .btn:hover { background: var(--color-accent); color: var(--color-primary-dark) !important; }

/* Ana sayfa: büyük banner (kart genişliğinde) */
.home-banner { padding: 0 2rem 2rem; max-width: 1200px; margin: 0 auto; }
.home-banner img { width: 100%; height: auto; display: block; border-radius: 12px; object-fit: contain; }

/* Malzeme ve Bileşenleri – Modern Panel tarzı: başlık üstte çizgili, altta resim sol / yazı sağ */
.materials-section { background: #f0f0eb; padding: 3rem 2rem 4rem; }
.materials-main-title { max-width: 1200px; margin: 0 auto 0.5rem; font-size: clamp(1.25rem, 2.5vw, 1.6rem); font-weight: 700; color: #2c2c2c; letter-spacing: 0.03em; text-transform: uppercase; }
.materials-title-line { max-width: 1200px; margin: 0 auto 2rem; width: 120px; height: 3px; background: #b8860b; border-radius: 2px; }
.materials-block { max-width: 1200px; margin: 0 auto; display: flex; gap: 2.5rem; align-items: flex-start; flex-wrap: wrap; }
.materials-block .materials-image { flex: 0 0 380px; max-width: 100%; }
.materials-block .materials-image img { width: 100%; height: auto; display: block; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.materials-block .materials-content { flex: 1; min-width: 280px; }
.materials-block .materials-text { color: #444; line-height: 1.8; margin: 0; font-size: 0.95rem; white-space: pre-line; }
.materials-block .materials-text p { margin: 0 0 1rem; }
.materials-block .materials-text p:last-child { margin-bottom: 0; }
.materials-block .materials-text strong { color: #2c2c2c; }
@media (max-width: 768px) { .materials-section { padding-left: 1rem; padding-right: 1rem; } .materials-block { flex-direction: column; } .materials-block .materials-image { flex: 0 0 auto; } }

/* Avantajlar – Modern Panel tarzı: başlık + altın çizgi, ikon solda yazı sağda, 3 sütun grid */
.advantages-section { padding: 3rem 2rem 4rem; max-width: 1200px; margin: 0 auto; background: #fff; }
.advantages-main-title { font-size: clamp(1.1rem, 2.2vw, 1.4rem); font-weight: 700; color: #2c2c2c; letter-spacing: 0.03em; text-transform: uppercase; text-align: center; margin: 0 0 0.5rem; }
.advantages-title-line { width: 120px; height: 3px; background: #b8860b; border-radius: 2px; margin: 0 auto 2.5rem; }
.advantages-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem 2rem; }
.advantage-item { display: flex; align-items: center; gap: 1rem; text-align: left; }
.advantage-icon-wrap { flex: 0 0 72px; width: 72px; height: 72px; display: flex; align-items: center; justify-content: center; background: #f5f5f0; border-radius: 10px; }
.advantage-icon { font-size: 2.25rem; line-height: 1; }
.advantage-icon-img { max-width: 52px; max-height: 52px; object-fit: contain; }
.advantage-title { margin: 0; font-size: 0.95rem; font-weight: 600; color: #2c2c2c; line-height: 1.35; }
@media (max-width: 768px) { .advantages-grid { grid-template-columns: 1fr; } .advantages-section { padding-left: 1rem; padding-right: 1rem; } }

/* Footer */
.site-footer {
  background: var(--color-footer-bg, #0f3d32);
  color: var(--color-white);
  padding: 2.5rem 2rem;
}
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.footer-inner a { color: rgba(255,255,255,0.9); }
.footer-inner a:hover { color: var(--color-accent); }
.footer-bottom { max-width: 1200px; margin: 2rem auto 0; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.15); text-align: center; font-size: 0.9rem; opacity: 0.85; }

/* Form */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.35rem; font-weight: 500; color: var(--color-text); }
.form-group input, .form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--color-white);
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(26,95,74,0.15);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-max { max-width: 560px; }

/* Page title */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: var(--color-white);
  padding: 2.5rem 2rem;
  text-align: center;
}
.page-hero h1 { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); }

/* Responsive */
@media (max-width: 768px) {
  .nav-menu { display: none; position: absolute; top: 70px; left: 0; right: 0; background: var(--color-header-bg); flex-direction: column; padding: 0.5rem; }
  .nav-menu.active { display: flex; }
  .nav-toggle { display: block; }
  .section, .site-footer .footer-inner { padding-left: 1rem; padding-right: 1rem; }
}
@media (max-width: 640px) {
  .section [style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: 1fr !important; }
}
