:root {
  --light-blue: #69dbf9;
  --navy: #033a82;
  --teal: #1eedc4;
  --dark-blue: #013564;
}

* {
  box-sizing: border-box;
}

/* PAGE LAYOUT */
html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #222;
  line-height: 1.6;

  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

header {
  background: white;
  border-bottom: 1px solid #eee;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header img {
  height: 46px;
}

nav a {
  margin-left: 16px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
}

nav a:hover {
  color: var(--teal);
}

/* HERO (BASE) - HOME */
.hero {
  min-height: 55vh;
  background: url("assets/hero.jpg") center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 28px 20px 16px;
  position: relative;
}

/* HOME HERO OVERLAY */
.hero:not(.about-hero)::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(1, 53, 100, 0.55),
    rgba(1, 53, 100, 0.45)
  );
}

/* HERO CONTENT */
.hero-content {
  position: relative;
  max-width: 900px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

/* HERO EYEBROW */
.hero-eyebrow {
  font-size: 46px;
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -0.3px;
}

.hero-eyebrow span {
  display: inline-block;
  margin-top: 6px;
  color: var(--light-blue);
  font-weight: 600;
}

/* HERO SUBTEXT */
.hero-subtext {
  font-size: 18px;
  margin-bottom: 26px;
  opacity: 0.95;
}

/* ABOUT PAGE HERO */
.about-hero {
  background: url("assets/about.jpg") center / cover no-repeat;
  min-height: 65vh;
}

/* ABOUT HERO OVERLAY (MATCH HOME) */
.about-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(1, 53, 100, 0.55),
    rgba(1, 53, 100, 0.45)
  );
}

/* CONTACT PAGE HERO ONLY (GRADIENT IMAGE) */
.contact-page .hero {
  min-height: 25vh;
  background: url("assets/hero-gradient.jpg") center / cover no-repeat;
  padding: 20px;
}

/* CONTACT HERO: NO DARK OVERLAY */
.contact-page .hero::before {
  display: none;
}

/* BUTTON */
.button {
  background: var(--teal);
  color: var(--dark-blue);
  padding: 14px 28px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  display: inline-block;
}

/* DESKTOP HERO REFINEMENT */
@media (min-width: 1024px) {
  .hero {
    padding-top: 90px;
    padding-bottom: 70px;
  }

  .hero-eyebrow {
    font-size: 56px;
  }

  .hero-subtext {
    font-size: 19px;
  }

  .contact-page .hero {
    min-height: 220px;
  }
}

/* SECTIONS */
.section {
  padding: 8px 20px 26px;
  max-width: 1100px;
  margin: auto;
}

/* ABOUT CONTENT */
.about-content {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 24px;
  font-size: 1.05rem;
  line-height: 1.8;
}

.about-content p {
  margin-bottom: 24px;
}

.about-content blockquote {
  margin: 40px 0;
  padding: 22px 24px;
  background: #f7f9fc;
  border-left: 4px solid var(--light-blue);
  font-style: italic;
  color: #444;
}

/* FEATURES */
.features-heading {
  text-align: center;
  font-size: 26px;
  margin-bottom: 18px;
  color: var(--navy);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}

