/* ============================================
   Blueberry Energy Vietnam — Dark Blue v4
   Lighter palette, closer to brand #204199
   Corporate: #204199 (blue) / #ed4923 (orange)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');
/* DM Sans and Poppins have no Vietnamese glyphs (ạ, ế, ư fall back mid-word), so the /vi/ pages
   use Be Vietnam Pro, which is close to Poppins. Fonts only download on pages that use them. */
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@300;400;500;600;700&display=swap');

:root {
  --c-bg: #111d42;
  --c-panel: #19285a;
  --c-panel-light: #20326c;
  --c-orange: #ed4923;
  --c-orange-dark: #d13e1c;
  --c-orange-glow: rgba(237,73,35,.15);
  --c-blue: #204199;
  --c-blue-light: #2a53c1;
  --c-white: #ffffff;
  --c-line: rgba(255,255,255,.14);
  --c-line-strong: rgba(255,255,255,.22);
  --c-muted: rgba(255,255,255,.55);
  --c-dim: rgba(255,255,255,.4);
  --f-head: 'Poppins', sans-serif;
  --f-body: 'DM Sans', sans-serif;
  --max-w: 1400px;
  --transition: 0.3s cubic-bezier(.4,0,.2,1);
}
html[lang="vi"] {
  --f-head: 'Be Vietnam Pro', sans-serif;
  --f-body: 'Be Vietnam Pro', sans-serif;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  background: var(--c-bg);
  color: var(--c-white);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;

}

img { max-width: 100%; display: block; }
a { color: var(--c-white); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--c-orange); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-head);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--c-white);
  line-height: 1.15;
}

strong { font-weight: 600; color: var(--c-white); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 5vw; }


/* ---- Typography ---- */
.label {
  color: var(--c-orange);
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 1.5rem;
  font-weight: 600;
  font-family: var(--f-body);
}

.lead {
  font-size: 1.25rem;
  font-weight: 300;
  opacity: 0.75;
  max-width: 600px;
  line-height: 1.7;
}

/* ---- Navigation ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 5vw;
  background: linear-gradient(to bottom, rgba(17,29,66,.92), transparent);
  transition: background var(--transition);
}
.nav.scrolled {
  background: rgba(17,29,66,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-line);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-head);
  font-size: 1.3rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--c-white);
}
.nav-logo .logo-icon {
  width: 42px; height: 42px;
  background: var(--c-orange);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(237,73,35,.3);
}
.nav-logo .logo-icon svg { width: 24px; height: 24px; }
.nav-logo span { display: flex; flex-direction: column; line-height: 1.15; }
.nav-logo .logo-sub { font-size: 0.6rem; font-weight: 400; color: var(--c-orange); letter-spacing: 2px; }

.nav-links { display: flex; align-items: center; gap: 1.75rem; list-style: none; }
.nav-links a {
  font-family: var(--f-head);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--c-muted);
  white-space: nowrap;
  transition: color var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--c-white); }

.nav-logo-img {
  height: 40px;
  width: auto;
  display: block;
}

/* Language toggle */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 1.5rem;
  font-family: var(--f-head);
  font-size: 0.78rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  user-select: none;
}
.lang-toggle .lang-opt {
  background: none;
  border: none;
  padding: 4px 2px;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: var(--c-dim);
  cursor: pointer;
  transition: color var(--transition);
}
.lang-toggle .lang-opt:hover { color: var(--c-orange); }
.lang-toggle .lang-opt.active { color: var(--c-white); }
.lang-toggle .lang-sep {
  color: var(--c-dim);
  opacity: 0.5;
  pointer-events: none;
}

.nav-cta {
  background: transparent !important;
  border: 1px solid var(--c-orange) !important;
  color: var(--c-orange) !important;
  padding: 8px 20px;
  font-family: var(--f-head) !important;
  letter-spacing: 0.5px;
  font-weight: 500;
  border-radius: 4px;
  transition: all var(--transition);
}
.nav-cta:hover {
  background: var(--c-orange) !important;
  color: var(--c-white) !important;
}

/* Dropdown Navigation */
.nav-dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: 100%; left: -1rem;
  background: rgba(17,29,66,.97);
  backdrop-filter: blur(12px);
  border: 1px solid var(--c-line);
  list-style: none;
  min-width: 220px;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s ease;
  z-index: 100;
}
.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu li { width: 100%; }
.dropdown-menu a {
  display: block !important;
  padding: 10px 1.5rem !important;
  font-size: 0.82rem !important;
  white-space: nowrap;
  border-bottom: 1px solid var(--c-line);
}
.dropdown-menu li:last-child a { border-bottom: none; }
.dropdown-menu a:hover { color: var(--c-orange) !important; background: var(--c-panel); }

