/* ============================================================
   home.css — homepage sections (Task 4):
   hero, ticker, about, stats, products.

   Loaded AFTER style.css, so equal-specificity declarations here beat
   the legacy rules for the same selectors. Legacy rules with HIGHER
   specificity (e.g. `.stat:nth-child(n+3)`) are countered with the
   parent-qualified `.stats__grid .stat`.

   .prod-* / .chips render on the homepage only (/store/ loads pages.css,
   which carries its own port of these card styles — Task 9). .about*
   rules stay scoped to the home container `.about`.
   ============================================================ */

/* --------------------------------- HERO --------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: min(78vh, 620px);
  padding-block: 96px 84px;
  overflow: hidden;
  background: var(--navy-900);
  color: #fff;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
/* darker on the inline-start (right) side where the RTL text sits */
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(17, 35, 55, 0.55) 0%, rgba(17, 35, 55, 0.72) 55%, rgba(17, 35, 55, 0.9) 100%);
}
.hero__inner { max-width: 760px; }
.hero__badge {
  display: inline-block;
  background: rgba(255, 197, 21, 0.16);
  border: 1px solid rgba(255, 197, 21, 0.5);
  color: var(--yellow);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 700;
  margin-bottom: 18px;
  animation: hero-in 0.7s var(--ease) both;
}
.hero__title {
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  font-weight: 900;
  color: var(--yellow);
  margin: 0 0 14px;
  line-height: 1.35;
  letter-spacing: normal;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}
.hero__title .is-accent { color: #fff; display: block; }
.hero__kicker {
  display: block;
  font-size: 0.55em;
  color: var(--orange);
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: normal;
  margin-top: 8px;
}
.hero__lead {
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  color: #eef3f8;
  max-width: 56ch;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}
.hero__slogan {
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 800;
  color: #fff;
  margin-top: 22px;
  animation: hero-in 0.7s var(--ease) 0.32s both;
}
.hero__actions { margin-top: 26px; }

/* -------------------------------- TICKER -------------------------------- */
.ticker {
  background: var(--navy);
  color: #fff;
  border: 0;
  overflow: hidden;
  padding-block: 12px;
}
.ticker__track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: tick 32s linear infinite;
}
.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  /* trailing spacing instead of flex gap keeps the duplicated track
     perfectly periodic → the -50% → 0 loop is seamless */
  margin-inline-end: 44px;
}
.ticker__item i { color: var(--yellow); font-size: 0.6rem; }
@keyframes tick {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } }

/* ---------------------------- ABOUT + STATS ----------------------------- */
.about {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
}
.about .about__media { position: relative; }
.about .about__frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--sh-2);
  border: 6px solid #fff;
  background: var(--bg-alt);
}
.about .about__badge {
  position: absolute;
  inset-block-end: -22px;
  inset-inline-start: 24px;
  inset-inline-end: auto;
  background: var(--orange);
  color: var(--navy);
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 0;
  box-shadow: var(--sh-1);
  max-width: 230px;
}
.about .about__badge strong { display: block; color: var(--navy); font-size: 1.35rem; font-weight: 900; }
.about .about__badge span { font-size: 0.8rem; color: var(--navy); opacity: 0.85; line-height: 1.6; }
.about .about__actions { margin-top: 22px; }

