/* ============================================================
   BRAND VARIABLES
   ============================================================ */
:root {
  --bg: #f7f9fc;
  --card: #ffffff;

  --accent: #0b2a4a;        /* deep navy */
  --accent-soft: #13406f;   /* lighter navy hover */
  --accent-light: rgba(11, 42, 74, 0.12); /* soft navy tint */

  --text: #1a1a1a;
  --muted: #555;
  --border: #d4d7e2;
  --shadow: rgba(0, 0, 0, 0.08);

  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ============================================================
   RESET
   ============================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
}

/* ============================================================
   GLOBAL LAYOUT
   ============================================================ */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 40px 4rem;
}

.section {
  margin: 3rem 0;
}

.section h3 {
  color: var(--accent);
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.section p,
.section li {
  color: #333;
}

.section ul {
  padding-left: 1.2rem;
}

.section li {
  margin-bottom: 0.4rem;
}

/* ============================================================
   HEADER + BRAND
   ============================================================ */
.header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.6rem 4vw 1.2rem;
  border-bottom: 1px solid var(--border);
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand h1 {
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.brand p {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.nav a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-bottom: 6px;
  transition: color 0.25s ease, transform 0.25s ease;
}

.nav a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0%;
  background-color: var(--accent);
  border-radius: 1px;
  transition: width 0.25s ease;
}

.nav a:hover::after {
  width: 100%;
}

.nav a.active {
  color: var(--accent);
}

.nav a.active::after {
  width: 100%;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  text-align: center;
  padding: 3rem 0 2rem;
  background: linear-gradient(
    180deg,
    rgba(11, 42, 74, 0.08) 0%,
    rgba(11, 42, 74, 0.03) 60%,
    transparent 100%
  );
  border-radius: 12px;
}

.hero h2 {
  font-size: 2.4rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.tagline {
  font-size: 1.1rem;
  color: var(--accent);
  font-weight: 600;
  margin: 0.5rem auto 0;
  max-width: 700px;
}

.cta-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.6rem;
  flex-wrap: wrap;
}

/* ============================================================
   CARD SYSTEMS
   ============================================================ */

/* Framework/service cards */
.framework-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
  margin-top: 1.5rem;
}

.framework-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.6rem;
  box-shadow: 0 2px 8px var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.framework-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 14px var(--shadow);
}

.framework-card-icon {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.framework-card h4 {
  color: var(--accent);
  margin-bottom: 0.6rem;
  font-size: 1.2rem;
}

.framework-card p {
  color: #444;
  font-size: 0.92rem;
}

/* Drawer details for expandable cards */
.framework-card-details {
  margin-top: 0.8rem;
  font-size: 0.88rem;
  color: #444;
  display: none;
}

.framework-card.expanded .framework-card-details {
  display: block;
}

/* Simple pillar cards (used on the homepage grid) */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.6rem;
  margin: 2.5rem 0;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.4rem;
  text-align: center;
  box-shadow: 0 2px 8px var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 14px var(--shadow);
}

.card h4 {
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.card p {
  color: #444;
  font-size: 0.88rem;
}

/* ============================================================
   CTA BUTTONS + BLOCK
   ============================================================ */
.cta-block {
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  padding: 2rem;
  border-radius: 12px;
  margin: 3rem 0;
  text-align: center;
  box-shadow: 0 2px 8px var(--shadow);
}

.cta-block h3 {
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.cta-block p {
  color: #333;
  margin-bottom: 1rem;
}

.cta,
.cta-button {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  background: var(--accent);
  color: #fff;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  border: 2px solid var(--accent);
  transition: background 0.25s ease, transform 0.25s ease;
}

.cta:hover,
.cta-button:hover {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
  transform: translateY(-3px);
}

.cta.secondary,
.cta-button.cta-secondary {
  background: #ffffff;
  color: var(--accent);
}

.cta.secondary:hover,
.cta-button.cta-secondary:hover {
  background: var(--accent-light);
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-width: 600px;
  margin-top: 1rem;
}

.contact-form label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 0.8rem;
  color: var(--text);
}

.contact-form input,
.contact-form textarea {
  padding: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 1px 4px var(--shadow);
  font-family: var(--font-main);
  font-size: 0.95rem;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form button {
  margin-top: 1.4rem;
  align-self: flex-start;
}

/* ============================================================
   DIAGRAM WRAPPER
   ============================================================ */
.diagram {
  display: flex;
  justify-content: center;
  margin: 2.5rem 0;
}

.diagram svg {
  max-width: 100%;
  height: auto;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: #777;
  text-align: center;
  background: #ffffff;
}

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 768px) {
  main {
    padding: 1.5rem 20px 3rem;
  }

  .hero h2 {
    font-size: 1.9rem;
  }

  .header {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    gap: 0.8rem;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }
}
/* ============================================================
   FLOATING CONTACT BUTTON â€” FIXED + BRAND MATCHED
   ============================================================ */
.floating-contact {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 9999; /* ensure above header */

  display: inline-block;
  padding: 0.85rem 1.8rem;

  background: var(--accent);
  color: #fff;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid var(--accent);

  box-shadow: 0 4px 14px var(--shadow);
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.floating-contact:hover {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px var(--shadow);
}

@media (max-width: 768px) {
  .floating-contact {
    right: 16px;
    bottom: 16px;
    padding: 0.75rem 1.4rem;
    font-size: 0.88rem;
  }
}
/* ============================================================
   PILLAR CARDS (MATCHED TO FRAMEWORK CARD STYLE)
   ============================================================ */

.pillar-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.6rem;
  margin: 2.5rem 0;
}

.pillar-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.4rem;
  box-shadow: 0 2px 8px var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 14px var(--shadow);
}

.pillar-card-icon {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.pillar-card h4 {
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.pillar-card p {
  color: #444;
  font-size: 0.9rem;
}
