/* ==========================================================================
   NexaGulf -- Homepage
   The native front page. Reuses the theme's tokens throughout; introduces no
   new colour or type values, so it reads as the same publication as every
   other page.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero
   Full-bleed image with an ink scrim so white text stays legible over any
   photograph, and a plain ink fallback when no image is set. The scrim is
   heavier on the left, where the copy sits, and clears on the right so the
   skyline reads -- matching the reference.
   -------------------------------------------------------------------------- */
.ng-home-hero {
  position: relative;
  background: var(--ng-ink);
  color: #fff;
  overflow: hidden;
}
.ng-home-hero--image {
  background-size: cover;
  background-position: center right;
}
.ng-home-hero--image::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8,20,16,.94) 0%, rgba(8,20,16,.82) 34%, rgba(8,20,16,.35) 66%, rgba(8,20,16,.15) 100%),
    linear-gradient(0deg, rgba(8,20,16,.55), transparent 45%);
}
/* Plain hero still gets the theme's radial accent so it is not a flat block. */
.ng-home-hero:not(.ng-home-hero--image)::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(680px 340px at 82% 12%, rgba(47,201,146,.16), transparent 65%);
}
.ng-home-hero .ng-wrap-wide { position: relative; z-index: 1; }
.ng-home-hero__inner {
  max-width: 620px;
  padding: clamp(48px, 8vw, 104px) 0;
}
.ng-home-hero__eyebrow { color: var(--ng-mint); }
.ng-home-hero__title {
  color: #fff;
  font-size: var(--ng-fs-display);
  letter-spacing: var(--ng-track-display);
  line-height: 1.04;
  font-weight: 700;
  margin: var(--ng-s4) 0 var(--ng-s5);
}
/* The middle line: brand colour, italic, as in the reference. em rather than a
   class so it survives translation and re-editing. */
.ng-home-hero__title em {
  color: var(--ng-mint);
  font-style: italic;
  font-weight: 700;
}
.ng-home-hero__sub {
  font-size: var(--ng-fs-lead);
  color: rgba(255,255,255,.74);
  line-height: 1.55;
  max-width: 46ch;
  margin-bottom: var(--ng-s6);
}
.ng-home-hero__ctas { display: flex; gap: var(--ng-s3); flex-wrap: wrap; }

@media (max-width: 720px) {
  /* On a phone the image sits behind text either way, so darken it evenly
     rather than only on the left. */
  .ng-home-hero--image::before {
    background: linear-gradient(180deg, rgba(8,20,16,.8), rgba(8,20,16,.92));
  }
  .ng-home-hero__inner { max-width: none; }
  .ng-home-hero__ctas .ng-btn { flex: 1 1 auto; }
}

/* --------------------------------------------------------------------------
   Latest coverage: one lead + three stacked items
   -------------------------------------------------------------------------- */
.ng-coverage {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 2fr);
  gap: var(--ng-s6);
  align-items: stretch;
}

.ng-coverage__lead {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 360px;
  border-radius: var(--ng-radius-lg);
  overflow: hidden;
  background: var(--ng-ink);
  color: #fff;
}
.ng-coverage__lead-media { position: absolute; inset: 0; }
.ng-coverage__lead-media img { width: 100%; height: 100%; object-fit: cover; }
.ng-coverage__lead::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8,20,16,.92) 8%, rgba(8,20,16,.45) 44%, rgba(8,20,16,.05) 78%);
}
.ng-coverage__lead-body {
  position: relative;
  z-index: 1;
  padding: var(--ng-s5);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ng-coverage__tags {
  font-size: var(--ng-fs-meta);
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ng-mint);
}
.ng-coverage__lead .ng-coverage__tags { color: var(--ng-mint); }
.ng-coverage__lead-title {
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -.02em;
  line-height: 1.25;
}
.ng-coverage__lead-dek {
  font-size: 14.5px;
  color: rgba(255,255,255,.74);
  line-height: 1.55;
}
.ng-coverage__lead-meta {
  font-size: var(--ng-fs-meta);
  color: rgba(255,255,255,.55);
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}
.ng-coverage__lead:hover .ng-coverage__lead-title { color: var(--ng-mint); }

