:root {
  /* Nexora / Enterprise Oceanic Light System */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --bg-elevated: #ffffff;
  
  /* Brand Deep Navy & Oceanic Blues (matched to logo #0a5ca6 & #14bdde) */
  --brand-navy: #092c4c;
  --brand-ocean: #0a5ca6;
  --brand-deep: #07437c;
  --brand-cyan: #0284c7;
  --brand-sky: #0ea5e9;
  --brand-teal: #009688;
  --brand-accent: #0284c7;

  /* Text colors */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  /* Accents */
  --accent-blue: #0284c7;
  --accent-cyan: #0284c7;
  --accent-emerald: #10b981;
  --accent-purple: #7c3aed;
  --accent-amber: #d97706;

  /* Gradients */
  --gradient-ocean: linear-gradient(135deg, #092c4c 0%, #0a5ca6 60%, #0284c7 100%);
  --gradient-text: linear-gradient(135deg, #0a5ca6 0%, #0284c7 100%);
  --gradient-glow: linear-gradient(135deg, #0a5ca6 0%, #0284c7 100%);
  --gradient-card: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);

  /* Typography */
  --font-heading: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Shadows & Elevation */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-card: 0 10px 30px -5px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.04);
  --shadow-card-hover: 0 20px 40px -10px rgba(10, 92, 166, 0.16), 0 8px 16px -4px rgba(15, 23, 42, 0.06);
  --shadow-float: 0 20px 45px -10px rgba(15, 23, 42, 0.12);
  --shadow-btn: 0 4px 14px rgba(10, 92, 166, 0.3);
  --shadow-btn-hover: 0 8px 25px rgba(10, 92, 166, 0.45);

  /* Borders */
  --border-light: #e2e8f0;
  --border-card: #e2e8f0;
  --border-card-hover: #bae6fd;

  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  background-image: 
    radial-gradient(ellipse at 80% 0%, rgba(14, 165, 233, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 30%, rgba(10, 92, 166, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 70%, rgba(2, 132, 199, 0.04) 0%, transparent 50%);
  background-attachment: fixed;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

/* Global Container */
.container {
  width: 90%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Dynamic Text Gradient */
.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Section Eyebrow Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.2);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-ocean);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  width: fit-content;
}

.badge .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-ocean);
  box-shadow: 0 0 10px rgba(10, 92, 166, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

/* Refined Clean White Card (Reference Style) */
.glass-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-card-hover);
  box-shadow: var(--shadow-card-hover);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.8rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--brand-ocean);
  color: #ffffff;
  font-weight: 600;
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  background: var(--brand-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn-hover);
  color: #ffffff;
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: var(--brand-ocean);
  color: var(--brand-ocean);
  transform: translateY(-2px);
}

.btn-outline-ocean {
  background: transparent;
  color: var(--brand-ocean);
  border: 1.5px solid var(--brand-ocean);
}

.btn-outline-ocean:hover {
  background: rgba(10, 92, 166, 0.06);
}

/* Header & Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.brand-logo img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-secondary);
  position: relative;
  padding: 0.4rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--brand-ocean);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--brand-ocean);
  transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hamburger {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: var(--transition);
  border-radius: 2px;
}

/* Hero Section (Reference Design with Full Background Architectural Image) */
.hero-section {
  padding-top: 170px;
  padding-bottom: 120px;
  position: relative;
  overflow: hidden;
  background: url('../images/hero_bg.webp') no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  border-bottom: 1px solid var(--border-light);
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(248, 250, 252, 0.94) 0%, rgba(248, 250, 252, 0.88) 42%, rgba(248, 250, 252, 0.35) 75%, rgba(248, 250, 252, 0.15) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 3.8rem;
  line-height: 1.12;
  margin: 1.2rem 0;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.hero-content h1 span.hero-accent {
  display: block;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.18rem;
  color: var(--text-secondary);
  margin-bottom: 2.2rem;
  max-width: 560px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

/* Glass Floating Interactive Card on Hero Right */
.hero-feature-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 2.2rem;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.2), 0 0 0 1px rgba(2, 132, 199, 0.1);
  max-width: 420px;
  width: 100%;
  transition: var(--transition);
}

.hero-feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -12px rgba(10, 92, 166, 0.25);
}

