/* ================================================================
   ProtoFlex — Main Stylesheet
   Design tokens match the mockup design system.
   No Bootstrap dependency — clean modern CSS throughout.
   ================================================================ */

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
  --navy:        #1a2b5e;
  --navy-dark:   #111e45;
  --navy-mid:    #1d3a7a;
  --teal:        #0bb8a9;
  --teal-hover:  #09a497;
  --teal-light:  #e6f9f8;
  --sky:         #e8f4fd;
  --white:       #ffffff;
  --grey-50:     #f8f9fb;
  --grey-100:    #eef0f5;
  --grey-200:    #dde4ed;
  --grey-400:    #8d96ad;
  --grey-700:    #4a5269;
  --text:        #2c3350;
  --radius:      10px;
  --shadow:      0 4px 24px rgba(26,43,94,.09);
  --shadow-lg:   0 8px 40px rgba(26,43,94,.14);
  --max-w:       1180px;
  --transition:  .2s ease;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Base Typography ─────────────────────────────────────────── */
body {
  font-family: 'Nunito Sans', system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Barlow', system-ui, sans-serif;
  line-height: 1.2;
  color: var(--navy);
}

p { margin-bottom: 1rem; }
ul, ol { padding-left: 1.4rem; }
li { margin-bottom: .35rem; }

/* ── Layout ──────────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  border: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--teal-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(11,184,169,.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.45);
}
.btn-outline:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.7);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover { background: var(--navy-dark); }

/* ── Navigation ──────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 200;
  background: transparent;
  padding: 0 24px;
  box-shadow: none;
  transition: background .3s ease, box-shadow .3s ease;
}
.nav.scrolled {
  background: hsl(200,50%,38%);
  box-shadow: 0 2px 16px rgba(0,0,0,.25);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}

.nav-logo img { height: 80px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links > li { position: relative; }

.nav-links a {
  color: rgba(255,255,255,.85);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
  display: block;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,.12);
  color: var(--white);
}

/* Dropdown */
.has-drop .dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  list-style: none;
  padding: 6px 0;
  margin: 0;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(26,43,94,.18);
  min-width: 180px;
  border: 1px solid var(--grey-100);
  overflow: hidden;
  z-index: 300;
}

/* Invisible bridge on the li fills the gap so hover isn't lost crossing it */
.has-drop::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 6px;
}

.has-drop:hover .dropdown,
.has-drop:focus-within .dropdown { display: block; }

.dropdown li { list-style: none; margin: 0; padding: 0; }

.dropdown a {
  display: block;
  color: var(--navy) !important;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 0;
  transition: background var(--transition);
}
.dropdown a:hover { background: var(--teal-light); color: var(--navy) !important; }