.stats {
  position: relative;
  background: #fff;
  border: 0;
  overflow: hidden;
  padding-block: 0 var(--sec-y);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  position: relative;
  z-index: 1;
}
.stats__grid .stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
  box-shadow: var(--sh-1);
  transition: var(--tr);
}
.stats__grid .stat:hover { border-color: #ffd9b3; box-shadow: var(--sh-2); }
.stat__value {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 900;
  color: var(--orange-ink);
  line-height: 1.3;
}
.stat__label {
  display: block;
  font-size: 0.87rem;
  color: var(--muted);
  font-weight: 600;
  margin-top: 8px;
}
.stat__note {
  display: block;
  font-size: 0.76rem;
  color: var(--muted);
  opacity: 0.8;
  margin-top: 3px;
}

/* -------------------------------- PRODUCTS ------------------------------ */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}
.prod-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--tr);
}
.prod-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-2);
  border-color: #ffd9b3;
}
.prod-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
}
.prod-card__badge {
  position: absolute;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  background: var(--orange-ink);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
}
.prod-card__cat {
  position: absolute;
  inset-block-end: 12px;
  inset-inline-end: 12px;
  inset-inline-start: auto;
  top: auto;
  background: rgba(17, 35, 55, 0.85);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
}
.prod-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.prod-card__title { font-size: 1.1rem; font-weight: 800; color: var(--navy); margin: 0; }
.prod-card__desc { color: var(--muted); font-size: 0.92rem; margin: 0; }
.prod-card__specs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.spec { background: var(--bg-alt); border-radius: var(--radius-sm); padding: 9px 12px; }
.spec__k { display: block; font-size: 0.74rem; color: var(--muted); font-weight: 600; }
.spec__v { display: block; font-weight: 800; color: var(--navy); }
.prod-card__cta { display: inline-flex; align-items: center; gap: 8px; color: var(--orange-ink); font-weight: 700; font-size: 0.92rem; }
.prod-card:hover .prod-card__cta { color: var(--orange-ink-700); }
.prod-card:hover .prod-card__cta i {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--navy);
}
.chips { display: flex; gap: 12px; flex-wrap: wrap; }
.chip i { color: var(--orange-ink-700); }

/* ------------------------------- RESPONSIVE ----------------------------- */
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  .about .about__badge {
    position: relative;
    inset: auto;
    max-width: none;
    margin-top: 16px;
    border-top: 3px solid var(--yellow);
  }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .hero { min-height: auto; padding-block: 72px 64px; }
}
@media (max-width: 480px) {
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stats__grid .stat { padding: 18px 12px; }
}

/* ===== Task 5 — order steps / why / process / standards =====
   home.css loads after style.css, so every rule here replaces the legacy
   .process / .why / .std rules of the same name. Because a base rule in
   this file also beats style.css's media-query rules (same specificity,
   later in the cascade), each of those selectors gets its own responsive
   rules below. The vision cards on /about/ reuse .why-grid → the why
   block is scoped to the homepage #why section so /about/ keeps the
   legacy look until Task 9. */

/* ------------------------------ ORDER STEPS ------------------------------ */
#order .sec-head { max-width: 760px; }
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.step-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 20px 22px;
  text-align: center;
  box-shadow: var(--sh-1);
  overflow: hidden;
  transition: var(--tr);
}
.step-card::before {
  content: '';
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--orange), var(--yellow));
}
.step-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-2);
  border-color: #ffd9b3;
}
.step-card__num {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--orange-soft);
  border: 2px solid var(--yellow);
  color: var(--orange-ink);
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1;
}
.step-card picture { display: block; max-width: 120px; margin: 0 auto 12px; }
.step-card__title { font-size: 1.02rem; font-weight: 800; color: var(--navy); margin: 0 0 8px; }
.step-card__text { font-size: 0.88rem; line-height: 1.9; color: var(--muted); margin: 0 0 12px; }
.step-card__text:last-child { margin-bottom: 0; }
.step-card .link-arrow { font-size: 0.88rem; }

/* -------------------------------- WHY US --------------------------------- */
#why .why-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
#why .why-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  overflow: hidden;
  transition: var(--tr);
}
#why .why-card::before { background: linear-gradient(90deg, var(--orange), var(--yellow)); }
#why .why-card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: #ffd9b3; }
#why .why-card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--orange-soft);
  color: var(--orange);
  font-size: 1.15rem;
  margin-bottom: 14px;
}
#why .why-card__title { font-size: 1rem; font-weight: 800; color: var(--navy); margin: 0 0 8px; }
#why .why-card__text { font-size: 0.9rem; line-height: 1.9; color: var(--muted); margin: 0; }