.hero-feature-card h4 {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
}

.hero-feature-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.hero-feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-pill {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  background: #e0f2fe;
  color: var(--brand-ocean);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Floating Stats Bar (Reference Design - Overlapping bottom of hero) */
.metrics-bar-section {
  position: relative;
  margin-top: -45px;
  z-index: 10;
  padding-bottom: 20px;
}

.metrics-bar {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 15px 35px -5px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(15, 23, 42, 0.04);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 1.6rem 2rem;
  align-items: center;
}

.metrics-col {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 0.5rem 1.5rem;
  border-right: 1px solid var(--border-light);
}

.metrics-col:last-child {
  border-right: none;
}

.metrics-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #e0f2fe;
  color: var(--brand-ocean);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.metrics-data h3 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  font-family: var(--font-heading);
}

.metrics-data p {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.2rem;
  line-height: 1.3;
}

/* Section Common Styling */
.section {
  padding: 60px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin: 0.8rem 0;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Reference Style Split Section Header (Header left, Description & Link right) */
.section-header-split {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.section-header-split .header-left h2 {
  font-size: 2.5rem;
  margin-top: 0.6rem;
  letter-spacing: -0.02em;
}

.section-header-split .header-right {
  max-width: 460px;
  text-align: right;
}

.section-header-split .header-right p {
  color: var(--text-secondary);
  font-size: 0.98rem;
  margin-bottom: 0.6rem;
}

.section-header-split .header-right .header-action-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--brand-ocean);
  font-weight: 600;
  font-size: 0.95rem;
}

/* Services 4-Column Grid (Reference Design Style) */
.services-ref-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* Services 3-Column Grid variant (used in Services showcase & About values) */
.services-ref-grid--3col {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 2rem;
}

.service-ref-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 2rem 1.6rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04);
  transition: var(--transition);
  height: 100%;
}

.service-ref-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-card-hover);
  box-shadow: var(--shadow-card-hover);
}

/* Pastel Badges for Icons */
.service-ref-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.service-ref-icon.cyan {
  background: #e0f2fe;
  color: #0284c7;
}

.service-ref-icon.emerald {
  background: #dcfce7;
  color: #16a34a;
}

.service-ref-icon.purple {
  background: #ede9fe;
  color: #7c3aed;
}

.service-ref-icon.amber {
  background: #fef3c7;
  color: #d97706;
}

.service-ref-card h3 {
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.service-ref-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.8rem;
  flex-grow: 1;
}

.service-ref-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand-ocean);
  transition: var(--transition);
}

.service-ref-card .card-link:hover {
  gap: 0.7rem;
}

/* About / Feature Split Section (Reference Layout) */
.about-split-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 1025px) {
  .about-split-grid--reversed {
    grid-template-columns: 1.05fr 1fr;
  }
  .about-split-grid--reversed .about-split-content {
    order: 2;
  }
  .about-split-grid--reversed .about-split-media {
    order: 1;
  }
}

.about-split-content h2 {
  font-size: 2.6rem;
  margin: 1rem 0 1.2rem;
  letter-spacing: -0.02em;
}

.about-split-content p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.8rem;
}

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-primary);
  font-size: 0.96rem;
  font-weight: 500;
}

.check-list li svg {
  color: var(--brand-ocean);
  flex-shrink: 0;
}

/* Feature checklist for deep dive sections */
.feature-checklist {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.feature-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.55;
}

.feature-checklist li svg {
  color: var(--brand-ocean);
  flex-shrink: 0;
  margin-top: 3px;
}

.about-split-media {
  position: relative;
}

.about-split-media .main-img {
  border-radius: 18px;
  width: 100%;
  box-shadow: var(--shadow-float);
  border: 1px solid var(--border-light);
  object-fit: cover;
}

.exp-badge {
  position: absolute;
  bottom: 25px;
  right: 25px;
  background: #ffffff;
  padding: 1.2rem 1.6rem;
  border-radius: 14px;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.15);
  border: 1px solid var(--border-light);
  max-width: 220px;
  transition: var(--transition);
}

.exp-badge h4 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--brand-ocean);
  line-height: 1;
  font-family: var(--font-heading);
}

.exp-badge .badge-sub {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 0.2rem;
}

