/* ================= Demir Alüminyum — Kış Bahçesi ================= */

:root {
  /* karanlık tema (varsayılan) — logodaki lacivert (#001b3d) zemin */
  --bg: #001b3d;
  --bg-soft: #002148;
  --panel: #072a55;
  --line: #14395f;
  --text: #eaeef4;
  --muted: #93a5bd;
  --silver: #b9c7d9;
  --amber: #f2b25c;
  --glass: #8fc4e8;

  --header-bg: rgba(0, 27, 61, 0.85);
  --logo-filter: invert(1);

  --svg-ground: #2c4569;
  --svg-wall: #4c6588;
  --svg-detail: #8095af;
  --svg-fill: #0a2c55;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

:root[data-theme="light"] {
  --bg: #f5f7fa;
  --bg-soft: #edf0f5;
  --panel: #ffffff;
  --line: #d9e0e8;
  --text: #18212e;
  --muted: #5b6675;
  --silver: #5a6774;
  --amber: #d99735;
  --glass: #5da4d4;

  --header-bg: rgba(245, 247, 250, 0.85);
  --logo-filter: none;

  --svg-ground: #aeb9c5;
  --svg-wall: #8b95a1;
  --svg-detail: #64707c;
  --svg-fill: #e3e9ef;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 250ms ease, color 250ms ease;
}

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; }

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1rem clamp(1.25rem, 4vw, 3rem);
  transition: background-color 250ms var(--ease-out), box-shadow 250ms var(--ease-out);
}

.site-header.scrolled {
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}

.logo {
  display: flex;
  align-items: center;
  margin-right: auto;
}

.logo-word {
  height: 40px;
  width: auto;
  filter: var(--logo-filter);
  display: block;
}

.site-nav { display: flex; gap: 1.6rem; font-size: 0.92rem; color: var(--muted); }
.site-nav a { transition: color 200ms ease; }

@media (hover: hover) and (pointer: fine) {
  .site-nav a:hover { color: var(--text); }
}

.theme-toggle {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), border-color 200ms ease;
}

.theme-toggle:active { transform: scale(0.94); }

@media (hover: hover) and (pointer: fine) {
  .theme-toggle:hover { border-color: var(--muted); }
}

/* karanlıkta güneş (aydınlığa geç), aydınlıkta ay göster */
:root:not([data-theme="light"]) .tt-moon { display: none; }
:root[data-theme="light"] .tt-sun { display: none; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  background: var(--amber);
  color: #14100a;
  font-weight: 700;
  padding: 0.85rem 1.6rem;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: transform 160ms var(--ease-out), filter 200ms ease;
}

.btn:active { transform: scale(0.97); }

@media (hover: hover) and (pointer: fine) {
  .btn:hover { filter: brightness(1.08); }
}

.btn-small { padding: 0.55rem 1.1rem; font-size: 0.85rem; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

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

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 6.5rem 1.5rem 7.5rem;
  position: relative;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(242, 178, 92, 0.12), transparent),
    radial-gradient(ellipse 50% 40% at 80% 100%, rgba(143, 196, 232, 0.07), transparent),
    var(--bg);
}

.hero-logo {
  height: clamp(80px, 14vw, 130px);
  width: auto;
  filter: var(--logo-filter);
  margin-bottom: 1.8rem;
}

.hero-badge {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 1.1rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.8rem;
}

.hero-badge strong { color: var(--amber); font-weight: 700; }

