/* ============================================================
   components.css — header, buttons, cards, table, steps, FAQ,
   modal, form, footer

   Card-based presentation per the content brief: white surfaces,
   soft border, gentle shadow, lift on hover. One primary button
   style used for the single page-wide CTA; everything else reads
   as visually subordinate.
   ============================================================ */

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  font-weight: 600; font-size: var(--fs-base); letter-spacing: -0.005em;
  padding: 0.85rem 1.6rem; border-radius: var(--radius-pill);
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease), transform 0.25s var(--ease),
              box-shadow 0.25s var(--ease);
  white-space: nowrap; border: 2px solid transparent; text-align: center;
}
/* THE primary CTA. Used for "Request GCC IT Readiness Assessment" only. */
.btn--primary { background: var(--primary); color: var(--gray-900); box-shadow: var(--shadow-md); }
.btn--primary:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
/* Secondary actions must not compete with the primary. */
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); box-shadow: none; }
.btn--ghost:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn--outline { background: transparent; color: var(--blue-600); border-color: var(--gray-300); box-shadow: none; }
.btn--outline:hover { border-color: var(--blue-600); background: var(--blue-50); }
.btn--light { background: #fff; color: var(--blue-900); box-shadow: var(--shadow-md); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn--block { width: 100%; }
.btn--lg { padding: 1rem 2rem; font-size: var(--fs-lg); }
.btn--sm { padding: 0.6rem 1.1rem; font-size: var(--fs-sm); }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: #ffffff;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(49,38,99,0.10);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header__bar {
  min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: nowrap; gap: var(--sp-5);
  transition: min-height 0.3s var(--ease);
}
.site-header.scrolled { background: #ffffff; box-shadow: 0 6px 24px rgba(49,38,99,0.12); }
.site-header.scrolled .site-header__bar { min-height: var(--header-h-scrolled); }

.brand { display: inline-flex; align-items: center; flex: none; }
.brand__logo { height: 60px; width: auto; flex: none; transition: opacity 0.25s var(--ease), height 0.3s var(--ease); }
.brand:hover .brand__logo { opacity: 0.85; }
.site-header.scrolled .brand__logo { height: 50px; }
.brand--footer .brand__logo { height: 70px; }
@media (max-width: 560px) { .brand__logo { height: 50px; } }

/* Nav — nowrap throughout; if the row stops fitting, change the breakpoint
   below rather than letting labels wrap and break the bar's rhythm. */
.nav { display: flex; align-items: center; gap: var(--sp-5); flex: none; }
.nav__list { display: flex; align-items: center; gap: var(--sp-5); flex: none; }
.nav__item { position: relative; flex: none; }
.nav__link {
  color: #312663; font-weight: 500; font-size: var(--fs-sm);
  padding: 0.5rem 0; display: inline-flex; align-items: center; gap: 0.35rem;
  transition: color 0.2s var(--ease); white-space: nowrap;
}
.nav__link:hover { color: #312663; opacity: 0.75; }

.header-contact {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: #312663; font-weight: 600; font-size: var(--fs-sm);
  white-space: nowrap; flex: none; transition: color 0.2s var(--ease);
}
.header-contact:hover { color: #312663; opacity: 0.75; }
.header-contact .ico { color: var(--blue-400); flex: none; }
.header-cta-desktop { flex: none; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 0.5rem; z-index: 1100; }
.hamburger span { width: 25px; height: 2px; background: #312663; border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s var(--ease); }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  position: fixed; inset: 0 0 0 auto; width: min(86vw, 380px);
  background: var(--blue-900); z-index: 1050;
  transform: translateX(100%); transition: transform 0.4s var(--ease);
  padding: calc(var(--header-h) + var(--sp-5)) var(--sp-5) var(--sp-6);
  overflow-y: auto; display: flex; flex-direction: column; gap: 0;
  box-shadow: var(--shadow-xl);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav > a {
  padding: 0.95rem 0; color: #fff; font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.09);
}
.mobile-nav > a:hover { color: var(--blue-400); }
.mobile-nav__phone { color: var(--gray-300) !important; font-weight: 500 !important; font-size: var(--fs-sm); }
.mobile-nav .btn { margin-top: var(--sp-5); white-space: normal; }
.scrim { position: fixed; inset: 0; background: rgba(8,10,14,0.62); z-index: 1040; opacity: 0; visibility: hidden; transition: opacity 0.3s var(--ease); }
.scrim.open { opacity: 1; visibility: visible; }

@media (max-width: 1080px) {
  .nav__list, .header-contact { display: none; }
  .hamburger { display: flex; }
  .header-cta-desktop { display: none; }
}

/* ---- Cards ---- */
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--sp-6); box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  height: 100%; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--blue-400); }

.card__icon {
  width: 52px; height: 52px; border-radius: var(--radius); flex: none;
  display: grid; place-items: center; margin-bottom: var(--sp-5);
  background: var(--blue-100); color: var(--blue-600);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.card__icon svg { width: 26px; height: 26px; }
.card:hover .card__icon { background: var(--blue-600); color: #fff; }

.card__title { font-size: var(--fs-d4); margin-bottom: var(--sp-3); }
.card__lede { color: var(--text-muted); font-size: var(--fs-base); line-height: var(--lh-mid); }
.card > p { color: var(--text-muted); line-height: var(--lh-mid); }

/* Titled bullet rows (GCC situations) */
.card__list { margin-top: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-4); flex: 1; }
.card__list li { display: flex; flex-direction: column; gap: 0.15rem; padding-left: var(--sp-5); position: relative; }
.card__list li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 8px; height: 8px; border-radius: 2px; background: var(--blue-400);
}
.card__list strong { font-size: var(--fs-sm); font-weight: 700; color: var(--gray-900); }
.card__list span { font-size: var(--fs-sm); color: var(--text-muted); line-height: var(--lh-mid); }
.card__foot { margin-top: var(--sp-6); }

/* Pillar cards — five across, so they run narrower */
.pillar-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--sp-4); }
.card--pillar { padding: var(--sp-5); }
.card--pillar .card__icon { width: 44px; height: 44px; margin-bottom: var(--sp-4); }
.card--pillar .card__icon svg { width: 22px; height: 22px; }
.card--pillar .card__title { font-size: var(--fs-lg); }
@media (max-width: 1080px) { .pillar-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .pillar-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .pillar-grid { grid-template-columns: 1fr; } }