.exp-badge p {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin-top: 0.35rem;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .exp-badge {
    position: static;
    margin-top: 1.2rem;
    max-width: 100%;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem 1.25rem;
  }
  .exp-badge h4 {
    font-size: 2rem;
    margin-bottom: 0;
  }
  .exp-badge .badge-sub {
    font-size: 0.92rem;
  }
}

/* Vision & Mission 2-Card Grid */
.vision-mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.vm-card {
  padding: 2.5rem;
  border-left: 5px solid var(--brand-ocean);
  background: #ffffff;
  border-radius: 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.vm-card.mission {
  border-left-color: var(--accent-emerald);
}

.vm-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}

.vm-icon {
  font-size: 1.8rem;
}

.vm-card h3 {
  font-size: 1.5rem;
}

.vm-card p {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.7;
}

.vm-list {
  margin-top: 1.5rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.vm-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.vm-list li svg {
  color: var(--brand-ocean);
  flex-shrink: 0;
}

/* Showcase Row (Solutions / Services Pages) */
.showcase-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 5rem;
}

.showcase-row:nth-child(even) {
  direction: rtl;
}

.showcase-row:nth-child(even) .showcase-content {
  direction: ltr;
}

.showcase-img {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  background: #ffffff;
}

.showcase-content h2, .showcase-content h3 {
  font-size: 2.2rem;
  margin: 0.8rem 0 1rem;
}

.showcase-content p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1.02rem;
  line-height: 1.7;
}

.feature-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.feature-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.feature-checklist li svg {
  color: var(--brand-ocean);
  margin-top: 3px;
  flex-shrink: 0;
}

/* Estimator Card */
.calc-card {
  padding: 3rem;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
}

.calc-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.calc-option {
  padding: 1.2rem;
  border-radius: 12px;
  border: 1.5px solid var(--border-light);
  background: #f8fafc;
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
}

.calc-option:hover, .calc-option.selected {
  border-color: var(--brand-ocean);
  background: #e0f2fe;
}

.calc-option h4 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
  color: var(--text-primary);
}

.calc-option span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* FAQ Accordion */
.faq-container {
  max-width: 850px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border-radius: 12px;
  padding: 1.4rem 1.8rem;
  cursor: pointer;
  background: #ffffff;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--brand-ocean);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.faq-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-ocean);
  font-weight: 700;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

.faq-item.active .faq-answer {
  max-height: 250px;
  margin-top: 1rem;
}

/* Contact / Form Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
  align-items: flex-start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.contact-item a {
  word-break: break-word;
  overflow-wrap: anywhere;
}

.contact-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #e0f2fe;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-ocean);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-form {
  padding: 2.5rem;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

/* Engineering Pledge Card (About Us page) */
.pledge-card {
  padding: 3.5rem 2.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--brand-ocean);
  box-shadow: 0 0 0 3px rgba(10, 92, 166, 0.15);
}

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

/* Legal & Compliance */
.legal-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 130px 0 100px;
}

.legal-content h1 {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
}

.legal-content .last-updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  display: block;
}

.legal-section {
  margin-bottom: 2.5rem;
}

.legal-section h2 {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
  color: var(--brand-ocean);
}