/* FEATURE CARD */
.feature {
  background: #f7f9fc;
  padding: 20px 22px;
  border-radius: 8px;
  display: flex;
  gap: 14px;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.feature svg {
  width: 18px;
  height: 18px;
  stroke: var(--navy);
  stroke-width: 2;
  fill: none;
  margin-top: 4px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

/* ROTATE + TO × WHEN ACTIVE */
.feature.active svg {
  transform: rotate(45deg);
}

.feature:hover {
  transform: translateY(-3px);
  background: #eef6fb;
  box-shadow: 0 6px 16px rgba(1, 53, 100, 0.12);
}

/* Smooth expand/collapse */
.feature-text {
  max-height: 0;
  overflow: hidden;
  margin-top: 0;
  font-size: 0.95rem;
  color: #555;
  transition: max-height 0.35s ease, margin-top 0.25s ease;
}

.feature.active .feature-text {
  max-height: 200px;
  margin-top: 10px;
}

/* FORMS */
form {
  max-width: 520px;
}

form input,
form textarea {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  margin-bottom: 14px;
  min-height: 44px;
}

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

/* FOOTER */
footer {
  background: var(--dark-blue);
  color: white;
  text-align: center;
  padding: 18px;
  font-size: 14px;
  margin-top: auto;
}

/* FOOTER LINKS (RESTORED: white, no underline) */
footer a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
}

footer a:hover,
footer a:active,
footer a:focus {
  color: var(--light-blue);
  text-decoration: none;
}

/* FOOTER SOCIAL ICONS */
.footer-social{
  margin:14px 0 16px 0;
  display:flex;
  justify-content:center;
  gap:18px;
}

.footer-social a{
  display:inline-flex;
  width:22px;
  height:22px;
  opacity:.75;
}

.footer-social a:hover{
  opacity:1;
}

.footer-social svg{
  width:22px;
  height:22px;
  fill:white;
}

/* WHATSAPP */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
}

.whatsapp-float img {
  width: 50px;
  height: 50px;
  border-radius: 8px;
}

@media (min-width: 769px) {
  .whatsapp-float {
    display: none;
  }
}

/* PROVEN BUILDS SECTION */
.proven-builds {
  padding: 1.6rem 1.5rem 0.9rem;
  background: #ffffff;
  text-align: center;
}

.proven-heading {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin-bottom: 0.4rem;
  color: var(--navy);
}

.proven-subtext {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 1.2rem;
}

.proven-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  max-width: 980px;
  margin: 0 auto;
}

.proven-card {
  display: block;
  padding: 1.2rem 1.1rem;
  border-radius: 10px;
  text-decoration: none;
  background: #f8f8f8;
  color: #000;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.proven-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.proven-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 0.7rem auto;
  border-radius: 12px;
  object-fit: cover;
}

.proven-card h3 {
  font-size: 0.98rem;
  margin-bottom: 0.3rem;
}

.proven-card p {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.35;
}

/* MOBILE OPTIMISATION */
@media (max-width: 768px) {
  .feature:active {
    transform: scale(0.98);
  }

  .proven-card {
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
  }

  .proven-card:active {
    transform: scale(0.97);
  }
}

/* FORCE HOME CTA TO BE CENTERED (DESKTOP + MOBILE) */
.home-cta {
  text-align: center;
}

/* MOBILE FEATURE CONSOLIDATION (HOME ONLY) */
@media (max-width: 768px) {

  /* Hide all features after the first 4 */
  .features .feature:nth-child(n+5) {
    display: none;
  }

  /* Show all when expanded */
  .features.expanded .feature {
    display: flex;
  }

  /* Toggle row (mobile only) */
  .features-toggle {
    margin-top: 1rem;
    text-align: center;
    font-weight: 600;
    color: var(--navy);
    cursor: pointer;
    padding: 0.75rem;
  }
}

/* HIDE FEATURE TOGGLE ON DESKTOP */
@media (min-width: 769px) {
  .features-toggle {
    display: none;
  }
}

/* DESKTOP CTA ALIGNMENT FIX (HOME ONLY) */
@media (min-width: 769px) {
  .home-cta {
    max-width: 900px;
    margin: 0 auto;
  }
}



/* FINAL CTA + Features spacing fix (home only) */
.home-cta {
  margin-bottom: 12px;
}

.home-cta + .section {
  padding-top: 0;
}

/* HOME HERO VISUAL REFINEMENT */
.home-page .hero {
  justify-content: flex-end;
  text-align: left;
  background-position: center center;
}

.home-page .hero:not(.about-hero)::before {
  background: linear-gradient(
    90deg,
    rgba(1, 53, 100, 0.22) 0%,
    rgba(1, 53, 100, 0.36) 45%,
    rgba(1, 53, 100, 0.76) 100%
  );
}

