/* =========================================================
   NOJIRO TECHNOLOGIES — CORPORATE DESIGN SYSTEM
   Theme: Clean Minimalist Light (Soft Slate & Off-White)
   Design Goal: Crisp, modern, plain, and low eye-strain corporate aesthetic
   Reference: Enterprise IT Consultancies (Digitos, Stripe, Linear)
   ========================================================= */

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Warm Off-White Editorial Palette (Paper / Linen, Ultra Low Eye Strain) */
  --bg-primary: #F9F8F5;       /* Warm soothing off-white linen/ivory, gentle on eyes, no blue-light glare */
  --bg-secondary: #FFFFFF;     /* Pure white for cards, headers, containers */
  --bg-tertiary: #F1EFEA;      /* Warm muted stone/sand for alternating sections & spec blocks */
  --bg-card-hover: #FDFDFB;    /* Subtle warm card hover */
  --bg-glass: rgba(249, 248, 245, 0.94); /* Warm frosted navbar glass */

  /* Typography Colors */
  --text-primary: #1C1917;     /* Warm Stone 900 - deep rich charcoal (never harsh pitch black) */
  --text-secondary: #57534E;   /* Warm Stone 600 - comfortable, readable warm gray */
  --text-tertiary: #78716C;    /* Warm Stone 500 - meta & secondary notes */
  --heading: #1C1917;          /* Warm Stone 900 - crisp corporate headings */
  --white: #FFFFFF;            /* Pure white for button text */

  /* Hairline Minimal Borders */
  --border: #E7E5E0;           /* Warm Stone 200 - subtle warm hairline structure */
  --border-strong: #D6D3CD;    /* Warm Stone 300 */
  --border-subtle: #F1EFEA;    /* Warm Stone 100 */
  --border-accent: rgba(37, 99, 235, 0.3);

  /* Accents */
  --accent: #2563EB;           /* Corporate royal cobalt */
  --accent-hover: #1D4ED8;     /* Deep cobalt hover */
  --accent-light: #EFF6FF;      /* Blue 50 light tint */
  --accent-cyan: #2563EB;      /* Crisp high-contrast blue for tags & highlights */
  --error: #DC2626;
  --success: #059669;
  --whatsapp: #25D366;
  --whatsapp-hover: #1FB855;

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --tracking-tighter: -0.035em;
  --tracking-tight: -0.02em;

  /* Layout */
  --max-width: 1280px;
  --section-pad-y: 88px;
  --section-pad-x: 48px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow-x: clip;
  -webkit-overflow-scrolling: touch;
}

h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
  -webkit-tap-highlight-color: transparent;
}

/* --- Structural Grid Utilities --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--section-pad-x);
  padding-right: var(--section-pad-x);
}

.section-border-bottom {
  border-bottom: 1px solid var(--border);
}

.section-border-top {
  border-top: 1px solid var(--border);
}

.section {
  padding-top: var(--section-pad-y);
  padding-bottom: var(--section-pad-y);
  position: relative;
}

.section-header {
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: 2.125rem;
  font-weight: 650;
  letter-spacing: var(--tracking-tight);
  color: var(--heading);
  line-height: 1.2;
}

.section-subheader {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 700px;
  margin-bottom: 52px;
}

/* =========================================================
   1. NAVIGATION BAR
   ========================================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.navbar-brand-group {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 24px;
  height: 24px;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.navbar-brand {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--heading);
  white-space: nowrap;
}

.navbar-links-wrapper {
  display: flex;
  align-items: center;
}

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

.navbar-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  position: relative;
  padding: 6px 0;
}

.navbar-links a:hover {
  color: var(--heading);
}

.navbar-links a.active {
  color: var(--heading);
  font-weight: 600;
}

.navbar-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--accent);
}

.btn-contact-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
  background-color: var(--accent);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
  border-radius: 4px;
  touch-action: manipulation;
  user-select: none;
}

.btn-contact-nav:hover {
  background-color: var(--accent-hover);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-contact-nav-mobile {
  display: none;
}

/* Mobile Toggle */
.navbar-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 8px;
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 4px;
  touch-action: manipulation;
}

.navbar-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--heading);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.navbar-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar-toggle.active span:nth-child(2) {
  opacity: 0;
}
.navbar-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================================================
   2. HERO SECTION
   ========================================================= */