.legal-section p, .legal-section ul {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.legal-section ul {
  padding-left: 1.5rem;
}

/* Footer (Deep Oceanic / Dark Slate clean footer) */
.footer {
  background: #091e36;
  color: #f1f5f9;
  padding: 80px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand .brand-logo {
  color: #ffffff;
}

.footer-brand p {
  color: #94a3b8;
  font-size: 0.92rem;
  margin-top: 1rem;
  max-width: 320px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 1.05rem;
  margin-bottom: 1.3rem;
  color: #ffffff;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: #38bdf8;
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #94a3b8;
  font-size: 0.88rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
}

.footer-legal-links a {
  color: #94a3b8;
}

.footer-legal-links a:hover {
  color: #ffffff;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .hero-grid, .showcase-row, .contact-grid, .about-split-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .section-header-split {
    flex-direction: column;
    align-items: flex-start;
  }
  .section-header-split .header-right {
    text-align: left;
    max-width: 100%;
  }
  .services-ref-grid,
  .services-ref-grid--3col {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  .vision-mission-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .metrics-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .metrics-col {
    border-right: none;
  }
  .showcase-row:nth-child(even) {
    direction: ltr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.6rem;
  }
  .section-header h2 {
    font-size: 2rem;
  }
  .services-ref-grid,
  .services-ref-grid--3col {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .intro-block,
  .intro-block--sm {
    padding-top: 105px;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
  }
  .contact-section {
    padding-top: 105px;
    padding-bottom: 40px;
  }
  .legal-content {
    padding: 105px 0 60px;
  }
  .service-ref-card {
    padding: 1.6rem 1.3rem;
  }
  .vm-card {
    padding: 1.75rem 1.3rem;
  }
  .contact-info-card {
    padding: 1.6rem 1.3rem;
    gap: 1.25rem;
  }
  .contact-form {
    padding: 1.75rem 1.3rem;
    gap: 1.1rem;
  }
  .pledge-card {
    padding: 2.2rem 1.3rem;
  }
  .contact-item {
    gap: 0.9rem;
  }
  .contact-icon-box {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }
  .form-control {
    font-size: 1rem; /* 16px to prevent iOS auto-zoom on mobile */
    padding: 0.8rem 1rem;
  }
  .metrics-bar {
    grid-template-columns: 1fr;
  }
  .vision-mission-grid {
    grid-template-columns: 1fr;
  }
  .nav-menu {
    position: fixed;
    top: 78px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 78px);
    background: #ffffff;
    flex-direction: column;
    padding: 2.5rem;
    gap: 1.8rem;
    align-items: flex-start;
    transition: var(--transition);
    border-top: 1px solid var(--border-light);
    box-shadow: var(--shadow-float);
  }
  .nav-menu.open {
    left: 0;
  }
  .hamburger {
    display: block;
  }
  .nav-cta .btn {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
/* --- Client Testimonials & Reviews Section --- */
.testimonials-section {
  padding: 80px 0;
  background: var(--bg-primary);
  position: relative;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.review-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--brand-sky);
}

.review-stars {
  display: flex;
  gap: 0.25rem;
  color: #f59e0b;
  margin-bottom: 1rem;
}

.review-text {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.reviewer-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--border-light);
  padding-top: 1rem;
}

.reviewer-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-ocean);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.reviewer-details h4 {
  font-size: 1rem;
  margin-bottom: 0.15rem;
  color: var(--text-primary);
}

.reviewer-details span {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: block;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--accent-emerald);
  font-weight: 600;
  margin-top: 0.25rem;
}

/* --- Case Studies Showcase Grid --- */
.case-studies-section {
  padding: 80px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.case-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.case-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--brand-ocean);
}

.case-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.2rem;
}

.case-category {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-ocean);
}

.case-stat {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--brand-navy);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.case-stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 1.2rem;
}

.case-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.case-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.case-tag {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 0.25rem 0.75rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* --- Blog Hub & Article Components --- */
.blog-hero {
  text-align: center;
  padding: 120px 0 40px;
}

.blog-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 2rem 0;
}

.blog-filter-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  padding: 0.5rem 1.1rem;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.blog-filter-btn:hover, .blog-filter-btn.active {
  background: var(--brand-ocean);
  color: #ffffff;
  border-color: var(--brand-ocean);
}

.blog-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin: 2.5rem 0;
}

.blog-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--brand-ocean);
}

.blog-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, #092c4c, #0a5ca6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.8);
  font-size: 2.5rem;
}

.blog-card-body {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.blog-card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  line-height: 1.35;
  color: var(--text-primary);
}

.blog-card-title a:hover {
  color: var(--brand-ocean);
}

.blog-card-snippet {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-light);
  padding-top: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-ocean);
}

/* --- Single Article View Styling --- */
.article-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 120px 1.5rem 60px;
}

.article-header {
  margin-bottom: 2.5rem;
  text-align: left;
}

.article-header h1 {
  font-size: 2.8rem;
  line-height: 1.2;
  margin: 1rem 0;
}

.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.article-content {
  font-size: 1.1rem;
  line-height: 1.85;
  color: #1e293b;
}

.article-content h2 {
  font-size: 1.85rem;
  margin: 2.5rem 0 1rem;
  color: var(--brand-navy);
}

