/* ===========================================================
   iSphere Global — shared stylesheet
   Palette derived from the company logo: deep blue globe,
   warm red accent arc, gold/yellow "Sphere" wordmark.
   =========================================================== */

:root {
  --navy:      #102a52;
  --navy-deep: #0a1d3b;
  --blue:      #1c4f9c;
  --red:       #c8262c;
  --gold:      #f0b429;
  --gold-deep: #d99a0e;
  --light:     #f3f6fb;
  --mid:       #5b6b85;
  --text:      #1b2638;
  --white:     #ffffff;
  --border:    #e1e7f2;
}

* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
}
h1 { font-size: clamp(30px, 4vw, 48px); }
h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 18px; }
h3 { font-size: 19px; margin-bottom: 8px; }

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
  display: block;
}

p { color: var(--mid); }
.lead {
  font-size: 17px;
  color: var(--mid);
  max-width: 680px;
  margin-bottom: 40px;
  line-height: 1.8;
}

/* ---------- Top notice bar ---------- */
.topbar {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.75);
  font-size: 12.5px;
  text-align: center;
  padding: 7px 16px;
  letter-spacing: 0.3px;
}
.topbar a { color: var(--gold); text-decoration: none; font-weight: 600; }

/* ---------- NAV ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(16,42,82,0.02);
}
nav.main-nav {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 5%;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand img { height: 46px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: block;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  border-radius: 5px;
  transition: color 0.15s, background 0.15s;
}
.nav-links > li > a:hover { color: var(--red); background: var(--light); }
.nav-links > li.active > a { color: var(--red); }

.has-dropdown > a::after {
  content: '▾';
  font-size: 10px;
  margin-left: 5px;
  opacity: 0.6;
}
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(16,42,82,0.13);
  min-width: 230px;
  padding: 8px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown li a {
  display: block;
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  border-radius: 6px;
  white-space: nowrap;
}
.dropdown li a:hover { background: var(--light); color: var(--red); }

.nav-cta {
  background: var(--red);
  color: #fff !important;
  padding: 10px 22px !important;
  border-radius: 5px;
  font-weight: 700 !important;
}
.nav-cta:hover { background: var(--navy) !important; color: #fff !important; }

/* mobile */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.hamburger span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; }
.mobile-menu {
  display: none;
  background: var(--light);
  border-top: 1px solid var(--border);
  padding: 6px 5% 14px;
}
.mobile-menu.open { display: block; }
.mobile-menu details { border-bottom: 1px solid var(--border); }
.mobile-menu details:last-child { border-bottom: none; }
.mobile-menu summary, .mobile-menu > a {
  padding: 13px 4px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  display: block;
  cursor: pointer;
  list-style: none;
}
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu .sub-links { padding-left: 14px; padding-bottom: 6px; }
.mobile-menu .sub-links a {
  display: block;
  padding: 9px 4px;
  font-size: 13.5px;
  color: var(--mid);
  text-decoration: none;
}

