/* Core Loop Development — base stylesheet */

/* ============================================================
   CSS Custom Properties
   ============================================================ */
:root {
  --core-black:    #000000;
  --core-graphite: #08111f;
  --core-cobalt:   #0a84ff;
  --core-cyan:     #36f3ff;
  --core-gold:     #ffc600;
  --core-menu-text:#0a84ff;
  --core-bg:       #07111f;
  --core-text:     #eaf3ff;
  --core-muted:    #9fb3c9;
  --core-card:     #0c1729;
}

/* ============================================================
   Reset / Box-Sizing
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ============================================================
   Base
   ============================================================ */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(180deg, #07111f 0%, #0a1426 100%);
  color: var(--core-text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  color: #f4f9ff;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5em;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
}

/* ============================================================
   Links
   ============================================================ */
a {
  color: var(--core-cyan);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--core-gold);
  text-decoration: underline;
}

/* ============================================================
   Buttons
   ============================================================ */
button,
.btn,
input[type="submit"],
input[type="button"],
input[type="reset"] {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background-color: var(--core-gold);
  color: #08111f;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

button:hover,
.btn:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
input[type="reset"]:hover {
  background-color: var(--core-cyan);
  color: #08111f;
}

/* ============================================================
   Forms
   ============================================================ */
label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 500;
}

input,
textarea,
select {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--core-muted);
  border-radius: 4px;
  background-color: var(--core-card);
  color: var(--core-text);
  font-size: 1rem;
  font-family: inherit;
  line-height: 1.5;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--core-cobalt);
  outline-offset: 1px;
  border-color: var(--core-cobalt);
}

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