.hero {
  padding-top: 72px;
  padding-bottom: 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0;
  border: 1px solid var(--border);
  background-color: var(--bg-secondary);
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.05), 0 4px 6px -4px rgba(15, 23, 42, 0.03);
}

.hero-main {
  padding: 64px 54px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--border);
  position: relative;
}

.hero-main h1 {
  font-size: 2.875rem;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: var(--tracking-tighter);
  color: var(--heading);
  margin-bottom: 22px;
  max-width: 580px;
}

.hero-main p {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 520px;
  margin-bottom: 38px;
}

.hero-cta-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--white);
  background-color: var(--accent);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.2);
  border-radius: 4px;
  touch-action: manipulation;
  user-select: none;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-strong);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  border-radius: 4px;
  touch-action: manipulation;
  user-select: none;
}

.btn-secondary:hover {
  background-color: var(--bg-tertiary);
  border-color: var(--accent);
  color: var(--accent);
}

/* Hero Right — Corporate Fact Sheet Grid */
.hero-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  background-color: var(--bg-secondary);
}

.hero-fact {
  padding: 38px 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-color: var(--bg-secondary);
  transition: background-color 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.hero-fact:hover {
  background-color: var(--bg-tertiary);
}

.hero-fact:nth-child(1) {
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

.hero-fact:nth-child(2) {
  border-bottom: 1px solid var(--border);
}

.hero-fact:nth-child(3) {
  border-right: 1px solid var(--border);
}

.hero-fact-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.hero-fact-title {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  color: var(--heading);
  line-height: 1.35;
}

/* =========================================================
   3. OPERATIONAL METRICS STRIP (INSPIRED BY DIGITOS PROOF BAR)
   ========================================================= */
.metrics-strip {
  border-bottom: 1px solid var(--border);
  background-color: var(--bg-secondary);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

.metric-cell {
  padding: 36px 32px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  background-color: var(--bg-secondary);
  transition: background-color 0.2s ease;
}

.metric-cell:last-child {
  border-right: none;
}

.metric-cell:hover {
  background-color: var(--bg-tertiary);
}

.metric-value {
  font-size: 2.375rem;
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 8px;
}

.metric-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 6px;
}

.metric-subtext {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  line-height: 1.5;
}

/* =========================================================
   4. ENTERPRISE PROFILE (ABOUT PILLARS)
   ========================================================= */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  background-color: var(--bg-secondary);
}

.profile-card {
  padding: 42px 34px;
  border-right: 1px solid var(--border);
  background-color: var(--bg-secondary);
  transition: all 0.25s ease;
}

.profile-card:last-child {
  border-right: none;
}

.profile-card:hover {
  background-color: var(--bg-tertiary);
}

.profile-card-number {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

.profile-card-title {
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  color: var(--heading);
  margin-bottom: 12px;
  line-height: 1.35;
}

.profile-card-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* =========================================================
   5. OPERATING PROTOCOLS (CORE VALUES)
   ========================================================= */
.protocol-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  background-color: var(--bg-secondary);
}

.protocol-card {
  padding: 44px 38px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--bg-secondary);
  transition: all 0.25s ease;
}

.protocol-card:nth-child(3n) {
  border-right: none;
}

.protocol-card:nth-last-child(-n+3) {
  border-bottom: none;
}

.protocol-card:hover {
  background-color: var(--bg-tertiary);
}

.protocol-id {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

.protocol-title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  color: var(--heading);
  margin-bottom: 12px;
  line-height: 1.3;
}

.protocol-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* =========================================================
   6. OPERATIONAL FRAMEWORK (WHAT / HOW / WHY)
   ========================================================= */
.framework-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border: 1px solid var(--border);
  background-color: var(--bg-secondary);
}

.framework-col {
  padding: 50px 40px;
  background-color: var(--bg-secondary);
  transition: background-color 0.2s ease;
}

.framework-col:not(:last-child) {
  border-right: 1px solid var(--border);
}

.framework-col:hover {
  background-color: var(--bg-tertiary);
}

.framework-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.framework-title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  color: var(--heading);
  margin-bottom: 16px;
  line-height: 1.35;
}

.framework-body {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* =========================================================
   7. VISION & OBJECTIVES
   ========================================================= */
.vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
  background-color: var(--bg-secondary);
}

.vision-left {
  padding: 60px 52px;
  display: flex;
  align-items: center;
  border-right: 1px solid var(--border);
}

