/* Dynamic Offsite — brand palette */
:root {
  --black: #1A1A1A;
  --purple: #9B59C6;
  --purple-dark: #7E44A6;
  --grey: #F2F2F3;
  --dark: #262626;
  --white: #FFFFFF;
  --text: #2B2B2B;
  --muted: #6B6B6E;
  --maxw: 1180px;
  --radius: 6px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--purple-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { color: var(--black); line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0; }
.section-grey { background: var(--grey); }
.section-dark { background: var(--dark); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p, .section-dark li { color: #D9D9DC; }
.kicker {
  display: inline-block; text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.78rem; font-weight: 600; color: var(--purple); margin-bottom: 0.9rem;
}
.lead { font-size: 1.1rem; max-width: 780px; }
.center { text-align: center; }
.center .lead { margin: 0 auto; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(26, 26, 26, 0.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-header .bar {
  max-width: 1320px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 72px;
}
.logo { font-weight: 800; font-size: 1.05rem; letter-spacing: 0.06em; color: var(--white); text-decoration: none; line-height: 1.1; }
.logo:hover { text-decoration: none; }
.logo span { color: var(--purple); display: block; font-size: 0.72rem; letter-spacing: 0.34em; font-weight: 700; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: #E8E8EA; font-size: 0.92rem; font-weight: 500; }
.nav a:hover { color: var(--white); text-decoration: none; }
.nav .btn { color: var(--white); }
.dropdown { position: relative; }
.dropdown > a::after { content: " ▾"; font-size: 0.7em; }
.dropdown-menu {
  display: none; position: absolute; top: 100%; left: -12px; padding: 10px 0; min-width: 190px;
  background: var(--dark); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius);
}
.dropdown-menu a { display: block; padding: 8px 18px; font-size: 0.88rem; }
.dropdown-menu a:hover { background: rgba(155,89,198,0.18); }
.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu { display: block; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; transition: 0.2s; }

/* ---------- Buttons / CTAs ---------- */
.btn {
  display: inline-block; background: var(--purple); color: var(--white) !important;
  padding: 13px 26px; border-radius: var(--radius); font-weight: 600; font-size: 0.95rem;
  border: 0; cursor: pointer; transition: background 0.15s;
}
.btn:hover { background: var(--purple-dark); text-decoration: none; }
.arrow-link { font-weight: 600; white-space: nowrap; }
.arrow-link::after { content: " →"; display: inline-block; transition: transform 0.15s; }
.arrow-link:hover::after { transform: translateX(4px); }
.cta-row { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; margin-top: 1.6rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 88vh; display: flex; align-items: flex-end;
  background-size: cover; background-position: center; margin-top: 72px; padding: 0;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(26,26,26,0.05) 0%, rgba(26,26,26,0.55) 60%, rgba(26,26,26,0.82) 100%);
}
.hero-content {
  position: relative; max-width: 620px; padding: 0 6vw 9vh 7vw; color: var(--white);
}
.hero-content h1 { color: var(--white); margin-bottom: 1rem; }
.hero-content p { font-size: 1.08rem; color: #EDEDEF; }
.hero-content .arrow-link { color: var(--white); }
.hero-note { font-size: 0.88rem; color: #C9C9CE; margin-top: 1.1rem; }

/* Light hero: image clearly visible, small gradient only behind text */
.hero-light::before {
  background: linear-gradient(to top, rgba(26,26,26,0.68) 0%, rgba(26,26,26,0.25) 32%, rgba(26,26,26,0) 55%);
}

/* ---------- Icon process graphic ---------- */
.process-panel { background: #F7F7F8; border-radius: 14px; padding: 52px 44px 44px; margin-top: 2.5rem; }
.process-icons { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.pi { flex: 1; min-width: 110px; text-align: center; color: var(--purple); }
.pi svg { width: 58px; height: 58px; margin: 0 auto 16px; display: block; }
.pi .label {
  font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--black); font-size: 0.92rem;
}
.process-arrow { margin-top: 34px; }
.process-arrow svg { width: 100%; height: 22px; display: block; }
@media (max-width: 700px) {
  .process-panel { padding: 36px 24px; }
  .process-icons { justify-content: center; }
  .pi { flex: 0 0 40%; margin-bottom: 20px; }
}

/* ---------- Text-only sector cards ---------- */
.sector-card { text-align: center; padding: 36px 26px; }
.sector-card h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.sector-card p { font-size: 0.95rem; }

/* ---------- Trust bar ---------- */
.trust-bar { background: var(--black); padding: 18px 0; }
.trust-bar ul {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center;
  gap: 12px 34px; max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
}
.trust-bar li { color: #D5D5D9; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.trust-bar li::before { content: "✓ "; color: var(--purple); }

/* ---------- Built-for strip ---------- */
.built-for { background: var(--purple); padding: 34px 0; }
.built-for p { color: var(--white); font-size: 1.12rem; font-weight: 600; max-width: 900px; }

/* ---------- Grids / cards ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  border: 1px solid #E4E4E7; display: flex; flex-direction: column;
}
.card img { height: 210px; object-fit: cover; width: 100%; }
.card .card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.card .card-body p { font-size: 0.94rem; flex: 1; }
.card .arrow-link { margin-top: 14px; }
.rounded { border-radius: var(--radius); }
.img-cover { width: 100%; height: 100%; min-height: 320px; object-fit: cover; border-radius: var(--radius); }

/* ---------- Feature list ---------- */
.feature-list { list-style: none; margin-top: 1.2rem; }
.feature-list li { padding: 9px 0 9px 30px; position: relative; }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 16px; width: 16px; height: 16px;
  background: var(--purple); border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='white' d='M6.5 10.6 3.9 8l-1 1 3.6 3.6 7-7-1-1z'/%3E%3C/svg%3E");
  background-size: 12px; background-position: center; background-repeat: no-repeat;
}
.feature-list strong { color: var(--black); }
.section-dark .feature-list strong { color: var(--white); }

/* ---------- Process graphic ---------- */
.process { display: flex; flex-wrap: wrap; gap: 10px; margin: 2rem 0 1rem; }
.process .step {
  flex: 1 1 150px; background: var(--white); border: 2px solid var(--purple);
  border-radius: var(--radius); padding: 16px 12px; text-align: center; position: relative;
}
.process .step .num { color: var(--purple); font-weight: 800; font-size: 0.8rem; letter-spacing: 0.1em; }
.process .step .name { font-weight: 700; color: var(--black); font-size: 1.02rem; }
.section-dark .process .step { background: var(--dark); }
.section-dark .process .step .name { color: var(--white); }
.process-sub { color: var(--muted); font-size: 0.92rem; }

/* ---------- Projects gallery ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 2rem; }
.filters button {
  background: var(--white); border: 1.5px solid #D8D8DC; border-radius: 999px;
  padding: 9px 22px; font-weight: 600; font-size: 0.9rem; cursor: pointer; color: var(--text);
}
.filters button.active { background: var(--black); border-color: var(--black); color: var(--white); }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.project-card { border: 1px solid #E4E4E7; border-radius: var(--radius); overflow: hidden; background: var(--white); display: flex; flex-direction: column; }
.project-card img { height: 230px; width: 100%; object-fit: cover; }
.project-card .pc-body { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; }
.pc-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.tag { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 4px 10px; border-radius: 999px; }
.tag-system { background: var(--purple); color: var(--white); }
.tag-sector { background: var(--grey); color: var(--text); }
.project-card h3 { font-size: 1.08rem; }
.pc-loc { color: var(--muted); font-size: 0.85rem; margin-bottom: 8px; }
.project-card p { font-size: 0.92rem; flex: 1; }
.project-card .btn { margin-top: 16px; align-self: flex-start; padding: 10px 20px; font-size: 0.88rem; }

/* ---------- Modal ---------- */
.modal-overlay {
  display: none; position: fixed; inset: 0; background: rgba(26,26,26,0.7); z-index: 200;
  align-items: center; justify-content: center; padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white); border-radius: 8px; max-width: 520px; width: 100%;
  max-height: 90vh; overflow-y: auto; padding: 36px;
  position: relative;
}
.modal-close {
  position: absolute; top: 14px; right: 16px; background: none; border: 0;
  font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--muted);
}
.modal h3 { font-size: 1.35rem; margin-bottom: 4px; }
.modal .modal-sub { color: var(--muted); font-size: 0.92rem; margin-bottom: 20px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; color: var(--black); }
.form-field input, .form-field select, .form-field textarea {
  padding: 12px 14px; border: 1.5px solid #D8D8DC; border-radius: var(--radius);
  font: inherit; font-size: 0.95rem; background: var(--white); color: var(--text);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--purple);
}
.form-note { color: var(--muted); font-size: 0.88rem; margin-top: 12px; }
.form-success { display: none; background: #F3EAF9; border: 1.5px solid var(--purple); border-radius: var(--radius); padding: 18px 20px; margin-top: 16px; font-weight: 500; }

/* ---------- Stats / credentials ---------- */
.cred-strip { display: flex; flex-wrap: wrap; gap: 12px 30px; justify-content: center; padding: 8px 0; }
.cred-strip span { font-weight: 700; font-size: 0.88rem; letter-spacing: 0.03em; color: var(--black); }
.cred-strip span::before { content: "● "; color: var(--purple); font-size: 0.7em; vertical-align: 2px; }
.section-dark .cred-strip span { color: var(--white); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--black); text-align: center; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: #D9D9DC; max-width: 720px; margin: 0 auto; }
.cta-band .cta-row { justify-content: center; }
.cta-band .arrow-link { color: var(--white); }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: #B9B9BF; padding: 64px 0 32px; font-size: 0.9rem; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 44px; margin-bottom: 44px; }
.site-footer h4 { color: var(--white); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 14px; }
.site-footer a { color: #B9B9BF; display: block; padding: 3px 0; }
.site-footer a:hover { color: var(--white); }
.site-footer .fine { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; font-size: 0.8rem; color: #8C8C92; }
.footer-logo { font-weight: 800; letter-spacing: 0.06em; color: var(--white); font-size: 1rem; margin-bottom: 12px; }
.footer-logo span { color: var(--purple); display: block; font-size: 0.68rem; letter-spacing: 0.34em; }

/* ---------- Two-col text/img sections ---------- */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.split.rev { grid-template-columns: 1fr 1.1fr; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3, .grid-4, .project-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .split.rev, .grid-2 { grid-template-columns: 1fr; gap: 32px; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--black); flex-direction: column; align-items: flex-start;
    padding: 18px 24px 26px; gap: 4px; border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; font-size: 1rem; width: 100%; }
  .nav .btn { margin-top: 10px; text-align: center; }
  .dropdown-menu { position: static; display: block; border: 0; padding: 0 0 0 16px; background: transparent; }
  .dropdown > a::after { content: ""; }
  .nav-toggle { display: block; }
  .hero { min-height: 65vh; }
  .hero-content { padding: 0 24px 7vh; }
  section { padding: 52px 0; }
}
@media (max-width: 560px) {
  .grid-3, .grid-4, .project-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr; }
}
