/* ==========================================================================
   SFD Enerji
   Renkler markanın mavi-sarı logosundan türetildi: Boğaz mavisi + güneş sarısı.
   Tek yazı ailesi (Archivo), genişlik ekseniyle (wdth) hiyerarşi kurar.
   ========================================================================== */

:root {
  /* Renk */
  --marine: #0B3248;
  --marine-deep: #072232;
  --marine-2: #134A66;
  --brand: #1E6B8F;
  --sun: #F4B400;
  --sun-hover: #FFC52E;
  --mist: #EDF2F3;
  --paper: #FFFFFF;
  --ink: #0F2733;
  --ink-2: #4A6270;
  --line: #C9D5DA;
  --line-soft: #DFE7EA;
  --cell: #24597A;
  --on-dark: #FFFFFF;
  --on-dark-2: #B9CCD6;
  --line-dark: rgba(255, 255, 255, 0.16);
  --error: #B42318;
  --focus: var(--brand);

  /* Tipografi */
  --font: "Archivo", "Segoe UI", system-ui, -apple-system, sans-serif;
  --fs-sm: 0.875rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.25rem;
  --fs-lg: 1.5rem;
  --fs-xl: clamp(2rem, 1.3rem + 2.6vw, 3.5rem);
  --fs-hero: clamp(2.75rem, 1rem + 5.6vw, 5.75rem);

  /* Boşluk ölçeği (0,25rem tabanlı) */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;

  --radius-s: 4px;
  --radius-m: 8px;
  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 1240px;
  --header-h: 4.5rem;
}

/* ---------- Temel ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--s-4));
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--mist);
  font-variant-numeric: lining-nums;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.2em; }
button, input, select, textarea { font: inherit; color: inherit; }

h2 {
  font-size: var(--fs-xl);
  font-stretch: 112%;
  font-weight: 760;
  line-height: 1.04;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

h3 {
  font-size: var(--fs-md);
  font-stretch: 105%;
  font-weight: 700;
  line-height: 1.25;
}

p { text-wrap: pretty; }

.lead {
  font-size: var(--fs-md);
  line-height: 1.45;
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--s-4);
  top: -100px;
  z-index: 100;
  padding: var(--s-3) var(--s-4);
  background: var(--sun);
  color: var(--marine-deep);
  font-weight: 700;
  border-radius: var(--radius-s);
}
.skip-link:focus { top: var(--s-4); }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Düğmeler ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 var(--s-5);
  border: 0;
  border-radius: var(--radius-s);
  font-weight: 680;
  font-stretch: 104%;
  font-size: 1rem;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.btn--sun {
  background: var(--sun);
  color: var(--marine-deep);
}
.btn--sun:hover { background: var(--sun-hover); }

.btn--ghost {
  background: transparent;
  color: inherit;
  box-shadow: inset 0 0 0 1.5px currentColor;
}
.btn--ghost:hover { box-shadow: inset 0 0 0 2.5px currentColor; }

/* ---------- Üst bar ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--marine);
  color: var(--on-dark);
  border-bottom: 1px solid var(--line-dark);
  --focus: var(--sun);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  text-decoration: none;
  margin-right: auto;
}

.brand-mark { width: 2.25rem; height: 2.25rem; flex: none; }
.brand-sun { fill: var(--sun); }
.brand-panel { fill: var(--on-dark); }
.brand-grid { fill: none; stroke: var(--marine); stroke-width: 1.6; }

.brand-word {
  font-size: 1.375rem;
  font-weight: 400;
  font-stretch: 100%;
  letter-spacing: -0.01em;
  line-height: 1;
}
.brand-word b {
  font-weight: 850;
  font-stretch: 125%;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--s-5);
}
.site-nav ul {
  display: flex;
  gap: var(--s-1);
}
.site-nav ul a {
  display: block;
  padding: var(--s-2) var(--s-3);
  font-weight: 520;
  text-decoration: none;
  color: var(--on-dark-2);
  border-radius: var(--radius-s);
}
.site-nav ul a:hover { color: var(--on-dark); }
.nav-cta { min-height: 2.5rem; }

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  border-radius: var(--radius-s);
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.375rem;
  height: 2px;
  margin-inline: auto;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-open .nav-toggle-bars { background: transparent; }
.nav-open .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: var(--s-4);
    padding: var(--s-4) var(--gutter) var(--s-6);
    background: var(--marine);
    border-bottom: 1px solid var(--line-dark);
  }
  .nav-open .site-nav { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav ul a {
    padding: var(--s-3) 0;
    font-size: var(--fs-md);
    color: var(--on-dark);
    border-bottom: 1px solid var(--line-dark);
    border-radius: 0;
  }
  .nav-cta { min-height: 3rem; }
}

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

.hero {
  position: relative;
  background: var(--marine);
  color: var(--on-dark);
  overflow: hidden;
  --focus: var(--sun);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 19rem);
  gap: var(--s-7);
  align-items: end;
  padding-top: clamp(var(--s-6), 5vw, var(--s-8));
}

.hero-title {
  max-width: 11ch;
  font-size: var(--fs-hero);
  font-weight: 820;
  font-stretch: 122%;
  line-height: 0.94;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero-lede {
  max-width: 36rem;
  margin-top: var(--s-5);
  font-size: var(--fs-md);
  line-height: 1.5;
  color: var(--on-dark-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-6);
}

.readout {
  padding-top: var(--s-4);
  border-top: 2px solid var(--sun);
}
.readout-title {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--on-dark-2);
}
.readout-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4) var(--s-5);
  margin-top: var(--s-4);
}
.readout-list dt {
  font-size: var(--fs-sm);
  color: var(--on-dark-2);
}
.readout-list dd {
  font-size: 1.75rem;
  font-weight: 650;
  font-stretch: 78%;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.readout-list dd small {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 450;
  font-stretch: 100%;
  color: var(--on-dark-2);
}

/* Güneş yolu diyagramı: üst kısmı başlık bloğunun altına girer (gökyüzünün sol üstü boştur) */
.hero-grid { position: relative; z-index: 1; }
/* Diyagram çizgileri metnin altından geçerken harita etiketi gibi bir hale bırakır */
.hero-lede,
.readout-title,
.readout-list {
  text-shadow: 0 0 6px var(--marine), 0 0 14px var(--marine), 0 0 2px var(--marine);
}
.hero-actions .btn--ghost { background: var(--marine); }
.sunpath {
  position: relative;
  margin-top: clamp(-8rem, -7vw, -1.5rem);
}
.sunpath svg {
  width: 100%;
  height: auto;
  max-height: 64vh;
  margin-inline: auto;
  max-width: 1600px;
}