.hero h1 {
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero h1 span { color: var(--silver); }

.hero-sub {
  max-width: 34rem;
  margin: 1.4rem auto 2.2rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; justify-content: center; }

.scroll-cue {
  position: absolute;
  bottom: 1.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.scroll-cue-line {
  width: 1px; height: 44px;
  background: linear-gradient(var(--muted), transparent);
  animation: cueDrop 1.8s var(--ease-in-out) infinite;
  transform-origin: top;
}

@keyframes cueDrop {
  0% { transform: scaleY(0); }
  45% { transform: scaleY(1); }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ---------- Scroll build ---------- */

.build {
  /* uzun kaydırma pisti — sticky sahne içinde kurulum oynar */
  height: 560vh;
  position: relative;
  background: var(--bg-soft);
}

.build-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
  padding: 5.5rem clamp(1.25rem, 4vw, 3.5rem) 2rem;
  overflow: hidden;
}

.build-steps { position: relative; min-height: 200px; }

.build-step {
  position: absolute;
  inset: 0 auto auto 0;
  max-width: 24rem;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 350ms var(--ease-out), transform 350ms var(--ease-out);
  pointer-events: none;
}

.build-step.active { opacity: 1; transform: translateY(0); }

.step-no {
  font-family: var(--font-head);
  color: var(--amber);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}

.build-step h3 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); margin: 0.4rem 0 0.7rem; }
.build-step p { color: var(--muted); font-size: 0.98rem; }

.build-stage { min-width: 0; }

#gardenSvg { width: 100%; height: auto; max-height: 82vh; display: block; }

/* SVG çizim stilleri */
#gardenSvg .d {
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#gardenSvg .ground { stroke: var(--svg-ground); stroke-width: 3; }
#gardenSvg .wall   { stroke: var(--svg-wall); stroke-width: 5; }
#gardenSvg .frame  { stroke: var(--silver); stroke-width: 6; }
#gardenSvg .thin   { stroke-width: 2.5; }

#gardenSvg .f { opacity: 0; }

#gardenSvg .glass { fill: url(#glassGrad); stroke: rgba(143, 196, 232, 0.35); stroke-width: 1; }
#gardenSvg .roofglass { fill: url(#roofGlassGrad); stroke: rgba(174, 224, 255, 0.3); stroke-width: 1; }

#gardenSvg .detail .dl {
  stroke: var(--svg-detail);
  stroke-width: 3;
  stroke-linecap: round;
  fill: none;
}

#gardenSvg .detail .df { fill: var(--svg-fill); }
#gardenSvg .detail .plant { stroke: #6fae7e; }

/* ---------- Vitrin fotoğrafı ---------- */

.showcase {
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1.25rem, 4vw, 3.5rem) clamp(3rem, 7vw, 5rem);
  background: var(--bg-soft);
}

.showcase-media {
  position: relative;
  max-width: 76rem;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  isolation: isolate;
}

.showcase-media img {
  display: block;
  width: 100%;
  height: clamp(280px, 52vh, 520px);
  object-fit: cover;
}

.showcase-media figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.4rem, 4vw, 2.6rem) clamp(1.4rem, 4vw, 2.4rem);
  background: linear-gradient(transparent, rgba(0, 20, 45, 0.6) 45%, rgba(0, 20, 45, 0.94));
  color: #fff;
}

