/* ==========================================================================
   DAVION — davion.sg  |  Single page, static. Relative paths only.
   Cormorant Garamond headlines · Navy #0B1F4D · Gold #B6934C.
   ========================================================================== */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/CormorantGaramond-VariableFont_wght.ttf") format("truetype");
  font-weight: 300 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/CormorantGaramond-Italic-VariableFont_wght.ttf") format("truetype");
  font-weight: 300 700; font-style: italic; font-display: swap;
}

:root {
  --navy: #0B1F4D;
  --navy-60: #54678D;
  --navy-30: #A9B5CC;
  --navy-tint: #E8ECF5;
  --gold: #B6934C;
  --map-bg: #00102E;   /* sampled from the map image edges so it blends seamlessly */
  --white: #FFFFFF;
  --charcoal: #22252A;
  --light: #F4F5F7;
  --line: #E4E7EE;

  --serif: "Cormorant Garamond", "Georgia", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --maxw: 1080px;
  --gutter: clamp(22px, 5vw, 40px);
}

* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--sans); color: var(--charcoal);
  background: var(--white); line-height: 1.6; font-size: 17px;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 9vw, 104px); }
section[id] { scroll-margin-top: 74px; }
.eyebrow {
  font-family: var(--sans); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin: 0 0 18px;
}
.section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--navy); letter-spacing: 0.01em; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: #000000; color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-inner {
  max-width: var(--maxw); margin-inline: auto; padding: 16px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: inline-flex; align-items: center; color: var(--white); }
.brand__img { height: 30px; width: auto; display: block; }
.site-footer .brand__img { height: 26px; opacity: 0.95; }
.brand__word { font-family: var(--serif); font-weight: 600; font-size: 1.4rem; letter-spacing: 0.4em; padding-left: 0.4em; line-height: 1; }
.brand__trail { width: 124px; height: 11px; color: var(--gold); }
.brand__trail svg { width: 100%; height: 100%; overflow: visible; display: block; }
.header-nav { display: flex; align-items: center; gap: 26px; font-size: 0.9rem; }
.header-nav a { color: rgba(255,255,255,0.82); letter-spacing: 0.02em; }
.header-nav a:hover { color: var(--white); }
.header-nav a.cta { color: var(--gold); }