.sp-grid { stroke: rgba(255, 255, 255, 0.09); stroke-width: 1; }
.sp-grid-label,
.sp-az-label,
.sp-season-label {
  font-family: var(--font);
  font-size: 15px;
  font-stretch: 90%;
  fill: var(--on-dark-2);
}
.sp-season-label { fill: rgba(255, 255, 255, 0.62); }
.sp-az-label { font-weight: 600; fill: rgba(255, 255, 255, 0.8); }
.sp-season { fill: none; stroke: rgba(255, 255, 255, 0.4); stroke-width: 1.5; stroke-dasharray: 2 7; stroke-linecap: round; }
.sp-future { fill: none; stroke: var(--sun); stroke-opacity: 0.45; stroke-width: 2; stroke-dasharray: 6 8; }
.sp-past { fill: none; stroke: var(--sun); stroke-width: 3; stroke-linecap: round; }
.sp-sun { fill: var(--sun); }
.sp-glow { fill: var(--sun); opacity: 0.16; }
.sp-horizon { stroke: rgba(255, 255, 255, 0.55); stroke-width: 1.5; }
.sp-ground { fill: var(--marine-deep); }
.sp-module { fill: var(--marine-2); stroke: rgba(255, 255, 255, 0.22); stroke-width: 1; }
.sp-module-line { stroke: rgba(255, 255, 255, 0.12); stroke-width: 1; fill: none; }

.sunpath-caption {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4) var(--s-6);
  align-items: center;
  padding-block: var(--s-4) var(--s-5);
  font-size: var(--fs-sm);
  color: var(--on-dark-2);
  background: var(--marine-deep);
  padding-inline: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
}