/* ---------- PAGE HERO (sub-pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy) 60%, var(--blue));
  padding: 64px 5% 56px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  right: -120px; top: -120px;
  width: 360px; height: 360px;
  border-radius: 50%;
  border: 60px solid rgba(240,180,41,0.05);
}
.page-hero-inner { max-width: 1280px; margin: 0 auto; position: relative; z-index: 1; }
.breadcrumb {
  font-size: 12.5px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 14px;
}
.breadcrumb a { color: rgba(255,255,255,0.7); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.65); max-width: 620px; font-size: 16px; }

/* ---------- HOME HERO ---------- */
.home-hero {
  background: linear-gradient(120deg, var(--navy-deep) 0%, var(--navy) 55%, var(--blue) 100%);
  padding: 84px 5% 80px;
  position: relative;
  overflow: hidden;
}
.home-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(240,180,41,0.10), transparent 55%),
    radial-gradient(circle at 15% 90%, rgba(200,38,44,0.10), transparent 50%);
}
.home-hero-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.home-hero h1 { color: #fff; font-size: clamp(32px, 4.2vw, 50px); margin-bottom: 22px; }
.home-hero .eyebrow { color: var(--gold); }
.home-hero-body { color: rgba(255,255,255,0.68); font-size: 17.5px; max-width: 540px; margin-bottom: 34px; line-height: 1.85; }
.home-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 14px 30px;
  border-radius: 5px;
  transition: background 0.2s, color 0.2s, transform 0.15s, border-color 0.2s;
}
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: #ffc94d; transform: translateY(-1px); }
.btn-outline { border: 1.5px solid rgba(255,255,255,0.35); color: #fff; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: #a81e23; }

.home-hero-photo {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0,0,0,0.35);
  transform: rotate(1.5deg);
}
.home-hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.home-hero-photo-badge {
  position: absolute;
  bottom: -20px; left: -20px;
  background: #fff;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 16px 40px rgba(16,42,82,0.18);
  transform: rotate(-3deg);
}
.home-hero-photo-badge .num { font-family: 'Montserrat',sans-serif; font-weight: 800; font-size: 26px; color: var(--red); }
.home-hero-photo-badge .label { font-size: 11.5px; color: var(--mid); font-weight: 600; }

/* ---------- SECTIONS ---------- */
section { padding: 80px 5%; }
.section-inner { max-width: 1280px; margin: 0 auto; }
.section-light { background: var(--light); }
.section-navy { background: var(--navy-deep); }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy p, .section-navy .lead { color: rgba(255,255,255,0.6); }

/* ---------- GRIDS / CARDS ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.card:hover { box-shadow: 0 16px 40px rgba(16,42,82,0.10); transform: translateY(-3px); border-color: var(--gold); }
.card-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 14.5px; }

.list-check { list-style: none; }
.list-check li {
  display: flex; gap: 12px; align-items: flex-start;
  margin-bottom: 14px; font-size: 15.5px; color: var(--mid);
}
.list-check li::before {
  content: '';
  flex-shrink: 0;
  width: 20px; height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--gold);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23102a52' stroke-width='3'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}

/* ---------- TEAM ---------- */
.team-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
  text-align: left;
}
.team-card:hover { box-shadow: 0 16px 40px rgba(16,42,82,0.12); transform: translateY(-3px); }
.team-photo { aspect-ratio: 1/1; overflow: hidden; background: var(--light); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-info { padding: 18px 20px 22px; }
.team-name { font-family: 'Montserrat',sans-serif; font-weight: 700; font-size: 16px; color: var(--navy); }
.team-role { font-size: 12.5px; font-weight: 600; color: var(--red); text-transform: uppercase; letter-spacing: 0.6px; margin: 4px 0 10px; }
.team-blurb { font-size: 13.5px; color: var(--mid); line-height: 1.6; }
.team-more { font-size: 12.5px; font-weight: 700; color: var(--navy); margin-top: 10px; display: inline-block; }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(10,29,59,0.7);
  display: none; align-items: center; justify-content: center;
  padding: 24px; z-index: 999;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: #fff; border-radius: 14px; max-width: 620px; width: 100%;
  max-height: 85vh; overflow-y: auto; padding: 36px;
  position: relative;
}
.modal-close {
  position: absolute; top: 18px; right: 18px;
  background: var(--light); border: none; width: 34px; height: 34px;
  border-radius: 50%; font-size: 18px; cursor: pointer; color: var(--navy);
}
.modal-box h3 { font-size: 22px; }
.modal-role { color: var(--red); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 18px; }
.modal-box p { font-size: 14.5px; margin-bottom: 14px; line-height: 1.75; }

/* ---------- STATS STRIP ---------- */
.stats-strip {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 24px; background: var(--navy-deep); border-radius: 14px;
  padding: 40px 30px; margin-top: 60px;
}
.stat-box { text-align: center; }
.stat-box .num { font-family: 'Montserrat',sans-serif; font-weight: 800; font-size: 34px; color: var(--gold); }
.stat-box .lbl { font-size: 12.5px; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 1px; margin-top: 6px; }

