/* Grace Technologies — Color tokens
   Derived from the site's Tailwind palette: purple-700 → blue-500 brand gradient,
   neutral grays, and semantic accents (green for compliance, yellow for ratings). */

:root {
  /* ---- Brand: Purple (primary) ---- */
  --purple-50:  #f5f3ff;
  --purple-100: #ede9fe;
  --purple-200: #ddd6fe;
  --purple-300: #c4b5fd;
  --purple-500: #8b5cf6;
  --purple-700: #6d28d9; /* primary brand */
  --purple-800: #5b21b6; /* primary hover/press */

  /* ---- Brand: Blue (secondary) ---- */
  --blue-50:  #eff6ff;
  --blue-100: #dbeafe;
  --blue-500: #3b82f6; /* secondary brand */
  --blue-600: #2563eb; /* secondary hover */

  /* ---- Neutrals ---- */
  --white:    #ffffff;
  --gray-50:  #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --black:    #000000;

  /* ---- Semantic accents ---- */
  --green-50:  #f0fdf4;
  --green-500: #22c55e;
  --green-700: #15803d;
  --yellow-400: #facc15; /* star ratings */
  --red-500:   #ef4444;

  /* ---- Brand gradients ---- */
  --brand-gradient:    linear-gradient(to right, var(--purple-700), var(--blue-500));
  --brand-gradient-br: linear-gradient(to bottom right, var(--purple-700), var(--blue-500));
  --brand-wash:        linear-gradient(to right, var(--purple-50), var(--blue-50));

  /* ---- Semantic aliases ---- */
  --color-primary:        var(--purple-700);
  --color-primary-hover:  var(--purple-800);
  --color-secondary:      var(--blue-500);
  --color-secondary-hover:var(--blue-600);

  --text-strong:   var(--gray-900);
  --text-heading:  var(--gray-800);
  --text-body:     var(--gray-600);
  --text-muted:    var(--gray-500);
  --text-on-brand: var(--white);
  --text-on-brand-dim: rgba(255, 255, 255, 0.85);

  --surface-page:  var(--gray-50);
  --surface-card:  var(--white);
  --surface-soft:  var(--purple-50);
  --surface-brand: var(--brand-gradient-br);

  --border-subtle: var(--gray-200);
  --border-input:  var(--gray-300);

  --ring-focus:    var(--purple-500);

  --success:       var(--green-500);
  --success-bg:    var(--green-50);
  --success-text:  var(--green-700);
}

/* Grace Technologies — Typography tokens
   The site uses Tailwind's default sans stack (system UI fonts) with bold,
   high-contrast headings. No webfont is loaded by the source app, so we
   ship the same native system stack — nothing to download, renders everywhere. */

:root {
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
               Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Type scale (Tailwind-aligned) */
  --text-xs:   0.75rem;   /* 12px */
  --text-sm:   0.875rem;  /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg:   1.125rem;  /* 18px */
  --text-xl:   1.25rem;   /* 20px */
  --text-2xl:  1.5rem;    /* 24px */
  --text-3xl:  1.875rem;  /* 30px */
  --text-4xl:  2.25rem;   /* 36px */
  --text-5xl:  3rem;      /* 48px */
  --text-7xl:  4.5rem;    /* 72px */

  /* Weights */
  --weight-normal:   400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;

  /* Line heights */
  --leading-tight:   1.1;
  --leading-snug:    1.25;
  --leading-normal:  1.5;
  --leading-relaxed: 1.625;
}

/* Grace Technologies — Spacing, radius & layout tokens (Tailwind-aligned) */

:root {
  /* Spacing scale */
  --space-1:  0.25rem;  /*  4px */
  --space-2:  0.5rem;   /*  8px */
  --space-3:  0.75rem;  /* 12px */
  --space-4:  1rem;     /* 16px */
  --space-6:  1.5rem;   /* 24px */
  --space-8:  2rem;     /* 32px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */

  /* Radii */
  --radius-md:   0.375rem; /* 6px  — buttons, inputs */
  --radius-lg:   0.5rem;   /* 8px  — small cards */
  --radius-xl:   0.75rem;  /* 12px — cards (the brand default) */
  --radius-full: 9999px;   /* pills, avatars */

  /* Layout */
  --container-max: 80rem;  /* max-w-7xl = 1280px */
  --container-pad: 1rem;
  --nav-height:    6rem;   /* h-24 */
}

/* Grace Technologies — Shadow, blur & motion tokens */

