/* ============================================================
   TRIPPLEG GROUP — Design System
   Palette derived from the official GGG / TRIPPLEG logo:
   black · gold · silver on white
   ============================================================ */

:root {
  --black: #111111;
  --ink: #1b1b1b;
  --gold: #e3a008;
  --gold-dark: #c2860a;
  --gold-light: #f5c445;
  --gold-soft: #fdf6e6;
  --silver: #b9bec6;
  --silver-soft: #eceef1;
  --slate: #5c6470;
  --white: #ffffff;
  --off: #f8f7f4;
  --line: #e8e6e1;
  --text: #333333;
  --muted: #6b6b6b;
  --success: #1e7a46;
  --success-soft: #e8f6ee;
  --danger: #b3261e;

  --accent: var(--gold); /* per-page division override */

  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 6px 24px rgba(17, 17, 17, 0.08);
  --shadow-lg: 0 14px 40px rgba(17, 17, 17, 0.12);
  --maxw: 1140px;
  --header-h: 74px;
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 0.5em; font-weight: 800; }
h1 { font-size: clamp(2rem, 4.5vw, 3.3rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: 0.4em; }
strong { color: var(--ink); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--alt { background: var(--off); }
.center { text-align: center; }

/* ---------- Eyebrow & section headings ---------- */
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 12px;
}
.lead { font-size: 1.14rem; color: var(--muted); max-width: 760px; }
.center .lead { margin-left: auto; margin-right: auto; }
.section-head { margin-bottom: 40px; }
.gold { color: var(--gold-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: center;
  line-height: 1.3;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--gold { background: var(--gold); color: var(--black); border-color: var(--gold); }
.btn--gold:hover { background: var(--gold-light); border-color: var(--gold-light); }
.btn--dark { background: var(--black); color: var(--white); border-color: var(--black); }
.btn--dark:hover { background: #2c2c2c; }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--white); }
.btn--ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn--ghost-light:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.btn--sm { padding: 9px 18px; font-size: 0.9rem; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.center .btn-row { justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand img { height: 52px; width: auto; }
.brand-name { display: none; font-weight: 800; color: var(--ink); letter-spacing: 0.04em; }

/* Main nav */
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.94rem;
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.nav a:hover { background: var(--gold-soft); text-decoration: none; color: var(--black); }
.nav a.active { color: var(--gold-dark); }
.nav .btn--gold { margin-left: 8px; color: var(--black); }

/* Dropdown */
.nav-item { position: relative; }
.nav-caret::after { content: " ▾"; font-size: 0.7em; color: var(--slate); }
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 260px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.16s ease;
}
.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 10px 12px;
  font-size: 0.92rem;
  border-radius: var(--radius-sm);
  color: var(--text);
}
.dropdown a:hover { background: var(--gold-soft); color: var(--black); }
.dropdown a .dd-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 9px;
  background: var(--accent);
}

/* Language toggle */
.lang-toggle {
  display: flex;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
}
.lang-toggle button {
  border: 0;
  background: transparent;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 7px 12px;
  cursor: pointer;
  color: var(--slate);
}
.lang-toggle button.active { background: var(--black); color: var(--gold-light); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.hamburger span {
  width: 24px; height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.2s;
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--white) 55%, var(--gold-soft) 100%);
  overflow: hidden;
  padding: 84px 0 76px;
}
.hero-orbit {
  position: absolute;
  right: -160px;
  top: -120px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  border: 34px solid transparent;
  background:
    linear-gradient(var(--white), var(--white)) padding-box,
    conic-gradient(from 210deg, var(--silver), var(--gold), var(--silver), var(--gold-light), var(--silver)) border-box;
  opacity: 0.35;
  pointer-events: none;
}
.hero-orbit--2 {
  right: -60px;
  top: 40px;
  width: 380px;
  height: 380px;
  border-width: 20px;
  opacity: 0.25;
}
.hero-inner { position: relative; max-width: 820px; }
.hero h1 { margin-bottom: 18px; }
.hero p.lead { font-size: 1.22rem; color: var(--slate); }

/* ---------- Stat chips ---------- */
.stats {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}
.stat-chip {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  box-shadow: 0 2px 10px rgba(17,17,17,.05);
}
.stat-chip b { display: block; font-size: 1.3rem; color: var(--ink); line-height: 1.2; }
.stat-chip span { font-size: 0.82rem; color: var(--muted); }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card-link { display: inline-block; font-weight: 700; font-size: 0.92rem; color: var(--gold-dark); }
.card-link:hover { color: var(--black); }

/* Division cards */
.division-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.division-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); text-decoration: none; }
.division-card .icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 14%, white);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  color: var(--accent);
}
.division-card .icon svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.division-card h3 { font-size: 1.12rem; margin-bottom: 6px; color: var(--ink); }
.division-card p { font-size: 0.94rem; color: var(--muted); flex-grow: 1; }
.division-card .card-link { margin-top: 14px; }