.nav-toggle { display: none; background: none; border: none; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--c-white); margin: 5px 0; transition: var(--transition); }

/* Laptops: tighten the bar so all seven items stay visible. */
@media (max-width: 1300px) and (min-width: 1101px) {
  .nav-links { gap: 1.1rem; }
  .nav-links a { font-size: 0.72rem; letter-spacing: 0.3px; }
  .nav-cta { padding: 7px 14px; }
  .lang-toggle { margin-left: 1rem; }
  .nav-logo-img { height: 34px; }
}
/* Below 1100px the items fold into the menu. */
@media (max-width: 1100px) {
  .nav-toggle { display: block; cursor: auto; }
  .nav-links {
    position: fixed; top: 80px; left: 0; right: 0;
    background: var(--c-bg);
    flex-direction: column; gap: 0;
    padding: 16px 0;
    border-bottom: 1px solid var(--c-line);
    transform: translateY(-120%); opacity: 0;
    transition: transform 0.35s ease, opacity 0.3s ease;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 5vw; font-size: 1rem; }
  .nav-cta { margin: 8px 5vw; display: inline-block; text-align: center; }
  .lang-toggle { margin-left: auto; margin-right: 0.5rem; order: 2; }
  .nav-toggle { order: 3; }
}
@media (max-width: 900px) {
  .nav-logo-img { height: 32px; }
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
  padding-top: 80px;
}

.hero-photo-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-photo-bg img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(30%) contrast(110%) brightness(0.5);
}
.hero-photo-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(17,29,66,.85), rgba(17,29,66,.6));
}

.hero-grid {
  position: absolute; inset: 0; z-index: 1;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative; z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 100px 5vw 120px;
  width: 100%;
}

.hero h1 {
  font-size: clamp(3.5rem, 8vw, 7rem);
  line-height: 0.95;
  margin-bottom: 2.5rem;
  font-weight: 400;
}
.hero h1 .accent { color: var(--c-orange); }
.hero h1 .outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--c-white);
}

.hero-sub {
  font-size: 1.25rem;
  color: var(--c-muted);
  line-height: 1.7;
  max-width: 560px;
  font-weight: 300;
}

.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 2rem;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 2.5rem; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--c-line);
  border: 1px solid var(--c-line);
  margin-top: 4rem;
}
.stat-card {
  background: rgba(17,29,66,.7);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: background var(--transition);
}
.stat-card:hover { background: var(--c-panel); }
.stat-number {
  font-family: var(--f-head);
  font-size: 2.8rem;
  line-height: 1;
  margin-bottom: 0.5rem;
  color: var(--c-orange);
}
.stat-number .unit { font-size: 1.4rem; }
.stat-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--c-muted);
}