/* -------------------------------- PROCESS -------------------------------- */
.process .process__grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(24px, 3vw, 44px);
}
.process .timeline { position: relative; display: grid; gap: 16px; }
.process .timeline::before { display: none; }
.process .tl-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  padding: 18px;
  transition: var(--tr);
}
.process .tl-item:last-child { padding-bottom: 18px; }
.process .tl-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(247, 138, 33, 0.5);
  transform: translateY(-3px);
}
.process .tl-item__num,
.process .tl-item.is-in .tl-item__num,
.process .tl-item:hover .tl-item__num {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: rgba(255, 197, 21, 0.14);
  border: 2px solid var(--yellow);
  border-radius: 50%;
  color: var(--yellow);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
}
.process .tl-item.is-in .tl-item__num,
.process .tl-item:hover .tl-item__num {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--navy);
}
.process .tl-item__title {
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 4px;
  padding-top: 2px;
}
.process .tl-item__text { color: #b9c6d4; font-size: 0.88rem; line-height: 1.9; margin: 0; }
.process .process__media { margin: 0; border-radius: var(--radius); overflow: hidden; }
.process .process__caption {
  gap: 8px;
  padding: 12px 14px;
  background: rgba(17, 35, 55, 0.9);
  color: #cfd9e4;
  font-size: 0.83rem;
}
.process .process__caption i { color: var(--orange); }

/* ------------------------------- STANDARDS ------------------------------- */
.std { background: var(--navy); color: #e9eef4; }
.std .sec-desc + .sec-desc { margin-top: 12px; }
.std .std__inner {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 4vw, 56px);
  padding-block: var(--sec-y) clamp(26px, 3vw, 40px);
}
.std .std__figure { border-radius: var(--radius); }
.std .std__chips { margin-top: 18px; }
.std .chip--dark {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 197, 21, 0.4);
  color: #ffe6a6;
}
.std .chip--dark i { color: var(--yellow); }
.std .std__list {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 0;
  padding-bottom: var(--sec-y);
}
.std .std__item {
  display: flex;
  gap: 12px;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 14px;
  color: #fff;
  transition: var(--tr);
}
.std .std__item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(247, 138, 33, 0.5);
  transform: translateY(-3px);
}
.std .std__item i {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: rgba(247, 138, 33, 0.16);
  color: var(--orange);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}
.std .std__item strong { display: block; color: #fff; font-size: 0.98rem; font-weight: 700; line-height: 1.7; }

/* dark-section eyebrow keeps the tirgerd orange (legacy wins on specificity) */
.on-dark .sec-eyebrow,
.section--dark .sec-eyebrow { color: var(--orange); }

/* ------------------------------- RESPONSIVE ----------------------------- */
@media (max-width: 1180px) {
  #why .why-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  .process .process__grid { grid-template-columns: 1fr; }
  .std .std__inner { grid-template-columns: 1fr; }
  .std .std__list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  #why .why-grid { grid-template-columns: repeat(2, 1fr); }
  .std .std__list { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  #why .why-grid { grid-template-columns: 1fr; }
  #why .why-card { padding: 20px 18px; }
}

/* ===== Task 6 — capacity / coverage / projects / news =====
   home.css loads after style.css, so these equal-specificity rules replace
   the legacy .capacity / .coverage__grid / .map-* / .prov / .proj-* /
   .news-* rules of the same name — including style.css's media-query rules,
   which lose to a base rule declared later. Every selector that needs
   different mobile geometry therefore gets its own responsive rule at the
   bottom of this block. Legacy colours (--accent #f5a623, --concrete-*,
   --navy-950, --r-*) are re-stated with the tirgerd tokens: orange/yellow
   accents on navy/white. The four sections are the only users of these
   classes, so nothing on the inner pages changes. */

/* -------------------------------- CAPACITY ------------------------------ */
.capacity {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: var(--sec-y);
  background: var(--navy-900);
  color: #fff;
}
.capacity__bg { position: absolute; inset: 0; z-index: -2; }
.capacity__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 1; }
.capacity__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  /* darker on the inline-start (right) side where the RTL text sits */
  background: linear-gradient(90deg, rgba(17, 35, 55, 0.7) 0%, rgba(17, 35, 55, 0.82) 55%, rgba(11, 22, 38, 0.94) 100%);
}
.capacity__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
}
.cap-figures { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.cap-figure {
  padding: clamp(18px, 2.2vw, 26px) 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  text-align: center;
}
.cap-figure__value {
  display: block;
  color: var(--yellow);
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: normal;
}
.cap-figure__value em { font-style: normal; color: var(--orange); }
.cap-figure__label {
  display: block;
  margin-top: 6px;
  color: #c3cedb;
  font-size: 0.85rem;
  line-height: 1.7;
}

/* -------------------------------- COVERAGE ------------------------------ */
.coverage__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 44px);
  align-items: center;
}
.map-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(16px, 2.4vw, 26px);
  box-shadow: var(--sh-1);
}
.map-card svg { width: 100%; height: auto; }
.map-land { fill: #eef1f5; stroke: #ccd5e0; stroke-width: 1.6; stroke-linejoin: round; }
.map-marker circle.halo {
  fill: rgba(247, 138, 33, 0.24);
  transform-box: fill-box;
  transform-origin: center;
  animation: pulse 2.6s ease-out infinite;
}
.map-marker circle.dot { fill: var(--orange); stroke: #fff; stroke-width: 2.5; }
.map-marker .hq-ring { fill: none; stroke: var(--navy); stroke-width: 3; stroke-dasharray: 5 7; opacity: 0.75; }
.map-marker text { fill: var(--navy); }
.map-sea .sea-label { fill: #b3bdcb; }
.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}
.map-legend span { display: inline-flex; align-items: center; gap: 7px; }
.map-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(247, 138, 33, 0.18);
}
.map-legend .lg-hq { background: var(--navy); box-shadow: 0 0 0 3px rgba(17, 35, 55, 0.15); }

.prov-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 24px; }
.prov {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-inline-start: 3px solid var(--orange);
  border-radius: var(--radius-sm);
  transition: var(--tr);
}
.prov:hover { transform: translateX(-4px); box-shadow: var(--sh-1); }
.prov i { color: var(--orange); font-size: 1rem; margin-top: 4px; }
.prov strong { display: block; color: var(--navy); font-size: 0.92rem; font-weight: 800; line-height: 1.7; }
.prov span { display: block; color: var(--muted); font-size: 0.8rem; margin-top: 2px; line-height: 1.7; }
#coverage .btn--ghost-dark { background: #fff; color: var(--navy); border-color: var(--line); }
#coverage .btn--ghost-dark:hover { border-color: var(--orange); color: var(--orange-ink); }