.time-control {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
}
.time-control label { font-weight: 600; color: var(--on-dark); }
.time-control output {
  min-width: 3.25rem;
  font-size: 1rem;
  font-weight: 650;
  font-stretch: 80%;
  color: var(--on-dark);
  font-variant-numeric: tabular-nums;
}
.time-control input[type="range"] {
  width: clamp(9rem, 22vw, 16rem);
  height: 2.75rem;
  margin: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.time-control input[type="range"]::-webkit-slider-runnable-track {
  height: 2px;
  background: rgba(255, 255, 255, 0.35);
}
.time-control input[type="range"]::-moz-range-track {
  height: 2px;
  background: rgba(255, 255, 255, 0.35);
}
.time-control input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: -9px;
  border-radius: 50%;
  background: var(--sun);
  border: 0;
}
.time-control input[type="range"]::-moz-range-thumb {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--sun);
  border: 0;
}
.time-reset {
  min-height: 2.75rem;
  padding: 0 var(--s-2);
  background: transparent;
  border: 0;
  color: var(--on-dark-2);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}
.time-reset:hover { color: var(--on-dark); }

.legends { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
.legend { display: inline-flex; align-items: center; gap: var(--s-2); }
.legend::before {
  content: "";
  width: 1.75rem;
  height: 0;
  border-top: 3px solid var(--sun);
}
.legend--season::before { border-top: 2px dotted rgba(255, 255, 255, 0.6); }
.sunpath-note { flex: 1 1 22rem; max-width: 40rem; }

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .readout-list { grid-template-columns: repeat(4, auto); justify-content: start; }
  .sunpath { margin-top: var(--s-5); }
  .sunpath-note { margin-left: 0; }
}
/* Dar ekranda diyagram yükseklikten ölçeklenir; doğu-batı uçları kırpılır, güney yayı okunur kalır */
@media (max-width: 560px) {
  .readout-list { grid-template-columns: 1fr 1fr; }
  .readout-list dd { font-size: 1.5rem; }
  .sunpath svg { height: 16rem; max-height: none; }
  .sp-grid-label, .sp-season-label { font-size: 24px; }
  .sp-az-label { font-size: 26px; }
}

/* ---------- Bölümler ---------- */

.section {
  padding-block: clamp(var(--s-8), 9vw, 7.5rem);
}
.section--paper { background: var(--paper); }
.section--dark {
  background: var(--marine);
  color: var(--on-dark);
  --focus: var(--sun);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--s-5) var(--s-7);
  align-items: end;
  margin-bottom: clamp(var(--s-6), 5vw, var(--s-8));
}
.section-head p {
  max-width: 34rem;
  color: var(--ink-2);
}
@media (max-width: 820px) {
  .section-head { grid-template-columns: 1fr; }
}

/* ---------- Hizmet sekmeleri ---------- */

.seg-tabs {
  display: flex;
  gap: var(--s-1);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.seg-tabs::-webkit-scrollbar { display: none; }

.seg-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  flex: none;
  padding: var(--s-4) var(--s-5) var(--s-4) var(--s-3);
  background: transparent;
  border: 0;
  font-size: var(--fs-md);
  font-weight: 620;
  font-stretch: 106%;
  color: var(--ink-2);
  cursor: pointer;
}
.seg-tab svg {
  width: 1.75rem;
  height: 1.75rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.seg-tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: var(--sun);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.seg-tab:hover { color: var(--ink); }
.seg-tab[aria-selected="true"] { color: var(--ink); }
.seg-tab[aria-selected="true"]::after { transform: scaleX(1); }
.seg-tab:focus-visible { outline-offset: -3px; }

.seg-panel {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: var(--s-7);
  padding-top: var(--s-7);
}
.seg-panel[hidden] { display: none; }
.seg-panel:focus-visible { outline-offset: 6px; }

.seg-copy h3 {
  font-size: var(--fs-sm);
  font-weight: 600;
  font-stretch: 100%;
  color: var(--ink-2);
}
.seg-copy .lead {
  margin-top: var(--s-2);
  font-size: var(--fs-lg);
  font-weight: 650;
  font-stretch: 108%;
  line-height: 1.25;
  letter-spacing: -0.01em;
  max-width: 26ch;
}
.seg-copy > p:not(.lead) {
  margin-top: var(--s-4);
  max-width: 38rem;
  color: var(--ink-2);
}

.checks {
  display: grid;
  gap: var(--s-3);
  margin-top: var(--s-6);
}
.checks li {
  position: relative;
  padding-left: var(--s-6);
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.9rem;
  height: 0.5rem;
  border-left: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}

.seg-side {
  display: grid;
  gap: var(--s-5);
  align-content: start;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.facts div {
  padding: var(--s-3) var(--s-3) 0 0;
}
.facts div + div {
  padding-left: var(--s-3);
  border-left: 1px solid var(--line);
}
.facts dt { font-size: var(--fs-sm); color: var(--ink-2); }
.facts dd {
  font-size: var(--fs-md);
  font-weight: 680;
  font-stretch: 86%;
  line-height: 1.25;
}

@media (max-width: 900px) {
  .seg-panel { grid-template-columns: 1fr; gap: var(--s-6); padding-top: var(--s-6); }
}
@media (max-width: 480px) {
  .facts { grid-template-columns: 1fr; }
  .facts div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-soft); }
  .facts div { display: flex; justify-content: space-between; gap: var(--s-4); padding-bottom: var(--s-3); }
}