/* ============================================================
   Layout Containers
   ============================================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1rem;
}

@media (min-width: 992px) {
  .container {
    width: 70%;
    max-width: 70%;
  }
}

.container-fluid {
  width: 100%;
  padding-inline: 1rem;
}

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

/* ============================================================
   Images
   ============================================================ */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   Utility
   ============================================================ */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-left   { text-align: left; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

/* ============================================================
   Cards
   ============================================================ */
.card {
  background-color: var(--core-card);
  border: 1px solid rgba(54, 243, 255, 0.15);
  border-radius: 8px;
  padding: 1.5rem;
}

/* ============================================================
   Core Header / Navigation
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.main-header {
  background: #000000;
  border-bottom: 1px solid rgba(54, 243, 255, 0.28);
  position: relative;
  z-index: 1000;
}

.core-navbar {
  margin: 0;
  min-height: 68px;
  padding: 0;
}

.core-nav-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

.core-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--core-menu-text);
  min-height: 44px;
}

.core-brand-logo {
  width: auto;
  max-width: 260px;
  height: auto;
  object-fit: contain;
}

@media (min-width: 769px) {
  .core-brand {
    flex: 0 0 25%;
    max-width: 25%;
  }

  .core-brand-logo {
    width: 100%;
    max-width: 100%;
    max-height: none;
  }
}

.core-nav-toggle {
  margin-left: auto;
  display: none;
  border: 1px solid rgba(54, 243, 255, 0.45);
  border-radius: 6px;
  background: rgba(10, 132, 255, 0.15);
  padding: 0.45rem 0.55rem;
  min-width: 44px;
  min-height: 44px;
  line-height: 1;
}

.core-nav-toggle .icon-bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 3px 0;
  background: var(--core-cyan);
}

.core-nav-collapse {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.core-nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.1rem;
  margin: 0;
  padding: 0;
}

.core-nav-links a {
  color: var(--core-menu-text);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.45rem 0.75rem;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
}

.core-nav-links a:hover,
.core-nav-links a:focus {
  color: var(--core-gold);
  background: rgba(54, 243, 255, 0.1);
  text-decoration: none;
}

.core-nav-links a[aria-current="page"] {
  color: var(--core-gold);
}

.core-nav-search {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 320px;
  width: 100%;
}


.core-nav-search input {
  margin: 0;
  min-width: 0;
  border: 1px solid rgba(54, 243, 255, 0.32);
  background: #09111d;
  color: #eef6ff;
  height: 38px;
}

.core-nav-search input::placeholder {
  color: #96adc5;
}

.core-nav-search button {
  height: 38px;
  padding: 0 0.9rem;
  border: 1px solid rgba(255, 198, 0, 0.55);
  border-radius: 4px;
  background: #0a84ff;
  color: #08111f;
  white-space: nowrap;
}

.core-nav-search button:hover,
.core-nav-search button:focus {
  background: #36f3ff;
  color: #08111f;
}

@media (max-width: 768px) {
  .core-navbar {
    min-height: 62px;
    padding: 0;
  }

  .core-nav-inner {
    min-height: 62px;
  }

  .core-brand-logo {
    max-width: 220px;
  }

  .core-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .core-nav-collapse {
    width: 100%;
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    right: 0;
    margin-left: 0;
    background: #03070d;
    border: 1px solid rgba(54, 243, 255, 0.25);
    border-radius: 8px;
    padding: 0.5rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .core-nav-collapse {
    display: none;
  }

  .core-nav-collapse.is-open {
    display: flex;
  }

  .core-nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0.1rem;
    width: 100%;
  }

  .core-nav-links a {
    width: 100%;
    padding: 0.65rem 0.75rem;
  }

  .core-nav-search {
    max-width: 100%;
  }

  .core-nav-search input {
    flex: 1 1 auto;
  }
}

@media (max-width: 500px) {
  .core-nav-search {
    flex-direction: column;
  }

  .core-nav-search button {
    width: 100%;
    height: 40px;
  }
}

/* ============================================================
   Dark Project Card Readability
   ============================================================ */
.project-card h1,
.project-card h2,
.project-card h3,
.project-card h4,
.project-card h5,
.project-card h6,
.project-card .project-title,
.project-card .project-title-text,
.project-row h1,
.project-row h2,
.project-row h3,
.project-row h4,
.project-row h5,
.project-row h6,
.project-row .project-title,
.project-row .project-title-text {
  color: var(--core-cyan);
}

.project-card p,
.project-card .project-short,
.project-row p,
.project-row .project-short {
  color: #dbeafe;
}

.project-card a,
.project-row a {
  color: var(--core-gold);
}

.project-card a:hover,
.project-card a:focus,
.project-row a:hover,
.project-row a:focus {
  color: var(--core-cyan);
}

/* ============================================================
   Footer placeholder
   ============================================================ */
footer {
  background-color: #000000;
  color: var(--core-cyan);
  padding: 2rem 1rem;
  margin-top: 3rem;
}

footer a {
  color: var(--core-cyan);
}

footer a:hover {
  color: var(--core-gold);
}

/* ============================================================
   Highlight Text: Gold on Blue Surfaces
   ============================================================ */
body *[style*="color: #00a8ff"],
body *[style*="color:#00a8ff"],
body *[style*="color: #00d4ff"],
body *[style*="color:#00d4ff"],
body *[style*="color: #36f3ff"],
body *[style*="color:#36f3ff"],
body *[style*="color: #4cc9ff"],
body *[style*="color:#4cc9ff"] {
  color: var(--core-gold) !important;
}

/* ============================================================
   Responsive helpers
   ============================================================ */
@media (max-width: 768px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }

  .row {
    flex-direction: column;
  }
}

/* ============================================================
   Service Site Layout
   ============================================================ */
.service-site {
  background: linear-gradient(180deg, #07111f 0%, #0a1426 55%, #0d1930 100%);
}

.service-hero {
  padding: 5rem 0 4rem;
  background:
    linear-gradient(120deg, rgba(7, 17, 31, 0.93), rgba(10, 132, 255, 0.58)),
    url('/assets/images/RL-splash.png') center/cover no-repeat;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.service-hero.compact {
  padding: 4rem 0 3rem;
}

.service-kicker {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.76rem;
  color: var(--core-gold);
  margin-bottom: 0.7rem;
}

.service-hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin-bottom: 0.7rem;
}

.service-lead {
  font-size: clamp(1.15rem, 2.8vw, 1.55rem);
  color: #e9f5ff;
  margin-bottom: 1rem;
}

.service-sublead {
  max-width: 920px;
  color: #d0e5fb;
}

.service-section {
  padding: 1.95rem 0;
}

.service-section + .service-section {
  border-top: 1px solid rgba(54, 243, 255, 0.08);
}

.service-section.alt {
  background: rgba(12, 23, 41, 0.72);
  border-top: 1px solid rgba(54, 243, 255, 0.08);
  border-bottom: 1px solid rgba(54, 243, 255, 0.08);
}

.service-section h2 {
  margin-bottom: 0.7rem;
}

.section-intro {
  max-width: 900px;
  color: #bfd4ec;
  margin-bottom: 0.6rem;
}

.service-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.95rem;
}