/* -------------------------------- PROJECTS ------------------------------ */
.proj-feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: clamp(16px, 2vw, 24px);
  background: var(--navy);
  color: #fff;
  box-shadow: var(--sh-1);
}
.proj-feature__media {
  position: relative;
  min-height: 320px;
  aspect-ratio: auto;
  overflow: hidden;
}
.proj-feature__media picture { position: absolute; inset: 0; }
.proj-feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.proj-feature:hover .proj-feature__media img { transform: scale(1.04); }
.proj-feature__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(11, 22, 38, 0.6) 0%, rgba(11, 22, 38, 0.15) 55%, rgba(11, 22, 38, 0.04) 100%);
}
.proj-feature__body {
  position: static;
  padding: clamp(24px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  background: var(--navy);
}
.proj-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  background: rgba(255, 197, 21, 0.16);
  border: 1px solid rgba(255, 197, 21, 0.5);
  color: var(--yellow);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0;
}
.proj-feature__title {
  color: #fff;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-weight: 900;
  line-height: 1.5;
  margin: 12px 0 0;
}
.proj-feature__desc { color: #c3cedb; font-size: 0.93rem; line-height: 1.9; margin: 10px 0 0; max-width: 52ch; }
.proj-arrow {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  color: #fff;
  font-size: 1rem;
  flex-shrink: 0;
  transition: var(--tr);
}
.proj-feature:hover .proj-arrow,
.proj-card:hover .proj-card__arrow {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  transform: translateX(-4px);
}

.proj-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: clamp(16px, 2vw, 24px); }
.proj-card {
  position: relative;
  display: block;
  min-height: 260px;
  aspect-ratio: 16 / 10;
  max-width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  background: var(--navy-900);
  color: #fff;
  box-shadow: var(--sh-1);
}
.proj-card__media { position: absolute; inset: 0; }
.proj-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.proj-card:hover .proj-card__media img { transform: scale(1.06); }
.proj-card__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(11, 22, 38, 0.94) 8%, rgba(11, 22, 38, 0.45) 55%, rgba(11, 22, 38, 0.1) 100%);
  transition: background var(--tr);
}
.proj-card:hover .proj-card__scrim {
  background: linear-gradient(0deg, rgba(11, 22, 38, 0.96) 8%, rgba(17, 35, 55, 0.55) 60%, rgba(11, 22, 38, 0.18) 100%);
}
.proj-card__body {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}
.proj-card__title { color: #fff; font-size: 1.05rem; font-weight: 800; line-height: 1.6; margin: 0; }
.proj-card__desc { color: rgba(255, 255, 255, 0.75); font-size: 0.85rem; line-height: 1.75; margin: 6px 0 0; }
.proj-card__arrow {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  color: #fff;
  font-size: 0.82rem;
  flex-shrink: 0;
  transition: var(--tr);
}
.proj-card__meta { position: absolute; top: 14px; inset-inline-start: 14px; display: flex; gap: 8px; flex-wrap: wrap; z-index: 1; }
.proj-card__meta span {
  background: rgba(17, 35, 55, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.9);
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 700;
}

/* ---------------------------------- NEWS -------------------------------- */
/* the only section using .section--line — separate it from the white
   projects block above (alt → white → alt rhythm) */
#news { background: var(--bg-alt); }
.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(20px, 2.6vw, 30px);
}
.news-lead {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  background: var(--navy-900);
  min-height: 340px;
  box-shadow: var(--sh-1);
}
.news-lead__media { position: absolute; inset: 0; }
.news-lead__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.news-lead:hover .news-lead__media img { transform: scale(1.04); }
.news-lead__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(11, 22, 38, 0.95) 4%, rgba(11, 22, 38, 0.6) 48%, rgba(11, 22, 38, 0.18) 100%);
}
.news-lead__body { position: absolute; inset-inline: 0; bottom: 0; padding: clamp(20px, 3vw, 30px); }
.news-date {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--yellow);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.news-date i { color: var(--yellow); }
.news-lead__title { color: #fff; font-size: clamp(1.15rem, 2.2vw, 1.55rem); font-weight: 900; line-height: 1.5; margin: 0 0 8px; }
.news-lead__text { color: rgba(255, 255, 255, 0.78); font-size: 0.93rem; line-height: 1.9; margin: 0; }

.news-list { display: grid; gap: 14px; align-content: start; }
.news-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  overflow: hidden;
  transition: var(--tr);
}
.news-item:hover { transform: translateY(-3px); box-shadow: var(--sh-1); border-color: #ffd9b3; }
.news-item__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
}
.news-item__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.news-item:hover .news-item__media img { transform: scale(1.06); }
.news-item__body { padding: 0; min-width: 0; }
.news-item__date { display: flex; align-items: center; gap: 6px; color: var(--orange-ink); font-size: 0.76rem; font-weight: 700; }
.news-item__title { color: var(--navy); font-size: 0.98rem; font-weight: 800; line-height: 1.7; margin: 6px 0 0; }
.news-item__text {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.85;
  margin: 6px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-more { margin-top: 28px; display: flex; justify-content: center; }
#news .btn--ghost-dark { background: #fff; color: var(--navy); border-color: var(--line); }
#news .btn--ghost-dark:hover { border-color: var(--orange); color: var(--orange-ink); }

/* ------------------------------- RESPONSIVE ----------------------------- */
@media (max-width: 900px) {
  .capacity__grid,
  .coverage__grid,
  .news-layout,
  .proj-feature { grid-template-columns: 1fr; }
  .prov-list { grid-template-columns: 1fr; }
  .proj-feature__media { min-height: 260px; }
}
@media (max-width: 760px) {
  .news-item { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 10px; }
}
@media (max-width: 480px) {
  .cap-figure { padding: 16px 12px; }
  .news-item { grid-template-columns: 1fr; }
  .news-item__media { aspect-ratio: 16 / 9; }
  .news-item__body { padding-top: 4px; }
  .proj-card { aspect-ratio: auto; min-height: 250px; }
}


/* ===== Task 7 — carousel component, honors, guide + form, gallery, blog ====
   Loaded after style.css. New class names only, except .field / .form-row
   which are scoped to .guide__form: /call/ still loads home.css (its
   $page_css switches to 'pages' in Task 9), so unscoped .field rules would
   leak into the contact form there. */

/* ------------------------------- carousel ------------------------------- */
.carousel {
  position: relative;
  overflow: hidden;
  padding-inline: 52px;
}
.carousel__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  padding-block: 10px;   /* room inside the scroll clip for the card shadows */
  margin-block: -10px;
}
.carousel__track::-webkit-scrollbar { width: 0; height: 0; display: none; }
.carousel__track:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }
.carousel__slide { flex: 0 0 calc((100% - 3 * 16px) / 4); margin: 0; }
.carousel--3 .carousel__slide { flex-basis: calc((100% - 2 * 16px) / 3); }

