/* ==========================================================================
   Midnight & Emerald Theme — Vanguard Platform Advisory
   Deep navy, emerald accents, glassmorphic cards, radial mesh.
   Inspired by modern SaaS dark-mode aesthetics.
   ========================================================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --c-bg: #020617;
  --c-bg-card: rgba(15, 23, 42, 0.6);
  --c-text: #f8fafc;
  --c-text-muted: #94a3b8;
  --c-accent: #10b981;
  --c-accent-light: #34d399;
  --c-accent-glow: rgba(16, 185, 129, 0.15);
  --c-accent-deep: #022c22;
  --c-white: #ffffff;
  --c-border: rgba(51, 65, 85, 0.5);
  --c-border-hover: rgba(16, 185, 129, 0.5);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --max-width: 1200px;
  --nav-height: 72px;
  --radius-lg: 28px;
  --radius-md: 14px;
  --radius-sm: 6px;
}

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }

body.site {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Mesh gradient background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 10% 10%, rgba(16, 185, 129, 0.07) 0%, transparent 40%),
    radial-gradient(circle at 90% 90%, rgba(14, 165, 233, 0.07) 0%, transparent 40%);
  z-index: -1;
  pointer-events: none;
}

a { color: var(--c-accent); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--c-accent-light); }

/* --- Navigation (Frosted glass bar) --- */
.site__nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--c-white) !important;
  letter-spacing: -0.02em;
}

.nav__links {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--c-text-muted) !important;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  transition: color 0.2s ease;
}

.nav__link:hover {
  color: var(--c-accent) !important;
}

