/* ============================================================
   SABA ENERGY EUROPE — Page Stylesheet
   ============================================================ */


/* ────────────────────────────────────────
   SECTION 1 — HERO
──────────────────────────────────────── */
.uk-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.uk-hero-image-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.uk-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.uk-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  /* Dark-on-light hero: nav AND headline are dark over this bright photo, so no
     dark scrim is used at all — the image reads clean edge to edge. */
  background: none;
}

/* Eyebrow floats top-left */
.uk-hero-text {
  position: absolute;
  z-index: 10;
  bottom: 80px;
  left: 8%;
  right: 8%;
}

.uk-hero-headline {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: var(--display-hero);
  line-height: 0.95;
  color: var(--black);
  /* Dark text over a bright photo — a soft light halo lifts it off the darker
     glass without showing on the bright sky. */
  text-shadow: 0 1px 22px rgba(240, 236, 228, 0.6);
  max-width: 720px;
}

.uk-hero-bottom-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-top: 32px;
}

.uk-hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  flex-shrink: 0;
}


/* ────────────────────────────────────────
   SECTION 2 — PROBLEM STATEMENT
──────────────────────────────────────── */
.uk-problem {
  background: var(--black);
  padding: 100px 15%;
}

.uk-problem-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.uk-problem-rule {
  width: 40px;
  height: 1px;
  background: var(--green);
  margin: 0 auto 40px;
}

.uk-problem-text {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: var(--display-3);
  line-height: var(--leading-body);
  color: var(--white);
}


/* ────────────────────────────────────────
   SECTION 3 — PPA
──────────────────────────────────────── */
.uk-ppa {
  background: var(--black-deep);
  padding: 120px 8%;
}

/* ────────────────────────────────────────
   SECTION 4 — BENEFITS
──────────────────────────────────────── */
.uk-benefits {
  background: var(--black-deep);
  padding: 120px 8%;
}

.uk-benefits-header {
  text-align: center;
  margin-bottom: 72px;
}

.uk-benefits-headline {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: var(--display-2);
  line-height: 1.2;
  color: var(--white);
  margin-top: 12px;
}

.uk-benefits-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  position: relative;
  max-width: var(--container-max);
  margin-inline: auto;
}

.benefit-card {
  padding: 0 36px;
  position: relative;
}

.benefit-card + .benefit-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 1px;
  background: rgba(0, 173, 71, 0.25);
}

.benefit-card:first-child {
  padding-left: 0;
}

.benefit-card:last-child {
  padding-right: 0;
}

.benefit-number {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: 3rem;
  line-height: 1;
  color: var(--white);
  opacity: 0.25;
}

.benefit-rule {
  width: 20px;
  height: 1px;
  background: var(--green);
  margin: 16px 0;
}

.benefit-title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 12px;
}

.benefit-body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--white-soft);
}


/* ────────────────────────────────────────
   SECTION 5 — SECTORS
──────────────────────────────────────── */
.uk-sectors {
  background: var(--black-deep);
  padding: 120px 8%;
}

.uk-sectors-header {
  margin-bottom: 60px;
}

.uk-sectors-headline {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: var(--display-2);
  line-height: 1.2;
  color: var(--white);
  margin-top: 12px;
}

.uk-sectors-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}

.sector-card {
  background: var(--black-mid);
  overflow: hidden;
}

.sector-content {
  padding: 28px 32px 36px;
}

.sector-headline {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-body);
  color: var(--white);
  margin-bottom: 10px;
}

.sector-body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--white-soft);
}


/* ────────────────────────────────────────
   SECTION 6 — CALCULATOR
──────────────────────────────────────── */
.uk-calculator {
  background: var(--black);
  padding: 120px 8%;
}

.uk-calc-header {
  margin-bottom: 60px;
}

.calc-icon {
  display: block;
  width: auto;
  height: 32px;
  color: var(--green);
  margin-bottom: 16px;
}

.uk-calc-headline {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: var(--display-2);
  line-height: 1.2;
  color: var(--white);
  margin-top: 12px;
}

.uk-calc-sub {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--white-soft);
  margin-top: 14px;
  max-width: 480px;
}

.uk-calc-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.uk-calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.calc-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calc-label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white-soft);
}

.calc-input {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(240,236,228,0.12);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-body);
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.25s ease;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}

.calc-input:focus {
  border-color: var(--green);
}

.calc-input::placeholder {
  color: rgba(240,236,228,0.2);
}

.calc-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%2300ad47'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}

.calc-select option {
  background: var(--black);
  color: var(--white);
}

.calc-dimensions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.calc-dimensions .calc-input {
  flex: 1;
}

.calc-times {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--white-dim);
  flex-shrink: 0;
}

.calc-btn {
  background: var(--green);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: none;
  padding: 16px;
  width: 100%;
  cursor: pointer;
  transition: background 0.25s ease;
  margin-top: 4px;
}

/* Inline validation message (replaces a blocking alert) */
.calc-error {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: 1.5;
  color: #e0685f;
  margin-top: 12px;
}

/* Results panel */
.uk-calc-results {
  min-height: 280px;
  border: 1px solid rgba(240,236,228,0.08);
  padding: 40px;
  position: relative;
}

.calc-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
}

.calc-placeholder p {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(240,236,228,0.15);
}

.calc-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.calc-metrics.visible {
  opacity: 1;
}

.calc-metric--full {
  grid-column: 1 / -1;
}

