/* Components: buttons, cards, lists, engagements, team, values, FAQ, contact form */

/* ---------- Buttons ---------- */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--azure), var(--azure-dark));
  color: #fff !important;
  padding: 12px 16px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: var(--shadow);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

/* Darken on hover; .nav-links a.cta beats the generic nav-link hover tint */
.cta:hover,
.cta:focus-visible,
.nav-links a.cta:hover,
.nav-links a.cta:focus-visible {
  background: linear-gradient(135deg, var(--azure-dark), #073a69);
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(10, 78, 140, 0.35);
  transform: translateY(-1px);
}

.cta svg {
  width: 16px;
  height: 16px;
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--azure);
  color: var(--azure-dark);
  background: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease;
}

.cta-secondary:hover {
  background: rgba(15, 108, 189, 0.08);
}

/* White button for use on the blue CTA panel */
.cta-light {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  background: #fff;
  color: var(--azure-dark);
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.cta-light:hover,
.cta-light:focus-visible {
  background: #e6f2ff;
  transform: translateY(-1px);
}

/* ---------- Hero pieces ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 108, 189, 0.08);
  color: var(--azure-dark);
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
  margin-bottom: 14px;
}

.proof-strip {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.proof-strip li {
  font-size: 13px;
  font-weight: 600;
  color: var(--azure-dark);
  background: rgba(15, 108, 189, 0.08);
  padding: 6px 10px;
  border-radius: 999px;
}

.hero-card {
  background: var(--card);
  padding: 28px;
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(15, 108, 189, 0.08);
}

.hero-card-label,
.engagement-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--azure);
  margin-bottom: 8px;
}

.hero-card h3 {
  margin: 0 0 4px;
  font-size: 22px;
}

.hero-card-sub {
  margin: 0 0 6px !important;
  font-size: 15px !important;
}

/* ---------- Cards and lists ---------- */
.card {
  background: var(--card);
  padding: 18px;
  border-radius: 14px;
  border: 1px solid rgba(15, 108, 189, 0.08);
  box-shadow: 0 14px 32px rgba(15, 108, 189, 0.08);
}

.card h3 {
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
}

.card-text {
  color: var(--muted);
  margin: 8px 0 0;
}

/* Whole card is a link (home page service previews) */
.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card-link:hover,
.card-link:focus-visible {
  border-color: var(--azure);
  transform: translateY(-2px);
}

.card-link h3 {
  color: var(--azure-dark);
}

.segment {
  padding: 18px 20px;
  border-left: 4px solid var(--azure);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 0 14px 14px 0;
}

.segment h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.segment p {
  margin: 0;
  color: var(--muted);
}

.list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  color: var(--muted);
}

.list li {
  padding: 8px 0;
  border-bottom: 1px dashed rgba(15, 108, 189, 0.1);
  display: flex;
  gap: 10px;
  align-items: center;
}

.list li:last-child {
  border-bottom: none;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--azure);
  display: inline-block;
}

/* ---------- Offerings ---------- */
.offering {
  display: flex;
  flex-direction: column;
  scroll-margin-top: calc(var(--header-height) + 8px);
}

.offering-value {
  margin: 0;
  color: var(--azure);
  font-weight: 700;
}

.offering .list li {
  align-items: flex-start;
}

.offering .list .dot {
  flex-shrink: 0;
  margin-top: 8px;
}

/* ---------- Engagements ---------- */
.engagement {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid rgba(15, 108, 189, 0.12);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 14px 32px rgba(15, 108, 189, 0.08);
}

.engagement h3 {
  margin: 0;
  font-size: 19px;
}

.engagement-duration {
  font-size: 15px;
  font-weight: 700;
  color: var(--azure-dark);
  margin: 4px 0 12px;
}

.engagement dl {
  margin: 0 0 18px;
}

.engagement dt {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--azure);
  margin-top: 10px;
}

