/* ============================================================
   IDEVO Global — idevoglobal.com
   Dark institutional theme · charcoal + champagne gold
   ============================================================ */

:root {
  --bg: #0b0b0e;
  --bg-2: #101014;
  --surface: #16161c;
  --surface-2: #1c1c24;
  --line: rgba(214, 178, 106, 0.16);
  --line-soft: rgba(255, 255, 255, 0.07);
  --text: #edeae3;
  --text-dim: #b9b4a9;
  --muted: #8d887d;
  --gold: #d6b26a;
  --gold-bright: #e8cd8f;
  --gold-deep: #a8894e;
  --gold-grad: linear-gradient(135deg, #e8cd8f 0%, #d6b26a 45%, #b8935a 100%);
  --radius: 14px;
  --radius-lg: 22px;
  --nav-h: 76px;
  --font-display: "Anton", "Arial Narrow", Impact, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 24px); }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }

::selection { background: rgba(214, 178, 106, 0.35); color: #fff; }

/* ---------- Typography ---------- */

.display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.04;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}
.kicker::before {
  content: "";
  width: 34px; height: 1px;
  background: var(--gold);
  opacity: 0.7;
}

.section-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.06;
  margin: 14px 0 18px;
  color: var(--text);
}
.section-title .accent { color: var(--gold); }

.lead { color: var(--text-dim); font-size: clamp(16px, 1.9vw, 19px); max-width: 62ch; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.btn-gold {
  background: var(--gold-grad);
  color: #17130a;
  box-shadow: 0 8px 30px rgba(214, 178, 106, 0.25);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(214, 178, 106, 0.38); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(237, 234, 227, 0.28);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); }
.btn .arrow { transition: transform 0.25s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11, 11, 14, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  font-family: var(--font-display);
  font-size: 23px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
}
.brand .dot { color: var(--gold); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--text-dim);
}
.nav-links a { position: relative; padding: 6px 0; transition: color 0.2s ease; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-cta { padding: 11px 24px; font-size: 15px; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero (home) ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: calc(var(--nav-h) + 60px) 24px 90px;
  overflow: hidden;
  isolation: isolate;
}
.hero-media, .hero-media video, .hero-media img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 90% at 50% 10%, rgba(11, 11, 14, 0.25) 0%, rgba(11, 11, 14, 0.72) 70%),
    linear-gradient(180deg, rgba(11, 11, 14, 0.55) 0%, rgba(11, 11, 14, 0.35) 40%, var(--bg) 98%);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid rgba(214, 178, 106, 0.35);
  background: rgba(11, 11, 14, 0.5);
  backdrop-filter: blur(8px);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-bright);
}
.badge::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(44px, 8.2vw, 108px);
  line-height: 1.02;
  letter-spacing: 0.005em;
  margin: 28px 0 10px;
  max-width: 15ch;
}
.hero h1 .gold {
  color: var(--gold);
  text-shadow: 0 0 60px rgba(214, 178, 106, 0.35);
}
.hero .subline {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(20px, 3.1vw, 40px);
  letter-spacing: 0.04em;
  color: var(--text-dim);
  margin-bottom: 26px;
}
.hero .lead { margin: 0 auto 38px; max-width: 68ch; }

.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 36px;
  margin-top: 64px;
  font-size: 15px;
  color: var(--text-dim);
}
.trust-strip span { display: inline-flex; align-items: center; gap: 9px; }
.trust-strip .check {
  color: var(--gold);
  font-size: 15px;
  line-height: 1;
}

.scroll-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 22px;
  animation: floaty 2.4s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 9px); } }

/* ---------- Sub-page hero band ---------- */

.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + 96px) 0 84px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.page-hero .bg {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(11,11,14,0.82) 0%, rgba(11,11,14,0.88) 60%, var(--bg) 100%);
}
.page-hero h1 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(40px, 6.5vw, 84px);
  line-height: 1.04;
  margin: 18px 0 16px;
}
.page-hero .lead { margin-inline: auto; }

/* ---------- Sections ---------- */

.section { padding: 104px 0; }
.section-head { max-width: 760px; margin-bottom: 58px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }

/* Service showcase (home) */

.showcase { display: grid; gap: 26px; }
.showcase-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  align-items: center;
  padding: clamp(30px, 5vw, 62px);
  background: linear-gradient(160deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.showcase-card:hover { border-color: var(--line); transform: translateY(-3px); }
.showcase-card::after {
  content: "";
  position: absolute;
  top: -40%; right: -18%;
  width: 55%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 178, 106, 0.09) 0%, transparent 65%);
  pointer-events: none;
}
.showcase-card .eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.showcase-card h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.08;
  margin-bottom: 16px;
}
.showcase-card p { color: var(--text-dim); margin-bottom: 26px; max-width: 56ch; }
.showcase-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.showcase-tags li {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-dim);
  padding: 8px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}