@media (max-width: 900px) {
  .hero { min-height: auto; }
  .hero-content { padding: 80px 5vw 60px; }
  .hero h1 { font-size: 2.8rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Hero: roof field ----
   A canvas of panels on a plane tilted away from the viewer; initRoofField() rolls slow
   waves of light across it and lights cells under the cursor. Without JS the hero is
   plain navy, which still reads fine. */
.hero--roof { background: linear-gradient(180deg, #0c1636 0%, var(--c-bg) 45%, #16245a 100%); }
.hero-roof {
  position: absolute; left: -25%; right: -25%; bottom: 0; height: 120%; z-index: 0;
  perspective: 1100px; perspective-origin: 50% 0%;
}
.hero-roof canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  transform: rotateX(52deg); transform-origin: 50% 100%;
}
.hero-roof-fade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(12,22,54,.85) 0%, rgba(12,22,54,.35) 50%, rgba(12,22,54,0) 75%),
    linear-gradient(180deg, #0c1636 0%, rgba(12,22,54,0) 40%);
}
.hero-title { max-width: 15ch; }

/* Entrance: words rise out of a mask, then copy, buttons and stats follow.
   Only armed once JS adds .hero-anim, so the hero never stays hidden without it. */
/* Top padding keeps stacked Vietnamese diacritics (Ế, Ầ) inside the mask */
.hero-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-top: .2em; margin-top: -.2em; padding-bottom: .06em; }
.hero-anim .hero-title .w > span { display: inline-block; transform: translateY(105%); transition: transform 900ms cubic-bezier(.23,1,.32,1); }
.hero-anim .hero-content .label,
.hero-anim .hero-sub,
.hero-anim .hero-actions,
.hero-anim .stat-card { opacity: 0; transform: translateY(16px); transition: opacity 700ms ease, transform 700ms cubic-bezier(.23,1,.32,1), background var(--transition); }
.hero-anim.hero-in .hero-title .w > span,
.hero-anim.hero-in .hero-content .label,
.hero-anim.hero-in .hero-sub,
.hero-anim.hero-in .hero-actions,
.hero-anim.hero-in .stat-card { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .hero-roof { left: -60%; right: -60%; }
  .hero-roof-fade { background: linear-gradient(180deg, #0c1636 0%, rgba(12,22,54,.75) 55%, rgba(12,22,54,.35) 100%); }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px;
  font-family: var(--f-head);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  border-radius: 4px;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1;
}
.btn-primary {
  background: transparent;
  color: var(--c-orange);
  border: 1px solid var(--c-orange);
}
.btn-primary:hover {
  background: var(--c-orange);
  color: var(--c-white);
  box-shadow: 0 0 20px rgba(237,73,35,.3);
}
.btn-outline {
  background: transparent;
  color: var(--c-white);
  border: 1px solid var(--c-line-strong);
}
.btn-outline:hover {
  border-color: var(--c-white);
  color: var(--c-white);
}
.btn svg { width: 16px; height: 16px; }

@media (max-width: 900px) {
  .btn { cursor: auto; }
}

/* ---- Sections ---- */
.section { padding: 7rem 0; position: relative; }
.section-dark { background: var(--c-panel); }
.section-blue { background: var(--c-blue); }

.section-header {
  max-width: 700px;
  margin-bottom: 4rem;
}
.section-header.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-header h2 { font-size: 3rem; margin-bottom: 1rem; }
.section-header p { color: var(--c-muted); font-size: 1.05rem; line-height: 1.7; font-weight: 300; }

/* ---- Wide Cinematic Photo Strips ---- */
.wide-photo {
  width: 100vw;
  height: 65vh;
  position: relative;
  overflow: hidden;
  margin-left: calc(-50vw + 50%);
}
.wide-photo img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(30%) contrast(110%) brightness(0.75);
  transition: transform 10s ease;
}
.wide-photo:hover img { transform: scale(1.05); }
.photo-overlay {
  position: absolute; bottom: 0; left: 0; width: 100%;
  padding: 2rem 5vw;
  background: linear-gradient(to top, rgba(17,29,66,.9), transparent);
  z-index: 2;
}
.photo-overlay h3 {
  font-size: 1.2rem;
  letter-spacing: 2px;
  font-weight: 300;
  color: var(--c-muted);
}

@media (max-width: 900px) {
  .wide-photo { height: 45vh; }
}

/* ---- Wide Photo Carousel ---- */
.carousel .carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.4s ease;
}
.carousel .carousel-slide.is-active {
  opacity: 1;
  visibility: visible;
}
/* Slow drift on the visible slide; the hover-zoom rule above still applies. */
.carousel .carousel-slide img {
  transform: scale(1.06);
  transition: transform 9s ease-out;
}
.carousel .carousel-slide.is-active img { transform: scale(1); }
.carousel:hover .carousel-slide.is-active img { transform: scale(1.05); }

.carousel-dots {
  position: absolute;
  right: 5vw;
  bottom: 2rem;
  z-index: 3;
  display: flex;
  gap: 10px;
}
.carousel-dot {
  width: 28px;
  height: 3px;
  padding: 0;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, .3);
  transition: background var(--transition), width var(--transition);
}
.carousel-dot:hover { background: rgba(255, 255, 255, .6); }
.carousel-dot.is-active { background: var(--c-orange); width: 44px; }
.carousel-dot:focus-visible {
  outline: 2px solid var(--c-orange);
  outline-offset: 4px;
}

@media (max-width: 900px) {
  .carousel-dots { right: 5vw; bottom: 1.25rem; }
  .carousel-dot { width: 20px; }
  .carousel-dot.is-active { width: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .carousel .carousel-slide { transition: none; }
  .carousel .carousel-slide img,
  .carousel .carousel-slide.is-active img,
  .carousel:hover .carousel-slide.is-active img { transform: none; transition: none; }
}

/* ---- Flow Track Timeline ---- */
.flow-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--c-white);
  margin-top: 3rem;
}
.flow-track.cols-4 { grid-template-columns: repeat(4, 1fr); }

