/* JR Infra corporate website system */
:root {
  --brand-navy: #0d3250;
  --brand-blue: #174b75;
  --brand-gold: #f6b100;
  --brand-gold-dark: #c78d00;
  --ink: #17212b;
  --muted: #667085;
  --line: #dbe3ea;
  --surface: #ffffff;
  --surface-soft: #f5f7fa;
  --surface-tint: #edf4f8;
  --shadow: 0 18px 45px rgba(13, 50, 80, 0.12);
  --shadow-soft: 0 10px 28px rgba(13, 50, 80, 0.08);
  --radius: 8px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
  background: var(--surface);
  overflow-x: hidden;
  width: 100%;
}

body,
button,
input,
select,
textarea {
  -webkit-font-smoothing: antialiased;
}

p,
li,
h1,
h2,
h3,
h4,
a {
  overflow-wrap: anywhere;
}

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

a {
  color: var(--brand-blue);
}

a:hover {
  color: var(--brand-gold-dark);
}

.container {
  max-width: var(--container);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 2000;
  padding: .75rem 1rem;
  color: #fff;
  background: var(--brand-navy);
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

:focus-visible {
  outline: 3px solid rgba(246, 177, 0, .8);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid rgba(13, 50, 80, .08);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: box-shadow .25s ease, border-color .25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 12px 30px rgba(13, 50, 80, .1);
  border-color: transparent;
}

.navbar {
  padding: .55rem 0;
}

.navbar-brand img {
  width: 94px;
  height: auto;
}

.navbar-nav {
  align-items: center;
  gap: .2rem;
}

.nav-link {
  color: var(--brand-navy) !important;
  font-weight: 650;
  font-size: .88rem;
  padding: .6rem .58rem !important;
  border-radius: 999px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand-navy) !important;
  background: rgba(246, 177, 0, .14);
}

.navbar-toggler {
  border: 1px solid rgba(13, 50, 80, .2);
  border-radius: var(--radius);
  padding: .55rem .65rem;
}

.btn {
  border-radius: 999px;
  font-weight: 750;
  letter-spacing: 0;
  padding: .82rem 1.25rem;
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: normal;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: var(--brand-navy);
  border-color: var(--brand-navy);
  box-shadow: 0 12px 24px rgba(13, 50, 80, .18);
}

.btn-primary:hover,
.btn-primary:focus {
  color: #fff;
  background: #09263e;
  border-color: #09263e;
}

.btn-accent {
  color: var(--brand-navy);
  background: var(--brand-gold);
  border-color: var(--brand-gold);
  box-shadow: 0 12px 24px rgba(246, 177, 0, .22);
}

.btn-accent:hover,
.btn-accent:focus {
  color: var(--brand-navy);
  background: #e7a500;
  border-color: #e7a500;
}

.btn-outline-light,
.btn-outline-brand {
  border-color: rgba(255,255,255,.78);
  color: #fff;
}

.btn-outline-light:hover {
  color: var(--brand-navy);
  background: #fff;
  border-color: #fff;
}

.btn-outline-brand {
  color: var(--brand-navy);
  border-color: rgba(13, 50, 80, .25);
}

.btn-outline-brand:hover {
  color: #fff;
  background: var(--brand-navy);
}

.floating-actions {
  position: fixed;
  left: 18px;
  bottom: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 900;
  display: grid;
  gap: .55rem;
}

.floating-actions a {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--brand-navy);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  box-shadow: var(--shadow-soft);
  text-decoration: none;
}

.floating-actions .whatsapp-link {
  background: #138a45;
}

.section {
  padding: clamp(4rem, 7vw, 6.5rem) 0;
}

.section-tight {
  padding: clamp(3rem, 5vw, 4.5rem) 0;
}

.section-soft {
  background: var(--surface-soft);
}

.section-dark {
  color: #fff;
  background: var(--brand-navy);
}

.eyebrow {
  display: inline-flex;
  gap: .5rem;
  align-items: center;
  color: var(--brand-blue);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .75rem;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--brand-gold);
}

.section-dark .eyebrow {
  color: #fff;
}

.section-title,
h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.15;
  font-weight: 750;
}

.section-dark .section-title,
.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: #fff;
}

.section-title {
  max-width: 760px;
  margin: 0 0 1rem;
  font-size: clamp(1.9rem, 3vw, 3rem);
}

.section-lead {
  max-width: 780px;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  margin: 0 0 2rem;
}