/* CTA button in nav */
.nav-cta {
  background: var(--teal) !important;
  color: var(--white) !important;
  border-radius: 6px !important;
  padding: 8px 20px !important;
  font-weight: 700 !important;
}
.nav-cta:hover {
  background: var(--teal-hover) !important;
  transform: translateY(-1px);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero (Home Page) ────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, hsl(200,50%,38%) 0%, #2d3748 100%);
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 75% 50%, rgba(11,184,169,.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-content p {
  font-size: 1.15rem;
  color: rgba(255,255,255,.85);
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-visual {
  border-radius: 14px;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow-lg);
}

/* ── Stats Strip ─────────────────────────────────────────────── */
.stats-strip {
  background: var(--white);
  padding: 48px 0;
  position: relative;
  z-index: 10;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 24px;
  text-align: center;
  border-bottom: 4px solid var(--teal);
  transition: transform var(--transition), box-shadow var(--transition);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.stat-icon { color: var(--navy); margin-bottom: 12px; display: flex; justify-content: center; }
.stat-label { font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin-bottom: 10px; }
.stat-desc { font-size: .9rem; color: var(--grey-700); line-height: 1.5; }

/* ── Section Helpers ─────────────────────────────────────────── */
.section { padding: 80px 0; }
.section-alt { background: var(--grey-50); }
.section-dark { background: var(--navy); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
}

h2.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 16px;
}
.section-dark h2.section-title { color: var(--white); }

.section-lead {
  font-size: 1.05rem;
  color: var(--grey-700);
  max-width: 680px;
  margin-bottom: 48px;
  line-height: 1.7;
}

.section-center { text-align: center; }
.section-center .section-lead { margin-left: auto; margin-right: auto; }

/* ── Feature Cards ───────────────────────────────────────────── */
.feature-card {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.feature-card p { font-size: .95rem; color: var(--grey-700); margin: 0; }

/* ── Suite Items (Product Modules) ──────────────────────────── */
.suite-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.suite-item {
  display: flex;
  gap: 20px;
  padding: 28px;
  background: var(--grey-50);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
}
.suite-item:hover { background: var(--grey-100); transform: translateY(-2px); }

.suite-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.suite-icon.pulse   { background: #ebf4ff; color: #4299e1; }
.suite-icon.engage  { background: var(--teal-light); color: var(--teal); }
.suite-icon.connect { background: #f0f4ff; color: var(--navy); }
.suite-icon.go      { background: #e6fffa; color: #38b2ac; }
.suite-icon.automate { background: #ebf4ff; color: #4299e1; }
.suite-icon.define  { background: #f0f4ff; color: #667eea; }

.suite-item h4 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.suite-item p  { font-size: .9rem; color: var(--grey-700); margin: 0; }

/* ── Testimonial ─────────────────────────────────────────────── */
.testimonial-section {
  background: #4c51bf;
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}

.testimonial-quote {
  font-size: 1.3rem;
  line-height: 1.8;
  margin-bottom: 32px;
  position: relative;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255,255,255,.92);
}

.testimonial-quote::before {
  content: '"';
  font-family: 'Barlow', sans-serif;
  font-size: 6rem;
  color: rgba(255,255,255,.12);
  position: absolute;
  top: -40px;
  left: -20px;
  line-height: 1;
}

.testimonial-author { font-weight: 700; font-size: 1.1rem; color: var(--white); }
.testimonial-role   { font-size: .85rem; color: rgba(255,255,255,.65); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }

/* ── Case Study / Dark Section ───────────────────────────────── */
.case-study {
  background: #2d3748;
  color: var(--white);
  padding: 80px 0;
}

.case-study h2 { color: var(--white); }
.case-study h3 { color: var(--white); }

.case-study .section-label { color: rgba(255,255,255,.6); }
.case-study .section-label::before { background: rgba(255,255,255,.6); }

.check-list { list-style: none; padding: 0; margin: 24px 0; }
.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
  color: rgba(255,255,255,.9);
}
.check-list li::before {
  content: '✓';
  color: #48bb78;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

.case-study-img {
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  width: 100%;
}

/* ── Use Case Cards ──────────────────────────────────────────── */
.use-case-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.use-case-card {
  background: var(--grey-50);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius);
  padding: 24px;
}

.use-case-card h4 { font-size: .95rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.use-case-card p  { font-size: .875rem; color: var(--grey-700); margin: 0; }

/* ── Page Hero (inner pages) ─────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, hsl(200,50%,38%) 0%, #2d3748 100%);
  padding: 152px 24px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 80% 50%, rgba(11,184,169,.12) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero .eyebrow {
  display: inline-block;
  background: rgba(11,184,169,.15);
  border: 1px solid rgba(11,184,169,.4);
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
  position: relative;
}

.page-hero .lead {
  font-size: 1.1rem;
  color: rgba(255,255,255,.75);
  max-width: 600px;
  margin: 0 auto 28px;
}

/* ── Breadcrumb ──────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  align-items: center;
  margin-top: 28px;
  flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,.80); font-size: 13px; }
.breadcrumb a:hover { color: rgba(255,255,255,.8); }
.breadcrumb .sep { color: rgba(255,255,255,.3); font-size: 13px; }
.breadcrumb .current { color: var(--teal); font-size: 13px; font-weight: 600; }

/* ── Article / Content ───────────────────────────────────────── */
.article-body {
  max-width: 800px;
  margin: 0 auto;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.article-cat {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal);
}

.article-date { font-size: 13px; color: var(--grey-700); }

.article-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2rem 0 .75rem;
}

.article-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 1.5rem 0 .5rem;
}

.article-body p { margin-bottom: 1.1rem; line-height: 1.75; }

.article-body ul, .article-body ol {
  margin-bottom: 1.1rem;
}

.article-body a:not(.btn) { color: var(--teal); }
.article-body a:not(.btn):hover { text-decoration: underline; }

.article-body strong { color: var(--navy); }

.callout {
  background: var(--grey-50);
  border-left: 4px solid var(--teal);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 1.5rem 0;
}
.callout p { margin: 0; }

/* ── Carousel ────────────────────────────────────────────────── */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #2d3748;
}

.carousel-track {
  display: flex;
  transition: transform .5s ease;
}

.carousel-slide { flex-shrink: 0; width: 100%; }
.carousel-slide img { width: 100%; height: 340px; object-fit: cover; object-position: top left; display: block; }

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.4);
  color: var(--white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  z-index: 2;
}
.carousel-btn:hover { background: rgba(0,0,0,.65); }
.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }

.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  cursor: pointer;
  border: none;
  transition: background var(--transition);
}
.carousel-dot.active { background: var(--white); }

/* ── News Index Cards ────────────────────────────────────────── */
.news-featured {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 64px;
  border: 1px solid var(--grey-100);
}

.news-featured-img { position: relative; overflow: hidden; min-height: 340px; }
.news-featured-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-featured:hover .news-featured-img img { transform: scale(1.03); }

.news-featured-tag {
  position: absolute; top: 20px; left: 20px;
  background: var(--teal); color: var(--white);
  font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 100px;
}

.news-featured-body {
  padding: 44px 48px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-featured-body h2 { font-size: 1.7rem; font-weight: 800; color: var(--navy); margin-bottom: 14px; }
.news-featured-body p  { color: var(--grey-700); margin-bottom: 24px; }

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.news-card {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.news-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }

.news-card-img { position: relative; height: 200px; overflow: hidden; }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-card:hover .news-card-img img { transform: scale(1.05); }

.news-card-tag {
  position: absolute; top: 14px; left: 14px;
  background: var(--teal); color: var(--white);
  font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 100px;
}

.news-card-body { padding: 24px; }
.news-card-body h3 { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.news-card-body p  { font-size: .9rem; color: var(--grey-700); margin-bottom: 16px; }
.news-card-meta { font-size: 12px; color: var(--grey-700); }

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  color: var(--teal);
  font-weight: 700;
  font-size: .9rem;
  transition: gap var(--transition);
}
.read-more:hover { gap: 10px; }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--grey-200);
  border-radius: 6px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--navy);
  transition: background var(--transition), border-color var(--transition);
}