.showcase-num {
  font-family: var(--font-display);
  font-size: clamp(90px, 12vw, 170px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(214, 178, 106, 0.35);
  text-align: right;
  user-select: none;
}

/* Built in Bahrain */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 84px);
  align-items: center;
}
.split-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}
.split-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3.4; }
.split-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(200deg, transparent 55%, rgba(11, 11, 14, 0.55) 100%);
}
.split-media .tag {
  position: absolute;
  left: 22px; bottom: 20px;
  z-index: 2;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(11, 11, 14, 0.72);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(214, 178, 106, 0.4);
  color: var(--gold-bright);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.split-copy p { color: var(--text-dim); margin-bottom: 18px; }
.split-copy p strong { color: var(--text); font-weight: 600; }

/* Stats */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line-soft);
}
.stat {
  padding: 46px 28px;
  text-align: center;
  border-left: 1px solid var(--line-soft);
}
.stat:first-child { border-left: 0; }
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(44px, 5vw, 64px);
  line-height: 1;
  color: var(--gold);
  display: block;
  margin-bottom: 12px;
}
.stat .label { font-weight: 600; color: var(--text); display: block; margin-bottom: 6px; }
.stat .sub { font-size: 14.5px; color: var(--muted); }

/* Feature cards (services page) */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.feature {
  padding: 32px 30px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
}
.feature:hover { border-color: var(--line); transform: translateY(-4px); background: var(--surface-2); }
.feature .icon {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(214, 178, 106, 0.1);
  border: 1px solid rgba(214, 178, 106, 0.25);
  color: var(--gold);
  margin-bottom: 20px;
}
.feature h4 { font-size: 19px; font-weight: 650; margin-bottom: 10px; }
.feature p { font-size: 15.5px; color: var(--text-dim); }

/* Service detail sections */

.service-block { padding: 96px 0; border-top: 1px solid var(--line-soft); }
.service-block:first-of-type { border-top: 0; }
.service-head {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(30px, 5vw, 70px);
  margin-bottom: 52px;
  align-items: end;
}
.service-head .lead { max-width: 56ch; }
.service-index {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 12px;
}

/* Why / value cards */

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

/* FAQ */

.faq-list { max-width: 860px; margin-inline: auto; }
.faq {
  border-bottom: 1px solid var(--line-soft);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 26px 4px;
  font-size: 18.5px;
  font-weight: 600;
  color: var(--text);
  transition: color 0.2s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--gold-bright); }
.faq summary .chevron {
  flex: 0 0 auto;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 15px;
  transition: transform 0.3s ease, background 0.3s ease;
}
.faq[open] summary .chevron { transform: rotate(45deg); background: rgba(214, 178, 106, 0.12); }
.faq .answer { padding: 0 4px 28px; color: var(--text-dim); max-width: 72ch; }

/* CTA band */

.cta-band {
  position: relative;
  text-align: center;
  padding: 110px 24px;
  overflow: hidden;
  isolation: isolate;
  border-top: 1px solid var(--line-soft);
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 90% at 50% 110%, rgba(214, 178, 106, 0.16) 0%, transparent 70%),
    var(--bg-2);
}
.cta-band .section-title { margin-inline: auto; max-width: 20ch; }
.cta-band .lead { margin: 0 auto 40px; }

/* ---------- Contact page ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
}
.contact-cards { display: grid; gap: 16px; }
.contact-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 24px 26px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.contact-card:hover { border-color: var(--line); transform: translateY(-3px); }
.contact-card .icon {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(214, 178, 106, 0.1);
  border: 1px solid rgba(214, 178, 106, 0.25);
  color: var(--gold);
}
.contact-card .k { font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.contact-card .v { font-weight: 600; font-size: 17px; color: var(--text); word-break: break-word; }
.contact-card .s { font-size: 14.5px; color: var(--text-dim); margin-top: 3px; }

.form-panel {
  padding: clamp(28px, 4vw, 44px);
  background: linear-gradient(160deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
}
.form-panel h2 { font-family: var(--font-display); text-transform: uppercase; font-size: 30px; margin-bottom: 8px; }
.form-panel .hint { color: var(--muted); font-size: 15px; margin-bottom: 30px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23d6b26a' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.field select option { background: var(--surface-2); color: var(--text); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(214, 178, 106, 0.05);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-status { margin-top: 16px; font-weight: 600; display: none; }
.form-status.ok { display: block; color: #9fd8a4; }
.form-status.err { display: block; color: #e09a9a; }

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--line-soft);
  background: var(--bg-2);
  padding: 72px 0 34px;
  font-size: 15.5px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 52px;
}
.footer .brand { font-size: 26px; }
.footer .about { color: var(--text-dim); margin: 16px 0 20px; max-width: 46ch; }
.footer h5 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.footer ul li { margin-bottom: 12px; }
.footer a { color: var(--text-dim); transition: color 0.2s ease; }
.footer a:hover { color: var(--gold-bright); }
.footer address { font-style: normal; color: var(--text-dim); line-height: 1.8; }
.footer-bottom {
  border-top: 1px solid var(--line-soft);
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- Reveal animations ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-hint { animation: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .showcase-card { grid-template-columns: 1fr; gap: 10px; }
  .showcase-num { display: none; }
  .split { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat { border-top: 1px solid var(--line-soft); }
  .stat:nth-child(-n+2) { border-top: 0; }
  .service-head { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(11, 11, 14, 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line-soft);
    padding: 10px 24px 24px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  .nav.open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { width: 100%; padding: 15px 0; font-size: 18px; border-bottom: 1px solid var(--line-soft); }
  .nav-links a::after { display: none; }
  .nav-links .nav-cta { margin-top: 18px; width: 100%; }
  .section { padding: 76px 0; }
  .feature-grid, .value-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .stats { grid-template-columns: 1fr 1fr; }
}
