/* COLOUR PALETTE
   Background  #F7F7F9
   Headline    #0E1720
   Body        #4B5560
   Accent      #BFA35B  (gold)
   Accent2     #9CA3AF  (slate)
*/

:root {
  --bg:           #F7F7F9;
  --headline:     #0E1720;
  --body-text:    #4B5560;
  --accent:       #BFA35B;
  --accent-hover: #a88d4a;
  --accent-soft:  rgba(191, 163, 91, 0.14);
  --slate:        #9CA3AF;
  --dark:         #0E1720;
  --radius-lg:    1.25rem;
  --radius-xl:    1.75rem;
  --shadow-card:  0 2px 16px rgba(14, 23, 32, 0.08);
  --shadow-hover: 0 8px 32px rgba(14, 23, 32, 0.14);
  --max-width:    1120px;
}

/* ── RESET ─────────────────────────────────────── */

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

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--body-text);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

.page { display: block; }

.section-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 24px;
}

/* ── NAV ────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid rgba(14, 23, 32, 0.08);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}

.logo-mark { display: inline-flex; align-items: center; }

.logo-img { height: 32px; width: auto; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.875rem;
  font-weight: 500;
}

.nav-links a {
  position: relative;
  padding: 4px 0;
  color: var(--headline);
  transition: color 0.15s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  border-radius: 999px;
  background: var(--accent);
  transition: width 0.18s ease;
}

.nav-links a:hover::after { width: 100%; }

/* ── HOME ───────────────────────────────────────── */

#home { overflow: hidden; }

.home-split {
  display: grid;
  grid-template-columns: 2fr 3fr;
  min-height: calc(100vh - 61px);
}

.home-left {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.home-left-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: left center;
  filter: blur(20px) brightness(0.38);
  transform: scale(1.08);
  pointer-events: none;
  z-index: 0;
}

.home-left-content {
  position: relative;
  z-index: 1;
  padding: 64px 52px;
}

.home-right { position: relative; overflow: hidden; }

#bg-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: left center;
  pointer-events: none;
}

.hero-title {
  font-size: clamp(2.2rem, 3.2vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 20px;
}

.hero-highlight {
  color: var(--accent);
}

.hero-sub {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 400px;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── BUTTONS ────────────────────────────────────── */

.btn-primary {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: background 0.18s ease;
}

.btn-primary:hover { background: var(--accent-hover); }

.btn-primary--gold {
  background: var(--accent);
  color: #fff;
}

.btn-primary--gold:hover { background: var(--accent-hover); }

/* ── SECTION SHARED ─────────────────────────────── */

.section-title {
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--headline);
  margin-bottom: 16px;
}

.section-intro {
  max-width: 600px;
  font-size: 1rem;
  color: var(--body-text);
  line-height: 1.7;
  margin-bottom: 48px;
}

/* ── SOLUTIONS ──────────────────────────────────── */

#solutions { background: var(--bg); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 960px) {
  .card-grid { grid-template-columns: minmax(0, 1fr); }
}

.solution-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(14, 23, 32, 0.09);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.solution-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(191, 163, 91, 0.4);
}

.solution-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.solution-icon-svg { width: 100%; height: 100%; display: block; }

/* Icon classes */
.icon-gridline {
  stroke: rgba(14, 23, 32, 0.10);
  stroke-width: 1;
}

.icon-dot-strong { fill: var(--accent); }
.icon-dot-mid    { fill: var(--accent); opacity: 0.5; }
.icon-dot-soft   { fill: var(--accent); opacity: 0.25; }

.icon-ring {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
}

.icon-ring-outer { opacity: 0.2; }
.icon-ring-mid   { opacity: 0.5; }
.icon-ring-inner { opacity: 0.85; }

.icon-trend {
  fill: none;
  stroke: rgba(14, 23, 32, 0.15);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.solution-title {
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--headline);
}

.solution-body {
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--body-text);
}

/* ── TEAM ───────────────────────────────────────── */

#team { background: #fff; }

.team-card {
  align-items: center;
  text-align: center;
  background: var(--bg);
}

.team-photo-wrap {
  width: 156px;
  height: 156px;
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid rgba(191, 163, 91, 0.35);
  margin-bottom: 12px;
  flex-shrink: 0;
}

.team-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}

.team-name-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.team-role-label {
  color: var(--accent);
  font-weight: 500;
  font-size: 0.88rem;
}

.linkedin-link {
  display: inline-flex;
  align-items: center;
  color: #0A66C2;
  flex-shrink: 0;
  transition: opacity 0.15s;
}

.linkedin-link:hover { opacity: 0.75; }

.linkedin-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
  display: block;
}

/* ── CONTACT ────────────────────────────────────── */

#contact {
  background: var(--dark);
  color: #fff;
}

.contact-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}

.contact-logo-img {
  height: 48px;
  width: auto;
  margin-bottom: 8px;
}

.contact-title {
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
}

.contact-body {
  color: var(--slate);
  font-size: 1rem;
  max-width: 400px;
}

.contact-copy {
  color: rgba(156, 163, 175, 0.5);
  font-size: 0.78rem;
  margin-top: 16px;
}

/* ── MODAL ──────────────────────────────────────── */

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(14, 23, 32, 0.6);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.is-open { display: flex; }

.modal-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  width: 100%;
  max-width: 520px;
  position: relative;
  box-shadow: 0 32px 80px rgba(14, 23, 32, 0.3);
}

.modal-close {
  position: absolute;
  top: 16px; right: 20px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--slate);
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
}

.modal-close:hover { color: var(--headline); }

.modal-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--headline);
  margin-bottom: 6px;
}

.modal-sub {
  font-size: 0.9rem;
  color: var(--body-text);
  margin-bottom: 24px;
}

/* ── CONTACT FORM ───────────────────────────────── */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-field label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--headline);
}

.form-field input,
.form-field textarea {
  border: 1px solid rgba(14, 23, 32, 0.15);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--headline);
  outline: none;
  background: var(--bg);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.btn-form-submit {
  width: 100%;
  padding: 13px;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  border-radius: 8px;
}

.btn-form-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.form-status {
  font-size: 0.85rem;
  text-align: center;
  min-height: 1.2em;
}

.form-status--ok  { color: var(--accent); }
.form-status--err { color: #c0392b; }

/* ── RESPONSIVE ─────────────────────────────────── */

@media (max-width: 900px) {
  .home-split { grid-template-columns: 1fr; }
  .home-right { min-height: 320px; }
  .home-left-content { padding: 56px 24px; }
}

@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
  .modal-card { padding: 28px 20px; }
}