.section-dark .section-lead,
.section-dark p {
  color: rgba(255,255,255,.78);
}

.hero {
  min-height: min(820px, 96vh);
  display: flex;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(7, 31, 51, .9) 0%, rgba(13, 50, 80, .72) 48%, rgba(13, 50, 80, .2) 100%),
    url("img/ai-hero-infrastructure.jpg") center / cover no-repeat;
  position: relative;
  padding: 8.5rem 0 5rem;
}

.hero h1 {
  max-width: 780px;
  color: #fff;
  font-size: clamp(2.35rem, 5vw, 4.8rem);
  margin-bottom: 1.15rem;
}

.hero p {
  max-width: 660px;
  color: rgba(255,255,255,.86);
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  margin-bottom: 1.6rem;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  padding: 0;
  margin: 1.65rem 0 0;
  list-style: none;
}

.hero-proof li {
  padding: .55rem .85rem;
  color: rgba(255,255,255,.92);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  font-size: .92rem;
}

.page-hero {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(7, 31, 51, .9), rgba(13, 50, 80, .66)),
    url("img/carousel.jpg") center / cover no-repeat;
  padding: 9rem 0 4.75rem;
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 4vw, 4rem);
}

.page-hero p {
  max-width: 720px;
  color: rgba(255,255,255,.82);
  margin: .75rem 0 0;
  font-size: 1.1rem;
}

.page-hero.about-hero {
  background:
    linear-gradient(90deg, rgba(7, 31, 51, .9), rgba(13, 50, 80, .66)),
    url("img/ai-header-about.jpg") center / cover no-repeat;
}

.page-hero.services-hero {
  background:
    linear-gradient(90deg, rgba(7, 31, 51, .9), rgba(13, 50, 80, .66)),
    url("img/ai-header-services.jpg") center / cover no-repeat;
}

.page-hero.projects-hero {
  background:
    linear-gradient(90deg, rgba(7, 31, 51, .9), rgba(13, 50, 80, .66)),
    url("img/ai-header-projects.jpg") center / cover no-repeat;
}

.page-hero.venture-hero {
  background:
    linear-gradient(90deg, rgba(7, 31, 51, .9), rgba(13, 50, 80, .58)),
    url("img/ai-header-venture.jpg") center / cover no-repeat;
}

.page-hero.farmhouse-hero,
.page-hero.sustainability-hero {
  background:
    linear-gradient(90deg, rgba(7, 31, 51, .88), rgba(13, 50, 80, .54)),
    url("img/ai-header-farmhouse.jpg") center / cover no-repeat;
}

.page-hero.leadership-hero {
  background:
    linear-gradient(90deg, rgba(7, 31, 51, .9), rgba(13, 50, 80, .66)),
    url("img/ai-header-about.jpg") center / cover no-repeat;
}

.page-hero.quality-hero,
.page-hero.careers-hero,
.page-hero.insights-hero,
.page-hero.faq-hero,
.page-hero.contact-hero {
  background:
    linear-gradient(90deg, rgba(7, 31, 51, .9), rgba(13, 50, 80, .64)),
    url("img/ai-header-services.jpg") center / cover no-repeat;
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .82fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--surface-tint);
}

.media-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.media-frame.portrait img {
  aspect-ratio: 4 / 5;
  object-position: center top;
}