.flow-node {
  padding-top: 2rem; padding-right: 2rem;
  position: relative;
  transition: var(--transition);
}
.flow-node::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 2px; height: 15px;
  background: var(--c-white);
  transition: all 0.4s ease;
}
.flow-node:hover::before {
  height: 100%;
  background: var(--c-orange);
}

.node-num {
  font-family: var(--f-head);
  font-size: 3rem;
  color: rgba(255,255,255,.15);
  display: block;
  margin-bottom: 0.5rem;
  line-height: 1;
  transition: all 0.3s ease;
}
.flow-node:hover .node-num {
  color: var(--c-orange);
  transform: translateX(10px);
}
.node-title {
  font-weight: 500;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}
.node-desc {
  font-size: 0.88rem;
  color: var(--c-muted);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .flow-track, .flow-track.cols-4 {
    grid-template-columns: 1fr;
    border-top: none;
    border-left: 1px solid var(--c-white);
    padding-left: 2rem;
  }
  .flow-node { padding-top: 0; padding-bottom: 2.5rem; }
  .flow-node::before { width: 15px; height: 1px; top: 15px; left: -2rem; }
  .flow-node:hover::before { width: 40px; height: 1px; }
}

/* ---- Metrics Grid (1px lines) ---- */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--c-line);
  border: 1px solid var(--c-line);
}
.metrics-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.metric-card {
  background: var(--c-bg);
  padding: 3.5rem 2rem;
  text-align: center;
  transition: background var(--transition);
}
.metric-card:hover { background: var(--c-panel); }

.stat-val {
  font-family: var(--f-head);
  font-size: 4rem;
  color: var(--c-orange);
  line-height: 1;
  margin-bottom: 0.8rem;
}
.stat-label-lg {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 0.8rem;
}
.stat-desc {
  font-size: 0.88rem;
  color: var(--c-muted);
}

@media (max-width: 900px) {
  .metrics-grid, .metrics-grid.cols-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .metrics-grid, .metrics-grid.cols-4 { grid-template-columns: 1fr; }
}

/* ---- Video Frame (Corner brackets + scanlines) ---- */
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
  border: 1px solid var(--c-line);
}
.video-frame img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.5;
  filter: grayscale(20%) contrast(110%);
  transition: transform 0.7s ease, opacity 0.7s ease;
}
.video-frame:hover img { transform: scale(1.03); opacity: 0.65; }

/* Corner brackets */
.vf-corner {
  position: absolute; width: 20px; height: 20px;
  z-index: 2; pointer-events: none;
}
.vf-corner--tl { top: 20px; left: 20px; border-top: 2px solid var(--c-orange); border-left: 2px solid var(--c-orange); }
.vf-corner--tr { top: 20px; right: 20px; border-top: 2px solid var(--c-orange); border-right: 2px solid var(--c-orange); }
.vf-corner--bl { bottom: 20px; left: 20px; border-bottom: 2px solid var(--c-orange); border-left: 2px solid var(--c-orange); }
.vf-corner--br { bottom: 20px; right: 20px; border-bottom: 2px solid var(--c-orange); border-right: 2px solid var(--c-orange); }

.vf-label {
  position: absolute; top: 25px; left: 50px;
  font-family: var(--f-head);
  color: var(--c-orange);
  font-size: 0.75rem;
  letter-spacing: 1px;
  z-index: 2;
}
/* Scanline overlay */
.vf-scanlines {
  position: absolute; inset: 0;
  background: linear-gradient(rgba(17,29,66,0) 50%, rgba(17,29,66,.15) 50%);
  background-size: 100% 4px;
  pointer-events: none;
  opacity: 0.3;
  z-index: 1;
}

.vf-play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  width: 80px; height: 80px;
  display: grid; place-items: center;
}
.vf-play-circle {
  position: absolute; width: 100%; height: 100%;
  border: 1px solid var(--c-white);
  border-radius: 50%;
  transition: all 0.3s;
}
.video-frame:hover .vf-play-circle {
  border-color: var(--c-orange);
  box-shadow: 0 0 20px rgba(237,73,35,.3);
  transform: scale(1.1);
}
.vf-play-icon {
  width: 0; height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 18px solid var(--c-white);
  margin-left: 5px;
  transition: border-left-color 0.3s;
}
.video-frame:hover .vf-play-icon { border-left-color: var(--c-orange); }