.carousel__btn {
  position: absolute;
  inset-block: 50%;
  translate: 0 -50%;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--sh-1);
  cursor: pointer;
  z-index: 2;
  transition: var(--tr);
}
.carousel__btn:hover { background: var(--orange); border-color: var(--orange); color: var(--navy); }
.carousel__btn[hidden] { display: none; }
.carousel__btn--prev { inset-inline-start: 0; }
.carousel__btn--next { inset-inline-end: 0; }
.carousel__dots { display: flex; gap: 0; justify-content: center; margin-top: 20px; }
.carousel__dots[hidden] { display: none; }
.carousel__dot {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  display: inline-grid;
  place-items: center;
  background: transparent;
  cursor: pointer;
  transition: var(--tr);
}
.carousel__dot::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line);
  transition: var(--tr);
}
.carousel__dot.is-active { background: transparent; scale: 1; }
.carousel__dot.is-active::before { background: var(--orange); scale: 1.25; }
.carousel__btn:focus-visible,
.carousel__dot:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; box-shadow: 0 0 0 4px rgba(255, 197, 21, .85); }

/* -------------------------------- honors -------------------------------- */
.honor-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
  box-shadow: var(--sh-1);
}
.honor-card__ico { display: block; font-size: 1.7rem; color: var(--orange); margin-bottom: 12px; }
.honor-card__title { font-size: 1rem; font-weight: 800; font-style: normal; color: var(--navy); margin: 0 0 10px; line-height: 1.8; }
.honor-card__sub { display: block; font-size: 0.86rem; color: var(--muted); line-height: 1.8; }
.honor-card__cite { display: block; margin-top: 8px; font-size: 0.78rem; font-weight: 700; color: var(--orange-ink); }

