:root {
  --auscore-navy: #0d2c4b;
  --auscore-navy-dark: #081d33;
  --auscore-navy-light: #16436f;
  --auscore-accent: #c8102e;
  --auscore-accent-dark: #9e0d25;
  --auscore-accent-light: #ff5a73;
  --auscore-gold: #f0a500;
  --auscore-grey: #f4f6f8;
  --auscore-text: #2c3e50;
}

html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
  scroll-behavior: smooth;
}

.test-env-banner {
  background: var(--auscore-gold);
  color: var(--auscore-navy-dark);
  font-weight: 600;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  color: var(--auscore-text);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--auscore-navy);
  font-weight: 700;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--auscore-accent);
}

/* ---------- Top bar ---------- */
.top-bar {
  background: var(--auscore-navy-dark);
  color: #cfd8e3;
  padding: 0.35rem 0;
}

.top-bar-link {
  color: #cfd8e3;
  text-decoration: none;
}

.top-bar-link:hover {
  color: var(--auscore-accent-light);
}

/* ---------- Navbar ---------- */
.main-nav {
  background: var(--auscore-navy);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  padding: 0.6rem 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0;
}

.brand-logo {
  height: 60px;
  width: auto;
  background: #fff;
  border-radius: 6px;
  padding: 4px 10px;
}

.footer-logo {
  height: 88px;
  width: auto;
  display: block;
  background: #fff;
  border-radius: 8px;
  padding: 6px 12px;
}

.main-nav .nav-link {
  color: #e8edf3;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-bottom: 2px solid transparent;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
  color: var(--auscore-accent-light);
  border-bottom-color: var(--auscore-accent-light);
}

.main-nav .nav-cta {
  background: var(--auscore-accent);
  color: #fff !important;
  border-radius: 4px;
  font-weight: 700;
  margin-left: 0.5rem;
  padding-left: 1.1rem;
  padding-right: 1.1rem;
  border-bottom: none;
}

.main-nav .nav-cta:hover {
  background: var(--auscore-accent-dark);
}

/* Active state for the Contact CTA button: darker fill + underline suppressed elsewhere. */
.main-nav .nav-cta.active {
  background: var(--auscore-accent-dark);
  color: #fff !important;
  border-bottom: none;
}

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(rgba(8, 29, 51, 0.88), rgba(13, 44, 75, 0.85)),
    repeating-linear-gradient(45deg, #10375c 0 2px, #0d2c4b 2px 40px);
  color: #fff;
  padding: 6rem 0 5.5rem;
}

.hero h1 {
  color: #fff;
  font-size: 2.8rem;
  font-weight: 800;
  max-width: 800px;
}

.hero .accent {
  color: var(--auscore-accent-light);
}

.hero p.lead {
  max-width: 720px;
  color: #d5dee8;
}

.hero-carousel {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.hero-carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.4s ease, transform 6s ease-out;
  will-change: opacity, transform;
}

.hero-carousel-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.hero-carousel-dots {
  display: none;
}

.hero-carousel-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: background 0.3s ease, transform 0.3s ease;
}

.hero-carousel-dots span.active {
  background: var(--auscore-accent-light);
  transform: scale(1.3);
}

@media (max-width: 991.98px) {
  .hero-carousel {
    aspect-ratio: 16 / 10;
    margin-top: 1rem;
  }
}

.btn-accent {
  background: var(--auscore-accent);
  border: none;
  color: #fff;
  font-weight: 700;
  padding: 0.7rem 1.6rem;
}

.btn-accent:hover {
  background: var(--auscore-accent-dark);
  color: #fff;
}

.btn-outline-light-c {
  border: 2px solid #fff;
  color: #fff;
  font-weight: 600;
  padding: 0.65rem 1.5rem;
  background: transparent;
}

.btn-outline-light-c:hover {
  background: #fff;
  color: var(--auscore-navy);
}

/* ---------- Sections ---------- */
.section {
  padding: 4.5rem 0;
}

.section-grey {
  background: var(--auscore-grey);
}

.section-navy {
  background: var(--auscore-navy);
  color: #d5dee8;
}

.section-navy h2 {
  color: #fff;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.section-kicker {
  color: var(--auscore-accent-dark);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  font-size: 0.85rem;
}

.title-rule {
  width: 64px;
  height: 4px;
  background: var(--auscore-accent);
  border-radius: 2px;
  margin: 0.75rem 0 1.5rem;
}

.title-rule.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Cards ---------- */
.service-card {
  border: 1px solid #dde4ec;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #f1f5fa 100%);
  padding: 1.75rem;
  height: 100%;
  position: relative;
  overflow: hidden;
  /* Resting elevation so cards read as raised surfaces, not flat outlines. */
  box-shadow: 0 8px 20px rgba(13, 44, 75, 0.10), 0 2px 6px rgba(13, 44, 75, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Red-to-navy accent strip along the card's top edge. */
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--auscore-accent), var(--auscore-navy));
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 36px rgba(13, 44, 75, 0.18), 0 4px 10px rgba(13, 44, 75, 0.08);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(200, 16, 46, 0.1);
  color: var(--auscore-accent);
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.15rem;
}