/* ---- Calculator (Dark Panel) ---- */
.calculator-wrapper {
  border: 1px solid var(--c-line);
  background: var(--c-panel);
  overflow: hidden;
}

.calc-map {
  position: relative;
  height: 400px;
  overflow: hidden;
  border-bottom: 1px solid var(--c-line);
}
.calc-map img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.5;
  filter: grayscale(50%) contrast(120%);
}
.calc-map-grid {
  position: absolute; inset: 0;
  background:
    linear-gradient(rgba(17,29,66,.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17,29,66,.5) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}
.calc-map-crosshair {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 80px; height: 80px;
  border: 1px solid var(--c-orange);
  border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 0 20px rgba(237,73,35,.15);
}
.calc-map-crosshair-dot {
  width: 4px; height: 4px;
  background: var(--c-orange);
}
.calc-map-label {
  position: absolute; top: 16px; left: 16px;
  background: rgba(0,0,0,.7);
  padding: 5px 12px;
  font-family: var(--f-head);
  letter-spacing: 1px;
  font-size: 0.75rem;
  border: 1px solid var(--c-line);
}
.calc-map-label .dot { color: var(--c-orange); }

.calc-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.calc-form {
  padding: 2.5rem;
  border-right: 1px solid var(--c-line);
}
.calc-form h3 {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  letter-spacing: 1px;
}

.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group select {
  width: 100%;
  background: transparent;
  color: var(--c-white);
  border: 1px solid var(--c-line);
  padding: 12px 14px;
  font-family: var(--f-body);
  font-size: 0.95rem;
  transition: border-color var(--transition);
  appearance: none;

}
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--c-orange);
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='%23999' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 36px;
}
.form-group .input-hint {
  font-size: 0.75rem;
  color: var(--c-dim);
  margin-top: 4px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

@media (max-width: 900px) {
  .form-group input, .form-group select { cursor: auto; }
}

.calc-results {
  padding: 2.5rem;
  background: rgba(237,73,35,.04);
}
.calc-results h3 {
  font-size: 1.2rem;
  color: var(--c-orange);
  margin-bottom: 2rem;
  letter-spacing: 1px;
}

.result-item { margin-bottom: 1.5rem; }
.result-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--c-dim);
  display: block;
  margin-bottom: 2px;
}
.result-value {
  font-family: var(--f-head);
  font-size: 2rem;
  line-height: 1.1;
}
.result-value .result-unit {
  font-size: 0.85rem;
  font-family: var(--f-body);
  color: var(--c-muted);
  margin-left: 4px;
}

.calc-results .result-cta { margin-top: 1.5rem; }

@media (max-width: 900px) {
  .calc-body { grid-template-columns: 1fr; }
  .calc-form { border-right: none; border-bottom: 1px solid var(--c-line); }
  .calc-map { height: 280px; }
}

/* ---- Benefit / Feature Cards (Dark) ---- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--c-line);
  border: 1px solid var(--c-line);
}

.benefit-card {
  background: var(--c-bg);
  padding: 2.5rem 2rem;
  transition: background var(--transition);
  position: relative;
}
.benefit-card:hover { background: var(--c-panel); }

.benefit-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 2px; height: 0;
  background: var(--c-orange);
  transition: height 0.4s ease;
}
.benefit-card:hover::before { height: 100%; }

.benefit-icon {
  width: 48px; height: 48px;
  margin-bottom: 1.5rem;
  display: flex; align-items: center; justify-content: center;
}
.benefit-icon svg {
  width: 28px; height: 28px;
  color: var(--c-orange);
}

.benefit-card h3 {
  font-size: 1rem;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}
.benefit-card p {
  font-size: 0.88rem;
  color: var(--c-muted);
  line-height: 1.65;
}

@media (max-width: 900px) {
  .benefits-grid { grid-template-columns: 1fr; }
}
@media (min-width: 601px) and (max-width: 900px) {
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Content Grid ---- */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.content-grid.reverse { direction: rtl; }
.content-grid.reverse > * { direction: ltr; }

.content-text h2 { font-size: 2.2rem; margin-bottom: 1rem; }
.content-text p { color: var(--c-muted); line-height: 1.7; margin-bottom: 1rem; font-weight: 300; }