.home-page .hero-content {
  width: min(560px, 46vw);
  max-width: 560px;
  margin-right: clamp(12px, 5vw, 76px);
}

.home-page .hero-proof {
  margin: -8px 0 22px;
  font-size: 0.98rem;
}

.home-page .hero .tech-line {
  margin: 18px 0 0;
  font-size: 0.92rem;
  opacity: 0.92;
}

/* BUSINESS CAPABILITY ICONS */
.capability-card {
  position: relative;
  padding-top: 20px;
}

.capability-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(105, 219, 249, 0.16);
  color: var(--navy);
}

.capability-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* TECHNOLOGY BRAND MARKS */
.tech-card {
  text-align: left;
}

.tech-brand {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.tech-brand h3 {
  margin: 0;
}

.tech-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex: 0 0 36px;
}


@media (max-width: 768px) {
  .home-page .hero {
    justify-content: center;
    text-align: center;
    background-position: 44% center;
  }

  .home-page .hero:not(.about-hero)::before {
    background: linear-gradient(
      rgba(1, 53, 100, 0.62),
      rgba(1, 53, 100, 0.54)
    );
  }

  .home-page .hero-content {
    width: 100%;
    max-width: 680px;
    margin-right: 0;
  }

  .home-page .hero-proof {
    margin-bottom: 20px;
  }
}


/* ABOUT PAGE REFINEMENT */
.about-page .about-hero {
  min-height: 58vh;
  justify-content: flex-start;
  text-align: left;
  background-position: center center;
}

.about-page .about-hero::before {
  background: linear-gradient(
    90deg,
    rgba(1, 53, 100, 0.82) 0%,
    rgba(1, 53, 100, 0.64) 48%,
    rgba(1, 53, 100, 0.32) 100%
  );
}

.about-page .about-hero .hero-content {
  width: min(680px, 58vw);
  max-width: 680px;
  margin-left: clamp(12px, 6vw, 92px);
  margin-right: auto;
}

.about-page .about-hero .hero-subtext {
  max-width: 640px;
  margin-bottom: 0;
}

.about-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 48px 24px;
}

.about-section h2,
.about-cta h2 {
  margin-top: 0;
  color: var(--navy);
  font-size: 2rem;
  line-height: 1.25;
}

.about-section > p {
  max-width: 820px;
}

.about-intro p {
  font-size: 1.05rem;
  line-height: 1.8;
}

.about-section-intro {
  max-width: 800px;
  margin-bottom: 28px;
  font-size: 1.02rem;
  line-height: 1.75;
  color: #444;
}

.about-section-alt {
  max-width: none;
  padding-left: max(24px, calc((100% - 952px) / 2));
  padding-right: max(24px, calc((100% - 952px) / 2));
  background: #f7f9fc;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.about-card {
  padding: 22px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  background: #ffffff;
}

.about-card h3 {
  margin: 0 0 8px;
  color: var(--navy);
}

.about-card p {
  margin: 0;
  line-height: 1.6;
  color: #444;
}

.about-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(105, 219, 249, 0.16);
  color: var(--navy);
}

.about-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.about-tech-brand {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.about-tech-brand h3 {
  margin: 0;
}

.about-tech-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex: 0 0 36px;
}

.about-philosophy {
  text-align: center;
}

.about-philosophy > p {
  margin: 0 auto 26px;
  font-size: 1.08rem;
}

.about-philosophy blockquote {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 28px;
  background: #f7f9fc;
  border-left: 4px solid var(--light-blue);
  color: #444;
  font-style: italic;
  text-align: left;
}

.about-cta {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 24px 56px;
  text-align: center;
}