.card-link {
  color: var(--auscore-accent-dark);
  font-weight: 600;
  text-decoration: none;
}

.card-link:hover {
  color: var(--auscore-navy);
}

.project-card {
  border: 1px solid #e3e8ee;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  height: 100%;
}

.project-card-header {
  background: var(--auscore-navy);
  color: #fff;
  padding: 1.25rem 1.5rem;
}

.project-card-header .badge {
  background: var(--auscore-accent);
  color: #fff;
}

.badge-accent {
  background: var(--auscore-accent);
  color: #fff;
}

.testimonial-card {
  background: linear-gradient(180deg, #ffffff 0%, #f1f5fa 100%);
  border-radius: 10px;
  border: 1px solid #dde4ec;
  padding: 1.75rem;
  height: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(13, 44, 75, 0.10), 0 2px 6px rgba(13, 44, 75, 0.06);
}

.testimonial-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--auscore-accent), var(--auscore-navy));
}

.testimonial-card .stars {
  color: var(--auscore-gold);
}

.testimonial-quote {
  font-style: italic;
  color: #4a5a6a;
}

/* ---------- Feature strip ---------- */
.stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--auscore-accent-light);
}

.check-list li {
  margin-bottom: 0.6rem;
  padding-left: 1.8rem;
  position: relative;
  list-style: none;
}

.check-list li::before {
  content: "\f26a";
  font-family: "bootstrap-icons";
  color: var(--auscore-accent-dark);
  position: absolute;
  left: 0;
}

/* ---------- Page header banner ---------- */
.page-header {
  background:
    linear-gradient(rgba(8, 29, 51, 0.9), rgba(13, 44, 75, 0.88)),
    repeating-linear-gradient(45deg, #10375c 0 2px, #0d2c4b 2px 40px);
  color: #fff;
  padding: 3.5rem 0;
}

.page-header h1 {
  color: #fff;
  font-weight: 800;
}

.page-header .breadcrumb {
  margin: 0;
}

.page-header .breadcrumb-item a {
  color: var(--auscore-accent-light);
  text-decoration: none;
}

.page-header .breadcrumb-item.active,
.page-header .breadcrumb-item + .breadcrumb-item::before {
  color: #b9c6d4;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--auscore-accent);
  padding: 3rem 0;
}

.cta-band h2 {
  color: #fff;
  font-weight: 800;
}

.cta-band p,
.cta-band p[style] {
  color: #ffe1e6 !important;
}

.cta-band .btn-navy {
  background: var(--auscore-navy-dark);
}

.btn-navy {
  background: var(--auscore-navy);
  color: #fff;
  font-weight: 700;
  padding: 0.7rem 1.6rem;
  border: none;
}

.btn-navy:hover {
  background: var(--auscore-navy-light);
  color: #fff;
}

/* ---------- Forms ---------- */
.contact-panel {
  background: #fff;
  border: 1px solid #e3e8ee;
  border-radius: 10px;
  padding: 2rem;
}

.contact-info-panel {
  background: var(--auscore-navy);
  color: #d5dee8;
  border-radius: 10px;
  padding: 2rem;
  height: 100%;
}

.contact-info-panel h4 {
  color: #fff;
}

.contact-info-panel a {
  color: var(--auscore-accent-light);
  text-decoration: none;
}

.map-panel {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  overflow: hidden;
  line-height: 0;
}

.map-panel iframe {
  width: 100%;
  height: 280px;
  border: 0;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* ---------- Blog ---------- */
.blog-card {
  border: 1px solid #e3e8ee;
  border-radius: 10px;
  background: #fff;
  height: 100%;
  padding: 1.75rem;
}

.blog-meta {
  color: #7a8894;
  font-size: 0.85rem;
}

.blog-content p {
  margin-bottom: 1.1rem;
  line-height: 1.75;
}

/* ---------- Careers ---------- */
.career-card {
  border: 1px solid #e3e8ee;
  border-left: 5px solid var(--auscore-accent);
  border-radius: 8px;
  background: #fff;
  padding: 1.75rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--auscore-navy-dark);
  color: #b9c6d4;
}

.footer-heading {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.footer-links li {
  margin-bottom: 0.45rem;
}

.footer-links a,
.footer-link {
  color: #b9c6d4;
  text-decoration: none;
}

.footer-links a:hover,
.footer-link:hover {
  color: var(--auscore-accent-light);
}

.footer-bottom {
  background: #051423;
  color: #8fa0b0;
}
