/* ==========================================================================
   Bayden Energy — homepage
   Implemented from the Claude Design file "Bayden Energy Homepage.dc.html".
   ========================================================================== */

:root {
  --accent: #2F8757;        /* brand green (design prop "accent") */
  --green-deep: #1B4D36;
  --ink: #16211B;           /* body text / footer bg */
  --ink-deep: #101A15;      /* utility bar / dark band / hero bg */
  --paper: #F6F6F2;         /* page background */
  --paper-hover: #F1F4EF;
  --muted: #5C6B62;
  --muted-light: #8A968E;
  --muted-dark-bg: #B9C4BD; /* text on dark surfaces */
  --line: rgba(22, 33, 27, 0.14);
  --line-strong: rgba(22, 33, 27, 0.18);
  --line-dark: rgba(246, 246, 242, 0.10);
  --container: 1320px;
  --gutter: 32px;
  --font-sans: 'Archivo', 'Noto Kufi Arabic', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: var(--paper); }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }

section[id], footer[id] { scroll-margin-top: 84px; }

::selection { background: var(--accent); color: #FFFFFF; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Kicker: small, bold, tracked label (tracking is dropped for Kurdish, see i18n) */
.kicker {
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.kicker--hero { font-size: 13px; }

/* --------------------------------------------------------------------------
   Utility bar
   -------------------------------------------------------------------------- */
.utility {
  background: var(--ink-deep);
  color: var(--muted-dark-bg);
  font-size: 12.5px;
  letter-spacing: 0.04em;
}
.utility__inner {
  padding-top: 8px;
  padding-bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
}
.utility__left { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.utility__mail { color: var(--muted-light); transition: color 0.2s; }
.utility__mail:hover { color: var(--paper); }

.lang { display: flex; align-items: center; gap: 18px; }
.lang__btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 2px 0;
  color: var(--muted-light);
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.lang__btn:hover { color: var(--paper); }
.lang__btn[aria-pressed="true"] {
  color: var(--paper);
  font-weight: 700;
  border-bottom-color: var(--accent);
}

/* --------------------------------------------------------------------------
   Header / nav
   -------------------------------------------------------------------------- */
.header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  transition: box-shadow 0.3s, background 0.3s;
}
.header.is-scrolled {
  box-shadow: 0 12px 32px -20px rgba(16, 26, 21, 0.45);
  background: rgba(246, 246, 242, 0.9);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
}
.header__inner {
  padding-top: 12px;
  padding-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  min-height: 76px;
}
.brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
  color: var(--ink);
}
.brand__name { font-weight: 800; font-size: 19px; letter-spacing: 0.01em; }
.brand__sub {
  display: none;
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 4px;
  align-self: flex-start;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.5vw, 36px);
  font-size: 14.5px;
  font-weight: 500;
  max-width: 100%;
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav__link {
  color: var(--ink);
  padding: 6px 0;
  box-shadow: inset 0 -2px 0 transparent;
  transition: color 0.2s, box-shadow 0.2s;
}
.nav__link:hover { color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }
.nav__cta {
  background: var(--green-deep);
  color: var(--paper);
  padding: 10px clamp(14px, 2vw, 22px);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.03em;
  transition: background 0.2s;
}
.nav__cta:hover { background: var(--ink); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { position: relative; background: var(--ink-deep); }
.hero__img {
  display: block;
  width: 100%;
  height: clamp(440px, 80vw, 720px);
  object-fit: cover;
  object-position: center;
}
.hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 18, 14, 0.82) 0%, rgba(10, 18, 14, 0.45) 55%, rgba(10, 18, 14, 0.05) 100%);
  pointer-events: none;
}
.hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  pointer-events: none;
}
.hero__container {
  width: 100%;
  padding-bottom: clamp(96px, 16vw, 140px);
}
.hero__text {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  pointer-events: auto;
}
.hero__rule { width: 56px; height: 3px; background: var(--accent); }
.hero__title {
  margin: 0;
  color: var(--paper);
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* --------------------------------------------------------------------------
   Quick links (overlapping the hero)
   -------------------------------------------------------------------------- */
.quick {
  margin-top: -72px;
  position: relative;
  z-index: 10;
}
.quick__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  box-shadow: 0 28px 56px -28px rgba(16, 26, 21, 0.4);
}
.quick__card {
  background: #FFFFFF;
  padding: 30px 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--ink);
  transition: background 0.2s, box-shadow 0.2s;
}
.quick__card:hover { background: var(--paper-hover); box-shadow: inset 0 3px 0 var(--accent); }
.quick__num { font-size: 12px; font-weight: 700; color: var(--muted-light); letter-spacing: 0.14em; }
.quick__title { font-size: 19px; font-weight: 700; }
.quick__desc { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.quick__arrow { color: var(--accent); font-weight: 700; font-size: 17px; margin-top: 4px; }

/* --------------------------------------------------------------------------
   Two-column "split" layout (label aside + content)
   -------------------------------------------------------------------------- */
.split {
  padding-top: clamp(56px, 9vw, 96px);
  padding-bottom: clamp(56px, 9vw, 96px);
  display: flex;
  flex-wrap: wrap;
  gap: 40px 48px;
  align-items: flex-start;
}
.split__aside { flex: 0 0 200px; display: flex; flex-direction: column; gap: 10px; }
.split__aside--sticky { position: sticky; top: 108px; }
/* Once the aside wraps above the content (narrow screens) it must not stick,
   or the label slides over the row titles. */
@media (max-width: 799px) {
  .split__aside--sticky { position: static; }
}
.split__main { flex: 1 1 520px; min-width: 0; }

/* Statement */
.statement { background: var(--paper); border-bottom: 1px solid var(--line); }
.statement__text {
  margin: 0;
  font-size: clamp(24px, 3.2vw, 32px);
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: -0.01em;
  max-width: 820px;
  text-wrap: pretty;
}

/* Operations */
.ops { background: var(--paper); }
.ops .split { padding-bottom: clamp(64px, 10vw, 110px); }
.ops__list { display: flex; flex-direction: column; }
.ops__row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 24px;
  align-items: center;
  padding: 32px 16px;
  border-top: 1px solid var(--line-strong);
  transition: background 0.25s;
}
.ops__row--last { border-bottom: 1px solid var(--line-strong); }
.ops__row:hover { background: rgba(47, 135, 87, 0.06); }
.ops__num { flex: 0 0 40px; font-size: 14px; font-weight: 700; color: var(--accent); }
.ops__body { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ops__title { font-size: 26px; font-weight: 700; letter-spacing: -0.01em; }
.ops__desc { font-size: 14.5px; color: var(--muted); }
.ops__icon {
  flex: 0 0 auto;
  width: 76px;
  height: 76px;
  margin-inline-start: auto;
  display: grid;
  place-items: center;
  background: rgba(47, 135, 87, 0.08);
  border: 1px solid rgba(22, 33, 27, 0.12);
  color: var(--accent);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.ops__row:hover .ops__icon { background: var(--accent); color: var(--paper); border-color: var(--accent); }

/* --------------------------------------------------------------------------
   Dark band
   -------------------------------------------------------------------------- */
.band { background: var(--ink-deep); position: relative; overflow: hidden; }
.band__ghost {
  position: absolute;
  right: -30px;
  bottom: -70px;
  font-size: clamp(140px, 28vw, 280px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(246, 246, 242, 0.07);
  pointer-events: none;
  user-select: none;
}
.band__inner {
  padding-top: clamp(72px, 12vw, 120px);
  padding-bottom: clamp(72px, 12vw, 120px);
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
  position: relative;
}
.band__text {
  margin: 0;
  color: var(--paper);
  font-size: clamp(28px, 4.5vw, 40px);
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.015em;
  max-width: 900px;
  text-wrap: balance;
}
.band__cta {
  background: var(--accent);
  color: var(--paper);
  padding: 15px 30px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  margin-top: 10px;
  transition: background 0.2s, box-shadow 0.2s;
}
.band__cta:hover { background: var(--green-deep); box-shadow: 0 12px 28px -12px rgba(47, 135, 87, 0.6); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer { background: var(--ink); border-top: 1px solid var(--line-dark); color: var(--muted-dark-bg); }
.footer__inner {
  padding-top: 72px;
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.footer__ghost {
  font-size: clamp(44px, 7vw, 96px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: rgba(246, 246, 242, 0.07);
  user-select: none;
}
.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 48px;
  align-items: start;
}
.footer__art { display: flex; align-items: center; gap: 12px; }
.footer__art img { width: 100%; height: auto; }
.footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--muted-dark-bg);
  font-size: 14.5px;
  line-height: 1.6;
}
.footer__label { color: var(--muted-light); font-size: 12px; font-weight: 700; letter-spacing: 0.18em; }
.footer__link { color: var(--muted-dark-bg); transition: color 0.2s; }
.footer__link:hover { color: var(--paper); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  color: var(--muted);
  font-size: 12.5px;
}

/* --------------------------------------------------------------------------
   Reveal-on-scroll (JS adds .is-visible; without JS everything is visible)
   -------------------------------------------------------------------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(.2, .7, .2, 1), transform 0.9s cubic-bezier(.2, .7, .2, 1);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* --------------------------------------------------------------------------
   Kurdish (Sorani, RTL) and Kurmancî: the design drops letter-spacing and
   uppercase, loosens line-height, shrinks the hero title, and shows the
   transliterated brand name under the wordmark.
   -------------------------------------------------------------------------- */
html:not([lang="en"]) .brand__sub { display: block; }
html:not([lang="en"]) .kicker { letter-spacing: 0; text-transform: none; font-size: 13px; }
html:not([lang="en"]) .nav__cta,
html:not([lang="en"]) .band__cta,
html:not([lang="en"]) .footer__label,
html:not([lang="en"]) .utility,
html:not([lang="en"]) .lang__btn { letter-spacing: 0; }
html:not([lang="en"]) .hero__title { font-size: clamp(32px, 5.5vw, 58px); line-height: 1.3; letter-spacing: 0; }
html:not([lang="en"]) .quick__desc { line-height: 1.7; }
html:not([lang="en"]) .statement__text { font-size: clamp(22px, 3vw, 29px); line-height: 1.7; letter-spacing: 0; }
html:not([lang="en"]) .ops__title { font-size: 25px; letter-spacing: 0; }
html:not([lang="en"]) .band__text { font-size: clamp(26px, 4vw, 36px); line-height: 1.6; letter-spacing: 0; }

/* The ghost wordmarks and brand name stay Latin and left-anchored in RTL. */
html[dir="rtl"] .brand__name,
html[dir="rtl"] .footer__ghost { direction: ltr; text-align: start; }
html[dir="rtl"] .band__ghost { right: auto; left: -30px; }
