/* =========================================================
   Decussate Global Holdings: site styles
   Brand palette (from DGH logo): navy + gold, one brand for both divisions.
   Change colours in :root only.
   ========================================================= */
:root {
  --navy: #0B2545;        /* primary: headings, buttons, dark sections */
  --navy-2: #173A63;      /* lighter navy for gradients and hovers */
  --navy-3: #2E6098;      /* globe highlight blue */
  --gold: #C9A227;        /* accent */
  --gold-light: #E8C766;
  --gold-dark: #9E7C1B;   /* gold text on white (better contrast) */

  --ink: #0f1a2a;
  --muted: #55627a;
  --line: #e4e7ee;
  --bg: #ffffff;
  --tint: #faf7ee;        /* warm light section background */

  --radius: 14px;
  --shadow: 0 6px 24px rgba(11, 37, 69, .08);
  --max: 1140px;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.15; margin: 0 0 .6em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--navy-2); }
img, svg { display: block; max-width: 100%; height: auto; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Placeholder text: easy to spot so you remember to edit it */
.placeholder { color: #b45309; background: #fff7e6; border: 1px dashed #f0b45a; border-radius: 6px; padding: .3em .6em; display: inline-block; }
.hint { font-size: .85rem; color: #b45309; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: .8em 1.5em; border-radius: 6px;
  font-weight: 600; text-decoration: none; letter-spacing: .01em;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-tech { background: var(--navy); color: #fff; }               /* primary (navy) */
.btn-tech:hover { background: var(--navy-2); }
.btn-agri { background: var(--gold); color: var(--navy); }        /* secondary (gold) */
.btn-agri:hover { background: var(--gold-light); }
.btn-small { padding: .5em 1.1em; font-size: .95rem; background: var(--navy); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 52px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a { text-decoration: none; color: var(--navy); font-weight: 500; }
.site-nav a:hover { color: var(--gold-dark); }
.site-nav a.btn { color: #fff; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle .bar { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .2s; }

/* ---------- Hero ---------- */
.hero { padding: 80px 0 60px; overflow: hidden;
  background: radial-gradient(circle at 80% 40%, rgba(201,162,39,.12), transparent 45%),
              linear-gradient(180deg, #fff, #fbfaf6); }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.eyebrow { font-weight: 600; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: .8em; }
.eyebrow-tech, .eyebrow-agri { color: var(--gold-dark); }
.hero h1 .t { color: var(--gold-dark); }
.hero h1 .a { color: var(--navy-2); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }

/* Logo mark with a soft gold ring behind it */
.hero-art { position: relative; aspect-ratio: 1; max-width: 420px; width: 100%; justify-self: center; display: grid; place-items: center; }
.hero-art img { position: relative; width: 100%; }
.hero-ring { position: absolute; inset: 14%; border-radius: 50%;
  border: 1px solid rgba(201,162,39,.45); box-shadow: 0 0 0 28px rgba(201,162,39,.06), 0 0 0 56px rgba(11,37,69,.03); }

/* ---------- Pillars ---------- */
.pillars { padding: 10px 0 40px; }
.pillars-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pillar { display: block; padding: 32px; border-radius: var(--radius); text-decoration: none; transition: transform .2s ease; position: relative; overflow: hidden; }
.pillar:hover { transform: translateY(-3px); }
.pillar h2 { font-size: 1.5rem; color: inherit; }
.pillar .more { font-weight: 600; }
.pillar-tech { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; border-top: 4px solid var(--gold); }
.pillar-tech p { color: #cdd8e8; }
.pillar-tech .more { color: var(--gold-light); }
.pillar-agri { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--navy); border-top: 4px solid var(--navy); }
.pillar-agri p { color: #3a3216; }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-tint { background: var(--tint); }
.section-dark { background: var(--navy); color: #cdd8e8; }
.section-dark h2 { color: #fff; }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head p:last-child { color: var(--muted); font-size: 1.05rem; }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); transition: transform .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-3px); border-color: var(--gold); }
.card p { color: var(--muted); margin: 0; }
.card-cta { display: flex; flex-direction: column; justify-content: center; text-decoration: none;
  background: linear-gradient(135deg, var(--navy), var(--navy-2)); border-color: transparent; }
.card-cta h3 { color: #fff; }
.card-cta p { color: #cdd8e8; margin-bottom: 1em; }
.card-cta .more { font-weight: 600; color: var(--gold-light); }
.icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; }
.icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-tech { background: rgba(201,162,39,.14); color: var(--navy); }

/* Split layout (agriculture / microfinance) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.split > div > p { color: var(--muted); font-size: 1.05rem; }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.feature-list li { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 8px; padding: 18px 20px; }
.feature-list strong { display: block; margin-bottom: 2px; color: var(--navy); }
.feature-list span { color: var(--muted); }

/* About */
.about { display: grid; grid-template-columns: 180px 1fr; gap: 50px; align-items: center; max-width: 920px; }
.about-mark { width: 180px; height: 180px; border-radius: 50%; background: #fff; padding: 14px; box-shadow: 0 0 0 6px rgba(201,162,39,.35); }
.about em { color: var(--gold-light); font-style: italic; }

/* Contact: email directory */
.email-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.email-item { display: flex; flex-direction: column; gap: 4px; padding: 22px; border-radius: var(--radius);
  background: var(--navy); color: #cdd8e8; text-decoration: none; border-top: 3px solid var(--gold);
  transition: transform .2s ease, background .2s ease; }
.email-item:hover { transform: translateY(-2px); background: var(--navy-2); }
.email-label { font-family: var(--serif); font-weight: 700; font-size: 1.1rem; color: #fff; }
.email-desc { font-size: .88rem; color: #a9b7cc; }
.email-addr { margin-top: auto; padding-top: 10px; font-size: .84rem; font-weight: 600; color: var(--gold-light); overflow-wrap: anywhere; }

/* Contact: phone & location */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.contact-item { border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); padding: 24px; }
.contact-item h3 { font-family: Inter, sans-serif; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-item p { margin: 0; word-break: break-word; }
.contact-cta { margin-top: 30px; }

/* Footer */
.site-footer { background: var(--navy); color: #a9b7cc; padding: 28px 0; font-size: .92rem; border-top: 3px solid var(--gold); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; }
.footer-inner p { margin: 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-nav a { color: #a9b7cc; text-decoration: none; }
.footer-nav a:hover { color: var(--gold-light); }

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

/* ---------- Tablet & phone ---------- */
@media (max-width: 860px) {
  .header-inner { height: 64px; }
  .brand img { height: 42px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 20px 20px; display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; width: 100%; }
  .site-nav a.btn { width: auto; margin-top: 8px; padding: .6em 1.2em; }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(2) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(3) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }

  .hero { padding: 40px 0 30px; }
  .hero-inner, .split, .pillars-grid, .contact-grid, .email-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 240px; order: -1; }
  .split { gap: 30px; }
  .section { padding: 64px 0; }
  .about { grid-template-columns: 1fr; gap: 24px; }
  .about-mark { width: 110px; height: 110px; padding: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