.content-text ul { list-style: none; margin: 1.5rem 0; }
.content-text ul li {
  padding: 8px 0 8px 24px;
  position: relative;
  color: rgba(255,255,255,.7);
  font-size: 0.95rem;
}
.content-text ul li::before {
  content: '';
  position: absolute; left: 0; top: 16px;
  width: 8px; height: 2px;
  background: var(--c-orange);
}

.content-image {
  overflow: hidden;
  border: 1px solid var(--c-line);
  aspect-ratio: 4/3;
  position: relative;
}
.content-image img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(20%) contrast(110%) brightness(0.85);
  transition: transform 8s ease;
}
.content-image:hover img { transform: scale(1.05); }

@media (max-width: 900px) {
  .content-grid { grid-template-columns: 1fr; gap: 2rem; }
  .content-grid.reverse { direction: ltr; }
}

/* ---- Page Headers ---- */
.page-header {
  position: relative;
  padding: 180px 0 80px;
  overflow: hidden;
  border-bottom: 1px solid var(--c-line);
}
.page-header-bg {
  position: absolute; inset: 0;
}
.page-header-bg img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(30%) contrast(110%) brightness(0.4);
}
.page-header-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(17,29,66,.95), rgba(17,29,66,.5));
}
.page-header .container { position: relative; z-index: 2; }
.page-header h1 { font-size: 3.5rem; margin-bottom: 1rem; }
.page-header p { color: var(--c-muted); font-size: 1.15rem; max-width: 600px; line-height: 1.7; font-weight: 300; }
.page-header .breadcrumb {
  margin-bottom: 1.5rem;
  font-size: 0.8rem;
  color: var(--c-dim);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: var(--f-head);
}
.page-header .breadcrumb a { color: var(--c-muted); }
.page-header .breadcrumb a:hover { color: var(--c-orange); }

/* ---- Articles Grid ---- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--c-line);
  border: 1px solid var(--c-line);
}

.article-card {
  background: var(--c-bg);
  transition: background var(--transition);
}
.article-card:hover { background: var(--c-panel); }

.article-thumb {
  aspect-ratio: 16/10;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--c-line);
}
.article-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(30%) contrast(110%) brightness(0.7);
  transition: transform 8s ease;
}
.article-card:hover .article-thumb img { transform: scale(1.05); }

.article-thumb .tag {
  position: absolute; top: 12px; left: 12px;
  background: rgba(0,0,0,.7);
  border: 1px solid var(--c-line);
  color: var(--c-orange);
  font-size: 0.7rem;
  font-family: var(--f-head);
  font-weight: 400;
  padding: 4px 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 2;
}

.article-body { padding: 1.5rem; }
.article-meta {
  font-size: 0.75rem;
  color: var(--c-dim);
  margin-bottom: 0.75rem;
  letter-spacing: 0.5px;
}
.article-body h3 {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
  line-height: 1.3;
  text-transform: none;
}
.article-body h3 a { color: var(--c-white); }
.article-body h3 a:hover { color: var(--c-orange); }
.article-body p { font-size: 0.85rem; color: var(--c-muted); line-height: 1.6; }

.article-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.8rem; font-weight: 500;
  color: var(--c-orange);
  margin-top: 1rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: gap var(--transition);
}
.article-link:hover { gap: 12px; color: var(--c-orange); }
.article-link svg { width: 14px; height: 14px; }

@media (max-width: 900px) {
  .articles-grid { grid-template-columns: 1fr; }
}
@media (min-width: 601px) and (max-width: 900px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Team Grid ---- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--c-line);
  border: 1px solid var(--c-line);
}

.team-card {
  background: var(--c-bg);
  text-align: center;
  padding: 2.5rem 1.5rem;
  transition: background var(--transition);
}
.team-card:hover { background: var(--c-panel); }

.team-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 1px solid var(--c-line);
  margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  font-family: var(--f-head);
  font-weight: 400;
  color: var(--c-orange);
  transition: border-color var(--transition);
}
.team-card:hover .team-avatar { border-color: var(--c-orange); }

.team-card h4 { font-size: 1rem; margin-bottom: 4px; }
.team-card .team-role {
  font-size: 0.78rem;
  color: var(--c-orange);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  font-family: var(--f-body);
}
.team-card p { font-size: 0.82rem; color: var(--c-muted); line-height: 1.6; }

@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .team-grid { grid-template-columns: 1fr; } }

/* ---- FAQ ---- */
.faq-item {
  border-bottom: 1px solid var(--c-line);
  padding: 1.5rem 0;
  transition: var(--transition);
}
.faq-item:last-child { border-bottom: none; }
.faq-item h4 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: none;
}
.faq-item p {
  color: var(--c-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  font-weight: 300;
}

/* ---- CTA Section ---- */
.cta-section {
  position: relative;
  padding: 6rem 0;
  border-top: 1px solid var(--c-line);
  overflow: hidden;
}
.cta-bg {
  position: absolute; inset: 0;
}
.cta-bg img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(40%) brightness(0.25);
}
.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.cta-section p {
  color: var(--c-muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 500px;
  font-weight: 300;
}
.cta-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.z-2 { position: relative; z-index: 2; }

/* ---- Footer ---- */
.footer {
  background: var(--c-bg);
  padding: 5rem 0 2.5rem;
  border-top: 1px solid var(--c-line);
}
.footer::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--c-orange), transparent 50%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--c-line);
  margin-bottom: 2rem;
}
.footer-brand p {
  font-size: 0.88rem;
  color: var(--c-muted);
  line-height: 1.7;
  margin-top: 1rem;
  max-width: 300px;
  font-weight: 300;
}
.footer h5 {
  font-family: var(--f-head);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
  font-weight: 400;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a {
  color: var(--c-muted);
  font-size: 0.88rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--c-orange); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--c-dim);
}
.footer-social { display: flex; gap: 1rem; }
.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid var(--c-line);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-muted);
  transition: all var(--transition);
}
.footer-social a:hover {
  border-color: var(--c-orange);
  color: var(--c-orange);
}
.footer-social a svg { width: 16px; height: 16px; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---- Animations ---- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Utilities ---- */
.border-top { border-top: 1px solid var(--c-line); }
.border-bot { border-bottom: 1px solid var(--c-line); }
.text-orange { color: var(--c-orange); }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; gap: 2rem; } }