.article-content h3 {
  font-size: 1.4rem;
  margin: 1.8rem 0 0.8rem;
  color: var(--brand-ocean);
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content ul, .article-content ol {
  margin: 1rem 0 1.5rem 1.8rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content blockquote {
  border-left: 4px solid var(--brand-ocean);
  padding: 1rem 1.5rem;
  background: var(--bg-tertiary);
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-secondary);
}

.article-content a {
  color: var(--brand-ocean);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

.article-content a:hover {
  color: var(--brand-deep);
}

.article-cta-box {
  background: linear-gradient(135deg, #092c4c 0%, #0a5ca6 100%);
  color: #ffffff;
  padding: 2.5rem;
  border-radius: 16px;
  margin: 3rem 0;
  text-align: center;
}

.article-cta-box h3 {
  color: #ffffff;
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
}

.article-cta-box p {
  color: #e2e8f0;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.article-cta-box a.btn {
  text-decoration: none !important;
  font-weight: 600 !important;
  letter-spacing: normal;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

.article-cta-box a.btn-primary {
  background: var(--brand-ocean) !important;
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
}

.article-cta-box a.btn-primary:hover {
  background: var(--brand-deep) !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
  transform: translateY(-2px);
}

.article-cta-box a.btn-secondary {
  background: #ffffff !important;
  color: var(--brand-ocean) !important;
  border: 1.5px solid #ffffff !important;
}

.article-cta-box a.btn-secondary:hover {
  background: #f8fafc !important;
  color: var(--brand-deep) !important;
  transform: translateY(-2px);
}
/* Social Share and Community Bar */
.footer-social-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.2rem;
}
.social-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  transition: var(--transition);
}
.social-icon-btn:hover {
  background: var(--brand-ocean);
  color: #ffffff;
  transform: translateY(-2px);
  border-color: var(--brand-sky);
}
.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.blog-card:hover .blog-card-img img {
  transform: scale(1.05);
}
.article-featured-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 16px;
  margin: 1.5rem 0 2rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
}

/* ==========================================================================
   Design system layer 2 — tokens, accessibility, modernized components
   Appended after the original stylesheet, so later rules take precedence.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Extended tokens
   -------------------------------------------------------------------------- */
:root {
  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 5rem;

  /* Radius scale */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  /* Elevation / layering */
  --z-base: 1;
  --z-rail: 10;
  --z-sticky: 100;
  --z-nav: 1000;
  --z-modal: 2000;

  /* Motion */
  --dur-fast: 150ms;
  --dur-base: 300ms;
  --dur-slow: 500ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Contrast-safe remaps: these are the lightest text tones and must still
     clear WCAG AA 4.5:1 on both --bg-primary and --bg-secondary. */
  --text-light: #64748b;
  --emerald-text: #047857;
  --purple-text: #6d28d9;
  --amber-text: #b45309;
  --border-strong: #cbd5e1;
  --focus-ring: 0 0 0 3px rgba(2, 132, 199, 0.45);

  /* Fluid type scale */
  --step-h1: clamp(2.15rem, 1.45rem + 3.1vw, 3.8rem);
  --step-h2: clamp(1.7rem, 1.3rem + 1.7vw, 2.5rem);
  --step-h3: clamp(1.15rem, 1.05rem + 0.5vw, 1.5rem);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px; /* clears the fixed navbar for in-page anchors */
}

body {
  overflow-x: clip; /* replaces the overflow-x: hidden masking */
}

/* --------------------------------------------------------------------------
   2. Accessibility primitives
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--brand-ocean);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--brand-ocean);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  z-index: var(--z-modal);
  padding: 0.75rem 1.25rem;
  background: var(--brand-navy);
  color: #ffffff;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top var(--dur-fast) ease;
}

.skip-link:focus {
  top: 0;
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
.hero-content h1,
.hero-title,
.page-title,
.article-header h1,
.article-content > h1 {
  font-size: var(--step-h1);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.section-header h2,
.section h2,
.page-header h2,
.blog-hero h1 {
  font-size: var(--step-h2);
  line-height: 1.18;
  letter-spacing: -0.015em;
}

.article-content h2,
.article-content h3 {
  font-size: var(--step-h3);
}

p,
li {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

/* --------------------------------------------------------------------------
   4. Section modifiers (replace the removed inline styles)
   -------------------------------------------------------------------------- */
.section--white {
  background: var(--bg-secondary);
}

.section--muted {
  background: var(--bg-primary);
}

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

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

.section--tight {
  padding: 20px 0 50px;
}

.intro-block {
  text-align: center;
  padding-top: 130px;
  padding-bottom: 2rem;
  margin-bottom: 2.5rem;
}

.intro-block--sm {
  padding-top: 125px;
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.contact-section {
  padding-top: 130px;
  padding-bottom: 60px;
}

.band {
  margin-bottom: 3.5rem;
}

/* --------------------------------------------------------------------------
   5. Components that were referenced in HTML but never defined
   -------------------------------------------------------------------------- */
.metric-num {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 1.9rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--brand-navy);
}

.hero-card-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.calc-option-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.exp-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.05;
  color: var(--brand-navy);
}