.about-cta p {
  margin-bottom: 22px;
  font-size: 1.05rem;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .about-page .about-hero {
    min-height: 52vh;
    justify-content: center;
    text-align: center;
    background-position: center center;
  }

  .about-page .about-hero::before {
    background: linear-gradient(
      rgba(1, 53, 100, 0.68),
      rgba(1, 53, 100, 0.56)
    );
  }

  .about-page .about-hero .hero-content {
    width: 100%;
    max-width: 680px;
    margin: 0;
  }

  .about-page .about-hero .hero-eyebrow {
    font-size: 40px;
  }

  .about-section {
    padding: 36px 18px;
  }

  .about-section-alt {
    padding-left: 18px;
    padding-right: 18px;
  }

  .about-section h2,
  .about-cta h2 {
    font-size: 1.7rem;
  }

  .about-cta {
    padding: 12px 18px 44px;
  }
}

/* CONTACT PAGE REFINEMENT */
.contact-page .hero {
  min-height: 25vh;
  background: url("assets/hero-gradient.jpg") center / cover no-repeat;
  padding: 32px 20px;
}

.contact-page .hero::before {
  display: none;
}

.contact-page .hero-content {
  max-width: 900px;
}

.contact-page .hero-eyebrow {
  margin-bottom: 12px;
}