.calc-metric-value {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: var(--display-3);
  line-height: 1;
  color: var(--white);
}

.calc-metric--highlight .calc-metric-value {
  color: var(--green);
}

.calc-metric-label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white-soft);
  margin-top: 6px;
}

.calc-disclaimer {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-label);
  line-height: var(--leading-body);
  color: rgba(240,236,228,0.55);
  margin-top: 40px;
  max-width: 680px;
}


/* ────────────────────────────────────────
   SECTION 7 — CTA STRIP
──────────────────────────────────────── */
.uk-cta-strip {
  background: var(--black-deep);
  padding: 100px 8%;
  text-align: center;
  border-top: 1px solid var(--border);
}

.uk-cta-inner {
  max-width: 600px;
  margin: 0 auto;
}

.uk-cta-headline {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: var(--display-1);
  line-height: var(--leading-display);
  color: var(--white);
}

.uk-cta-sub {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--white-soft);
  margin-top: 20px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.uk-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}


/* ────────────────────────────────────────
   RESPONSIVE — ≤ 1024px: tablet
──────────────────────────────────────── */
@media (max-width: 1024px) {

  /* Benefits — 5-col → 3 columns */
  .uk-benefits-grid {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 40px;
  }

  .benefit-card:nth-child(3n+1)::before {
    display: none;
  }

  .benefit-card:nth-child(3n+1) {
    padding-left: 0;
  }

  .benefit-card:nth-child(3n) {
    padding-right: 0;
  }
}


/* ────────────────────────────────────────
   RESPONSIVE — ≤ 768px
──────────────────────────────────────── */
@media (max-width: 768px) {

  /* Hero */
  .uk-hero-text {
    left: 6%;
    right: 6%;
    bottom: 60px;
  }

  .uk-hero-headline {
    font-size: var(--display-2);
  }

  .uk-hero-overlay {
    background: none;
  }

  .uk-hero-bottom-row {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }

  .uk-hero-buttons .btn {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  /* Problem */
  .uk-problem {
    padding: 80px 6%;
  }

  /* PPA — single column */
  .uk-ppa {
    padding: 80px 6%;
  }

  /* Benefits — single column */
  .uk-benefits {
    padding: 80px 6%;
  }

  .uk-benefits-grid {
    grid-template-columns: 1fr;
  }

  .benefit-card {
    padding: 40px 0;
  }

  .benefit-card:first-child {
    padding-top: 0;
  }

  .benefit-card:last-child {
    padding-bottom: 0;
  }

  .benefit-card + .benefit-card::before {
    display: none;
  }

  .benefit-card + .benefit-card {
    border-top: 1px solid rgba(0, 173, 71, 0.2);
  }

  /* Sectors — single column */
  .uk-sectors {
    padding: 80px 6%;
  }

  .uk-sectors-grid {
    grid-template-columns: 1fr;
  }

  /* Calculator — single column */
  .uk-calculator {
    padding: 80px 6%;
  }

  .uk-calc-body {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* CTA */
  .uk-cta-strip {
    padding: 80px 6%;
  }

  .uk-cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .uk-cta-buttons .btn {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    max-width: 320px;
  }
}


/* ────────────────────────────────────────
   EUROPE PAGE REBUILD — token-based helpers
   (content overhaul; reuses global tokens)
──────────────────────────────────────── */
.eu-inner {
  max-width: var(--container-max);
  margin-inline: auto;
}

.eu-copy {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--white-soft);
  max-width: 720px;
  margin-top: 20px;
}

/* Centered sections (Delivering Energy, Why Saba) */
.uk-problem-inner .section-title {
  margin-bottom: 8px;
}

.uk-problem-inner .eu-copy {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.eu-cta-wrap {
  text-align: center;
  margin-top: 56px;
}


/* ────────────────────────────────────────
   MEDIA SPLITS (Pattern A) — page-specific framing
──────────────────────────────────────── */
/* Delivering Energy + Sectors carry a media-split; trim the wide
   side padding and left-align the copy/rule the split inherits. */
.uk-problem--split,
.uk-sectors--split {
  padding-left: 8%;
  padding-right: 8%;
}

.media-split-text .uk-problem-rule {
  margin-left: 0;
  margin-right: 0;
}

/* Sectors: image column beside the header + card grid */
.uk-sectors--split .uk-sectors-header {
  margin-bottom: 40px;
}

/* ────────────────────────────────────────
   MOTION SYSTEM — calculator + card awakening
──────────────────────────────────────── */
.calc-metric-value {
  font-variant-numeric: tabular-nums;
}

/* Acknowledgment rule: redrawn (scaleX) on each calculation. */
.calc-results-rule {
  height: 1px;
  background: var(--green);
  transform-origin: left center;
  margin-bottom: 28px;
}

/* Calculator-only infographic accent (brand secondary palette). */
.calc-select:focus {
  border-color: #00a2dd;
}

@media (hover: hover) {

  .benefit-card + .benefit-card::before {
    transition: background 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .benefit-card:hover::before {
    background: var(--green);
  }

  .benefit-number {
    transition: opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .benefit-card:hover .benefit-number {
    opacity: 0.4;
  }

  .benefit-title {
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .benefit-card:hover .benefit-title {
    transform: translateY(-2px);
  }

  .sector-headline {
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .sector-card:hover .sector-headline {
    transform: translateY(-2px);
  }
}
