/* =========================================================
   EMAR VENTURE — Site Stylesheet
   Palette derived from the logo: deep navy, signal blue, chrome/silver
   ========================================================= */

:root{
  --navy: #0A1B3D;
  --navy-deep: #061127;
  --blue: #1E6FEB;
  --blue-bright: #3FA9F5;
  --silver: #C7CFD8;
  --silver-dark: #7C8896;
  --ink: #10192B;
  --paper: #FFFFFF;
  --offwhite: #F3F6FA;
  --line: rgba(10,27,61,0.10);

  --font-display: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

html{scroll-behavior:smooth;}

body{
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

h1,h2,h3,h4,.brand-font{
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.text-navy{color: var(--navy);}
.text-blue{color: var(--blue);}
.bg-navy{background-color: var(--navy);}
.bg-offwhite{background-color: var(--offwhite);}

.section-eyebrow{
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 600;
  display:flex; align-items:center; gap:.5rem;
}
.section-eyebrow::before{
  content:"";
  width: 24px; height: 2px;
  background: var(--blue);
  display:inline-block;
}

/* chrome/metallic text treatment, echoes the logo wordmark */
.text-chrome{
  background: linear-gradient(180deg, #EEF2F6 0%, #B9C3CE 45%, #7C8896 55%, #48525E 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* =============== NAVBAR =============== */
.navbar-emar{
  padding: 1.1rem 0;
  transition: all .35s ease;
  background: transparent;
}
.navbar-emar.scrolled{
  padding: .6rem 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px rgba(10,27,61,0.08);
}
.navbar-emar .navbar-brand{
  display: flex;
  align-items: center;
  gap: .65rem;
}
.navbar-emar .navbar-brand img{
  height: 60px;
  transition: height .35s ease;
}
.navbar-emar.scrolled .navbar-brand img{ height: 54px; }

.navbar-emar .brand-text{
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.navbar-emar .brand-text .brand-name{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 25px;
  letter-spacing: .04em;
  color: #fff;
  transition: color .35s ease, font-size .35s ease;
}
.navbar-emar .brand-text .brand-tag{
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  transition: color .35s ease;
}
.navbar-emar.scrolled .brand-text .brand-name{ color: var(--navy); font-size: 25px; }
.navbar-emar.scrolled .brand-text .brand-tag{ color: var(--silver-dark); }
@media (max-width: 380px){
  .navbar-emar .brand-text{ display: none; } /* keep just the mark on very narrow screens */
}

.navbar-emar .nav-link{
  font-family: var(--font-display);
  font-size: .92rem;
  font-weight: 500;
  color: #fff !important;
  margin: 0 .6rem;
  position: relative;
  transition: color .3s ease;
}
.navbar-emar.scrolled .nav-link{ color: var(--navy) !important; }
.navbar-emar .nav-link::after{
  content:"";
  position:absolute; left:0; bottom:-4px;
  width:0; height:2px; background: var(--blue);
  transition: width .25s ease;
}
.navbar-emar .nav-link:hover::after,
.navbar-emar .nav-link.active::after{ width:100%; }

.navbar-emar .navbar-toggler-icon{
  filter: brightness(0) invert(1);
  transition: filter .3s ease;
}
.navbar-emar.scrolled .navbar-toggler-icon{ filter: none; }


.btn-emar{
  background: var(--blue);
  border: none;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .03em;
  padding: .7rem 1.6rem;
  border-radius: 40px;
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 8px 20px rgba(30,111,235,0.30);
  text-decoration: none;
}
.btn-emar:hover{
  color:#fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(30,111,235,0.42);
}
.btn-outline-emar{
  background: transparent;
  border: 1.5px solid rgba(10,27,61,0.25);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .85rem;
  padding: .68rem 1.6rem;
  border-radius: 40px;
  transition: all .25s ease;
  text-decoration: none;
}
.btn-outline-emar:hover{
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(30,111,235,0.06);
}

/* =============== HERO =============== */
.hero{
  position: relative;
  background: radial-gradient(120% 120% at 15% 10%, #0F2A5C 0%, var(--navy) 45%, var(--navy-deep) 100%);
  color: #fff;
  padding: 9.5rem 0 6rem;
  overflow: hidden;
}
.hero-video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay{
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(120% 120% at 15% 10%, rgba(15,42,92,0.82) 0%, rgba(10,27,61,0.86) 45%, rgba(6,17,39,0.92) 100%);
}
.hero .orbit-ring,
.hero .glow-dot{ z-index: 2; }
.hero > .container{ position: relative; z-index: 3; }
.hero .orbit-ring{
  position: absolute;
  border: 1px solid rgba(63,169,245,0.18);
  border-radius: 50%;
  animation: spin 40s linear infinite;
}
.hero .orbit-ring.r1{ width:900px; height:900px; top:-320px; right:-380px; }
.hero .orbit-ring.r2{ width:620px; height:620px; top:-160px; right:-220px; animation-duration: 28s; animation-direction: reverse; border-color: rgba(199,207,216,0.14); }
.hero .orbit-ring.r3{ width:1300px; height:1300px; bottom:-800px; left:-400px; animation-duration: 60s; }

@keyframes spin{ from{transform:rotate(0deg);} to{transform:rotate(360deg);} }

.hero .glow-dot{
  position:absolute; width:6px; height:6px; border-radius:50%;
  background: var(--blue-bright);
  box-shadow: 0 0 16px 4px rgba(63,169,245,0.7);
  animation: twinkle 3.5s ease-in-out infinite;
}
@keyframes twinkle{
  0%,100%{ opacity:.25; transform:scale(1); }
  50%{ opacity:1; transform:scale(1.6); }
}

.hero h1{
  font-size: clamp(2.4rem, 5vw, 3.7rem);
  font-weight: 700;
  line-height: 1.08;
}
.hero .lead-sub{
  color: rgba(255,255,255,0.72);
  font-size: 1.08rem;
  max-width: 46ch;
}
.hero-meta{
  font-size: .8rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: .04em;
}

.hero-card{
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px;
  backdrop-filter: blur(6px);
  padding: 1.75rem;
}
.hero-card .row-item{
  display:flex; justify-content:space-between; align-items:center;
  padding: .85rem 0; border-bottom: 1px solid rgba(255,255,255,0.10);
}
.hero-card .row-item:last-child{ border-bottom:none; }
.hero-card .row-item .k{ font-size:.72rem; text-transform:uppercase; letter-spacing:.08em; color:rgba(255,255,255,0.5); }
.hero-card .row-item .v{ font-family: var(--font-display); font-weight:600; font-size:1rem; }

.marquee-strip{
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 3.5rem;
  padding-top: 1.4rem;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track{
  display:inline-block;
  animation: marquee 26s linear infinite;
  font-family: var(--font-display);
  font-size: .82rem;
  letter-spacing: .05em;
  color: rgba(255,255,255,0.55);
}
.marquee-track span{ margin-right: 3.2rem; }
.marquee-track strong{ color:#fff; }
@keyframes marquee{
  0%{ transform: translateX(0); }
  100%{ transform: translateX(-50%); }
}

/* =============== REVEAL ON SCROLL =============== */
.reveal{
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1{ transition-delay: .08s; }
.reveal-delay-2{ transition-delay: .16s; }
.reveal-delay-3{ transition-delay: .24s; }
.reveal-delay-4{ transition-delay: .32s; }

/* =============== CARDS =============== */
.card-emar{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  height: 100%;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card-emar:hover{
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(10,27,61,0.10);
  border-color: rgba(30,111,235,0.25);
}
.card-emar .icon-wrap{
  width: 54px; height: 54px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(30,111,235,0.10), rgba(30,111,235,0.04));
  display:flex; align-items:center; justify-content:center;
  margin-bottom: 1.2rem;
  transition: background .3s ease, transform .3s ease;
}
.card-emar:hover .icon-wrap{
  background: var(--blue);
  transform: rotate(-6deg) scale(1.05);
}
.card-emar .icon-wrap svg{ stroke: var(--blue); transition: stroke .3s ease; width:26px; height:26px; }
.card-emar:hover .icon-wrap svg{ stroke: #fff; }

/* =============== STATS / COUNTERS =============== */
.stat-block .num{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--navy);
  line-height:1;
}
.stat-block .lbl{
  font-size: .82rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--silver-dark);
  margin-top: .5rem;
}

/* =============== PROJECT CARDS =============== */
.project-card{
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  transition: transform .35s ease, box-shadow .35s ease;
  height: 100%;
}
.project-card:hover{
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(10,27,61,0.14);
}
.project-thumb{
  height: 190px;
  position: relative;
  background: linear-gradient(150deg, #0F2A5C, var(--navy-deep));
  overflow:hidden;
}

.project-thumb img {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .5s ease;
}

.project-thumb::after{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(circle at 25% 20%, rgba(63,169,245,0.35), transparent 45%),
    repeating-linear-gradient(120deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 16px);
}
.project-card .badge-state{
  position:absolute; top:14px; left:14px; z-index:2;
  font-size:.68rem; letter-spacing:.05em; text-transform:uppercase;
  background: rgba(255,255,255,0.92); color: var(--navy);
  padding: .32rem .7rem; border-radius: 20px; font-weight:600;
}
.project-card .badge-value{
  position:absolute; bottom:14px; right:14px; z-index:2;
  font-family: var(--font-display); font-weight:700; font-size:.95rem;
  background: var(--blue); color:#fff;
  padding: .3rem .75rem; border-radius: 20px;
}
.project-card .body{ padding: 1.4rem 1.5rem; }

.filter-pill{
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 500;
  padding: .5rem 1.25rem;
  border-radius: 30px;
  transition: all .25s ease;
}
.filter-pill.active, .filter-pill:hover{
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

/* =============== TIMELINE (About) =============== */
.timeline{ position:relative; padding-left: 2.2rem; }
.timeline::before{
  content:""; position:absolute; left:6px; top:6px; bottom:6px; width:2px;
  background: linear-gradient(var(--blue), var(--silver));
}
.timeline-item{ position:relative; padding-bottom: 2.4rem; }
.timeline-item::before{
  content:""; position:absolute; left:-2.2rem; top:2px; width:14px; height:14px;
  border-radius:50%; background:#fff; border:3px solid var(--blue);
}

/* =============== TEAM CARDS =============== */
.team-card{
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.8rem;
  height:100%;
  transition: box-shadow .3s ease, transform .3s ease;
}
.team-card:hover{ box-shadow: 0 18px 36px rgba(10,27,61,0.08); transform: translateY(-4px); }
.team-card .icon-wrap{
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(30,111,235,0.08);
  display:flex; align-items:center; justify-content:center;
}
.team-card .avatar{
  width:56px; height:56px; border-radius:50%;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-family: var(--font-display); font-weight:700; font-size:1.1rem;
  margin-bottom: 1rem;
}
.team-card .role{
  font-size:.72rem; text-transform:uppercase; letter-spacing:.06em; color: var(--blue); font-weight:600;
}

/* =============== CONTACT =============== */
.contact-form .form-control{
  border-radius: 10px;
  border: 1.5px solid var(--line);
  padding: .8rem 1rem;
  font-size: .95rem;
}
.contact-form .form-control:focus{
  border-color: var(--blue);
  box-shadow: 0 0 0 .2rem rgba(30,111,235,0.14);
}
.contact-form label{
  font-size: .8rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: .3rem;
}
.info-strip-card{
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.6rem;
  display:flex; gap: 1rem; align-items:flex-start;
}
.info-strip-card .icon-wrap{
  width:44px; height:44px; border-radius:12px; flex-shrink:0;
  background: rgba(30,111,235,0.08);
  display:flex; align-items:center; justify-content:center;
}
.info-strip-card .icon-wrap svg{ width:20px; height:20px; stroke: var(--blue); }

.map-shell{
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid var(--line);
  min-height: 320px;
  background: linear-gradient(160deg, var(--offwhite), #e7ecf2);
  display:flex; align-items:center; justify-content:center;
  color: var(--silver-dark);
  font-family: var(--font-display);
  font-size: .9rem;
  text-align:center;
  /* padding: 2rem; */
}

/* form success toast */
.toast-success{
  position: fixed; bottom: 24px; right: 24px; z-index: 2000;
  background: var(--navy); color:#fff;
  padding: 1rem 1.4rem; border-radius: 12px;
  box-shadow: 0 16px 40px rgba(10,27,61,0.3);
  transform: translateY(140%); transition: transform .4s ease;
  font-family: var(--font-display); font-size:.9rem;
}
.toast-success.show{ transform: translateY(0); }

/* =============== FOOTER =============== */
footer.site-footer{
  background: var(--navy-deep);
  color: rgba(255,255,255,0.55);
  padding: 3.2rem 0 1.6rem;
}
footer.site-footer h6{
  color:#fff; font-family: var(--font-display); font-size:.85rem;
  text-transform: uppercase; letter-spacing:.08em; margin-bottom:1rem;
}
footer.site-footer a{ color: rgba(255,255,255,0.55); text-decoration:none; }
footer.site-footer a:hover{ color: var(--blue-bright); }
footer.site-footer .foot-bottom{
  border-top:1px solid rgba(255,255,255,0.1);
  margin-top: 2rem; padding-top: 1.4rem;
  font-size:.78rem;
}

/* =============== VIDEO SHOWCASE =============== */
.video-frame{
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(10,27,61,0.14);
  aspect-ratio: 16 / 10;
  background: linear-gradient(150deg, #0F2A5C, var(--navy-deep));
}
.video-frame video{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-mute-toggle{
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(10,27,61,0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.video-mute-toggle:hover{ background: rgba(10,27,61,0.8); transform: scale(1.06); }
.video-mute-toggle svg{ width: 18px; height: 18px; }

@media (max-width: 767px){
  .video-frame{ aspect-ratio: 4 / 3; }
}

/* =============== FOOTPRINT MAP =============== */
.footprint-visual{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: stretch;
}
@media (max-width: 767px){
  .footprint-visual{ grid-template-columns: 1fr; }
}
.map-card, .pinned-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  padding:1.5rem;
}
.map-card svg{ width:100%; height:auto; max-height:340px; display:block; }
.map-card .pin-label{
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 600;
  fill: var(--navy);
}
.map-pin circle:not(.pin-pulse){ transition: r .2s ease; }
.map-pin:hover circle:not(.pin-pulse){ r: 8; }
.pin-pulse{
  transform-origin: center;
  animation: pin-pulse 2.4s ease-out infinite;
}
.map-pin:nth-child(2) .pin-pulse{ animation-delay: .5s; }
.map-pin:nth-child(3) .pin-pulse{ animation-delay: 1s; }
@keyframes pin-pulse{
  0%{ r:5; opacity:.55; }
  100%{ r:16; opacity:0; }
}

.pinned-card{ display:flex; flex-direction:column; }
.pinned-row{
  display:flex; align-items:center; gap:.85rem;
  padding: .9rem 0;
  border-bottom: 1px solid var(--line);
}
.pinned-row:last-of-type{ border-bottom:none; }
.pinned-dot{
  width:14px; height:14px; border-radius:50%; flex-shrink:0;
  box-shadow: 0 0 0 4px rgba(0,0,0,0.04);
}
.pinned-row .name{
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
  font-size: .95rem;
}
.pinned-row .count{
  margin-left: auto;
  font-size: .85rem;
  color: var(--silver-dark);
}

/* =============== FOOTPRINT BARS (legacy, still available) =============== */
.footprint-row{
  display:grid; grid-template-columns:130px 1fr 50px;
  align-items:center; gap:1rem;
  font-family: var(--font-display);
  font-size: .85rem;
  color: var(--navy);
  margin-bottom: 1rem;
}
.footprint-track{
  height: 10px;
  border-radius: 6px;
  background: var(--line);
  overflow: hidden;
}
.footprint-fill{
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--blue-bright));
  width: 0%;
  border-radius: 6px;
  transition: width 1.1s cubic-bezier(.22,1,.36,1);
}
.footprint-fill.animate{ width: var(--target-width); }

/* =============== STRENGTHS ICON ROW =============== */
.strength-item{ display:flex; gap:1rem; align-items:flex-start; }
.strength-item .icon-wrap{
  width:50px; height:50px; border-radius:12px; flex-shrink:0;
  background: rgba(30,111,235,0.08);
  display:flex; align-items:center; justify-content:center;
}
.strength-item .icon-wrap svg{ width:22px; height:22px; stroke: var(--blue); }

/* =============== GALLERY =============== */
.gallery-item{
  position:relative;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  height: 230px;
  /* shows while the photo loads, and behind any transparent PNGs */
  background: linear-gradient(150deg, #0F2A5C, var(--navy-deep));
}
.gallery-item img{
  position:absolute; inset:0; z-index:1;
  width:100%; height:100%;
  object-fit: cover;
  object-position: center;
  transition: transform .5s ease;
}
.gallery-item:hover img{ transform: scale(1.08); }

/* darkens the lower portion of the photo so the white caption text stays readable */
.gallery-item::after{
  content:"";
  position:absolute; inset:0; z-index:1;
  background: linear-gradient(180deg, rgba(6,17,39,0) 55%, rgba(6,17,39,0.55) 100%);
  pointer-events: none;
}
.gallery-item .gallery-caption{
  position:absolute; left:0; right:0; bottom:0; z-index:2;
  padding: .9rem 1rem;
  background: linear-gradient(180deg, transparent, rgba(6,17,39,0.88));
  color:#fff;
  transform: translateY(8px);
  opacity: 0;
  transition: all .3s ease;
}
.gallery-item:hover .gallery-caption{ transform: translateY(0); opacity: 1; }
.gallery-item .gallery-caption .tag{
  font-size:.65rem; letter-spacing:.06em; text-transform:uppercase; color: var(--blue-bright); font-weight:600;
}
.gallery-item .gallery-caption h4{ font-size:.9rem; margin:.2rem 0 0; font-weight:600; }
.gallery-item .expand-icon{
  position:absolute; top:12px; right:12px; z-index:2;
  width:32px; height:32px; border-radius:50%;
  background: rgba(255,255,255,0.14);
  display:flex; align-items:center; justify-content:center;
  opacity:0; transform: scale(.7);
  transition: all .3s ease;
}
.gallery-item:hover .expand-icon{ opacity:1; transform: scale(1); }
.gallery-item .expand-icon svg{ width:14px; height:14px; stroke:#fff; }

.gallery-modal .modal-content{
  background: var(--navy-deep);
  color:#fff;
  border-radius: 18px;
  border: none;
  overflow: hidden;
}
.gallery-modal .modal-visual{
  height: 360px;
  background: linear-gradient(150deg, #0F2A5C, var(--navy-deep));
  position: relative;
  overflow: hidden;
}
.gallery-modal .modal-visual img{
  position:absolute; inset:0; z-index:1;
  width:100%; height:100%;
  object-fit: cover;
  object-position: center;
}
.gallery-modal .modal-visual::after{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(circle at 30% 25%, rgba(63,169,245,0.35), transparent 50%),
    repeating-linear-gradient(120deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 16px);
}
.gallery-modal .btn-close{ filter: invert(1); }

/* small-page hero (About / Projects / Contact) */
.page-hero{
  background: radial-gradient(120% 160% at 85% 0%, #0F2A5C 0%, var(--navy) 55%, var(--navy-deep) 100%);
  color:#fff;
  padding: 7.5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

@media (max-width: 576px){
  .hero-video{ display: none; }
}

@media (max-width: 767px){
  .hero{ padding: 7.5rem 0 4rem; text-align:center; }
  .hero .lead-sub{ margin-left:auto; margin-right:auto; }
  .page-hero{ padding: 6rem 0 3rem; }
}