.reviewer-name {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
}

.contact-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.footer-social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.footer-col .footer-heading {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.3rem;
  color: #ffffff;
}

.footer-wordmark {
  color: #ffffff;
}

.footer-accent {
  color: #38bdf8;
}

.blog-hero-lead {
  max-width: 760px;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: 1.12rem;
  line-height: 1.7;
}

.blog-filter-status {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  min-height: 1.2em;
}

/* --------------------------------------------------------------------------
   6. Contrast corrections
   -------------------------------------------------------------------------- */
.badge {
  color: #075985;
  background: #e0f2fe;
  border-color: #bae6fd;
}

.verified-badge {
  color: var(--emerald-text);
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.service-ref-icon.cyan { color: #0369a1; }
.service-ref-icon.emerald { color: var(--emerald-text); }
.service-ref-icon.purple { color: var(--purple-text); }
.service-ref-icon.amber { color: var(--amber-text); }

/* --------------------------------------------------------------------------
   7. Touch targets (>= 44px)
   -------------------------------------------------------------------------- */
.hamburger {
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.blog-filter-btn {
  min-height: 44px;
  padding: 0.6rem 1.2rem;
}

.social-icon-btn {
  width: 44px;
  height: 44px;
}

/* --------------------------------------------------------------------------
   8. FAQ accordion as native <details>
   -------------------------------------------------------------------------- */
details.faq-item {
  padding: 0;
  overflow: hidden;
}

details.faq-item > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
}

details.faq-item > summary::-webkit-details-marker,
details.faq-item > summary::marker {
  display: none;
  content: "";
}

details.faq-item > summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  color: var(--brand-ocean);
  transition: transform var(--dur-base) var(--ease-out);
}

details.faq-item[open] > summary::after {
  transform: rotate(45deg);
}

details.faq-item .faq-answer {
  max-height: none;
  overflow: visible;
  padding: 0 1.5rem 1.4rem;
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.7;
}

details.faq-item .faq-answer p {
  margin: 0;
}

/* --------------------------------------------------------------------------
   9. Article components
   -------------------------------------------------------------------------- */
.answer-summary {
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  background: #f0f9ff;
  border-left: 4px solid var(--brand-ocean);
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-primary);
}

.key-takeaways {
  padding: 1.5rem 1.75rem;
  margin-bottom: 2.25rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
}

.key-takeaways-title,
.toc-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-navy);
  margin-bottom: 0.9rem;
}

.key-takeaways ul {
  margin: 0;
  padding-left: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.key-takeaways li {
  color: var(--text-secondary);
  line-height: 1.65;
}

.toc {
  padding: 1.5rem 1.75rem;
  margin-bottom: 2.5rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
}

.toc ol {
  margin: 0;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--text-secondary);
}

.toc a {
  color: var(--brand-ocean);
  font-weight: 600;
}

.toc a:hover {
  text-decoration: underline;
}

.table-wrap {
  margin: 1.75rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

.table-wrap table,
.article-content table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.table-wrap caption,
.article-content caption {
  caption-side: top;
  padding: 0.9rem 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.table-wrap th,
.article-content th {
  background: var(--bg-tertiary);
  text-align: left;
  font-weight: 700;
  color: var(--brand-navy);
}

.table-wrap th,
.table-wrap td,
.article-content th,
.article-content td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
}

.table-wrap tbody tr:last-child td,
.article-content tbody tr:last-child td {
  border-bottom: 0;
}

.breadcrumbs {
  margin-bottom: 1.25rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--border-strong);
}