.engagement dd {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.engagement-cta {
  margin-top: auto;
  justify-content: center;
}

.engagement-featured {
  border: 2px solid var(--azure);
  background: linear-gradient(180deg, #ffffff, #eef6ff);
  box-shadow: var(--shadow);
}

/* ---------- Process steps ---------- */
.process {
  counter-reset: step;
}

.step {
  counter-increment: step;
  padding: 18px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #f8fbff);
  border: 1px solid rgba(15, 108, 189, 0.1);
}

.step h4::before {
  content: "0" counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-right: 10px;
  border-radius: 10px;
  background: rgba(15, 108, 189, 0.12);
  color: var(--azure);
  font-weight: 700;
}

/* ---------- Team and investor ---------- */
.person-card {
  background: var(--card);
  border: 1px solid rgba(15, 108, 189, 0.1);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 14px 32px rgba(15, 108, 189, 0.07);
}

.person-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2px solid rgba(15, 108, 189, 0.2);
  margin-bottom: 14px;
}

.person-card h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.person-role {
  font-size: 13px;
  font-weight: 600;
  color: var(--azure);
  margin-bottom: 10px;
}

.person-bio {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 14px;
  line-height: 1.55;
  font-style: italic;
  text-align: justify;
}

.linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--azure-dark);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(15, 108, 189, 0.08);
}

.linkedin-link:hover {
  background: rgba(15, 108, 189, 0.16);
}

.backed-by-heading {
  margin: 0 0 12px;
  font-size: 15px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.investor-tile {
  background: var(--card);
  border: 1px dashed rgba(15, 108, 189, 0.2);
  border-radius: 14px;
  padding: 20px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.investor-tile .investor-name-ph {
  font-weight: 600;
  color: var(--text);
  font-size: 18px;
  margin-bottom: 4px;
}

.investor-logo-img {
  display: block;
  max-width: 120px;
  max-height: 56px;
  width: auto;
  height: auto;
  margin: 0 auto 12px;
  object-fit: contain;
  border-radius: 6px;
}

/* ---------- RITE values (About page) ---------- */
.values-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  background: linear-gradient(135deg, #0f6cbd, #0a4e8c);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.value-tile {
  flex: 1 1 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  padding: 28px 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  position: relative;
}

.value-initial {
  font-style: normal;
  color: var(--accent);
  font-size: 1.25em;
  line-height: 1;
}

.value-tile + .value-tile::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 480px) {
  .values-grid {
    flex-direction: column;
  }

  .value-tile + .value-tile::before {
    top: 0;
    left: 10%;
    width: 80%;
    height: 1px;
  }
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 820px;
}

.faq details {
  background: var(--card);
  border: 1px solid rgba(15, 108, 189, 0.1);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 10px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--azure);
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details p {
  margin: 10px 0 0;
  color: var(--muted);
}

/* ---------- Contact ---------- */
.contact-intro h3 {
  margin: 0 0 12px;
  font-size: 20px;
  color: var(--text);
}

.contact-intro p {
  color: var(--muted);
  margin: 0;
  line-height: 1.65;
}

.next-steps {
  margin: 0 0 18px;
  padding-left: 20px;
  color: var(--muted);
}

.next-steps li {
  margin-bottom: 8px;
}

.contact-email {
  margin-top: 8px !important;
}

.contact-email a {
  color: var(--azure);
  font-weight: 600;
}

.contact-form {
  background: linear-gradient(135deg, #0f6cbd, #0a4e8c);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.form-group:last-of-type {
  margin-bottom: 0;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
}

.form-group input,
.form-group textarea {
  outline: none;
  transition: border-color 0.15s;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--azure);
}

.form-group textarea {
  min-height: 110px;
}

.form-submit {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #0b1b2d;
  border: none;
  border-radius: 10px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}

.form-submit:hover {
  background: var(--azure-dark);
  color: #fff;
}

.form-submit:disabled {
  opacity: 0.7;
  cursor: progress;
}

/* Message shown inside the form when sending fails or on a local preview */
.form-status {
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.5;
}

.form-status-error {
  background: #fdecea;
  color: #8a1c12;
}

.form-status-notice {
  background: #fff7e0;
  color: #6b4a00;
}

.honeypot {
  position: absolute;
  left: -9999px;
}

/* ---------- CTA band (end of most pages) ---------- */
.cta-panel {
  background: linear-gradient(135deg, #0f6cbd, #0a4e8c);
  color: #fff;
  padding: 32px 26px;
  border-radius: 18px;
  box-shadow: var(--shadow);
  text-align: center;
}

.cta-panel h2 {
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.25;
}

.cta-panel p {
  margin: 0 0 18px;
  opacity: 0.92;
}

/* ---------- Engineering articles ---------- */
.post-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.post-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.post-card h2,
.post-card h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.35;
  color: var(--azure-dark);
}

.post-read {
  margin-top: auto;
  padding-top: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--azure);
}