/* Plain capability chips.
   Sits directly under the title — pushing it to the bottom of the card left
   large voids in pillars that carry fewer chips than their tallest sibling. */
.tag-list { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: var(--sp-4); }
.tag-list li {
  font-size: var(--fs-xs); color: var(--gray-600);
  background: var(--gray-100); border-radius: var(--radius-sm);
  padding: 0.3rem 0.55rem; line-height: 1.35;
}
.tag-list--lg { margin-top: var(--sp-5); }
.tag-list--lg li { font-size: var(--fs-sm); padding: 0.4rem 0.7rem; background: var(--white); border: 1px solid var(--border); }

/* Commercial-model cards */
.card--model .card__title { color: var(--blue-600); font-size: var(--fs-2xl); margin-bottom: var(--sp-4); }
.model__label {
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: var(--tr-label);
  text-transform: uppercase; color: var(--gray-400); margin-top: var(--sp-4);
}
.model__label:first-of-type { margin-top: 0; }
.model__body { color: var(--text-muted); font-size: var(--fs-sm); line-height: var(--lh-mid); margin-top: 0.35rem; }

.card--why .card__title { font-size: var(--fs-lg); }

/* Check list */
.check-list { display: flex; flex-direction: column; gap: var(--sp-3); margin-top: var(--sp-4); }
.check-list li { display: flex; gap: 0.6rem; font-size: var(--fs-base); color: var(--text); }
.check-list li::before { content: "✓"; color: var(--blue-600); font-weight: 700; flex: none; }