/* ---- Hero ---- */
.hero {
  position: relative; overflow: hidden; background: var(--navy); color: var(--white);
  min-height: 86vh; display: flex; align-items: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: url("../img/hero-bg.jpg") center 20% / cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(11,31,77,0.72) 0%, rgba(11,31,77,0.42) 46%, rgba(11,31,77,0.10) 100%),
    linear-gradient(0deg, rgba(8,23,59,0.55) 0%, rgba(11,31,77,0) 50%);
}
.hero .wrap { position: relative; z-index: 2; width: 100%; padding-block: clamp(96px, 15vw, 168px) clamp(72px, 12vw, 128px); }
.hero__tag {
  font-family: var(--sans); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); margin: 0 0 24px;
}
.hero h1 { font-size: clamp(2.6rem, 7vw, 5rem); color: #fff; letter-spacing: 0.01em; max-width: 16ch; text-shadow: 0 2px 30px rgba(0,0,0,0.40); }
.hero__tag, .hero p { text-shadow: 0 1px 18px rgba(0,0,0,0.45); }
.hero p { margin: 26px 0 0; max-width: 46ch; font-size: clamp(1.05rem, 2vw, 1.2rem); color: rgba(255,255,255,0.88); }
.btn-contact {
  display: inline-flex; align-items: center; gap: 0.5em; margin-top: 38px;
  background: var(--gold); color: var(--navy);
  font-family: var(--sans); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.02em;
  padding: 15px 30px; border-radius: 2px;
  transition: transform 0.2s ease, background 0.2s ease;
}
.btn-contact:hover { background: #cbab6b; transform: translateY(-2px); }
.btn-contact .arrow { transition: transform 0.2s ease; }
.btn-contact:hover .arrow { transform: translateX(4px); }

/* ---- Services ---- */
.services { background: var(--white); }
.services__head { margin-bottom: 48px; }
.svc-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.svc {
  display: grid; grid-template-columns: 56px 1fr; gap: 24px; align-items: baseline;
  padding: 30px 0; border-bottom: 1px solid var(--line);
}
.svc .n { font-family: var(--serif); font-size: 1.3rem; color: var(--gold); }
.svc h3 { font-size: 1.55rem; color: var(--navy); margin-bottom: 6px; }
.svc p { margin: 0; color: var(--navy-60); font-size: 1.02rem; }

/* ---- Clients / map ---- */
.clients { background: var(--map-bg); color: var(--white); }
.clients .eyebrow { color: var(--gold); }
.clients .section-title { color: #fff; }
.clients__sub { color: rgba(255,255,255,0.72); margin: 14px 0 40px; max-width: 46ch; }
.map { position: relative; width: 100%; }
.map__img { width: 100%; display: block; }
/* dissolve the image edges into the section background */
.map__fade {
  position: absolute; inset: -1px; pointer-events: none;
  background:
    linear-gradient(to right,  var(--map-bg) 0%, rgba(0,16,46,0) 15%, rgba(0,16,46,0) 85%, var(--map-bg) 100%),
    linear-gradient(to bottom, var(--map-bg) 0%, rgba(0,16,46,0) 14%, rgba(0,16,46,0) 86%, var(--map-bg) 100%);
}
.map__pins { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.map .land { fill: rgba(255,255,255,0.06); stroke: rgba(255,255,255,0.10); stroke-width: 0.8; }
.map .land-hi { fill: rgba(182,147,76,0.20); stroke: rgba(182,147,76,0.55); stroke-width: 1; }
.map .grid { stroke: rgba(255,255,255,0.07); stroke-width: 1; }
/* strokes are in viewBox units (150 wide) — keep them hairline */
.map .arc { fill: none; stroke: var(--gold); stroke-width: 0.16; stroke-dasharray: 0.45 1.15; stroke-linecap: round; opacity: 0.75; }
.map .pin-o { fill: none; stroke: var(--gold); stroke-width: 0.16; opacity: 0.6; }
.map .pin-o--hub { stroke: #fff; opacity: 0.75; }
.map .pin { fill: var(--gold); }
.map .pin-hub { fill: #fff; }
.map .lbl {
  fill: #fff; font-family: var(--sans); font-size: 2.5px; font-weight: 500; letter-spacing: 0.04px;
  stroke: rgba(0,10,30,0.8); stroke-width: 0.55px; paint-order: stroke; stroke-linejoin: round;
}
.clients__row { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px 26px; color: rgba(255,255,255,0.8); font-size: 0.92rem; }
.clients__row span { position: relative; padding-left: 16px; }
.clients__row span::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* ---- Industries ---- */
.industries { background: var(--light); }
.ind-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.ind {
  background: var(--white); border: 1px solid var(--line); border-radius: 4px;
  padding: 26px 22px; display: flex; flex-direction: column; gap: 14px;
}
.ind__icon { width: 34px; height: 34px; color: var(--navy); }
.ind__icon svg { width: 100%; height: 100%; }
.ind h3 { font-size: 1.25rem; color: var(--navy); }

/* ---- Contact ---- */
.contact { background: var(--white); text-align: center; }
.contact h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--navy); }
.contact p { color: var(--navy-60); margin: 16px auto 28px; }
.contact__mail {
  display: inline-block; font-family: var(--serif); font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--navy); border-bottom: 2px solid var(--gold); padding-bottom: 4px;
}
.contact__mail:hover { color: var(--gold); }

/* ---- Footer ---- */
.site-footer { background: #000000; color: rgba(255,255,255,0.68); padding-block: 34px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: 0.85rem; }
.site-footer .brand__word { font-size: 1.15rem; }
.site-footer .brand__trail { width: 104px; }
.site-footer a { color: var(--gold); }

/* ---- Responsive ---- */
@media (max-width: 720px) {
  .ind-grid { grid-template-columns: repeat(2, 1fr); }
  .header-nav { gap: 16px; font-size: 0.82rem; }
  .map .lbl { font-size: 3.4px; stroke-width: 0.7px; }
}
@media (max-width: 460px) {
  .brand__word { font-size: 1.25rem; letter-spacing: 0.32em; }
  .svc { grid-template-columns: 40px 1fr; gap: 16px; }
  .header-nav a:not(.cta) { display: none; }
}