.breadcrumbs a {
  color: var(--brand-ocean);
  font-weight: 600;
}

.breadcrumbs [aria-current="page"] {
  color: var(--text-muted);
}

.article-faq,
.article-references,
.article-related {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
}

.article-references ul {
  padding-left: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.article-references a {
  color: var(--brand-ocean);
  font-weight: 600;
}

.related-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.related-grid a {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  height: 100%;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  transition: var(--transition);
}

.related-grid a:hover {
  border-color: var(--border-card-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.related-category {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-ocean);
}

.related-title {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
}

.article-cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.article-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
}

.article-nav a {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.article-nav-next {
  text-align: right;
}

.article-nav-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 700;
}

.article-nav-title {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--brand-ocean);
  line-height: 1.4;
}

.article-nav a:hover .article-nav-title {
  text-decoration: underline;
}

.article-featured-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  margin-bottom: 2.5rem;
}

/* Lists used as grids need their UA list styling removed */
.blog-posts-grid {
  list-style: none;
  margin: 0;
  padding: 0;
}

.blog-card-title {
  font-size: 1.15rem;
  line-height: 1.35;
}

/* --------------------------------------------------------------------------
   10. Responsive: tablet refinements and a dedicated small-screen breakpoint
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .metrics-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

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

  .article-nav {
    grid-template-columns: 1fr;
  }

  .article-nav-next {
    text-align: left;
  }
}

@media (max-width: 768px) {
  :root {
    --step-h1: clamp(2rem, 1.5rem + 3.5vw, 2.6rem);
    --step-h2: clamp(1.55rem, 1.3rem + 1.6vw, 2rem);
  }

  .section {
    padding: 48px 0;
  }

  .answer-summary,
  .key-takeaways,
  .toc {
    padding: 1.15rem 1.2rem;
  }

  .article-cta-actions {
    flex-direction: column;
  }

  .article-cta-actions .btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    width: 100%;
    padding: 0 1rem;
  }

  .service-ref-card,
  .vm-card,
  .contact-info-card,
  .contact-form,
  .pledge-card {
    padding: 1.35rem 1.05rem;
  }

  .metrics-bar {
    grid-template-columns: 1fr;
  }

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

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

  .footer-legal-links {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .hero-actions,
  .hero-actions .btn {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .blog-filters {
    gap: 0.5rem;
  }

  .table-wrap {
    margin-left: -1.15rem;
    margin-right: -1.15rem;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
}

/* --------------------------------------------------------------------------
   11. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .badge .pulse-dot {
    animation: none;
  }

  .glass-card:hover,
  .related-grid a:hover,
  .btn:hover {
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   12. Dark theme (opt-in via <html data-theme="dark">)
   Applied only when explicitly requested, so the brand light theme is never
   altered by an operating-system preference.
   -------------------------------------------------------------------------- */
[data-theme="dark"] {
  color-scheme: dark;

  --bg-primary: #0b1220;
  --bg-secondary: #111a2b;
  --bg-tertiary: #162034;
  --bg-elevated: #162034;

  --text-primary: #eef2f7;
  --text-secondary: #b8c4d4;
  --text-muted: #93a2b6;
  --text-light: #8494a8;

  --border-light: #223047;
  --border-card: #223047;
  --border-card-hover: #2f4a6d;
  --border-strong: #33445e;
}

[data-theme="dark"] body,
[data-theme="dark"] .section--white,
[data-theme="dark"] .glass-card,
[data-theme="dark"] .service-ref-card,
[data-theme="dark"] .vm-card,
[data-theme="dark"] .case-card,
[data-theme="dark"] .review-card,
[data-theme="dark"] .calc-card,
[data-theme="dark"] .contact-form,
[data-theme="dark"] .exp-badge,
[data-theme="dark"] .toc,
[data-theme="dark"] .blog-card,
[data-theme="dark"] .related-grid a {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

[data-theme="dark"] .section--muted,
[data-theme="dark"] .key-takeaways {
  background: var(--bg-tertiary);
}

[data-theme="dark"] .navbar {
  background: rgba(11, 18, 32, 0.92);
  border-bottom-color: var(--border-light);
}

[data-theme="dark"] .navbar .brand-logo,
[data-theme="dark"] .nav-link,
[data-theme="dark"] .footer-heading {
  color: var(--text-primary);
}

[data-theme="dark"] .answer-summary {
  background: #10243a;
  border-left-color: var(--brand-sky);
}

[data-theme="dark"] .table-wrap th,
[data-theme="dark"] .article-content th {
  background: var(--bg-tertiary);
  color: var(--brand-sky);
}

[data-theme="dark"] .form-control,
[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--border-light);
}

