/* ============================================================
   ElitStar Cam Balkon Sistemleri — site stili
   Evolved from the original 2014 palette (#97a95f / #909c6a / #555)
   into a deeper technical olive with a cool glass accent.
   Signature: hard 0px corners + heavy left rules (no cards,
   no shadows, no pills) — a trade/engineering register.
   ============================================================ */

:root {
  --olive-900: #2c331b;
  --olive-800: #414a27;
  --olive-700: #566130;
  --olive-600: #6f7f3f;   /* primary — evolved from #97a95f */
  --olive-500: #8a9a55;
  --olive-300: #b9c48f;
  --olive-100: #eef1e2;
  --olive-050: #f7f9f1;

  --glass-700: #2b5261;   /* cool accent — the tint of tempered glass */
  --glass-500: #3c6e7f;
  --glass-100: #e3edf0;

  --ink-900: #1b1d18;
  --ink-700: #33372c;
  --ink-500: #555a4c;     /* original body grey, warmed */
  --ink-300: #8d9184;
  --ink-100: #dcdfd4;
  --paper: #ffffff;
  --paper-alt: #f6f7f2;

  --font-head: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", Tahoma, Arial, sans-serif;

  --rule: 4px;
  --maxw: 1180px;
}

/* ---------- base ---------- */

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.72;
  color: var(--ink-500);
  background: var(--paper);
  margin: 0;
}

.container { max-width: var(--maxw); padding-left: 1.25rem; padding-right: 1.25rem; }

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

a { color: var(--olive-700); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover, a:focus { color: var(--glass-700); }

/* Safeguard: content is never hidden waiting on JS. Any reveal
   animation is progressive enhancement only. */
[data-aos] { opacity: 1 !important; transform: none !important; }

.es-skip {
  position: absolute; left: -9999px; top: 0; z-index: 2000;
  background: var(--olive-900); color: #fff; padding: 0.75rem 1.25rem;
  font-family: var(--font-head); letter-spacing: 0.06em;
}
.es-skip:focus { left: 0; color: #fff; }

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

/* ---------- top utility bar ---------- */

.es-topbar {
  background: var(--olive-900);
  color: var(--olive-300);
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  padding: 0.4rem 0;
}
.es-topbar .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.es-topbar-r { color: #fff; }

/* ---------- navbar ---------- */

.es-nav {
  background: var(--paper);
  border-bottom: var(--rule) solid var(--olive-600);
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}
.es-nav .navbar-brand { display: flex; flex-direction: column; line-height: 1; text-decoration: none; }
.es-brand-mark {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.95rem;
  letter-spacing: 0.03em;
  color: var(--ink-900);
}
.es-brand-mark span { color: var(--olive-600); }
.es-brand-sub {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  color: var(--ink-300);
  margin-top: 0.2rem;
}

.es-nav .navbar-nav { gap: 0.15rem; }
.es-nav .nav-link {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: var(--ink-700);
  padding: 0.45rem 0.7rem;
  border-bottom: 3px solid transparent;
  border-radius: 0;
}
.es-nav .nav-link:hover, .es-nav .nav-link:focus { color: var(--olive-700); border-bottom-color: var(--olive-300); }
.es-nav .nav-link.active { color: var(--olive-800); border-bottom-color: var(--olive-600); }
.es-nav .dropdown-menu {
  border-radius: 0;
  border: 1px solid var(--ink-100);
  border-top: 3px solid var(--olive-600);
  box-shadow: none;
  padding: 0.35rem 0;
  margin-top: 0.35rem;
}
.es-nav .dropdown-item {
  font-family: var(--font-body);
  font-size: 0.96rem;
  padding: 0.45rem 1.1rem;
  color: var(--ink-700);
}
.es-nav .dropdown-item:hover, .es-nav .dropdown-item:focus { background: var(--olive-100); color: var(--olive-800); }
.es-nav .dropdown-item.active { background: var(--olive-600); color: #fff; }
.es-nav .navbar-toggler { border-radius: 0; border-color: var(--ink-100); }
.es-nav .navbar-toggler:focus { box-shadow: none; }

/* ---------- hero / banner ---------- */

.es-hero { position: relative; background: var(--olive-900); overflow: hidden; }
.es-hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.42;
}
.es-hero .container { position: relative; }
.es-hero-panel {
  max-width: 42rem;
  padding: 3.5rem 0 3.75rem;
  animation: es-rise 0.6s ease-out both;
}
.es-hero-home .es-hero-panel { padding: 5.5rem 0 5.75rem; }
.es-hero-panel h1 { color: #fff; }

.es-banner {
  background: var(--olive-050);
  border-bottom: 1px solid var(--ink-100);
  padding: 2.6rem 0 2.4rem;
}

.es-eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.26em;
  color: var(--olive-500);
  margin: 0 0 0.6rem;
  text-transform: uppercase;
}
.es-hero .es-eyebrow { color: var(--olive-300); }

h1 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.1rem, 4.6vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: 0.01em;
  color: var(--ink-900);
  margin: 0;
  text-transform: uppercase;
}

/* CSS-only entrance: ends in the visible state, so a skipped
   animation still leaves everything readable. */
@keyframes es-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- layout ---------- */

.es-main { padding: 3rem 0 4rem; }

.es-grid {
  display: grid;
  grid-template-columns: 16rem minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}

.es-article { max-width: 46rem; }
.es-article-wide { max-width: 52rem; }

/* ---------- sidebar ---------- */

.es-side {
  border-top: var(--rule) solid var(--olive-600);
  padding-top: 1.1rem;
  position: sticky;
  top: 1.25rem;
}
.es-side-h {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.14em;
  color: var(--ink-900);
  margin: 0 0 0.9rem;
}
.es-side-list { list-style: none; margin: 0; padding: 0; }
.es-side-list li { border-bottom: 1px solid var(--ink-100); }
.es-side-list a {
  display: block;
  padding: 0.62rem 0 0.62rem 0.85rem;
  border-left: 3px solid transparent;
  color: var(--ink-700);
  text-decoration: none;
  font-size: 0.99rem;
}
.es-side-list a:hover, .es-side-list a:focus { border-left-color: var(--olive-300); color: var(--olive-800); background: var(--olive-050); }
.es-side-list a.is-current { border-left-color: var(--olive-600); color: var(--olive-800); font-weight: 600; background: var(--olive-100); }

/* ---------- article typography ---------- */

.es-article h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.6vw, 1.95rem);
  line-height: 1.16;
  letter-spacing: 0.02em;
  color: var(--ink-900);
  text-transform: uppercase;
  margin: 2.6rem 0 1rem;
  padding-left: 0.95rem;
  border-left: var(--rule) solid var(--olive-600);
}
.es-article > h2:first-child { margin-top: 0; }