.ng-coverage__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--ng-s5);
}
.ng-coverage__item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: var(--ng-s5);
  background: var(--ng-bg);
  border: 1px solid var(--ng-line);
  border-radius: var(--ng-radius-lg);
  transition: box-shadow var(--ng-dur) var(--ng-ease), transform var(--ng-dur) var(--ng-ease), border-color var(--ng-dur) var(--ng-ease);
}
.ng-coverage__item:hover {
  box-shadow: var(--ng-shadow-2);
  transform: translateY(-2px);
  border-color: var(--ng-line-2);
}
.ng-coverage__item .ng-coverage__tags { color: var(--ng-green); }
.ng-coverage__item-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.014em;
  line-height: 1.35;
  color: var(--ng-text);
  flex: 1;
}
.ng-coverage__item:hover .ng-coverage__item-title { color: var(--ng-green); }
.ng-coverage__item-meta {
  font-size: var(--ng-fs-meta);
  color: var(--ng-text-3);
  font-variant-numeric: tabular-nums;
  margin-top: auto;
}

@media (max-width: 980px) {
  .ng-coverage { grid-template-columns: 1fr; }
  .ng-coverage__lead { min-height: 300px; }
}
@media (max-width: 680px) {
  .ng-coverage__list { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Topic chips
   -------------------------------------------------------------------------- */
.ng-topic-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: var(--ng-s5);
}
.ng-topic-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--ng-text);
  background: var(--ng-bg);
  border: 1px solid var(--ng-line);
  border-radius: 999px;
  transition: border-color var(--ng-dur) var(--ng-ease), box-shadow var(--ng-dur) var(--ng-ease), transform var(--ng-dur) var(--ng-ease);
}
.ng-topic-chip:hover {
  border-color: var(--ng-line-2);
  box-shadow: var(--ng-shadow-1);
  transform: translateY(-1px);
  color: var(--ng-green);
}
.ng-topic-chip__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ng-mint);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Calculator strip
   -------------------------------------------------------------------------- */
.ng-calc-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--ng-s5);
  margin-top: var(--ng-s5);
}
.ng-calc-tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: var(--ng-s5);
  background: var(--ng-bg);
  border: 1px solid var(--ng-line);
  border-radius: var(--ng-radius-lg);
  transition: box-shadow var(--ng-dur) var(--ng-ease), transform var(--ng-dur) var(--ng-ease), border-color var(--ng-dur) var(--ng-ease);
}
.ng-calc-tile:hover {
  box-shadow: var(--ng-shadow-2);
  transform: translateY(-2px);
  border-color: var(--ng-line-2);
}
.ng-calc-tile__icon {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ng-green-50);
  color: var(--ng-green);
  border-radius: var(--ng-radius);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 4px;
}
.ng-calc-tile__title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.012em;
  color: var(--ng-text);
  line-height: 1.3;
}
.ng-calc-tile__blurb {
  font-size: 13px;
  color: var(--ng-text-2);
  line-height: 1.5;
  flex: 1;
}
.ng-calc-tile__open {
  font-size: 13px;
  font-weight: 600;
  color: var(--ng-green);
  margin-top: 4px;
}

@media (max-width: 1080px) {
  .ng-calc-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .ng-calc-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ng-s4); }
}

/* --------------------------------------------------------------------------
   Guides: featured card + linked list
   -------------------------------------------------------------------------- */