/* ---- Process steps ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.step {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--sp-6); position: relative;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--blue-400); }
.step__num {
  display: inline-block; font-size: var(--fs-sm); font-weight: 800;
  color: var(--blue-600); letter-spacing: 0.08em; margin-bottom: var(--sp-3);
}
.step__title { font-size: var(--fs-lg); margin-bottom: var(--sp-4); }
.step__list { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.step__list li {
  font-size: var(--fs-xs); color: var(--gray-600);
  background: var(--gray-100); border-radius: var(--radius-sm); padding: 0.3rem 0.55rem;
}
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }

/* ---- FAQ ---- */
.faq { display: flex; flex-direction: column; gap: var(--sp-3); }
.faq__item {
  border: 1px solid var(--border); border-radius: var(--radius); background: #fff;
  overflow: hidden; transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.faq__item:hover { box-shadow: var(--shadow-sm); border-color: var(--blue-400); }
.faq__q {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  gap: var(--sp-4); padding: var(--sp-4) var(--sp-5); text-align: left;
  font-weight: 600; font-size: var(--fs-base); color: var(--gray-900);
}
.faq__q .icon { flex: none; width: 20px; height: 20px; position: relative; transition: transform 0.3s var(--ease); }
.faq__q .icon::before, .faq__q .icon::after {
  content: ""; position: absolute; background: var(--blue-600); border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.faq__q .icon::before { top: 50%; left: 0; right: 0; height: 2px; transform: translateY(-50%); }
.faq__q .icon::after { left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%); }
.faq__item.open .faq__q .icon::after { transform: translateX(-50%) scaleY(0); opacity: 0; }
.faq__a { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease); }
.faq__a-inner { padding: 0 var(--sp-5) var(--sp-5); color: var(--text-muted); line-height: var(--lh-mid); }

/* ---- Modal ---- */
.modal { position: fixed; inset: 0; z-index: 2000; display: none; align-items: flex-start; justify-content: center; padding: var(--sp-5); overflow-y: auto; }
.modal.open { display: flex; }
.modal__scrim { position: fixed; inset: 0; background: rgba(8,10,14,0.72); backdrop-filter: blur(4px); opacity: 0; transition: opacity 0.3s var(--ease); }
.modal.open .modal__scrim { opacity: 1; }
.modal__dialog {
  position: relative; background: #fff; border-radius: var(--radius-lg);
  width: 100%; max-width: 540px; margin: auto; box-shadow: var(--shadow-xl);
  transform: translateY(24px) scale(0.985); opacity: 0;
  transition: transform 0.4s var(--ease-out), opacity 0.3s var(--ease);
  max-height: calc(100vh - 2 * var(--sp-5)); overflow-y: auto;
}
.modal.open .modal__dialog { transform: translateY(0) scale(1); opacity: 1; }
.modal__head { padding: var(--sp-5) var(--sp-5) var(--sp-4); border-bottom: 1px solid var(--border); position: sticky; top: 0; background: #fff; border-radius: var(--radius-lg) var(--radius-lg) 0 0; z-index: 2; }
.modal__head h3 { font-size: var(--fs-xl); padding-right: var(--sp-7); }
.modal__close { position: absolute; right: var(--sp-4); top: var(--sp-4); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--gray-400); transition: background 0.2s var(--ease), color 0.2s var(--ease); }
.modal__close:hover { background: var(--gray-100); color: var(--gray-900); }
.modal__body { padding: var(--sp-5); }
.modal__step { display: none; }
.modal__step.active { display: block; animation: fadeUp 0.35s var(--ease); }