/* ---------- Fotoğraf + plan iç görseli ---------- */

.media {
  position: relative;
  margin-bottom: var(--s-7);
}
.media-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-s);
  background: var(--line-soft);
}
/* .media önekiyle .plan kenarlığını ezer */
.media .media-inset {
  position: absolute;
  left: var(--s-4);
  bottom: calc(-1 * var(--s-7));
  width: 46%;
  border: 4px solid var(--paper);
  border-radius: var(--radius-s);
  box-shadow: 0 10px 28px rgba(7, 34, 50, 0.22);
}
.media .media-inset--photo {
  left: auto;
  right: var(--s-4);
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-color: var(--marine);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}
.media--maint { margin-top: var(--s-7); }

@media (max-width: 560px) {
  .media .media-inset { width: 58%; left: var(--s-3); }
  .media .media-inset--photo { left: auto; right: var(--s-3); }
}

/* ---------- Plan çizimleri ---------- */

.plan {
  border: 1px solid var(--line);
  background: var(--paper);
}
.plan svg { width: 100%; height: auto; }

.pl-paper { fill: var(--paper); }
.pl-gridline { stroke: #E6EDF0; stroke-width: 0.6; }
.pl-outline { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.pl-line { fill: none; stroke: var(--ink); stroke-width: 0.9; }
.pl-dash { fill: none; stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 5 3; }
.pl-bay { fill: none; stroke: var(--ink-2); stroke-width: 0.8; stroke-dasharray: 2 2; }
.pl-panel { fill: var(--cell); stroke: #9DBDCE; stroke-width: 0.5; }
.pl-equip { fill: var(--sun); stroke: var(--ink); stroke-width: 1; }
.pl-road { fill: none; stroke: #DCE5E9; stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; }
.pl-hatch { fill: #E6EDF0; stroke: var(--ink-2); stroke-width: 0.8; }
.pl-pipe { fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-linecap: round; }
.pl-drip { fill: none; stroke: var(--brand); stroke-width: 1; stroke-dasharray: 1 3; }
.pl-water { fill: #D4E7F0; stroke: var(--brand); stroke-width: 1.5; }
.pl-pump { fill: var(--ink); }
.pl-north path { fill: var(--ink); }
.pl-scale path { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.pl-text {
  font-family: var(--font);
  font-size: 10px;
  font-weight: 600;
  fill: var(--ink-2);
}

/* ---------- Süreç ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-7) var(--s-6);
  counter-reset: none;
}
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: var(--s-4);
  align-items: baseline;
  align-content: start;
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
}
.step-n {
  grid-row: span 2;
  font-size: 3rem;
  font-weight: 300;
  font-stretch: 70%;
  line-height: 0.9;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.step h3 { font-size: var(--fs-md); }
.step p {
  grid-column: 2;
  margin-top: var(--s-2);
  color: var(--ink-2);
}
@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; gap: var(--s-5); }
}

/* ---------- Bakım ---------- */

.maint {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: var(--s-8);
}
.maint-intro .lead {
  margin-top: var(--s-5);
  color: var(--on-dark);
}
.maint-intro p:not(.lead) {
  margin-top: var(--s-4);
  color: var(--on-dark-2);
}
.maint-intro .btn { margin-top: var(--s-6); }

.maint-list div {
  display: grid;
  grid-template-columns: minmax(10rem, 2fr) 3fr;
  gap: var(--s-2) var(--s-5);
  padding-block: var(--s-5);
  border-top: 1px solid var(--line-dark);
}
.maint-list div:last-child { border-bottom: 1px solid var(--line-dark); }
.maint-list dt {
  font-size: var(--fs-md);
  font-weight: 650;
  font-stretch: 106%;
  line-height: 1.3;
}
.maint-list dd { color: var(--on-dark-2); }

@media (max-width: 900px) {
  .maint { grid-template-columns: 1fr; gap: var(--s-7); }
}
@media (max-width: 560px) {
  .maint-list div { grid-template-columns: 1fr; }
}

/* ---------- Form alanları (ortak) ---------- */

.field { display: grid; gap: var(--s-2); }
.field label {
  font-weight: 600;
  font-size: 0.9375rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: var(--s-3) var(--s-4);
  background: var(--paper);
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-s);
  transition: border-color 0.15s ease;
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--ink-2); }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 0;
  border-color: var(--brand);
}
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--error);
}
.hint { font-size: var(--fs-sm); color: var(--ink-2); }
.optional { font-weight: 400; color: var(--ink-2); }
abbr[title] { text-decoration: none; color: var(--error); }

.affix { position: relative; }
.affix input {
  padding-right: 5.5rem;
  font-size: var(--fs-md);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.affix span {
  position: absolute;
  right: var(--s-4);
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-2);
  font-weight: 500;
  pointer-events: none;
}

/* ---------- Hesaplayıcı ---------- */

.calc {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius-m);
  overflow: hidden;
}
.calc-inputs {
  display: grid;
  gap: var(--s-6);
  align-content: start;
  padding: clamp(var(--s-5), 4vw, var(--s-7));
  border-right: 1px solid var(--line);
}

.calc-results {
  display: grid;
  align-content: start;
  gap: var(--s-5);
  padding: clamp(var(--s-5), 4vw, var(--s-7));
}
.calc-main {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-5) var(--s-5);
}
.calc-main div { border-top: 1px solid var(--line); padding-top: var(--s-3); }
.calc-main dt { font-size: var(--fs-sm); color: var(--ink-2); }
.calc-main dd {
  font-size: var(--fs-lg);
  font-weight: 680;
  font-stretch: 84%;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.calc-main .calc-hero {
  grid-column: 1 / -1;
  border-top: 3px solid var(--sun);
}
.calc-main .calc-hero dd {
  font-size: clamp(3rem, 2rem + 4vw, 5rem);
  font-weight: 760;
  font-stretch: 80%;
  line-height: 1;
  letter-spacing: -0.02em;
}
.calc-main .calc-hero dd small {
  font-size: 0.4em;
  font-weight: 600;
  letter-spacing: 0;
  margin-left: 0.15em;
}
.calc-main dd small.calc-sub {
  display: block;
  margin-top: var(--s-1);
  font-size: var(--fs-sm);
  font-weight: 450;
  font-stretch: 100%;
  color: var(--ink-2);
}
.calc-note {
  font-size: var(--fs-sm);
  color: var(--ink-2);
  max-width: 44rem;
}
.calc-error {
  padding: var(--s-3) var(--s-4);
  border-left: 3px solid var(--error);
  background: #FDF1F0;
  color: var(--error);
  font-weight: 600;
}
.calc-results .btn { justify-self: start; }

@media (max-width: 900px) {
  .calc { grid-template-columns: 1fr; }
  .calc-inputs { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .calc-main { grid-template-columns: 1fr 1fr; }
}

/* ---------- Projeler ---------- */

.projects {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--s-7) var(--s-5);
}
.project { grid-column: span 2; }
.project:first-child { grid-column: span 4; grid-row: span 2; }
.project:nth-child(4),
.project:nth-child(5) { grid-column: span 3; }

.project > .plan { border-color: var(--line-soft); }
.project .media { margin-bottom: calc(var(--s-7) + var(--s-2)); }
.project .media .media-inset { width: 40%; }
.project:first-child .media .media-inset { width: 30%; }
@media (max-width: 560px) {
  .project .media .media-inset,
  .project:first-child .media .media-inset { width: 50%; }
}
.project figcaption { margin-top: var(--s-4); }
.project h3 { font-size: var(--fs-md); }
.project:first-child h3 { font-size: var(--fs-lg); }
.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1) var(--s-4);
  margin-top: var(--s-1);
  font-size: var(--fs-sm);
  color: var(--ink-2);
}
.project-meta dd { display: inline; }
.project-meta dt { display: inline; }
.project-meta .kwp {
  font-weight: 700;
  color: var(--ink);
}