[data-theme="dark"] .toc a,
[data-theme="dark"] .breadcrumbs a,
[data-theme="dark"] .article-references a,
[data-theme="dark"] .article-nav-title {
  color: #7cc4f5;
}

[data-theme="dark"] .hero-section::before {
  background: linear-gradient(90deg, rgba(11, 18, 32, 0.94) 0%, rgba(11, 18, 32, 0.35) 100%);
}

/* --------------------------------------------------------------------------
   13. Scroll-state and filtering hooks used by the interactive engine
   -------------------------------------------------------------------------- */
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
  border-bottom-color: rgba(10, 92, 166, 0.15);
}

[data-theme="dark"] .navbar.scrolled {
  background: rgba(11, 18, 32, 0.96);
}

.blog-card[hidden] {
  display: none;
}

.form-status {
  margin-top: 0.25rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.form-status[data-state="success"] {
  color: var(--emerald-text);
  font-weight: 600;
}

.form-status[data-state="error"] {
  color: #b91c1c;
  font-weight: 600;
}

.form-status[data-state="pending"] {
  color: var(--brand-ocean);
}

.form-honey {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.required-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: -0.6rem;
}

/* --------------------------------------------------------------------------
   14. Market & Currency Toggle for Estimator
   -------------------------------------------------------------------------- */
.market-toggle-container {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.market-toggle {
  display: inline-flex;
  background: var(--bg-tertiary);
  padding: 5px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.05);
  gap: 4px;
}

.market-btn {
  background: transparent;
  border: none;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.market-btn:hover {
  color: var(--brand-ocean);
}

.market-btn.active {
  background: var(--brand-ocean);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(10, 92, 166, 0.3);
}

.market-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: -1rem;
  margin-bottom: 1.5rem;
}

/* --------------------------------------------------------------------------
   15. Author Bio Box on Article Pages
   -------------------------------------------------------------------------- */
.author-box {
  margin: 3.5rem 0 2.5rem;
  padding: 2.2rem;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  display: flex;
  gap: 1.8rem;
  align-items: flex-start;
}

@media (max-width: 640px) {
  .author-box {
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.2rem;
  }
}

.author-avatar {
  width: 72px;
  height: 72px;
  min-width: 72px;
  border-radius: 50%;
  background: var(--gradient-ocean);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #bae6fd;
  box-shadow: 0 6px 16px rgba(10, 92, 166, 0.25);
}

.author-info {
  flex: 1;
}

.author-badge {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brand-ocean);
  background: rgba(10, 92, 166, 0.08);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.4rem;
}

.author-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.author-role {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0.6rem;
}

.author-bio {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.author-links {
  display: flex;
  gap: 1.2rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.author-links a {
  color: var(--brand-ocean);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.author-links a:hover {
  color: var(--brand-navy);
}

/* --------------------------------------------------------------------------
   16. Standalone Service Pages & Team Cards
   -------------------------------------------------------------------------- */
.service-header-hero {
  padding: 4.5rem 0 3.5rem;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.8) 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border-light);
}

.service-header-hero .badge {
  margin-bottom: 1rem;
}

.service-header-hero h1 {
  font-size: 2.8rem;
  line-height: 1.15;
  max-width: 850px;
  margin-bottom: 1.2rem;
}

@media (max-width: 768px) {
  .service-header-hero h1 {
    font-size: 2.1rem;
  }
}

.service-header-hero .lead-p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 750px;
  margin-bottom: 2rem;
}

.service-cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.tech-stack-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

.tech-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.team-card {
  max-width: 520px;
  margin: 0 auto;
  padding: 2.5rem;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  text-align: center;
}

.team-avatar-lg {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--gradient-ocean);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  border: 4px solid #bae6fd;
  box-shadow: 0 8px 24px rgba(10, 92, 166, 0.28);
}