/* ---- Form ---- */
.form-grid { display: grid; gap: var(--sp-4); }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label { font-weight: 600; font-size: var(--fs-sm); color: var(--gray-900); }
.field .req { color: #d92d20; }
.field input, .field select {
  padding: 0.75rem 0.9rem; border: 1.5px solid var(--gray-300); border-radius: var(--radius-sm);
  background: #fff; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease); width: 100%;
}
.field input:focus, .field select:focus { border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(184,134,11,0.20); outline: none; }
.field.invalid input, .field.invalid select { border-color: #d92d20; box-shadow: 0 0 0 3px rgba(217,45,32,0.12); }
.field__err { color: #d92d20; font-size: var(--fs-xs); display: none; }
.field.invalid .field__err { display: block; }
.phone-row { display: flex; gap: 0.5rem; }
.phone-row select { width: 118px; flex: none; }
.phone-row input { flex: 1; }
.form-note { font-size: var(--fs-xs); color: var(--text-muted); margin-top: var(--sp-3); text-align: center; }
.form-alert { padding: var(--sp-3) var(--sp-4); border-radius: var(--radius-sm); font-size: var(--fs-sm); margin-bottom: var(--sp-4); display: none; }
.form-alert.show { display: block; }
.form-alert--error { background: #fdecec; color: #a02418; border: 1px solid #f7c8c4; }

/* Confirmation */
.confirm { text-align: center; padding: var(--sp-4) var(--sp-2); }
.confirm__icon { width: 64px; height: 64px; border-radius: 50%; background: #e7f6ee; display: grid; place-items: center; margin: 0 auto var(--sp-5); animation: pop 0.5s var(--ease-out); }
.confirm__icon svg { width: 30px; height: 30px; color: #1aa055; }
.confirm__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: center; margin-top: var(--sp-6); }
.confirm__actions .btn { flex: 1; min-width: 150px; }

/* ---- Footer ---- */
.site-footer { background: var(--blue-900); color: var(--gray-400); padding-block: var(--sp-8) var(--sp-5); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--sp-7); }
.footer-grid h4 { color: #fff; margin-bottom: var(--sp-4); font-size: var(--fs-xs); font-weight: 700; letter-spacing: var(--tr-label); text-transform: uppercase; }
.footer-grid a { color: var(--gray-400); font-size: var(--fs-sm); transition: color 0.2s var(--ease); }
.footer-grid a:hover { color: #fff; }
.footer-grid li { margin-bottom: 0.65rem; }
.footer-about p { color: var(--gray-400); font-size: var(--fs-sm); max-width: 46ch; line-height: var(--lh-mid); }
.footer-tagline { color: var(--blue-400) !important; font-weight: 600; margin-top: var(--sp-4); letter-spacing: 0.04em; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.10); margin-top: var(--sp-7); padding-top: var(--sp-5); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-3); font-size: var(--fs-xs); color: var(--gray-500); }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; gap: var(--sp-6); } }

/* ---- Floating CTA (mobile) ---- */
.float-cta { position: fixed; bottom: var(--sp-4); right: var(--sp-4); z-index: 900; display: none; box-shadow: var(--shadow-lg); }
@media (max-width: 1080px) { .float-cta { display: inline-flex; } }

/* Footer bottom bar — phone / email / website were plain text.
   They are links now, so they need a visible affordance; the separators
   stay muted so only the actionable parts look actionable. */
.footer-contact { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.footer-contact a { color: var(--gray-300); transition: color 0.2s var(--ease); }
.footer-contact a:hover { color: var(--blue-400); text-decoration: underline; text-underline-offset: 3px; }
.footer-contact span[aria-hidden] { color: var(--gray-600); }

/* Registered office in the footer. <address> is italic by default in every
   browser — reset that, and break the lines the way they were supplied. */
.footer-address {
  font-style: normal; display: flex; flex-direction: column; gap: 0.15rem;
  margin-top: var(--sp-4); color: var(--gray-400);
  font-size: var(--fs-sm); line-height: var(--lh-mid);
}
