/* ==========================================================================
   Ertürk Solar Enerji — Tarımsal Sulama & Güneş Enerjisi (GES)
   Ortak stil dosyası
   Renk paleti ve genel ayarlar burada. Firma adını ve renkleri buradan değiştir.
   ========================================================================== */

:root {
  /* Marka renkleri — istersen buradan değiştir */
  --green: #157347;
  --green-dark: #0f5132;
  --green-light: #e8f5ee;
  --amber: #f6a609;
  --amber-light: #fff4dd;
  --ink: #0e1f17;
  --muted: #5b6b62;
  --line: #dfe7e2;
  --bg: #ffffff;
  --bg-alt: #f5faf7;
  --white: #ffffff;

  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1140px;
  --shadow: 0 10px 30px rgba(14, 31, 23, 0.08);
  --shadow-lg: 0 18px 50px rgba(14, 31, 23, 0.14);
  --font: "Segoe UI", "Inter", system-ui, -apple-system, Arial, sans-serif;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; color: var(--ink); margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
ul { padding-left: 1.2rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section--alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section-foot { max-width: 760px; margin: 30px auto 0; text-align: center; color: var(--muted); font-size: .98rem; }
.section-foot a { color: var(--green-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.section-foot--left { text-align: left; margin: 16px 0 0; max-width: none; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--green); background: var(--green-light);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; cursor: pointer;
  font: inherit; font-weight: 600; padding: 13px 22px; border-radius: 999px;
  border: 2px solid transparent; transition: transform .15s ease, box-shadow .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--green); color: #fff; box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--green-dark); }
.btn--amber { background: var(--amber); color: #2a1c00; }
.btn--amber:hover { background: var(--amber-dark); color: #fff; }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--green); color: var(--green-dark); }
.btn--block { width: 100%; justify-content: center; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.site-header.is-scrolled { box-shadow: var(--shadow); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand small { display: block; font-weight: 500; font-size: .7rem; color: var(--muted); letter-spacing: .04em; }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); font-weight: 500; }
.nav-links a[aria-current="page"] { color: var(--green-dark); font-weight: 700; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 10px;
  width: 44px; height: 44px; cursor: pointer; font-size: 1.3rem; line-height: 1;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 55%, #2f9e63 100%);
}
.hero::after {
  content: ""; position: absolute; top: -140px; right: -140px; width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(246,166,9,.55), rgba(246,166,9,0) 65%);
  border-radius: 50%; pointer-events: none;
}
.hero .container { position: relative; z-index: 1; padding-top: 88px; padding-bottom: 88px; }
.hero h1 { color: #fff; max-width: 780px; }
.hero .lead { font-size: 1.15rem; color: rgba(255,255,255,.92); max-width: 620px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px; padding: 0; list-style: none; }
.hero-badges li { display: flex; align-items: center; gap: 8px; font-size: .95rem; color: rgba(255,255,255,.95); }
.hero-badges li::before { content: "✓"; color: var(--amber); font-weight: 800; }

/* ---------- Page hero (alt sayfalar) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: #fff; padding: 56px 0;
}
.page-hero h1 { color: #fff; margin-bottom: .35em; }
.page-hero p { color: rgba(255,255,255,.9); max-width: 640px; margin: 0; }
.breadcrumb { font-size: .85rem; color: rgba(255,255,255,.82); margin-bottom: 12px; }
.breadcrumb a { color: #fff; }
.breadcrumb span { opacity: .7; }

/* ---------- Stats ---------- */
.stats { background: #fff; border-bottom: 1px solid var(--line); }
.stats .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 30px 0; text-align: center; }
.stat b { display: block; font-size: 2rem; color: var(--green-dark); line-height: 1.1; }
.stat span { color: var(--muted); font-size: .92rem; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--green-light); font-size: 1.5rem; margin-bottom: 16px;
}
.card--amber .icon { background: var(--amber-light); }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--muted); margin-bottom: .8rem; }
.card ul { color: var(--muted); margin: 0; }
.card ul li { margin-bottom: .3rem; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--green); color: #fff; font-weight: 800; margin-bottom: 14px;
}
.step h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: #fff; border-radius: var(--radius); padding: 46px; text-align: center; box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 620px; margin: 0 auto 22px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 20px; margin-bottom: 12px;
}
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--green); font-weight: 800; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: start; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-light);
}
.form-note { font-size: .82rem; color: var(--muted); }
.form-status { margin-top: 12px; font-weight: 600; color: var(--green-dark); }
.contact-aside { background: var(--green-light); border-radius: var(--radius); padding: 26px; }
.contact-aside h3 { margin-top: 0; }
.contact-list { list-style: none; padding: 0; margin: 0 0 18px; }
.contact-list li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .k { font-weight: 700; min-width: 92px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.8); padding: 46px 0 24px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h3, .site-footer h4 { color: #fff; margin: 0 0 12px; font-size: 1rem; }
.site-footer a { color: rgba(255,255,255,.8); }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 30px; padding-top: 18px; font-size: .85rem; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* ---------- Float WhatsApp ---------- */
.float-wa {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  background: #25d366; color: #062b12; font-weight: 700; padding: 14px 18px;
  border-radius: 999px; box-shadow: var(--shadow-lg); display: inline-flex; gap: 8px; align-items: center;
}
.float-wa:hover { text-decoration: none; transform: translateY(-2px); }

/* ---------- Reveal animation (yalnızca JS açıkken gizler; JS kapalıysa içerik görünür) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid--3, .steps, .grid--2 { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats .grid { grid-template-columns: 1fr 1fr; gap: 26px; }
}
@media (max-width: 680px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; align-items: stretch;
    gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 16px;
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-actions .btn--primary { display: none; }
  .grid--3, .steps, .grid--2, .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 32px 22px; }
  .section { padding: 54px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover, .float-wa:hover { transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .float-wa, .cta-band, .nav-toggle { display: none !important; }
  .hero { color: #000; background: #fff; }
  .hero h1, .hero .lead { color: #000; }
}