/* ---------------------------- guide + form ------------------------------ */
.guide { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }
.guide__phones { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0; }
.guide__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 16px;
  font-weight: 700;
  color: var(--navy);
  transition: var(--tr);
}
.guide__phone:hover { border-color: var(--orange); color: var(--orange-ink); }
.guide__phone i { color: var(--orange); }
.guide__form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--sh-2);
}
.guide__form h3 { font-size: 1.1rem; color: var(--navy); margin: 0 0 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.guide__form .field { display: grid; gap: 7px; margin-bottom: 14px; }
.guide__form .form-row { margin-bottom: 14px; }
.guide__form .form-row .field { margin-bottom: 0; }
.guide__form .field > span { display: block; font-size: 0.85rem; font-weight: 700; color: var(--navy); }
.guide__form .field > span b { color: #e03939; }
.guide__form .field textarea { min-height: 108px; }

/* -------------------------------- gallery ------------------------------- */
.gal-slide {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.gal-slide picture { display: block; background: var(--bg-alt); }
.gal-slide img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gal-slide figcaption { padding: 10px 14px; font-size: 0.85rem; color: var(--muted); line-height: 1.7; }

/* --------------------------------- blog --------------------------------- */
.blog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.post-card {
  display: grid;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--tr);
}
.post-card:hover { box-shadow: var(--sh-2); transform: translateY(-4px); }
.post-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-alt); }
.post-card__media picture { display: block; height: 100%; }
.post-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__body { padding: 2px 18px 20px; }
.post-card__date { display: flex; align-items: center; gap: 6px; color: var(--orange-ink); font-size: 0.76rem; font-weight: 700; }
.post-card__title { color: var(--navy); font-size: 1rem; font-weight: 800; line-height: 1.7; margin: 6px 0 0; }
.post-card__text { color: var(--muted); font-size: 0.88rem; line-height: 1.85; margin: 8px 0 12px; }
.post-card__more { font-size: 0.88rem; }
.blog-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 720px;
  margin-inline: auto;
  padding: 26px 24px;
  text-align: center;
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}
.blog-empty i { font-size: 1.4rem; color: var(--orange); }
.blog-empty p { margin: 0; }

/* ------------------------------- RESPONSIVE ----------------------------- */
@media (max-width: 1024px) {
  .carousel__slide,
  .carousel--3 .carousel__slide { flex-basis: calc((100% - 16px) / 2); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .guide { grid-template-columns: 1fr; }
  .guide__form .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .carousel { padding-inline: 0; }
  .carousel__slide,
  .carousel--3 .carousel__slide { flex-basis: 100%; }
  .carousel__btn { display: none; }
  .blog-grid { grid-template-columns: 1fr; }
  .guide__form { padding: 20px 16px; }
  .honor-card { padding: 22px 18px; }
}