.vision-statement {
  font-size: 1.6875rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: var(--tracking-tight);
  color: var(--heading);
}

.vision-right {
  padding: 60px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 36px;
  background-color: var(--bg-secondary);
}

.objective {
  display: flex;
  gap: 20px;
}

.objective-number {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
  flex-shrink: 0;
  padding-top: 3px;
}

.objective-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.objective-title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--heading);
  line-height: 1.3;
}

.objective-body {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* =========================================================
   8. ROADMAP SECTION
   ========================================================= */
.roadmap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border: 1px solid var(--border);
  background-color: var(--bg-secondary);
}

.roadmap-card {
  padding: 46px 38px;
  background-color: var(--bg-secondary);
  transition: all 0.25s ease;
}

.roadmap-card:not(:last-child) {
  border-right: 1px solid var(--border);
}

.roadmap-card:hover {
  background-color: var(--bg-tertiary);
}

.roadmap-phase {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.roadmap-title {
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  color: var(--heading);
  margin-bottom: 14px;
  line-height: 1.35;
}

.roadmap-body {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* =========================================================
   9. GATEWAY CARDS
   ========================================================= */
.gateway-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
  background-color: var(--bg-secondary);
}

.gateway-card {
  padding: 48px 42px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background-color: var(--bg-secondary);
  transition: all 0.25s ease;
}

.gateway-card:nth-child(2n) {
  border-right: none;
}

.gateway-card:nth-last-child(-n+2) {
  border-bottom: none;
}

.gateway-card:hover {
  background-color: var(--bg-tertiary);
}

.gateway-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.gateway-title {
  font-size: 1.4375rem;
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  color: var(--heading);
  margin-bottom: 14px;
  line-height: 1.3;
}

.gateway-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 30px;
}

.gateway-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
  transition: color 0.2s ease, gap 0.2s ease;
}

.gateway-link:hover {
  color: var(--accent-hover);
  gap: 12px;
}

/* =========================================================
   10. SUBPAGES & DETAILED SECTIONS
   ========================================================= */
.page-intro {
  padding-top: 64px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
  background-color: var(--bg-secondary);
}

.page-intro-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.page-intro-title {
  font-size: 2.625rem;
  font-weight: 700;
  letter-spacing: var(--tracking-tighter);
  color: var(--heading);
  line-height: 1.15;
  margin-bottom: 16px;
  max-width: 820px;
}

.page-intro-desc {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 720px;
}

/* Detailed Services Blocks */
.service-detail-block {
  border: 1px solid var(--border);
  background-color: var(--bg-secondary);
  margin-bottom: 44px;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.04);
}

.service-detail-header {
  padding: 36px 40px;
  background-color: var(--bg-tertiary);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
}

.service-detail-id {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.service-detail-title {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  color: var(--heading);
}

.service-detail-body {
  padding: 40px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
}

.service-detail-text h4 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 12px;
}

.service-detail-text p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 24px;
}

.service-specs-box {
  padding: 30px;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border);
}

.service-specs-box h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 16px;
}

.specs-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.specs-list li {
  font-size: 0.875rem;
  color: var(--text-primary);
  padding-left: 20px;
  position: relative;
  line-height: 1.55;
}

.specs-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background-color: var(--accent);
}

/* Execution Steps */
.methodology-step-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  background-color: var(--bg-secondary);
}

.step-card {
  padding: 42px 34px;
  border-right: 1px solid var(--border);
  background-color: var(--bg-secondary);
  transition: all 0.25s ease;
}

.step-card:last-child {
  border-right: none;
}

.step-card:hover {
  background-color: var(--bg-tertiary);
}

.step-card-num {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

.step-card-title {
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  color: var(--heading);
  margin-bottom: 14px;
  line-height: 1.35;
}

.step-card-body {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Industry Verticals */
.verticals-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  background-color: var(--bg-secondary);
}

.vertical-card {
  padding: 40px 32px;
  border-right: 1px solid var(--border);
  background-color: var(--bg-secondary);
  transition: all 0.25s ease;
}

.vertical-card:last-child {
  border-right: none;
}

.vertical-card:hover {
  background-color: var(--bg-tertiary);
}

.vertical-card-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.vertical-card-title {
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  color: var(--heading);
  margin-bottom: 12px;
  line-height: 1.35;
}

.vertical-card-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* =========================================================
   11. FAQ ACCORDION
   ========================================================= */
.faq-list {
  border: 1px solid var(--border);
  background-color: var(--bg-secondary);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(28, 25, 23, 0.04);
}

.faq-item {
  border-bottom: 1px solid var(--border);
  transition: background-color 0.2s ease;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 24px 32px;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--heading);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  gap: 24px;
  line-height: 1.45;
  background-color: var(--bg-secondary);
  border: none;
}