.ng-guide-featured { display: block; position: relative; border-radius: var(--ng-radius-lg); overflow: hidden; }
.ng-guide-featured figure { margin: 0; position: relative; min-height: 300px; }
.ng-guide-featured figure > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.ng-guide-featured__cap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: var(--ng-s6);
  min-height: 300px;
  justify-content: flex-end;
  background: linear-gradient(0deg, rgba(8,20,16,.92) 10%, rgba(8,20,16,.4) 50%, rgba(8,20,16,.05) 85%);
  color: #fff;
}
.ng-guide-featured__title {
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -.02em;
  line-height: 1.25;
  color: #fff;
}
.ng-guide-featured__dek {
  font-size: 14.5px;
  color: rgba(255,255,255,.76);
  line-height: 1.55;
  max-width: 44ch;
}
.ng-guide-featured .ng-btn { margin-top: 4px; }

.ng-guide-list { display: flex; flex-direction: column; }
.ng-guide-list .ng-guide-row {
  display: flex;
  align-items: center;
  gap: var(--ng-s4);
  padding: var(--ng-s5) var(--ng-s2);
  border-top: 1px solid var(--ng-line);
  transition: padding-left var(--ng-dur) var(--ng-ease);
}
.ng-guide-list .ng-guide-row:first-child { border-top: none; }
.ng-guide-list .ng-guide-row:hover { padding-left: var(--ng-s4); }
.ng-guide-row__title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.012em;
  color: var(--ng-text);
  flex: 1;
  min-width: 0;
}
.ng-guide-list .ng-guide-row:hover .ng-guide-row__title { color: var(--ng-green); }
.ng-guide-row__intent {
  font-size: var(--ng-fs-meta);
  color: var(--ng-text-3);
  text-transform: uppercase;
  letter-spacing: .05em;
  white-space: nowrap;
  flex-shrink: 0;
}
.ng-guide-row__arrow { color: var(--ng-text-3); font-size: 20px; flex-shrink: 0; }
.ng-guide-list .ng-guide-row:hover .ng-guide-row__arrow { color: var(--ng-green); }

@media (max-width: 900px) {
  .ng-guides-layout { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .ng-guide-row__intent { display: none; }
}

/* --------------------------------------------------------------------------
   Standards band
   -------------------------------------------------------------------------- */
.ng-home-standards__title {
  color: #fff;
  font-size: var(--ng-fs-h3);
  margin: 0 0 var(--ng-s6);
}
.ng-home-standards__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--ng-s6);
}
.ng-home-standards__col h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: #fff;
  margin: 0 0 8px;
}
.ng-home-standards__col p {
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(255,255,255,.6);
  margin: 0;
}

@media (max-width: 1000px) {
  .ng-home-standards__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ng-s6) var(--ng-s8); }
}
@media (max-width: 560px) {
  .ng-home-standards__grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Print: the homepage is a directory, not a document -- keep it lean.
   -------------------------------------------------------------------------- */
@media print {
  .ng-home-hero { background: none !important; color: #000 !important; }
  .ng-home-hero::before { display: none !important; }
  .ng-home-hero__title, .ng-home-hero__eyebrow { color: #000 !important; }
  .ng-home-standards { background: none !important; }
  .ng-home-standards__title, .ng-home-standards__col h3 { color: #000 !important; }
  .ng-home-standards__col p { color: #333 !important; }
}

/* --------------------------------------------------------------------------
   Fit & polish
   -------------------------------------------------------------------------- */
/* The display size steps up on the homepage hero specifically -- it is the
   largest type on the site and the reference sets it well above article H1. */
@media (min-width: 900px) {
  .ng-home-hero__title { font-size: clamp(44px, 5vw, 60px); }
}

/* The lead coverage headline is the brightest thing in the row; give it the
   mint at rest, not only on hover, so it reads as the lead at a glance. */
.ng-coverage__lead-title { color: #fff; }

/* Country-card fact labels were wrapping awkwardly on the longer "Corporate
   tax" exceptions. Let the value breathe onto a second line rather than
   clipping. */
.ng-country-card__facts dd { line-height: 1.35; }