.showcase-kicker {
  color: var(--amber);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.showcase-media h2 {
  font-size: clamp(1.4rem, 3.4vw, 2.3rem);
  letter-spacing: -0.01em;
}

/* ---------- Sayılarla ---------- */

.stats {
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.25rem, 4vw, 3.5rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem 1rem;
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
}

.stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  color: var(--amber);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  display: block;
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

/* ---------- Features ---------- */

.features { padding: clamp(4rem, 10vw, 8rem) clamp(1.25rem, 4vw, 3.5rem); }

.section-head { max-width: 46rem; margin-bottom: 3rem; }

.section-sub {
  color: var(--muted);
  margin-top: 1rem;
  max-width: 36rem;
}

.kicker {
  color: var(--amber);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.section-head h2, .contact h2 {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  letter-spacing: -0.01em;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.1rem;
}

.feature-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.8rem 1.5rem;
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(242, 178, 92, 0.1);
  color: var(--amber);
  font-size: 1.3rem;
  margin-bottom: 1.1rem;
}

.feature-card h3 { font-size: 1.12rem; margin-bottom: 0.5rem; }
.feature-card p { color: var(--muted); font-size: 0.93rem; }

/* ---------- SSS ---------- */

.faq {
  padding: clamp(3rem, 8vw, 6rem) clamp(1.25rem, 4vw, 3.5rem);
  background: var(--bg-soft);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.6rem 2.4rem;
  max-width: 72rem;
}

.faq-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.faq-item p {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 34rem;
}

/* ---------- Contact ---------- */

.contact {
  padding: clamp(4rem, 10vw, 7rem) clamp(1.25rem, 4vw, 3.5rem);
  background:
    radial-gradient(ellipse 60% 60% at 50% 120%, rgba(242, 178, 92, 0.1), transparent),
    var(--bg-soft);
  text-align: center;
}

.contact-sub { color: var(--muted); max-width: 30rem; margin: 1rem auto 2.5rem; }

.contact-cards {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.2rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 230px;
  transition: transform 160ms var(--ease-out), border-color 200ms ease;
}

.contact-card:active { transform: scale(0.97); }

@media (hover: hover) and (pointer: fine) {
  .contact-card:hover { border-color: var(--amber); }
}

.contact-card span {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.contact-card strong {
  font-family: var(--font-head);
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}

.contact-card em {
  font-style: normal;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

/* Telefon kartı — amber vurgulu */
.contact-card-tel span { color: var(--amber); }
.contact-card-tel { border-color: rgba(242, 178, 92, 0.35); }

@media (hover: hover) and (pointer: fine) {
  .contact-card-tel:hover { border-color: var(--amber); }
}

/* WhatsApp kartı — yeşil vurgulu, ikonlu */
.contact-card-wa { border-color: rgba(37, 211, 102, 0.35); }
.contact-card-wa span { color: #25d366; }

.wa-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

@media (hover: hover) and (pointer: fine) {
  .contact-card-wa:hover { border-color: #25d366; }
}

.site-footer {
  padding: 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--line);
}

.footer-mark {
  height: 30px;
  width: auto;
  filter: var(--logo-filter);
  opacity: 0.55;
  margin-bottom: 0.6rem;
}

/* ---------- WhatsApp sabit buton ---------- */

.wa-float {
  position: fixed;
  right: clamp(1rem, 3vw, 1.6rem);
  bottom: clamp(1rem, 3vw, 1.6rem);
  z-index: 60;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition: transform 160ms var(--ease-out);
}

.wa-float:active { transform: scale(0.94); }

@media (hover: hover) and (pointer: fine) {
  .wa-float:hover { transform: scale(1.06); }
}

/* ---------- Scroll reveal (bir kez) ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}

.reveal.visible { opacity: 1; transform: translateY(0); }

.feature-card.reveal:nth-child(2) { transition-delay: 60ms; }
.feature-card.reveal:nth-child(3) { transition-delay: 120ms; }
.feature-card.reveal:nth-child(4) { transition-delay: 180ms; }

/* ---------- Mobil ---------- */

@media (max-width: 860px) {
  .site-nav { display: none; }

  .build { height: 480vh; }

  .build-sticky {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    align-items: start;
    padding-top: 4.5rem;
  }

  .build-copy { order: 2; }
  .build-stage { order: 1; align-self: center; }
  .build-steps { min-height: 150px; }
  #gardenSvg { max-height: 46vh; }
}

/* ---------- Azaltılmış hareket ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .build { height: auto; }
  .build-sticky { position: static; height: auto; }

  /* çizim tamamlanmış halde gösterilir (JS de tamamlar) */
  #gardenSvg .d { stroke-dashoffset: 0; }
  #gardenSvg .f { opacity: 1; }

  .build-step { position: static; opacity: 1; transform: none; margin-bottom: 1.4rem; }
  .build-steps { min-height: 0; }

  .scroll-cue-line { animation: none; }

  .reveal { opacity: 1; transform: none; transition: none; }
}