.nav__link--active {
  color: var(--c-accent-deep) !important;
  background: var(--c-accent);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

/* --- Mobile toggle --- */
.nav__toggle-input {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

.nav__toggle-label {
  display: none;
  cursor: pointer;
  width: 24px; height: 20px;
  position: relative;
  z-index: 101;
}

.nav__toggle-icon,
.nav__toggle-icon::before,
.nav__toggle-icon::after {
  display: block;
  width: 100%; height: 2px;
  background: var(--c-accent);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav__toggle-icon { position: relative; top: 9px; }
.nav__toggle-icon::before,
.nav__toggle-icon::after { content: ''; position: absolute; }
.nav__toggle-icon::before { top: -7px; }
.nav__toggle-icon::after { top: 7px; }

.nav__toggle-input:checked ~ .nav__toggle-label .nav__toggle-icon { background: transparent; }
.nav__toggle-input:checked ~ .nav__toggle-label .nav__toggle-icon::before { top: 0; transform: rotate(45deg); }
.nav__toggle-input:checked ~ .nav__toggle-label .nav__toggle-icon::after { top: 0; transform: rotate(-45deg); }

/* --- Main --- */
.site__main {
  margin-top: var(--nav-height);
}

/* --- Sections --- */
.section {
  padding: 6rem max(24px, 50% - var(--max-width) / 2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.section > *:not(.card) {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.section h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--c-white);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.section h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--c-white);
  margin-top: 3rem;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.section p {
  margin-bottom: 1.5rem;
  color: var(--c-text-muted);
  font-size: 1.05rem;
}

.section ul {
  padding-left: 1.75rem;
  margin-bottom: 2rem;
}

.section li {
  margin-bottom: 0.75rem;
  color: var(--c-text);
}

.section li::marker {
  color: var(--c-accent);
}

.section strong {
  color: var(--c-white);
  font-weight: 600;
}

/* --- Hero --- */
.section--hero {
  padding: 11rem max(24px, 50% - var(--max-width) / 2) 6rem;
  text-align: center;
  border-bottom: none;
}

.section--hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--c-white);
}

.section--hero p {
  font-size: 1.25rem;
  max-width: 55ch;
  margin-left: auto;
  margin-right: auto;
  color: var(--c-text-muted);
}

/* Hero strong text — emerald gradient */
.section--hero p strong {
  background: linear-gradient(to right, #10b981, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

/* Hero CTA buttons */
.section--hero p:last-child a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 1rem 2.25rem;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  margin: 0.5rem;
  transition: all 0.3s ease;
}

.section--hero p:last-child a:first-child {
  background: var(--c-accent);
  color: var(--c-accent-deep) !important;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.2);
}

.section--hero p:last-child a:first-child:hover {
  background: var(--c-accent-light);
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
  color: var(--c-accent-deep) !important;
}

.section--hero p:last-child a:last-child {
  background: rgba(255, 255, 255, 0.05);
  color: var(--c-white) !important;
  border: 1px solid var(--c-border);
}

.section--hero p:last-child a:last-child:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #64748b;
}

/* --- Cards (Glassmorphic) --- */
.card {
  max-width: var(--max-width);
  margin: 1.5rem auto;
  padding: 2.5rem;
  background: var(--c-bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  border-color: var(--c-accent);
  transform: translateY(-8px);
  box-shadow:
    0 30px 60px -20px rgba(0, 0, 0, 0.6),
    0 0 20px var(--c-accent-glow);
}

.card p:first-child strong {
  font-size: 1.25rem;
  color: var(--c-white);
  display: block;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.card p:last-child {
  margin-bottom: 0;
  color: var(--c-text-muted);
}

/* --- AI Approach lead-in --- */
.section--ai-approach > p > strong:first-child {
  color: var(--c-accent);
}

/* --- Track Record cards — sector header accent --- */
.section--track-record .card p:first-child strong {
  color: var(--c-accent);
}

/* --- About section values --- */
.section--about > p > strong:first-child {
  color: var(--c-accent);
}

/* --- Contact Form --- */
.form {
  max-width: 720px;
  margin: 3rem auto 0;
  padding: 3rem;
  background: var(--c-bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
}

.form__field {
  margin-bottom: 1.5rem;
}

.form__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-text-muted);
  margin-bottom: 0.5rem;
}

.form__input,
.form__textarea,
.form__select {
  width: 100%;
  padding: 1rem;
  font-family: inherit;
  font-size: 1rem;
  background: #0f172a;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  color: var(--c-white);
  transition: all 0.2s;
}

.form__input:focus,
.form__textarea:focus,
.form__select:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 4px var(--c-accent-glow);
}

.form__submit {
  width: 100%;
  padding: 1rem;
  background: var(--c-accent);
  color: var(--c-accent-deep);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.2);
}

.form__submit:hover {
  background: var(--c-accent-light);
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

/* --- Footer --- */
.site__footer {
  padding: 5rem 2rem;
  text-align: center;
  background: #010409;
  color: var(--c-text-muted);
  font-size: 0.9rem;
}

.footer__address {
  margin-top: 0.5rem;
  color: rgba(148, 163, 184, 0.4);
}

/* --- Responsive Nav --- */
@media (max-width: 1130px) {
  .nav__toggle-label { display: block; }

  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: rgba(2, 6, 23, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--c-border);
    padding: 1rem 1.5rem;
    flex-direction: column;
    gap: 0.25rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  }

  .nav__toggle-input:checked ~ .nav__links { display: flex; }

  .nav__link {
    font-size: 0.95rem;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
  }
}

@media (max-width: 900px) {
  .section { padding: 4rem 1.5rem; }
  .section--hero { padding: 9rem 1.5rem 4rem; }
  .section--hero h1 { font-size: 2.5rem; }
  .form { padding: 2rem; }
}

/* --- Card Grids --- */
@media (min-width: 768px) {
  .section--services-advisory,
  .section--services-delivery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  .section--services-advisory > *,
  .section--services-delivery > * {
    grid-column: 1 / -1;
  }
  .section--services-advisory > .card,
  .section--services-delivery > .card {
    grid-column: span 1;
    margin: 0;
  }
}
