/* Brand colors, spacing, and site-wide variables */
:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #eef3fb;
  --text: #182332;
  --muted: #5d6b7c;
  --brand: #14345c;
  --brand-2: #1f4f8e;
  --accent: #4a90e2;
  --border: #d9e2ef;
  --shadow: 0 12px 30px rgba(20, 52, 92, 0.08);
  --radius: 18px;
  --max: 1180px;
}

/* Base reset */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(180deg, #f7f9fc 0%, #eef3f9 100%);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

/* Sticky site header and navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(20, 52, 92, 0.08);
  box-shadow: 0 10px 28px rgba(20, 52, 92, 0.08);
}

.site-header-inner,
.section-inner,
.footer-inner,
.hero-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.site-header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 12px 0;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo {
  display: block;
  height: 42px;
  width: auto;
  max-width: min(100%, 340px);
  object-fit: contain;
}

.logo-link {
  position: relative;
}

.tm-mark {
  align-self: flex-start;
  margin-left: 4px;
  color: var(--brand);
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
  transform: translateY(4px);
  letter-spacing: 0.02em;
}

.tm-inline {
  font-size: 0.52em;
  vertical-align: super;
  line-height: 0;
  margin-left: 1px;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  justify-content: flex-end;
}

.main-nav a {
  color: var(--brand);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 700;
  opacity: 0.86;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  opacity: 1;
  color: var(--brand-2);
}

/* Homepage hero */
.hero {
  padding: 72px 0 40px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 44px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(31, 79, 142, 0.1);
  color: var(--brand-2);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1,
.page-header h1,
.section-heading {
  margin: 0 0 18px;
  line-height: 1.1;
  font-size: clamp(2.2rem, 4vw, 4.2rem);
}

.hero p,
.section-intro,
.page-header p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button,
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  transition: 0.2s ease;
}

.button-primary,
.cta-button {
  background: var(--brand);
  color: #ffffff;
  box-shadow: var(--shadow);
}

.button-primary:hover,
.cta-button:hover {
  background: #0e2847;
}

.button-secondary {
  background: transparent;
  color: var(--brand);
  border-color: var(--border);
}

.button-secondary:hover {
  background: #ffffff;
}

.hero-card,
.framework-visual,
.page-panel,
.service-box,
.insight-box,
.framework-box,
.contact-panel,
.cta-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 22px;
}

.hero-card img {
  display: block;
  width: 100%;
  height: auto;
}

/* Shared section spacing */
.page-section,
.framework,
.services,
.insights,
.contact-section,
.cta {
  padding: 26px 0 72px;
}

.page-header {
  padding: 52px 0 18px;
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}

.section-heading {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

/* Card and content grids */
.framework-grid,
.services-grid,
.insights-grid,
.value-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.framework-box,
.service-box,
.insight-box {
  padding: 24px;
}

.framework-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  align-items: start;
}

.framework-letter {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--brand-2), var(--accent));
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
}

.framework-content h3,
.service-box h3,
.insight-box h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.framework-content p,
.service-box p,
.insight-box p,
.value-item p {
  margin: 0;
  color: var(--muted);
}

.framework-visual {
  padding: 22px;
  margin-bottom: 28px;
  text-align: center;
}

.framework-visual img {
  width: min(100%, 860px);
}

.value-grid {
  margin-top: 24px;
}

.value-item {
  padding: 22px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 16px;
}

/* Contact page layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}

.contact-panel {
  padding: 26px;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #cbd6e4;
  border-radius: 12px;
  font: inherit;
  color: var(--text);
  background: #fff;
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.direct-email,
.contact-list,
.small-note {
  color: var(--muted);
}

.contact-list {
  padding-left: 18px;
  margin: 18px 0 0;
}

/* Global footer */
.site-footer {
  background: linear-gradient(180deg, #112a49 0%, #0e2340 100%);
  color: rgba(255, 255, 255, 0.9);
  padding: 30px 0;
  margin-top: 10px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 24px;
  align-items: center;
}

.footer-inner p {
  margin: 0;
  font-size: 0.95rem;
}

.trademark-note {
  width: 100%;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}


.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.14);
}

.social-badge {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.72rem;
  font-weight: 700;
}

.contact-channel-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.channel-card {
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
}

.channel-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.channel-card p {
  margin: 0 0 14px;
  color: var(--muted);
}

.channel-card a {
  color: var(--brand-2);
  font-weight: 700;
  text-decoration: none;
}

.channel-card a:hover {
  text-decoration: underline;
}

/* Tablet and small laptop layout adjustments */
@media (max-width: 980px) {
  .hero-inner,
  .contact-grid,
  .framework-grid,
  .services-grid,
  .insights-grid,
  .value-grid,
  .contact-channel-grid {
    grid-template-columns: 1fr;
  }

  .site-header-inner {
    min-height: auto;
    padding: 14px 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 16px 20px;
  }
}

/* Mobile layout adjustments */
@media (max-width: 640px) {
  .site-logo {
    height: 36px;
  }

  .tm-mark {
    font-size: 0.56rem;
    margin-left: 3px;
  }

  /* Homepage hero */
.hero {
    padding-top: 42px;
  }

  .hero p,
  .section-intro,
  .page-header p {
    font-size: 1rem;
  }

  .framework-row {
    grid-template-columns: 1fr;
  }

  .framework-letter {
    width: 56px;
    height: 56px;
  }

  .button,
  .cta-button {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