.faq-question:hover {
  background-color: #FAF9F6;
  color: var(--accent);
}

.faq-item.active .faq-question {
  color: var(--accent);
  background-color: #F4F2EB; /* Swapped: Active question has the warm stone background */
  border-bottom: 1px solid var(--border);
}

.faq-icon {
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--accent);
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(37, 99, 235, 0.08);
  transition: transform 0.25s ease, background-color 0.2s ease, color 0.2s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background-color: var(--accent);
  color: var(--white);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  background-color: #FFFFFF; /* Swapped: Answer has the clean pure white background */
}

.faq-answer-inner {
  padding: 26px 32px 30px 32px;
  font-size: 0.95rem;
  color: #383531; /* Deep, readable warm charcoal */
  line-height: 1.7;
  max-width: 820px;
  border-left: 3px solid var(--accent); /* Clear visual accent guide */
  background-color: #FFFFFF;
}

/* =========================================================
   12. CONTACT & INTAKE PORTAL
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
  background-color: var(--bg-secondary);
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.05), 0 4px 6px -4px rgba(15, 23, 42, 0.03);
}

.contact-left {
  padding: 60px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 38px;
  border-right: 1px solid var(--border);
}

.contact-block-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.contact-block-value {
  font-size: 1.1875rem;
  font-weight: 600;
  color: var(--heading);
  line-height: 1.4;
}

.contact-block-value a {
  color: var(--heading);
  transition: color 0.2s ease;
}

.contact-block-value a:hover {
  color: var(--accent);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
  background-color: var(--whatsapp);
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-top: 10px;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp:hover {
  background-color: var(--whatsapp-hover);
}

.contact-response-note {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  margin-top: 4px;
}

/* Contact Form UI */
.contact-right {
  padding: 60px 52px;
  background-color: var(--bg-secondary);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

.form-input,
.form-select,
.form-textarea {
  padding: 12px 16px;
  font-size: 0.9375rem;
  color: var(--text-primary);
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-strong);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-tertiary);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

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

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748B' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-select option {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: var(--error);
}

.form-error-msg {
  font-size: 0.75rem;
  color: var(--error);
  display: none;
}

.form-error-msg.visible {
  display: block;
}

.btn-submit {
  width: 100%;
  padding: 14px 28px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--white);
  background-color: var(--accent);
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 6px;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.2);
}

.btn-submit:hover {
  background-color: var(--accent-hover);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.form-success {
  display: none;
  padding: 22px 26px;
  background-color: #ECFDF5;
  border: 1px solid #A7F3D0;
  font-size: 0.9375rem;
  color: #065F46;
  font-weight: 500;
  text-align: center;
}

.form-success.visible {
  display: block;
}

/* =========================================================
   13. FOOTER
   ========================================================= */
.footer {
  border-top: 1px solid var(--border);
  padding: 34px 0;
  background-color: var(--bg-secondary);
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--heading);
}