/* ---- Flow Grid (Process Steps) ---- */
.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--c-line);
  border: 1px solid var(--c-line);
}
.flow-node {
  background: var(--c-bg);
  padding: 2.5rem 2rem;
  transition: background var(--transition);
}
.section-dark .flow-node { background: var(--c-panel); }
.flow-node:hover { background: var(--c-panel-light); }
.flow-number {
  font-family: var(--f-head);
  font-size: 2.5rem;
  color: var(--c-orange);
  line-height: 1;
  margin-bottom: 1.5rem;
  font-weight: 300;
}
.flow-node h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  text-transform: none;
  font-weight: 500;
  letter-spacing: 0;
}
.flow-node p {
  font-size: 0.9rem;
  color: var(--c-muted);
  line-height: 1.7;
  font-weight: 300;
}
@media (max-width: 900px) {
  .flow-grid { grid-template-columns: 1fr; }
}
@media (min-width: 601px) and (max-width: 900px) {
  .flow-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- FAQ List ---- */
.faq-list .faq-item { border-bottom: 1px solid var(--c-line); padding: 1.5rem 0; }
.faq-list .faq-item:last-child { border-bottom: none; }

/* ---- Content Grid (Text + Image) ---- */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.content-grid.reverse { direction: rtl; }
.content-grid.reverse > * { direction: ltr; }
.content-text h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-transform: none;
  font-weight: 500;
  letter-spacing: 0;
}
.content-text p {
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 300;
}
.content-image {
  overflow: hidden;
  border: 1px solid var(--c-line);
}
.content-image img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(20%) contrast(110%) brightness(0.7);
  transition: transform 8s ease;
}
.content-image:hover img { transform: scale(1.05); }
@media (max-width: 900px) {
  .content-grid { grid-template-columns: 1fr; gap: 2rem; }
  .content-grid.reverse { direction: ltr; }
}

/* ---- Mobile dropdown ---- */
@media (max-width: 900px) {
  .nav-dropdown .dropdown-menu {
    position: static;
    opacity: 1; visibility: visible;
    transform: none;
    background: rgba(17,29,66,.5);
    border: none;
    min-width: auto;
    padding: 0;
  }
  .dropdown-menu a {
    padding: 10px 5vw 10px 8vw !important;
    font-size: 0.9rem !important;
    border-bottom: 1px solid var(--c-line) !important;
  }
}