:root {
  /* Shadows (Tailwind lg / xl — the brand's resting & hover card elevations) */
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

  /* Glass pill used on brand gradients (backdrop-blur + translucent white) */
  --glass-bg:   rgba(255, 255, 255, 0.1);
  --glass-blur: blur(6px); /* @kind other */

  /* Dark overlay laid over hero gradients */
  --overlay-dark: rgba(0, 0, 0, 0.1);

  /* Motion — the site favors smooth color/shadow transitions and a 1s hero fade-up */
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1); /* @kind other */
  --duration-fast:  150ms; /* @kind other */
  --duration-base:  300ms; /* @kind other */
  --duration-slow:  1000ms; /* @kind other */
  --transition-colors: color var(--duration-base) var(--ease-standard),
                       background-color var(--duration-base) var(--ease-standard),
                       border-color var(--duration-base) var(--ease-standard);
  --transition-shadow: box-shadow var(--duration-base) var(--ease-standard);
}

/* ---- Grace Technologies static site ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-sans); color: var(--text-body); background: #fff; }
:root {
  --v2-dark: #14102b; --v2-dark-2: #1c1740;
  --v2-dark-line: rgba(255,255,255,0.08); --v2-dark-text: rgba(255,255,255,0.72);
}
img { max-width: 100%; }
a { color: var(--purple-700); }
a:hover { color: var(--purple-500); }
.wrap { max-width: var(--container-max); margin: 0 auto; padding: 0 1rem; }

/* Top bar + nav */
.topbar { background: var(--v2-dark); color: var(--v2-dark-text); font-size: var(--text-xs); }
.topbar .wrap { padding-top: 6px; padding-bottom: 6px; display: flex; justify-content: space-between; gap: 16px; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; }
.topbar .i { color: var(--purple-300); }
.nav { background: rgba(255,255,255,0.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border-subtle); position: sticky; top: 0; z-index: 50; }
.nav .wrap { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav-logo img { height: 46px; display: block; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { padding: 8px 14px; font-size: var(--text-sm); font-weight: 500; border-radius: var(--radius-md); color: var(--text-body); text-decoration: none; }
.nav-links a:hover { background: var(--gray-50); }
.nav-links a.on { color: var(--purple-700); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-mobile { display: none; border-top: 1px solid var(--border-subtle); background: #fff; padding: 8px 1rem 16px; flex-direction: column; gap: 2px; }
.nav-mobile a { padding: 12px 14px; font-size: var(--text-sm); font-weight: 500; border-radius: var(--radius-md); color: var(--text-body); text-decoration: none; }
.nav-mobile.open { display: flex; }

/* Buttons + chips */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: var(--radius-lg); font-weight: 600; font-size: var(--text-sm); text-decoration: none; border: none; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--brand-gradient-br, linear-gradient(135deg, var(--purple-700), var(--blue-500))); color: #fff; }
.btn-primary:hover { color: #fff; opacity: 0.92; }
.btn-outline { border: 1px solid var(--v2-dark-line); color: #fff; background: rgba(255,255,255,0.06); }
.btn-outline:hover { color: #fff; background: rgba(255,255,255,0.12); }
.btn-light { background: #fff; color: var(--purple-700); }
.btn-sm { padding: 8px 18px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: var(--radius-full); font-size: var(--text-sm); font-weight: 500; border: 1px solid var(--border-subtle); background: #fff; color: var(--text-body); }
.chip .i { color: var(--purple-700); }
.chip-dark { border-color: var(--v2-dark-line); background: rgba(255,255,255,0.05); color: var(--v2-dark-text); }
.chip-dark .i { color: var(--purple-300); }
.badge { display: inline-block; padding: 4px 12px; border-radius: var(--radius-full); background: var(--purple-50); color: var(--purple-700); font-size: var(--text-xs); font-weight: 600; }

/* Hero */
.hero-dark { position: relative; padding: 100px 0 84px; color: #fff; overflow: hidden; text-align: center;
  background: radial-gradient(1100px 500px at 70% -10%, rgba(109,40,217,0.55), transparent 65%), radial-gradient(800px 420px at 15% 110%, rgba(59,130,246,0.35), transparent 60%), var(--v2-dark); }
.hero-dark::before { content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(var(--v2-dark-line) 1px, transparent 1px), linear-gradient(90deg, var(--v2-dark-line) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 40%, transparent 100%); mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 40%, transparent 100%); }
.hero-dark .wrap { position: relative; }
.hero-dark h1 { font-size: var(--text-7xl); font-weight: 700; margin: 0 0 20px; line-height: 1.05; }
.hero-dark .sub { font-size: var(--text-xl); max-width: 46rem; margin: 0 auto 36px; color: var(--v2-dark-text); line-height: 1.6; }
.hero-light { background: linear-gradient(to bottom, var(--purple-50), #fff); border-bottom: 1px solid var(--border-subtle); padding: 64px 0 48px; }
.hero-light .eyebrow { color: var(--purple-700); font-weight: 600; font-size: var(--text-sm); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; }
.hero-light h1 { font-size: var(--text-5xl); font-weight: 700; margin: 0 0 16px; color: var(--text-strong); line-height: 1.1; }
.hero-light .intro { font-size: var(--text-xl); max-width: 48rem; margin: 0; color: var(--text-body); line-height: 1.5; }

/* Sections + cards */
.sec { padding: 80px 0; }
.sec-gray { background: var(--gray-50); }
.sec-dark { background: var(--v2-dark); color: #fff; }
.sec-wash { background: var(--brand-wash, var(--purple-50)); }
.sec-h { text-align: center; max-width: 44rem; margin: 0 auto 48px; }
.sec-h h2 { font-size: var(--text-4xl); font-weight: 700; margin: 0 0 14px; color: var(--text-strong); }
.sec-dark .sec-h h2 { color: #fff; }
.sec-h p { font-size: var(--text-lg); color: var(--text-muted); margin: 0; line-height: 1.6; }
.sec-dark .sec-h p { color: var(--v2-dark-text); }
.card { background: #fff; border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); padding: 28px; }
a.card { display: block; text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s; }
a.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); color: inherit; }
.card h3 { font-size: var(--text-xl); font-weight: 600; margin: 0 0 10px; color: var(--text-heading); }
.card p { color: var(--text-body); font-size: var(--text-sm); line-height: 1.65; margin: 0; }
.card .i-lg { color: var(--purple-700); margin-bottom: 16px; }
.card-dark { background: var(--v2-dark-2); border-color: var(--v2-dark-line); }
.card-dark h3 { color: #fff; }
.card-dark p { color: var(--v2-dark-text); }
.card-dark .i-lg { color: var(--purple-300); }
.more { display: inline-flex; align-items: center; gap: 6px; color: var(--purple-700); font-weight: 600; font-size: var(--text-sm); margin-top: 16px; }
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: 1fr 1fr; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g6 { grid-template-columns: repeat(6, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Steps */
.step { display: flex; gap: 20px; align-items: flex-start; background: #fff; border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); padding: 20px 24px; }
.step .n { font-size: var(--text-2xl); font-weight: 700; color: var(--purple-300); flex: none; line-height: 1.3; }
.step h3 { font-size: var(--text-lg); font-weight: 600; margin: 0 0 6px; color: var(--text-heading); display: flex; align-items: center; gap: 8px; }
.step p { color: var(--text-body); margin: 0; font-size: var(--text-sm); line-height: 1.6; }

/* Services catalog */
.svc-cat { margin-bottom: 56px; }
.svc-cat > h2 { font-size: var(--text-3xl); font-weight: 700; margin: 0 0 8px; color: var(--text-strong); display: flex; align-items: center; gap: 12px; }
.svc-cat > .intro { color: var(--text-body); margin: 0 0 24px; line-height: 1.6; }
.svc-group h3 { font-size: var(--text-lg); font-weight: 600; color: var(--purple-700); margin: 24px 0 12px; }
.svc-item { display: flex; align-items: flex-start; gap: 10px; background: var(--gray-50); border-radius: var(--radius-lg); padding: 12px 16px; text-decoration: none; color: var(--text-heading); font-size: var(--text-sm); line-height: 1.5; margin-bottom: 10px; border: 1px solid transparent; }
.svc-item:hover { border-color: var(--purple-200); color: var(--text-heading); }
.svc-item .i { color: var(--purple-500); flex: none; margin-top: 1px; }
.svc-item .hint { margin-left: auto; flex: none; color: var(--purple-700); font-weight: 600; font-size: var(--text-xs); display: inline-flex; align-items: center; gap: 4px; }
.cat-nav { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin: 0 0 40px; }
.cat-nav a { text-decoration: none; background: #fff; border: 1px solid var(--border-subtle); border-top: 3px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 14px; color: var(--text-heading); }
.cat-nav a:hover { border-top-color: var(--purple-700); box-shadow: var(--shadow-lg); }
.cat-nav .t { display: block; font-weight: 600; font-size: var(--text-sm); line-height: 1.3; margin-top: 10px; }
.cat-nav .s { display: block; font-size: var(--text-xs); color: var(--text-muted); margin-top: 4px; }

/* Item detail */
.crumb { display: inline-flex; align-items: center; gap: 6px; color: var(--purple-700); font-weight: 600; font-size: var(--text-sm); text-decoration: none; margin-bottom: 18px; }
.adv { display: flex; gap: 16px; align-items: flex-start; background: var(--v2-dark); border-radius: var(--radius-xl); padding: 24px 28px; margin-bottom: 32px; }
.adv .i { color: var(--purple-300); flex: none; margin-top: 2px; }
.adv b { color: #fff; display: block; margin-bottom: 6px; }
.adv p { color: var(--v2-dark-text); margin: 0; line-height: 1.65; }
.pc-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.pc-list li { display: flex; gap: 10px; align-items: flex-start; font-size: var(--text-sm); line-height: 1.6; color: var(--text-body); }
.pc-list .dot { width: 6px; height: 6px; border-radius: 50%; margin-top: 7px; flex: none; }
.phase { display: flex; align-items: center; }
.phase .tick { flex: none; width: 22px; border-top: 2px solid var(--purple-200); }
.phase .box { flex: 1; display: flex; align-items: baseline; gap: 12px; background: var(--gray-50); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 10px 16px; flex-wrap: wrap; }
.phase .box b { color: var(--purple-700); font-size: var(--text-sm); flex: none; }
.phase .box span { color: var(--text-muted); font-size: var(--text-xs); line-height: 1.5; }
.mindmap { display: flex; align-items: center; min-width: 560px; }
.mindmap .root { flex: none; background: var(--brand-gradient-br, linear-gradient(135deg, var(--purple-700), var(--blue-500))); color: #fff; font-weight: 700; border-radius: var(--radius-xl); padding: 18px 24px; text-align: center; max-width: 170px; line-height: 1.3; }
.mindmap .root small { display: block; font-weight: 500; font-size: var(--text-xs); opacity: 0.85; margin-top: 4px; }
.mindmap .trunk { flex: none; width: 28px; border-top: 2px solid var(--purple-200); }
.mindmap .branches { flex: 1; border-left: 2px solid var(--purple-200); display: flex; flex-direction: column; gap: 12px; padding: 4px 0; }

/* Forms */
.field label { display: block; font-weight: 500; font-size: var(--text-sm); color: var(--text-heading); margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; padding: 10px 14px; border: 1px solid var(--border-input, var(--gray-300)); border-radius: var(--radius-lg); font-family: inherit; font-size: var(--text-sm); color: var(--text-heading); background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--purple-300); border-color: var(--purple-500); }
.field .err { color: var(--red-500); font-size: var(--text-xs); margin-top: 4px; display: none; }
.field.bad .err { display: block; }
.form-error { display: none; margin-top: 16px; padding: 12px 16px; border-radius: var(--radius-lg); background: #fef2f2; border: 1px solid #fecaca; color: var(--red-500); font-size: var(--text-sm); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Footer */
footer { background: var(--v2-dark); color: var(--v2-dark-text); }
.f-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-top: 56px; }
.f-grid h4 { font-size: var(--text-sm); font-weight: 600; color: #fff; margin: 0 0 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.f-grid a { display: block; color: var(--v2-dark-text); text-decoration: none; font-size: var(--text-sm); margin-bottom: 10px; }
.f-grid a:hover { color: #fff; }
.f-grid p { margin: 0 0 10px; font-size: var(--text-sm); line-height: 1.6; }
.f-brand { font-size: var(--text-lg); font-weight: 700; color: #fff; margin-bottom: 10px; }
.f-line { display: flex; gap: 8px; align-items: center; font-size: var(--text-sm); margin-bottom: 10px; }
.f-line .i { color: var(--purple-300); }
.f-certs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.f-certs span { font-size: var(--text-xs); padding: 4px 10px; border-radius: var(--radius-full); border: 1px solid var(--v2-dark-line); }
.f-bottom { border-top: 1px solid var(--v2-dark-line); margin-top: 48px; padding: 20px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: var(--text-xs); }
.f-bottom a { color: var(--v2-dark-text); text-decoration: none; margin-left: 16px; }

.i { width: 1em; height: 1em; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .g2, .g3, .g4, .split { grid-template-columns: 1fr !important; }
  .g6, .cat-nav { grid-template-columns: repeat(2, 1fr) !important; }
  .f-grid { grid-template-columns: 1fr 1fr; }
  .topbar .extra { display: none; }
  .hero-dark h1 { font-size: var(--text-5xl); }
  .hero-light h1 { font-size: var(--text-4xl); }
}