.contact-page .hero-subtext {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.05rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.contact-section {
  padding-top: 48px;
  padding-bottom: 56px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  max-width: 1000px;
  margin: 0 auto;
  align-items: start;
}

.contact-intro h2 {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: 2rem;
  line-height: 1.25;
}

.contact-intro > p {
  max-width: 500px;
  margin: 0 0 28px;
  color: #444;
  font-size: 1.05rem;
  line-height: 1.7;
}

.contact-options {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}

.contact-option {
  padding: 16px 18px;
  background: #f7f9fc;
  border-radius: 10px;
  border-left: 4px solid var(--light-blue);
}

.contact-option strong,
.contact-option a,
.contact-option span {
  display: block;
}

.contact-option strong {
  color: var(--navy);
  margin-bottom: 3px;
}

.contact-option a {
  color: var(--dark-blue);
  font-weight: 600;
  text-decoration: none;
}

.contact-option a:hover {
  color: var(--teal);
}

.contact-option span {
  color: #666;
  font-size: 0.9rem;
}

.contact-address {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
}

.contact-address strong {
  color: var(--navy);
}

.contact-form-wrap {
  width: 100%;
}

.contact-page form {
  max-width: 100%;
  margin-top: 0;
}

.contact-page form label {
  display: block;
  margin: 0 0 6px;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.92rem;
}

.contact-page form input,
.contact-page form select,
.contact-page form textarea {
  width: 100%;
  padding: 13px 14px;
  margin-bottom: 16px;
  min-height: 46px;
  border: 1px solid #d3d8df;
  border-radius: 6px;
  font: inherit;
  color: #222;
  background: #fff;
}

.contact-page form select {
  appearance: auto;
}

.contact-page form input:focus,
.contact-page form select:focus,
.contact-page form textarea:focus {
  outline: none;
  border-color: var(--light-blue);
  box-shadow: 0 0 0 3px rgba(105, 219, 249, 0.16);
}

.contact-page form textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-page form .button {
  border: 0;
  cursor: pointer;
  margin-top: 2px;
}

.contact-reassurance {
  margin: 16px 0 0;
  color: #666;
  font-size: 0.92rem;
  line-height: 1.55;
}

@media (min-width: 1024px) {
  .contact-page .hero {
    min-height: 220px;
  }
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  .contact-page .hero {
    min-height: 30vh;
    padding: 30px 18px;
  }

  .contact-page .hero-eyebrow {
    font-size: 40px;
  }

  .contact-page .hero-subtext {
    font-size: 1rem;
  }

  .contact-section {
    padding: 36px 18px 44px;
  }

  .contact-intro h2 {
    font-size: 1.7rem;
  }
}

/* === MOBILE LAYOUT IMPROVEMENTS (NON-DESTRUCTIVE OVERRIDES) === */
@media (max-width: 768px) {

  /* HERO tightening */
  .hero {
    padding: 24px 16px;
    margin-bottom: 16px;
  }

  .hero-eyebrow {
    font-size: 22px;
    line-height: 1.25;
  }

  .hero-subtext {
    font-size: 15px;
    margin: 12px 0;
  }

  .hero-proof {
    font-size: 14px;
    margin-bottom: 12px;
  }

  .tech-line {
    font-size: 13px;
    margin-top: 12px;
  }

  /* Header ergonomics */
  header {
    padding: 10px 14px;
  }

  header img {
    height: 32px;
  }

  .hamburger {
    font-size: 30px;
    padding: 6px;
  }

  /* Full-width mobile nav */
  nav.nav-links {
    right: 0;
    left: 0;
    top: 60px;
    width: 100%;
    border-radius: 0;
    padding: 16px;
  }

  nav.nav-links a {
    padding: 10px 0;
    font-size: 16px;
  }

  /* Card spacing */
  .home-card {
    padding: 18px;
  }

  .home-grid {
    gap: 14px;
  }

  /* Proven builds swipe refinement */
  .proven-card {
    flex: 0 0 88%;
  }

  .proven-grid {
    gap: 12px;
    padding-left: 12px;
  }

  /* Section spacing */
  .home-section {
    padding: 28px 16px;
  }

  .home-section-intro {
    margin-bottom: 18px;
  }

  /* Process spacing */
  .process-step {
    margin-bottom: 10px;
  }

  /* CTA tightening */
  .final-cta {
    padding-top: 24px;
    padding-bottom: 36px;
  }

  .final-cta .button {
    width: 100%;
    text-align: center;
  }

  /* WhatsApp button reach */
  .whatsapp-float {
    bottom: 16px;
    right: 16px;
  }

  /* Typography */
  body {
    font-size: 15px;
    line-height: 1.6;
  }

  h2 {
    font-size: 22px;
  }

  h3 {
    font-size: 18px;
  }
}


/* APPGENX HOMEPAGE LAYOUT FIX */
.home-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 42px 20px;
}
.home-section h2 {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: 2rem;
  line-height: 1.25;
}
.home-section-intro {
  max-width: 900px;
  margin: 0 auto 28px;
  color: #444;
  font-size: 1.02rem;
  line-height: 1.7;
}
.home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.home-card {
  padding: 22px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  background: #fff;
}
.home-card h3 {
  margin: 0 0 8px;
  color: var(--navy);
}
.home-card p {
  margin: 0;
  color: #555;
  line-height: 1.6;
}
.capability-grid,
.technology-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.process-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.process-step {
  position: relative;
}
.process-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--light-blue);
  color: var(--navy);
  font-weight: 700;
}
.final-cta {
  max-width: 900px;
  margin: 0 auto;
  padding: 34px 20px 52px;
  text-align: center;
}
.final-cta h2 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 2rem;
}
.final-cta p {
  max-width: 720px;
  margin: 0 auto 22px;
  color: #444;
  line-height: 1.7;
}
.brochure-download {
  text-align: center;
}
.brochure-download .home-section-intro {
  max-width: 760px;
}
.brochure-download .button {
  margin-top: 4px;
}
@media (max-width: 900px) {
  .home-grid,
  .capability-grid,
  .technology-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  .home-section {
    padding: 34px 16px;
  }
  .home-section h2 {
    font-size: 1.7rem;
  }
  .home-section-intro {
    font-size: 0.98rem;
  }
  .home-grid,
  .capability-grid,
  .technology-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }
  .home-card {
    padding: 18px;
  }
  .final-cta {
    padding: 28px 16px 42px;
  }
  .final-cta h2 {
    font-size: 1.7rem;
  }
  .brochure-download .button {
    width: 100%;
    text-align: center;
  }
}


/* =========================================================
   APPGENX HOMEPAGE VISUAL REFINEMENT
   CSS-only refinement: preserve existing structure and brand.
   ========================================================= */

/* Give the longer homepage a clearer visual rhythm */
.home-page main {
  background: #ffffff;
}