.page-link:hover { background: var(--teal-light); border-color: var(--teal); color: var(--teal); }
.page-link.active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.page-link:disabled, .page-link.disabled { opacity: .4; cursor: not-allowed; }

/* ── Solutions ────────────────────────────────────────────────── */
.solutions-section { background: var(--grey-50); }

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.solution-card {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.solution-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.solution-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.solution-card p  { font-size: .9rem; color: var(--grey-700); margin-bottom: 16px; }

.status-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 12px;
}
.badge-available { background: var(--teal-light); color: var(--teal); }
.badge-development { background: var(--sky); color: #2a7ab8; }

/* Solutions features list */
.feature-article-card {
  display: flex;
  gap: 28px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius);
  transition: box-shadow var(--transition), transform var(--transition);
  margin-bottom: 20px;
}
.feature-article-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.feature-article-thumb {
  width: 220px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  align-self: stretch;
  min-height: 140px;
}
.feature-article-thumb img {
  /*width: 100%;
  height: 100%;*/
  object-fit: cover;
  object-position: top center;
  display: block;
}
.feature-article-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.feature-article-card p  { font-size: .9rem; color: var(--grey-700); margin-bottom: 14px; }

/* ── Platform ────────────────────────────────────────────────── */
.module-card {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.module-card:hover { box-shadow: var(--shadow); }
.module-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 14px; }

.module-logo { height: 56px; width: auto; margin-bottom: 16px; }

.module-card ul { list-style: none; padding: 0; }
.module-card ul li { padding: .3rem 0; color: var(--grey-700); font-size: .9rem; }
.module-card ul li::before { content: '→ '; color: var(--teal); font-weight: 700; }

.capability-card {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.capability-card img { height: 52px; width: auto; display: block; margin: 0 auto 14px; }
.capability-card h4 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.capability-card p  { font-size: .9rem; color: var(--grey-700); margin: 0; }

/* ── About / Team ────────────────────────────────────────────── */
.team-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.team-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--teal-light);
  margin: 0 auto 16px;
}

.team-info { text-align: center; }
.team-info h4 { font-size: 1.1rem; font-weight: 800; color: var(--navy); }
.team-info .role { font-size: .85rem; color: var(--teal); font-weight: 600; margin-bottom: 10px; }
.team-social a { color: var(--grey-400); font-size: 1.2rem; transition: color var(--transition); }
.team-social a:hover { color: var(--navy); }

.team-bio p { color: var(--grey-700); font-size: .95rem; line-height: 1.7; margin-bottom: .75rem; }
.team-bio p:last-child { margin-bottom: 0; }

/* ── Contact ─────────────────────────────────────────────────── */
.contact-section {
  background: var(--navy);
  padding: 80px 0;
  color: var(--white);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-label { font-size: 12px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; color: var(--teal); margin-bottom: 16px; }

.contact-section h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--navy); font-weight: 800; margin-bottom: 16px; }