/* =========================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================= */
@media (max-width: 1024px) {
  :root {
    --section-pad-x: 32px;
    --section-pad-y: 64px;
  }

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

  .hero-main {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 48px 36px;
  }

  .hero-main h1 {
    font-size: 2.25rem;
  }

  .framework-grid,
  .roadmap-grid,
  .gateway-grid,
  .vision-grid {
    grid-template-columns: 1fr;
  }

  .vision-left {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 48px 36px;
  }

  .vision-right {
    padding: 48px 36px;
  }

  .framework-col:not(:last-child),
  .roadmap-card:not(:last-child),
  .gateway-card:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .metrics-grid,
  .protocol-grid,
  .profile-grid,
  .methodology-step-grid,
  .verticals-grid {
    grid-template-columns: 1fr 1fr;
  }

  .metric-cell:nth-child(2),
  .protocol-card:nth-child(2n),
  .profile-card:nth-child(2),
  .step-card:nth-child(2),
  .vertical-card:nth-child(2) {
    border-right: none;
  }

  .metric-cell:nth-child(1),
  .metric-cell:nth-child(2),
  .profile-card:nth-child(1),
  .profile-card:nth-child(2),
  .step-card:nth-child(1),
  .step-card:nth-child(2),
  .vertical-card:nth-child(1),
  .vertical-card:nth-child(2) {
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 768px) {
  :root {
    --section-pad-x: 20px;
    --section-pad-y: 48px;
  }

  /* Sticky Navigation on Mobile */
  .navbar .container {
    height: 62px;
  }

  .navbar-brand {
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
  }

  .navbar-links-wrapper {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 16px var(--section-pad-x) 24px;
    gap: 12px;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1);
    max-height: calc(100vh - 62px);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  .navbar-links-wrapper.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .navbar-links {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .navbar-links li {
    width: 100%;
  }

  .navbar-links a {
    display: block;
    width: 100%;
    padding: 13px 4px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-subtle);
  }

  .navbar-links a.active {
    color: var(--accent);
    font-weight: 600;
  }

  .navbar-links a.active::after {
    display: none;
  }

  .navbar-toggle {
    display: flex;
  }

  .btn-contact-nav-desktop {
    display: none;
  }

  .btn-contact-nav-mobile {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    padding: 13px 20px;
    text-align: center;
    margin-top: 8px;
    font-size: 0.9375rem;
  }

  /* Headings & Text */
  .section-header h2 {
    font-size: 1.625rem;
    line-height: 1.25;
  }

  .section-subheader {
    font-size: 0.95rem;
    margin-bottom: 28px;
    line-height: 1.55;
  }

  /* Hero Section */
  .hero {
    padding-top: 20px;
    padding-bottom: 36px;
  }

  .hero-main {
    padding: 32px 20px;
  }

  .hero-main h1 {
    font-size: 1.85rem;
    line-height: 1.2;
    margin-bottom: 16px;
  }

  .hero-main p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .hero-cta-group .btn-primary,
  .hero-cta-group .btn-secondary {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 14px 20px;
  }

  /* Facts Grid */
  .hero-facts {
    grid-template-columns: 1fr 1fr;
  }

  .hero-fact {
    padding: 22px 18px;
  }

  .hero-fact-title {
    font-size: 0.95rem;
    line-height: 1.35;
  }

  /* Touch-Swipeable Card Carousels on Mobile (Scroll-Snap Momentum) */
  .metrics-grid,
  .profile-grid,
  .protocol-grid,
  .methodology-step-grid,
  .roadmap-grid,
  .verticals-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 14px !important;
    padding-bottom: 16px !important;
    padding-top: 4px !important;
    border: none !important;
    background: transparent !important;
    margin-left: calc(-1 * var(--section-pad-x)) !important;
    margin-right: calc(-1 * var(--section-pad-x)) !important;
    padding-left: var(--section-pad-x) !important;
    padding-right: var(--section-pad-x) !important;
    touch-action: pan-x pan-y !important;
  }

  /* Sleek scrollbar indicator for horizontal swipe */
  .metrics-grid::-webkit-scrollbar,
  .profile-grid::-webkit-scrollbar,
  .protocol-grid::-webkit-scrollbar,
  .methodology-step-grid::-webkit-scrollbar,
  .roadmap-grid::-webkit-scrollbar,
  .verticals-grid::-webkit-scrollbar {
    height: 3px;
  }

  .metrics-grid::-webkit-scrollbar-track,
  .profile-grid::-webkit-scrollbar-track,
  .protocol-grid::-webkit-scrollbar-track,
  .methodology-step-grid::-webkit-scrollbar-track,
  .roadmap-grid::-webkit-scrollbar-track,
  .verticals-grid::-webkit-scrollbar-track {
    background: var(--border-subtle);
    border-radius: 4px;
    margin: 0 var(--section-pad-x);
  }

  .metrics-grid::-webkit-scrollbar-thumb,
  .profile-grid::-webkit-scrollbar-thumb,
  .protocol-grid::-webkit-scrollbar-thumb,
  .methodology-step-grid::-webkit-scrollbar-thumb,
  .roadmap-grid::-webkit-scrollbar-thumb,
  .verticals-grid::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 4px;
  }

  .metric-cell,
  .profile-card,
  .protocol-card,
  .step-card,
  .roadmap-card,
  .vertical-card {
    flex: 0 0 84% !important;
    min-width: 260px !important;
    max-width: 320px !important;
    scroll-snap-align: start !important;
    scroll-snap-stop: normal !important;
    border: 1px solid var(--border) !important;
    border-radius: 6px !important;
    background-color: var(--bg-secondary) !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
    padding: 24px 20px !important;
  }

  .metric-value {
    font-size: 1.85rem;
  }

  .metric-label {
    font-size: 0.8125rem;
  }

  .metric-subtext {
    font-size: 0.75rem;
  }

  .framework-grid,
  .gateway-grid {
    grid-template-columns: 1fr !important;
    border: 1px solid var(--border) !important;
    border-radius: 6px !important;
    overflow: hidden !important;
  }

  .framework-col,
  .gateway-card {
    padding: 26px 20px !important;
    border-right: none !important;
    border-bottom: 1px solid var(--border) !important;
  }

  .framework-col:last-child,
  .gateway-card:last-child {
    border-bottom: none !important;
  }

  .gateway-title {
    font-size: 1.25rem;
  }

  /* Vision Section */
  .vision-left {
    padding: 32px 20px;
  }

  .vision-statement {
    font-size: 1.25rem;
    line-height: 1.45;
  }

  .vision-right {
    padding: 32px 20px;
    gap: 22px;
  }

  /* Subpages */
  .page-intro {
    padding-top: 36px;
    padding-bottom: 28px;
  }

  .page-intro-title {
    font-size: 1.85rem;
    line-height: 1.2;
    margin-bottom: 12px;
  }

  .page-intro-desc {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  /* Services Detail */
  .service-detail-header {
    flex-direction: column;
    align-items: stretch;
    padding: 24px 20px;
    gap: 16px;
  }

  .service-detail-title {
    font-size: 1.25rem;
  }

  .service-detail-header .btn-secondary {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 12px 18px;
  }

  .service-detail-body {
    grid-template-columns: 1fr;
    padding: 24px 20px;
    gap: 24px;
  }

  .service-specs-box {
    padding: 20px 18px;
  }

  /* Contact & Form */
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-left {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 32px 20px;
    gap: 26px;
  }

  .contact-block-value {
    font-size: 1.05rem;
  }

  .btn-whatsapp {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 0.9375rem;
  }

  .contact-right {
    padding: 32px 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .form-input,
  .form-select,
  .form-textarea {
    font-size: 16px; /* Prevents auto-zoom on iOS Safari */
    padding: 12px 14px;
    border-radius: 4px;
  }

  .btn-submit {
    padding: 14px 20px;
    font-size: 0.95rem;
    min-height: 48px;
    border-radius: 4px;
  }

  /* FAQ */
  .faq-question {
    padding: 18px 20px;
    font-size: 0.95rem;
    gap: 16px;
  }

  .faq-answer-inner {
    padding: 18px 20px 20px 20px;
    font-size: 0.9rem;
    border-left: 3px solid var(--accent);
  }

  /* Footer */
  .footer {
    padding: 28px 0;
  }

  .footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 12px 20px;
  }
}

@media (max-width: 480px) {
  :root {
    --section-pad-x: 16px;
    --section-pad-y: 40px;
  }

  .navbar-brand {
    font-size: 0.75rem;
  }

  .hero-main h1 {
    font-size: 1.625rem;
  }

  .hero-facts {
    grid-template-columns: 1fr;
  }

  .hero-fact:nth-child(1),
  .hero-fact:nth-child(2),
  .hero-fact:nth-child(3) {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .hero-fact:nth-child(4) {
    border-bottom: none;
  }

  .metric-cell,
  .profile-card,
  .protocol-card,
  .step-card,
  .roadmap-card,
  .vertical-card {
    flex: 0 0 86% !important;
    min-width: 240px !important;
  }

  .page-intro-title {
    font-size: 1.625rem;
  }

  .section-header h2 {
    font-size: 1.45rem;
  }
}

@media (max-width: 360px) {
  :root {
    --section-pad-x: 12px;
    --section-pad-y: 36px;
  }

  .hero-main h1 {
    font-size: 1.45rem;
  }

  .page-intro-title {
    font-size: 1.45rem;
  }

  .section-header h2 {
    font-size: 1.3rem;
  }

  .metric-value {
    font-size: 1.6rem;
  }
}