/* Alternate major content areas with a very subtle cool tint */
.home-page .home-section:nth-of-type(2),
.home-page .home-section:nth-of-type(4) {
  background: #f7faff;
  max-width: none;
}

.home-page .home-section:nth-of-type(2) > *,
.home-page .home-section:nth-of-type(4) > * {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

/* Slightly stronger card definition without making the page heavy */
.home-page .home-card {
  background: #ffffff;
  border: 1px solid #e2eaf2;
  box-shadow: 0 3px 12px rgba(1, 53, 100, 0.045);
}

.home-page .home-card:hover {
  border-color: rgba(105, 219, 249, 0.65);
  box-shadow: 0 7px 20px rgba(1, 53, 100, 0.09);
}

/* Make the Proven Builds area feel like a deliberate portfolio section */
.home-page .proven-builds {
  padding-top: 2.4rem;
  padding-bottom: 2.2rem;
  background: #f7faff;
  border-top: 1px solid #edf2f7;
  border-bottom: 1px solid #edf2f7;
}

.home-page .proven-card {
  background: #ffffff;
  border: 1px solid #e2eaf2;
  box-shadow: 0 3px 12px rgba(1, 53, 100, 0.045);
}

.home-page .proven-card:hover {
  border-color: rgba(105, 219, 249, 0.65);
  box-shadow: 0 8px 22px rgba(1, 53, 100, 0.10);
}

/* Technology section gets a little more visual weight */
.home-page .technology-grid .tech-card {
  border-top: 3px solid var(--light-blue);
}

.home-page .technology-grid .tech-card:nth-child(2) {
  border-top-color: var(--teal);
}

.home-page .technology-grid .tech-card:nth-child(3) {
  border-top-color: var(--navy);
}

/* Process cards become easier to scan */
.home-page .process-step {
  text-align: center;
}

.home-page .process-step p {
  text-align: left;
}

/* Brochure section is intentionally distinct because it is a downloadable sales asset */
.home-page .brochure-download {
  margin-top: 0;
  padding-top: 46px;
  padding-bottom: 46px;
  background: #eef7fc;
  border-top: 1px solid #dcebf3;
  border-bottom: 1px solid #dcebf3;
}

.home-page .brochure-download h2 {
  margin-bottom: 10px;
}

.home-page .brochure-download .button {
  box-shadow: 0 5px 14px rgba(1, 53, 100, 0.12);
}

/* Keep the final CTA clearly separate from the brochure */
.home-page .final-cta {
  padding-top: 42px;
  padding-bottom: 50px;
}

/* Mobile: retain the clean stacked layout while reducing visual repetition */
@media (max-width: 768px) {
  .home-page .home-section:nth-of-type(2),
  .home-page .home-section:nth-of-type(4) {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .home-page .proven-builds {
    padding-top: 30px;
    padding-bottom: 28px;
  }

  .home-page .proven-card {
    box-shadow: 0 4px 14px rgba(1, 53, 100, 0.06);
  }

  .home-page .process-step {
    text-align: left;
  }

  .home-page .process-number {
    margin-bottom: 8px;
  }

  .home-page .brochure-download {
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .home-page .final-cta {
    padding-top: 30px;
    padding-bottom: 42px;
  }
}

/* MOBILE PROCESS GRID — 2 COLUMNS */
@media (max-width: 768px) {
  .home-page .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .home-page .process-grid .process-step:last-child {
    grid-column: 1 / -1;
  }
}

/* MOBILE: MORE THAN A WEBSITE — 2 COLUMNS */
@media (max-width: 768px) {
  .home-page main > .home-section:first-of-type .home-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .home-page main > .home-section:first-of-type .home-card {
    padding: 16px;
  }
}

/* MOBILE: COMPACT FIRST HOME SECTION */
@media (max-width: 768px) {
  .home-page main > .home-section:first-of-type {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .home-page main > .home-section:first-of-type .home-section-intro {
    margin-bottom: 16px;
  }
}