.contact-section p { margin-bottom: 32px; color: var(--navy); }

.contact-info { display: flex; flex-direction: column; gap: 20px; }

.contact-info-item { display: flex; gap: 16px; align-items: flex-start; }

.contact-info-icon {
  width: 44px; height: 44px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: var(--teal);
  flex-shrink: 0;
}

.contact-info-text h5 { font-size: .9rem; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.contact-info-text p  { font-size: .875rem; color: rgba(255,255,255,.6); margin: 0; }

.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
}

.contact-form-wrap h3 { color: var(--navy); font-size: 1.3rem; font-weight: 700; margin-bottom: 24px; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .85rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }

.form-group input,
.form-group textarea {
  width: 100%;
  border: 1.5px solid var(--grey-200);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: .95rem;
  font-family: inherit;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(11,184,169,.15);
}

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

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  background: var(--navy-dark);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-logo { height: 80px; margin-bottom: 16px; }

.footer-desc { font-size: .9rem; color: rgba(255,255,255,.55); line-height: 1.6; margin-bottom: 20px; }

.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6);
  font-size: .9rem;
  transition: background var(--transition), color var(--transition);
}
.footer-social a:hover { background: var(--teal); color: var(--white); }

.footer-heading {
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 18px;
}

.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,.7); font-size: .9rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--teal); }

.footer-reg { font-size: .85rem; color: rgba(255,255,255,.45); line-height: 1.9; }

.footer-brands { display: flex; flex-direction: column; gap: 14px; }
.footer-brands a { display: block; }
.footer-brands img { height: 36px; opacity: .75; transition: opacity var(--transition); }
.footer-brands a:hover img { opacity: 1; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
}

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

.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: rgba(255,255,255,.5); font-size: .85rem; transition: color var(--transition); }
.footer-bottom-links a:hover { color: rgba(255,255,255,.85); }

.footer-copyright { font-size: .8rem; color: rgba(255,255,255,.35); }

/* ── Back to Top ─────────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow);
  transition: background var(--transition), transform var(--transition);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, background .2s, transform .2s;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--teal); transform: translateY(-2px); }

/* ── Privacy / Accessibility / Simple Content ────────────────── */
.prose {
  max-width: 780px;
  margin: 0 auto;
}

.prose h2 {
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  border-bottom: 2px solid var(--teal-light);
  padding-bottom: 6px;
  margin: 2rem 0 .75rem;
}

.prose p  { color: var(--grey-700); line-height: 1.75; }
.prose ul { margin-bottom: 1rem; }
.prose li { color: var(--grey-700); }

/* ── 404 ─────────────────────────────────────────────────────── */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  text-align: center;
}

.error-code { font-size: 7rem; font-weight: 900; color: var(--teal); line-height: 1; margin-bottom: 16px; }
.error-page h1 { font-size: 1.8rem; margin-bottom: 14px; }
.error-page p { color: var(--grey-700); margin-bottom: 28px; }

/* ── Utilities ───────────────────────────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4, .stats-grid, .use-case-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .news-grid, .solutions-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}

@media (max-width: 768px) {
  body { font-size: 15px; }

  .section { padding: 56px 0; }

  .nav-links {
    display: none;
    position: fixed;
    top: 88px;
    left: 0;
    right: 0;
    background: #2d3748;
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    box-shadow: 0 8px 20px rgba(0,0,0,.3);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  .has-drop .dropdown {
    display: block;
    position: static;
    list-style: none;
    padding: 4px 0;
    margin-top: 4px;
    box-shadow: none;
    background: rgba(255,255,255,.07);
    border: none;
    border-radius: 6px;
    overflow: hidden;
  }
  .has-drop::after { display: none; }
  .dropdown li { list-style: none; margin: 0; padding: 0; }
  .dropdown a {
    color: rgba(255,255,255,.80) !important;
    border-bottom: none !important;
    padding: 9px 20px !important;
  }
  .dropdown a:hover { background: rgba(255,255,255,.12) !important; color: var(--white) !important; }

  .grid-2, .grid-3, .grid-4, .stats-grid, .news-grid,
  .solutions-grid, .use-case-grid, .suite-grid,
  .contact-inner, .hero-inner { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; }

  .news-featured { grid-template-columns: 1fr; }
  .news-featured-img { min-height: 220px; }
  .news-featured-body { padding: 28px; }

  .feature-article-card { flex-direction: column; }
  .feature-article-thumb { width: 100%; min-height: 200px; align-self: auto; }

  .team-card { grid-template-columns: 1fr; }

  .page-hero { padding: 48px 24px 44px; }

  .contact-form-wrap { padding: 24px; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.9rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