@media (max-width: 900px) {
  .projects { grid-template-columns: 1fr 1fr; }
  .project,
  .project:first-child,
  .project:nth-child(4),
  .project:nth-child(5) { grid-column: span 1; grid-row: auto; }
  .project:first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .projects { grid-template-columns: 1fr; }
}

/* ---------- Hakkımızda ---------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: var(--s-5) var(--s-8);
}
.about .lead { font-weight: 600; }
.about-body > p:not(.lead) {
  margin-top: var(--s-4);
  color: var(--ink-2);
  max-width: 40rem;
}
.about-points {
  display: grid;
  gap: var(--s-4);
  margin-top: var(--s-6);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
}
.about-points strong { font-weight: 700; }
.about-points li { color: var(--ink-2); }
.about-points li strong { color: var(--ink); }
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
}

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

.faq {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: var(--s-6) var(--s-8);
  align-items: start;
}
.faq-head {
  position: sticky;
  top: calc(var(--header-h) + var(--s-6));
}
.faq-head p {
  margin-top: var(--s-4);
  color: var(--ink-2);
  max-width: 24rem;
}
.faq-head a { color: var(--brand); font-weight: 600; }

.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary {
  position: relative;
  display: block;
  padding: var(--s-5) var(--s-7) var(--s-5) 0;
  font-size: var(--fs-md);
  font-weight: 620;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before,
.faq-list summary::after {
  content: "";
  position: absolute;
  right: var(--s-2);
  top: 50%;
  width: 1rem;
  height: 2px;
  background: var(--brand);
  transition: transform 0.2s ease;
}
.faq-list summary::after { transform: rotate(90deg); }
.faq-list details[open] summary::after { transform: rotate(0deg); }
.faq-list summary:hover { color: var(--brand); }
.faq-list summary:focus-visible { outline-offset: 2px; }
.faq-list details p {
  padding-bottom: var(--s-5);
  max-width: 44rem;
  color: var(--ink-2);
}
@media (max-width: 900px) {
  .faq { grid-template-columns: 1fr; }
  .faq-head { position: static; }
}

/* ---------- İletişim ---------- */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: var(--s-8);
  align-items: start;
}
.contact-intro .lead {
  margin-top: var(--s-5);
  color: var(--on-dark-2);
  max-width: 30rem;
}
.contact-list {
  display: grid;
  gap: var(--s-4);
  margin-top: var(--s-7);
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  font-size: var(--fs-md);
}
.contact-list svg {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  fill: none;
  stroke: var(--sun);
  stroke-width: 1.6;
  stroke-linejoin: round;
}
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