/* ---------- TIMELINE / NUMBERED ---------- */
.timeline { position: relative; padding-left: 32px; border-left: 2px solid var(--border); }
.timeline-item { position: relative; margin-bottom: 38px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item::before {
  content: ''; position: absolute; left: -41px; top: 2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--border);
}
.timeline-item h3 { margin-bottom: 6px; }
.timeline-item p { font-size: 14.5px; }

/* ---------- QUOTE BLOCK ---------- */
.quote-block {
  background: var(--light);
  border-left: 4px solid var(--red);
  padding: 22px 26px;
  border-radius: 0 10px 10px 0;
  margin: 28px 0;
}
.quote-block p { color: var(--navy); font-style: italic; font-size: 15.5px; margin: 0; }

/* ---------- FORM / CONTACT ---------- */
.form-card {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 38px; box-shadow: 0 6px 28px rgba(16,42,82,0.06);
}
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.7px; color: var(--navy); margin-bottom: 7px; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%; padding: 12px 15px; border: 1.5px solid var(--border); border-radius: 6px;
  font-family: inherit; font-size: 14px; color: var(--text); outline: none;
  transition: border-color 0.2s, box-shadow 0.2s; background: #fff; appearance: none;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(240,180,41,0.18);
}
.form-row textarea { min-height: 120px; resize: vertical; }
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-submit {
  width: 100%; padding: 14px; background: var(--red); color: #fff; border: none;
  border-radius: 6px; font-family: 'Montserrat',sans-serif; font-weight: 700; font-size: 14px;
  letter-spacing: 0.4px; cursor: pointer; transition: background 0.2s, transform 0.15s;
}
.form-submit:hover { background: var(--navy-deep); transform: translateY(-1px); }

.contact-detail { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.contact-detail-icon {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 9px;
  background: var(--navy); display: flex; align-items: center; justify-content: center;
}
.contact-detail-icon svg { width: 19px; height: 19px; }
.contact-detail-label { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--red); margin-bottom: 3px; }
.contact-detail-val { font-size: 15px; color: var(--navy); font-weight: 600; }

/* ---------- JOB LISTINGS ---------- */
.job-search-bar { display: flex; gap: 12px; margin-bottom: 30px; flex-wrap: wrap; }
.job-search-bar input, .job-search-bar select {
  padding: 12px 15px; border: 1.5px solid var(--border); border-radius: 6px; font-size: 14px; flex: 1; min-width: 160px;
}
.job-empty {
  background: var(--light); border: 1px dashed var(--border); border-radius: 12px;
  padding: 50px 30px; text-align: center; color: var(--mid);
}
.job-empty svg { width: 44px; height: 44px; margin: 0 auto 16px; opacity: 0.4; }

/* ---------- CTA BAND ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--red), #a81e23);
  border-radius: 16px;
  padding: 50px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,0.8); margin: 0; }

/* ---------- FOOTER ---------- */
footer.site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.55); padding: 56px 5% 26px; }
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 46px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 26px; }
.footer-brand img { height: 50px; margin-bottom: 16px; }
.footer-brand p { font-size: 13.5px; color: rgba(255,255,255,0.42); max-width: 280px; line-height: 1.75; }
.footer-col h4 { font-family: 'Montserrat',sans-serif; font-weight: 700; font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; color: rgba(255,255,255,0.78); margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { font-size: 13.5px; color: rgba(255,255,255,0.42); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12.5px; }
.footer-bottom a { color: var(--gold); text-decoration: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .home-hero-grid { grid-template-columns: 1fr; }
  .home-hero-photo { display: none; }
  .grid-2 { grid-template-columns: 1fr; gap: 30px; }
  .form-2col { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; text-align: center; }
}
@media (max-width: 600px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  section { padding: 56px 5%; }
}

/* fade-in on scroll */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