.es-article h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.28rem;
  letter-spacing: 0.05em;
  color: var(--olive-800);
  text-transform: uppercase;
  margin: 2rem 0 0.7rem;
}

.es-article p { margin: 0 0 1.15rem; }
.es-article strong { color: var(--ink-900); font-weight: 700; }
.es-article em { color: var(--ink-700); }

.es-article ul, .es-article ol { margin: 0 0 1.4rem; padding-left: 1.35rem; }
.es-article li { margin-bottom: 0.5rem; }
.es-article ul { list-style: none; padding-left: 0; }
.es-article ul li {
  position: relative;
  padding-left: 1.35rem;
}
.es-article ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.72em;
  width: 0.55rem; height: 0.55rem;
  background: var(--olive-500);
}
.es-article ol { padding-left: 1.5rem; }
.es-article ol li::marker { color: var(--olive-600); font-weight: 700; }

/* table */
.es-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.8rem;
  font-size: 0.96rem;
}
.es-article thead th {
  background: var(--olive-800);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  padding: 0.7rem 0.85rem;
}
.es-article tbody td {
  border-bottom: 1px solid var(--ink-100);
  padding: 0.65rem 0.85rem;
  vertical-align: top;
}
.es-article tbody tr:nth-child(odd) td { background: var(--olive-050); }
.es-article tbody td:first-child { font-weight: 600; color: var(--ink-900); }

/* figures */
.es-fig { margin: 0 0 2rem; }
.es-fig img { display: block; width: 100%; border-top: var(--rule) solid var(--olive-600); }
.es-fig figcaption {
  font-family: var(--font-head);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: var(--ink-300);
  padding-top: 0.55rem;
  text-transform: uppercase;
}

/* standing site note */
.es-article .site-note {
  margin-top: 2.75rem;
  padding: 1.1rem 1.25rem;
  background: var(--glass-100);
  border-left: var(--rule) solid var(--glass-500);
  font-size: 0.95rem;
  color: var(--ink-700);
}
.es-article .site-note em { font-style: normal; }

/* ---------- footer ---------- */

.es-footer {
  background: var(--olive-900);
  color: var(--olive-300);
  padding: 3.25rem 0 2rem;
  margin-top: 1rem;
  border-top: var(--rule) solid var(--olive-600);
}
.es-foot-h {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.18em;
  color: #fff;
  margin: 0 0 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--olive-700);
}
.es-foot-list { list-style: none; margin: 0; padding: 0; font-size: 0.94rem; }
.es-foot-list li { margin-bottom: 0.42rem; }
.es-foot-list a { color: var(--olive-300); text-decoration: none; }
.es-foot-list a:hover, .es-foot-list a:focus { color: #fff; text-decoration: underline; }

.es-footer-note {
  border-top: 1px solid var(--olive-800);
  margin-top: 1.25rem;
  padding-top: 1.5rem;
  font-size: 0.9rem;
  line-height: 1.65;
}
.es-footer-note p { margin: 0 0 0.6rem; }
.es-footer-note strong { color: #fff; font-family: var(--font-head); letter-spacing: 0.1em; }
.es-copy { color: var(--ink-300); margin-bottom: 0 !important; }

/* ---------- responsive ---------- */

@media (max-width: 991.98px) {
  .es-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .es-side { position: static; order: 2; margin-top: 1rem; }
  .es-article { order: 1; max-width: none; }
  .es-nav .navbar-nav { gap: 0; padding-top: 0.75rem; }
  .es-nav .nav-link { border-bottom: none; border-left: 3px solid transparent; padding-left: 0.6rem; }
  .es-nav .nav-link:hover, .es-nav .nav-link.active { border-left-color: var(--olive-600); border-bottom-color: transparent; }
  .es-nav .dropdown-menu { border: none; border-left: 3px solid var(--olive-300); margin-left: 0.6rem; }
}

@media (max-width: 575.98px) {
  body { font-size: 1.02rem; }
  .es-hero-home .es-hero-panel, .es-hero-panel { padding: 2.5rem 0 2.75rem; }
  .es-topbar { font-size: 0.7rem; letter-spacing: 0.08em; }
  .es-brand-mark { font-size: 1.6rem; }
  .es-article table { display: block; overflow-x: auto; white-space: nowrap; }
}

@media print {
  .es-nav, .es-topbar, .es-side, .es-footer, .es-skip { display: none; }
  body { color: #000; }
}

@media (prefers-reduced-motion: reduce) {
  .es-hero-panel { animation: none; }
}