/* Division accents */
.div-tech { --accent: #e3a008; }
.div-publishing { --accent: #9c6b30; }
.div-food { --accent: #c25e2a; }
.div-property { --accent: #46607a; }
.div-education { --accent: #2e6b5e; }
.div-residence { --accent: #6e7480; }

/* Brand cards */
.brand-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.brand-card .brand-tag {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--black);
  border-radius: 999px;
  padding: 4px 12px;
  align-self: flex-start;
  margin-bottom: 14px;
}
.brand-card--soon .brand-tag { background: var(--slate); }
.brand-card--soon { background: var(--off); border-style: dashed; }
.brand-card h3 { font-size: 1.3rem; }
.brand-card p { color: var(--muted); font-size: 0.95rem; flex-grow: 1; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background:
    linear-gradient(135deg, rgba(17,17,19,.94), rgba(17,17,19,.82)),
    repeating-linear-gradient(135deg, #1b1b1b 0 22px, #202020 22px 44px);
  color: var(--white);
  padding: 56px 0;
  border-bottom: 4px solid var(--gold);
}
.page-hero .eyebrow { color: var(--gold-light); }
.page-hero h1 { color: var(--white); margin-bottom: 10px; }
.page-hero p { color: var(--silver); font-size: 1.1rem; max-width: 720px; margin-bottom: 0; }
.page-hero .crumbs { font-size: 0.82rem; color: var(--silver); margin-bottom: 14px; }
.page-hero .crumbs a { color: var(--gold-light); }

/* ---------- Feature list / offerings ---------- */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  color: var(--text);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: inset 0 0 0 3.5px var(--white), inset 0 0 0 8px var(--gold);
}

/* ---------- Callout / note ---------- */
.callout {
  background: var(--gold-soft);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 22px;
  font-size: 0.95rem;
}
.callout--info { background: var(--silver-soft); border-left-color: var(--slate); }
.callout strong { display: block; margin-bottom: 4px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--black);
  color: var(--white);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  right: -120px; top: -140px;
  width: 420px; height: 420px;
  border-radius: 50%;
  border: 26px solid transparent;
  background:
    linear-gradient(var(--black), var(--black)) padding-box,
    conic-gradient(from 140deg, var(--gold), transparent 40%, var(--gold)) border-box;
  opacity: 0.35;
}
.cta-band h2 { color: var(--white); position: relative; }
.cta-band p { color: var(--silver); position: relative; max-width: 640px; }
.cta-band .btn-row { position: relative; }

/* ---------- Stats band (about) ---------- */
.stat-band { background: var(--off); border-block: 1px solid var(--line); }
.stat-band .grid { text-align: center; }
.stat-band .big { font-size: 2.4rem; font-weight: 800; color: var(--gold-dark); line-height: 1.1; }
.stat-band .lbl { font-size: 0.9rem; color: var(--muted); }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-size: 0.86rem; font-weight: 700; color: var(--ink); }
.form-field label .req { color: var(--danger); }
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font);
  font-size: 0.97rem;
  padding: 11px 13px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text);
  transition: border-color 0.15s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(227, 160, 8, 0.18);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 4px; }
.form-actions { margin-top: 20px; }

.form-success {
  display: none;
  background: var(--success-soft);
  border: 1.5px solid var(--success);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
}
.form-success .tick {
  width: 54px; height: 54px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--success);
  color: var(--white);
  font-size: 1.7rem;
  display: flex; align-items: center; justify-content: center;
}
.form-success h3 { color: var(--success); }
.form-success p { color: var(--text); margin-bottom: 0; }

/* ---------- Insights / article cards ---------- */
.article-card { display: flex; flex-direction: column; }
.article-card .meta {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 10px;
}
.article-card .date { font-size: 0.8rem; color: var(--muted); margin-top: auto; padding-top: 14px; }

/* ---------- Division cross-links ---------- */
.cross-links { display: flex; flex-wrap: wrap; gap: 10px; }
.cross-links a {
  border: 1.5px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}
.cross-links a:hover { border-color: var(--gold); color: var(--gold-dark); text-decoration: none; background: var(--gold-soft); }

/* ---------- Two-column layout ---------- */
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 44px; align-items: start; }
.split--even { grid-template-columns: 1fr 1fr; }

/* ---------- Footer ---------- */
.site-footer { background: #161616; color: #b9b9b9; padding: 56px 0 0; font-size: 0.92rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 34px;
  padding-bottom: 40px;
}
.footer-logo-chip {
  display: inline-block;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-bottom: 14px;
}
.footer-logo-chip img { height: 46px; width: auto; }
.site-footer h4 { color: var(--white); font-size: 0.86rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #b9b9b9; }
.site-footer a:hover { color: var(--gold-light); text-decoration: none; }
.footer-blurb { color: #9a9a9a; max-width: 300px; }
.footer-bottom {
  border-top: 1px solid #2c2c2c;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.84rem;
  color: #8a8a8a;
}
.footer-bottom .lang-toggle { border-color: #3a3a3a; }
.footer-bottom .lang-toggle button { color: #9a9a9a; }
.footer-bottom .lang-toggle button.active { background: var(--gold); color: var(--black); }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mt-24 { margin-top: 24px; } .mt-40 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }
.hidden { display: none !important; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag {
  font-size: 0.76rem;
  font-weight: 700;
  background: var(--gold-soft);
  color: var(--gold-dark);
  border: 1px solid rgba(227,160,8,.35);
  border-radius: 999px;
  padding: 4px 12px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hamburger { display: flex; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 14px 18px 22px;
    gap: 2px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    display: none;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 10px; font-size: 1rem; }
  .nav .btn--gold { margin: 10px 0 0; }
  .dropdown {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-left: 2px solid var(--gold);
    margin: 2px 0 6px 14px; padding: 2px 0 2px 8px; min-width: 0;
  }
  .nav-caret::after { content: ""; }
  .split, .split--even { grid-template-columns: 1fr; gap: 30px; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 52px 0; }
  .hero { padding: 60px 0 54px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand img { height: 44px; }
  .stats { flex-direction: column; }
  .btn-row .btn { width: 100%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .cta-band, .hamburger { display: none; }
  body { font-size: 12pt; }
}