.core-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  border: 1px solid transparent;
  padding: 0.72rem 1.2rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: all 0.2s ease;
}

.core-action.primary {
  background: var(--core-gold);
  color: #07111f;
  border-color: var(--core-gold);
}

.core-action.primary:hover,
.core-action.primary:focus {
  background: var(--core-cyan);
  border-color: var(--core-cyan);
  color: #07111f;
  text-decoration: none;
}

.core-action.secondary,
.core-action.tertiary {
  border-color: rgba(54, 243, 255, 0.4);
  background: rgba(9, 20, 38, 0.7);
  color: #def8ff;
}

.core-action.secondary:hover,
.core-action.secondary:focus,
.core-action.tertiary:hover,
.core-action.tertiary:focus {
  border-color: var(--core-gold);
  color: var(--core-gold);
  text-decoration: none;
}

.service-card-grid,
.benefit-grid,
.three-column-stack {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.service-card-grid.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.three-column-stack {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card-item,
.benefit-item,
.service-detail-card,
.ddd-team-visual {
  background: linear-gradient(180deg, #0c1729, #0a1423);
  border: 1px solid rgba(54, 243, 255, 0.2);
  border-radius: 12px;
  padding: 0.72rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.service-card-item h3,
.benefit-item h3,
.service-detail-card h2 {
  color: #f3fbff;
  margin-bottom: 0.45rem;
}

.service-card-item p,
.benefit-item p,
.service-detail-card li {
  color: #c3d7ee;
}

.service-card-item p,
.benefit-item p,
.service-detail-card p {
  margin-bottom: 0.55rem;
}

.service-card-item p:last-child,
.benefit-item p:last-child,
.service-detail-card p:last-child {
  margin-bottom: 0;
}

.service-card-item h3 {
  line-height: 1.3;
}

.service-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  background: rgba(10, 132, 255, 0.24);
}

.service-detail-card ul {
  margin: 0.25rem 0 0;
  padding-left: 1.1rem;
}

.service-detail-card li {
  margin-bottom: 0.22rem;
}

.cta-block {
  background: linear-gradient(125deg, #08111f, #0a84ff);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 1.35rem;
}

.cta-block p {
  max-width: 820px;
  color: #d6ebff;
}

.screenshot-placeholder {
  border: 2px dashed rgba(54, 243, 255, 0.5);
  border-radius: 12px;
  padding: 2.1rem;
  text-align: center;
  color: #cbe3fa;
  background: rgba(12, 23, 41, 0.7);
}

/* ============================================================
   Homepage partnership section
   ============================================================ */
.ddd-partnership-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
}

.ddd-subtitle {
  color: var(--core-gold);
  font-size: 1.15rem;
}

.ddd-copy {
  color: #c6daee;
  margin-bottom: 0.45rem;
}

.compact-copy {
  display: grid;
  gap: 0.4rem;
}

.compact-copy p {
  margin: 0;
}

.service-icon-list {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem 0.65rem;
}

.service-icon-list.single-column {
  grid-template-columns: 1fr;
}

.service-icon-list li {
  color: #d8eafe;
  position: relative;
  padding-left: 1.2rem;
  margin: 0;
  line-height: 1.38;
}

.service-icon-list li::before {
  content: "•";
  color: var(--core-gold);
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
}

.service-quote-list {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.service-quote-list li {
  margin: 0;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  background: rgba(12, 23, 41, 0.75);
  border: 1px solid rgba(54, 243, 255, 0.2);
  color: #e6f5ff;
  line-height: 1.45;
}

.ddd-feature-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.ddd-feature-list li {
  background: rgba(12, 23, 41, 0.75);
  border: 1px solid rgba(54, 243, 255, 0.22);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  color: #e6f5ff;
}

.ddd-feature-list li::before {
  content: "✓ ";
  color: var(--core-gold);
  font-weight: 700;
}

.ddd-team-visual h3 {
  margin-bottom: 0.8rem;
}

.team-link {
  display: grid;
  gap: 0.6rem;
}

.team-block {
  border: 1px solid rgba(255, 198, 0, 0.35);
  border-radius: 10px;
  text-align: center;
  padding: 0.8rem;
  background: rgba(11, 24, 48, 0.82);
}

.team-block span {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 0.28rem;
}

.team-block p {
  color: #e7f5ff;
  margin-bottom: 0;
}

.team-connector {
  text-align: center;
  font-size: 1.4rem;
}

.ddd-callout {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(54, 243, 255, 0.24);
  background: rgba(12, 23, 41, 0.8);
}

.ddd-callout.secondary {
  border-color: rgba(255, 198, 0, 0.32);
}

.ddd-callout-title {
  font-size: 1.07rem;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 0.55rem;
}

.partnership-card {
  background: linear-gradient(165deg, rgba(10, 20, 38, 0.95), rgba(9, 24, 46, 0.92));
  border: 1px solid rgba(54, 243, 255, 0.24);
  border-radius: 14px;
  padding: 0.9rem;
}

/* Compact equation-style partnership layout */
.partnership-compact .partnership-equation {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.partnership-eq-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  background: rgba(8, 17, 31, 0.82);
  border: 1px solid rgba(54, 243, 255, 0.22);
  border-radius: 10px;
  padding: 0.6rem 0.9rem;
  text-align: center;
  min-width: 130px;
}

.partnership-eq-block strong {
  color: #f3fbff;
  font-size: 0.95rem;
}

.partnership-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: 0.45rem;
}

.partnership-block {
  background: rgba(8, 17, 31, 0.82);
  border: 1px solid rgba(54, 243, 255, 0.22);
  border-radius: 10px;
  padding: 0.75rem;
}

.partnership-block h3 {
  margin: 0 0 0.45rem;
  color: #f3fbff;
  font-size: 1.03rem;
}

.partnership-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(10, 132, 255, 0.25);
  margin-bottom: 0.3rem;
  font-size: 1.2rem;
}

.partnership-operator {
  color: var(--core-gold);
  font-weight: 700;
  font-size: 1.45rem;
  align-self: center;
}

.partnership-text {
  color: #d3e6f9;
  margin: 0.55rem 0 0;
}

.tools-flagship {
  background: linear-gradient(180deg, rgba(8, 18, 33, 0.95), rgba(8, 26, 52, 0.86));
  border-top: 1px solid rgba(255, 198, 0, 0.2);
  border-bottom: 1px solid rgba(255, 198, 0, 0.2);
}

/* ============================================================
   Horizontal workflow (desktop) / stacked (mobile)
   ============================================================ */
.workflow-horizontal {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.9rem;
}

.workflow-pill {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(54, 243, 255, 0.24);
  background: rgba(10, 20, 38, 0.82);
  border-radius: 999px;
  padding: 0.45rem 0.9rem 0.45rem 0.55rem;
  white-space: nowrap;
}

.workflow-pill span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 198, 0, 0.2);
  color: var(--core-gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.82rem;
  flex: 0 0 auto;
}

.workflow-pill p {
  margin: 0;
  color: #e8f5ff;
  font-size: 0.9rem;
}

.workflow-h-arrow {
  color: var(--core-gold);
  font-size: 1.1rem;
  line-height: 1;
  flex: 0 0 auto;
}

/* Keep old vertical workflow styles in case used elsewhere */
.workflow-diagram {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.9rem;
  max-width: 620px;
}

.workflow-step {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid rgba(54, 243, 255, 0.24);
  background: rgba(10, 20, 38, 0.82);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
}

.workflow-step span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 198, 0, 0.2);
  color: var(--core-gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex: 0 0 auto;
}