.founder-panel {
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(1.2rem, 3vw, 2rem);
  background: linear-gradient(135deg, #fff, #f4f8fb);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.founder-photo {
  position: relative;
  isolation: isolate;
}

.founder-photo::before {
  content: "";
  position: absolute;
  inset: 18px -14px -14px 18px;
  z-index: -1;
  background: var(--brand-gold);
  border-radius: var(--radius);
}

.founder-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.quote-mark {
  color: var(--brand-gold);
  font-size: 3.2rem;
  line-height: .8;
  font-weight: 800;
}

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

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

.info-card,
.service-card,
.project-card,
.value-card,
.contact-card {
  height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.info-card,
.service-card,
.value-card,
.contact-card {
  padding: 1.55rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  min-height: 292px;
}

.service-card p,
.info-card p,
.value-card p,
.contact-card p {
  color: var(--muted);
}

.service-card .icon,
.value-card .icon,
.contact-card .icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  color: var(--brand-navy);
  background: rgba(246, 177, 0, .18);
  border-radius: 50%;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.feature-list {
  display: grid;
  gap: .85rem;
  padding: 0;
  margin: 1rem 0 1.5rem;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 1.65rem;
  color: var(--muted);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .68rem;
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: var(--brand-gold);
  box-shadow: 0 0 0 4px rgba(246, 177, 0, .14);
}

.service-card a {
  margin-top: auto;
  font-weight: 750;
  text-decoration: none;
}

.project-card {
  transition: transform .2s ease, box-shadow .2s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.project-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.project-card .project-body {
  padding: 1.25rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: .32rem .65rem;
  color: var(--brand-navy);
  background: rgba(246, 177, 0, .18);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat-item {
  padding: 1.55rem;
  background: rgba(255,255,255,.07);
  border-right: 1px solid rgba(255,255,255,.16);
}

.stat-item:last-child {
  border-right: 0;
}

.stat-item strong {
  display: block;
  color: #fff;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
}

.stat-item span {
  color: rgba(255,255,255,.76);
}

.process-list {
  display: grid;
  gap: 1rem;
  counter-reset: process;
}

.process-step {
  position: relative;
  padding: 1.25rem 1.25rem 1.25rem 4.4rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.process-step::before {
  counter-increment: process;
  content: counter(process, decimal-leading-zero);
  position: absolute;
  left: 1.15rem;
  top: 1.15rem;
  width: 2.3rem;
  height: 2.3rem;
  display: grid;
  place-items: center;
  color: var(--brand-navy);
  background: var(--brand-gold);
  border-radius: 50%;
  font-weight: 800;
}

.cta-band {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-navy), #174b75);
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 4rem);
}

.form-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow-soft);
}

.form-label {
  color: var(--ink);
  font-weight: 700;
}

.form-control,
.form-select {
  min-height: 48px;
  border-color: #cbd5df;
  border-radius: var(--radius);
  font-size: 1rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 .2rem rgba(23, 75, 117, .15);
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-footer {
  color: rgba(255,255,255,.78);
  background: #071f33;
  padding: 4rem 0 1.4rem;
}

.site-footer h2,
.site-footer h3,
.site-footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-logo {
  width: 105px;
  height: auto;
  background: #fff;
  border-radius: var(--radius);
  padding: .25rem;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .45rem;
}

.footer-links a,
.site-footer a {
  color: rgba(255,255,255,.78);
  text-decoration: none;
}

.footer-links a:hover,
.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 2rem;
  padding-top: 1rem;
  font-size: .92rem;
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal,
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    background: #fff;
    border-top: 1px solid rgba(13, 50, 80, .08);
    margin-top: .65rem;
  }

  .navbar-nav {
    align-items: stretch;
    padding: 1rem 0;
  }

  .nav-link {
    border-radius: var(--radius);
  }

  .hero {
    min-height: auto;
    padding: 7.5rem 0 4rem;
    background:
      linear-gradient(90deg, rgba(7, 31, 51, .9), rgba(13, 50, 80, .68)),
      url("img/ai-hero-infrastructure.jpg") center / cover no-repeat;
  }

  .page-hero {
    padding: 7rem 0 3.8rem;
  }

  .split-grid,
  .founder-panel {
    grid-template-columns: 1fr;
  }

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

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

  .stat-item:nth-child(2) {
    border-right: 0;
  }
}

@media (max-width: 575.98px) {
  html {
    scroll-padding-top: 76px;
  }

  .navbar {
    padding: .45rem 0;
  }

  .navbar-brand img {
    width: 78px;
  }

  .section,
  .section-tight {
    padding: 3.25rem 0;
  }

  .hero {
    padding: 5.75rem 0 3.25rem;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2rem, 12vw, 2.75rem);
  }

  .page-hero {
    padding: 5.8rem 0 3.2rem;
  }

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

  .hero-proof {
    display: grid;
  }

  .card-grid,
  .two-grid,
  .stat-strip {
    grid-template-columns: 1fr;
  }

  .stat-item {
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.16);
  }

  .stat-item:last-child {
    border-bottom: 0;
  }

  .floating-actions {
    left: 12px;
    bottom: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
  }

  .floating-actions a {
    width: 42px;
    height: 42px;
  }

  .process-step {
    padding-left: 1.15rem;
    padding-top: 4rem;
  }

  .founder-panel {
    padding: 1rem;
  }

  .founder-photo::before {
    inset: 10px -8px -8px 10px;
  }

  .info-card,
  .service-card,
  .value-card,
  .contact-card,
  .form-panel,
  .project-card .project-body {
    padding: 1.15rem;
  }

  .footer-bottom {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