.contact-form {
  display: grid;
  gap: var(--s-5);
  padding: clamp(var(--s-5), 4vw, var(--s-7));
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius-m);
  --focus: var(--brand);
}
.form-intro,
.form-privacy { font-size: var(--fs-sm); color: var(--ink-2); }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
}
.contact-form .btn { justify-self: start; }
.form-status { font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--error); }
.form-status.is-ok {
  padding: var(--s-3) var(--s-4);
  border-left: 3px solid var(--sun);
  background: var(--mist);
  font-weight: 500;
}

@media (max-width: 900px) {
  .contact { grid-template-columns: 1fr; gap: var(--s-7); }
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
}

/* ---------- Alt bilgi ---------- */

.site-footer {
  background: var(--marine-deep);
  color: var(--on-dark-2);
  font-size: 0.9375rem;
  --focus: var(--sun);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 2fr 1.5fr;
  gap: var(--s-6);
  padding-block: var(--s-8) var(--s-6);
}
.footer-brand .brand-word { color: var(--on-dark); }
.footer-brand p { margin-top: var(--s-3); max-width: 22rem; }
.footer-links {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: var(--s-2) var(--s-7);
}
.footer-links a,
.footer-contact a { text-decoration: none; }
.footer-links a:hover,
.footer-contact a:hover { color: var(--on-dark); text-decoration: underline; }
.footer-contact { font-style: normal; line-height: 1.8; }
.footer-base {
  padding-bottom: var(--s-5);
  font-size: var(--fs-sm);
}
.footer-base-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3) var(--s-6);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line-dark);
}
.site-credit {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 2.75rem;
  text-decoration: none;
}
.site-credit img { height: 22px; width: auto; }
.site-credit:hover { color: var(--on-dark); }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Hareket tercihi ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