.workflow-step p {
  margin: 0;
  color: #e8f5ff;
}

.workflow-arrow {
  color: var(--core-gold);
  text-align: center;
  font-size: 1.2rem;
  line-height: 1;
}

.portfolio-category {
  margin-top: 2rem;
}

/* ============================================================
   Hero Tagline Branding
   ============================================================ */
.hero-tagline {
  display: inline-block;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--core-gold);
  margin: 1rem 0 0;
  padding: 0.4rem 0.8rem;
  border: 1px solid rgba(255, 198, 0, 0.35);
  border-radius: 6px;
  background: rgba(255, 198, 0, 0.07);
}

/* ============================================================
   Service Card Subtitle
   ============================================================ */
.service-card-subtitle {
  color: var(--core-gold);
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

/* ============================================================
   Project Examples Grid
   ============================================================ */
.project-examples-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.project-example-item {
  background: linear-gradient(180deg, #0c1729, #0a1423);
  border: 1px solid rgba(54, 243, 255, 0.2);
  border-radius: 12px;
  padding: 0.95rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.project-example-item h3 {
  color: #f3fbff;
  margin-bottom: 0.6rem;
}

.project-example-item p {
  color: #c3d7ee;
  margin-bottom: 0;
}

@media (max-width: 992px) {
  .project-examples-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .project-examples-grid {
    grid-template-columns: 1fr;
  }
}



.project-card-item .project-shot {
  border-radius: 10px;
  border: 1px dashed rgba(54, 243, 255, 0.4);
  min-height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
  color: #bcd5ec;
  font-size: 0.9rem;
  background: rgba(8, 17, 31, 0.75);
}

.project-card-item .project-image {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(54, 243, 255, 0.28);
  min-height: 130px;
  object-fit: cover;
  margin-bottom: 0.85rem;
  background: rgba(8, 17, 31, 0.75);
}

.project-card-item .project-status {
  color: #e7f6ff;
  margin: 0.5rem 0 0.9rem;
}

@media (max-width: 992px) {
  .service-card-grid,
  .benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .three-column-stack {
    grid-template-columns: 1fr;
  }

  .ddd-partnership-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  /* Reduce section and hero padding by ~25% on mobile */
  .service-hero,
  .service-section {
    padding: 1.3rem 0;
  }

  .service-hero h1 {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  .service-lead {
    font-size: clamp(1rem, 4.2vw, 1.2rem);
  }

  .service-sublead {
    font-size: 0.97rem;
    line-height: 1.55;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.2rem;
  }

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

  .core-action {
    text-align: center;
    justify-content: center;
  }

  .service-card-grid,
  .service-card-grid.two-columns,
  .benefit-grid,
  .ddd-feature-list,
  .service-icon-list {
    grid-template-columns: 1fr;
  }

  /* Ensure cards look card-like on mobile */
  .service-card-item,
  .benefit-item {
    padding: 0.75rem;
    border-radius: 10px;
  }

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

  .partnership-operator {
    justify-self: center;
    line-height: 1;
  }

  /* Compact equation wraps nicely on small screens */
  .partnership-compact .partnership-equation {
    flex-direction: column;
    align-items: center;
  }

  .partnership-eq-block {
    width: 100%;
    flex-direction: row;
    justify-content: flex-start;
    gap: 0.5rem;
    min-width: unset;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
  }

  .partnership-compact .partnership-operator {
    align-self: center;
  }

  /* Workflow pills stack vertically on mobile */
  .workflow-horizontal {
    flex-direction: column;
    align-items: stretch;
  }

  .workflow-pill {
    border-radius: 10px;
    white-space: normal;
  }

  .workflow-h-arrow {
    text-align: center;
    transform: rotate(90deg);
    align-self: center;
  }

  .cta-block {
    padding: 1.05rem;
  }

  /* Compact list spacing on mobile */
  .service-icon-list li {
    line-height: 1.5;
  }

  p {
    margin-bottom: 0.75rem;
  }
}

/* ============================================================
   Six-block "What We Build" grid
   ============================================================ */
.six-block-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (max-width: 992px) {
  .six-block-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .six-block-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   "Why Customers Work With Us" reason grid
   ============================================================ */
.customer-reason-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 1rem;
}

.customer-reason-item {
  background: rgba(12, 23, 41, 0.75);
  border: 1px solid rgba(54, 243, 255, 0.2);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  color: #e6f5ff;
  font-style: italic;
  line-height: 1.5;
}

@media (max-width: 992px) {
  .customer-reason-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .customer-reason-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Featured project spotlight section
   ============================================================ */
.featured-project-section {
  background: linear-gradient(135deg, #07111f 0%, #0a1e3a 50%, #071928 100%);
  border-top: 2px solid rgba(255, 198, 0, 0.35);
  border-bottom: 2px solid rgba(255, 198, 0, 0.35);
  padding: 2.5rem 0;
}

.featured-project-inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.featured-project-text {
  /* Main text content */
}

.featured-project-badge {
  background: linear-gradient(165deg, rgba(10, 20, 38, 0.95), rgba(9, 24, 46, 0.92));
  border: 1px solid rgba(255, 198, 0, 0.35);
  border-radius: 14px;
  padding: 1.5rem 1rem;
  text-align: center;
  position: sticky;
  top: 1rem;
}

.featured-badge-label {
  font-weight: 700;
  color: #f3fbff;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.featured-badge-sub {
  color: #bfd4ec;
  font-size: 0.9rem;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .featured-project-inner {
    grid-template-columns: 1fr;
  }

  .featured-project-badge {
    position: static;
    order: -1;
  }
}


/* ============================================================
   Sitemap footer, project pages, and request flow
   ============================================================ */
.sitemap-footer {
  background: #000000;
  color: #eaf3ff;
  padding: 2rem 0 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sitemap-footer .footer-widget-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.sitemap-footer .footer-search-wrap {
  display: flex;
  justify-content: center;
  margin: 0 0 1.4rem;
}

.sitemap-footer .footer-search-form {
  width: 100%;
  max-width: 560px;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.sitemap-footer .footer-search-form input {
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid rgba(54, 243, 255, 0.32);
  background: #09111d;
  color: #eef6ff;
  height: 38px;
  border-radius: 4px;
  padding: 0 0.7rem;
}

.sitemap-footer .footer-search-form button {
  height: 38px;
  padding: 0 0.9rem;
  border: 1px solid rgba(255, 198, 0, 0.55);
  border-radius: 4px;
  background: #0a84ff;
  color: #08111f;
  white-space: nowrap;
}

.sitemap-footer .footer-search-form button:hover,
.sitemap-footer .footer-search-form button:focus {
  background: #36f3ff;
  color: #08111f;
}

.footer-sitemap-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}

.sitemap-footer .footer-col h4 {
  color: #eaf3ff;
  font-size: 1rem;
  margin: 0 0 0.7rem;
  text-align: left;
}

.sitemap-footer .footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sitemap-footer .footer-list li {
  margin: 0 0 0.45rem;
}

.sitemap-footer .footer-list a {
  color: #d9ebff;
  text-decoration: none;
}

.sitemap-footer .footer-list a:hover,
.sitemap-footer .footer-list a:focus {
  color: var(--core-gold);
  text-decoration: underline;
}

.footer-signoff {
  background: #000000;
  color: #c7d7e8;
  padding: 0.9rem 0 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-signoff p {
  margin: 0;
  font-size: 0.92rem;
}

.project-page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.request-shell {
  display: grid;
  gap: 1rem;
}

.request-section-card {
  background: linear-gradient(180deg, #0c1729, #0a1423);
  border: 1px solid rgba(54, 243, 255, 0.2);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.request-section-card h2,
.request-section-card h3 {
  margin-top: 0;
}

.request-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.request-field-full {
  grid-column: 1 / -1;
}

.request-field label {
  display: block;
  margin-bottom: 0.35rem;
  color: #bfd4ec;
  font-size: 0.9rem;
}

.request-field input,
.request-field select,
.request-field textarea {
  width: 100%;
  background: #09111d;
  color: #eef6ff;
  border: 1px solid rgba(54, 243, 255, 0.24);
  border-radius: 8px;
  padding: 0.75rem 0.8rem;
}

.request-field textarea {
  min-height: 140px;
  resize: vertical;
}

.request-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: #d8eafe;
}

.request-check input {
  margin-top: 0.2rem;
}

.request-note,
.request-helper {
  color: #bfd4ec;
}

.notice-card,
.error-card {
  border-radius: 10px;
  padding: 0.9rem 1rem;
}

.notice-card {
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #bbf7d0;
}

.error-card {
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.38);
  color: #fecaca;
}

.request-id {
  display: inline-block;
  margin: 0.6rem 0 1rem;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  border: 2px solid rgba(255, 198, 0, 0.4);
  background: rgba(255, 198, 0, 0.08);
  color: var(--core-gold);
  font-weight: 700;
  font-family: monospace;
}

.cost-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.cost-card-price {
  color: var(--core-gold);
  font-weight: 700;
  margin-bottom: 0.45rem;
}

@media (max-width: 1100px) {
  .footer-sitemap-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cost-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .sitemap-footer .footer-search-form {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-sitemap-grid,
  .project-page-grid,
  .request-form-grid,
  .cost-grid {
    grid-template-columns: 1fr;
  }

  .sitemap-footer .footer-col h4 {
    text-align: center;
  }

  .sitemap-footer .footer-list li,
  .sitemap-footer .footer-list a {
    text-align: center;
  }
}