.post-meta {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.post-empty {
  background: var(--card);
  border: 1px dashed rgba(15, 108, 189, 0.25);
  border-radius: 14px;
  padding: 28px 24px;
  color: var(--muted);
  max-width: 720px;
}

.post-empty p {
  margin: 0;
}

/* Centered reading column; same side padding as page sections */
.post {
  max-width: 808px;
  margin: 0 auto;
  padding: 64px 24px 72px;
}

.post-back {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--azure);
  text-decoration: none;
}

.post-back:hover {
  text-decoration: underline;
}

.post-header {
  margin-bottom: 28px;
}

.post-header h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 2.5vw + 16px, 40px);
  line-height: 1.15;
}

.post-draft {
  color: #9a3412;
}

/* Main image: set with `image` in an article's front matter.
   Shown whole (never cropped), centred, and capped in height so a
   square or tall image does not push the text off the screen. */
.post-hero {
  margin: 0 0 32px;
  padding: 0;
  text-align: center;
}

.post-hero img {
  display: block;
  margin: 0 auto;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(440px, 60vh);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(15, 35, 60, 0.14);
}

.post-hero figcaption,
.prose figcaption {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}

/* Article body written in Markdown */
.prose {
  font-size: 17px;
  line-height: 1.7;
}

.prose > * + * {
  margin-top: 1em;
}

/* Justified paragraphs. Words are never split with hyphens.
   Narrow screens keep left-aligned text, where justifying leaves gaps. */
@media (min-width: 600px) {
  .prose p,
  .prose li {
    text-align: justify;
    hyphens: manual;
    -webkit-hyphens: manual;
  }
}

.prose h2 {
  margin-top: 1.8em;
  font-size: 24px;
  line-height: 1.3;
}

.prose h3 {
  margin-top: 1.5em;
  font-size: 19px;
}

.prose p,
.prose ul,
.prose ol,
.prose blockquote,
.prose pre {
  margin-bottom: 0;
}

.prose ul,
.prose ol {
  padding-left: 1.4em;
}

.prose li + li {
  margin-top: 0.35em;
}

.prose a {
  color: var(--azure);
}

.prose code {
  font-family: "Cascadia Mono", Consolas, ui-monospace, monospace;
  font-size: 0.88em;
  background: rgba(15, 108, 189, 0.08);
  padding: 1px 6px;
  border-radius: 5px;
}

.prose pre {
  overflow-x: auto;
  background: #0b1b2d;
  color: #e5edf7;
  padding: 16px 18px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.6;
}

.prose pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.prose blockquote {
  margin-left: 0;
  padding: 4px 0 4px 18px;
  border-left: 4px solid var(--azure);
  color: var(--muted);
}

/* Images inside the article text */
.prose img {
  display: block;
  margin: 1.6em auto;
  max-width: 100%;
  max-height: 520px;
  width: auto;
  height: auto;
  border-radius: 12px;
}

.prose p > img:only-child {
  margin: 0 auto;
}

.prose figure {
  margin: 1.6em 0;
  text-align: center;
}

.prose figure img {
  margin: 0 auto;
}

/* ---------- Simple message pages (thank you, 404) ---------- */
.message-page {
  max-width: 720px;
  padding-top: 96px;
  padding-bottom: 120px;
}

.message-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
