@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;800&family=Roboto:wght@300;400;500;700&display=swap');

:root {
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Roboto', sans-serif;
  --primary: #0a192f;
  /* Navy blue, authoritative */
  --secondary: #d32f2f;
  /* Strong security red */
  --accent: #fca311;
  /* Highlight */
  --bg-dark: #112240;
  --bg-light: #f5f5f5;
  --text-dark: #333333;
  --text-light: #ffffff;
  --text-muted: #8892b0;
  --nav-height: 80px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 5rem 0;
}

.section-dark {
  background-color: var(--primary);
  color: var(--text-light);
}

.section-dark h2,
.section-dark h3 {
  color: var(--text-light);
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--secondary);
  color: var(--text-light);
}

.btn-primary:hover {
  background-color: #b71c1c;
}

.btn-outline {
  background-color: transparent;
  border-color: var(--secondary);
  color: var(--secondary);
}

.btn-outline:hover {
  background-color: var(--secondary);
  color: var(--text-light);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--nav-height);
  background-color: var(--primary);
  color: var(--text-light);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-light);
}

.logo span {
  color: var(--secondary);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--secondary);
}

/* Heroes */
.hero {
  height: 100vh;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 25, 47, 0.7);
  /* Dark overlay */
}

.page-hero {
  height: 60vh;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--nav-height);
}

.hero-content {
  position: relative;
  color: var(--text-light);
  z-index: 1;
  max-width: 800px;
}

.hero-content h1 {
  color: var(--text-light);
  font-size: 3.5rem;
  margin-bottom: 1rem;
  line-height: 1.1;
  border-left: 5px solid var(--secondary);
  padding-left: 1rem;
}

.page-hero .hero-content h1 {
  border-left: none;
  font-size: 3rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #ccc;
}

/* Services Grid */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-header h2 span {
  color: var(--secondary);
}

.divider {
  height: 4px;
  width: 60px;
  background-color: var(--secondary);
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-bottom: 4px solid var(--secondary);
}

.service-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-content {
  padding: 2rem;
}

.service-content h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.service-content p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.read-more {
  color: var(--secondary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.read-more:hover {
  color: var(--primary);
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.about-text p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: #555;
}

.about-image img {
  width: 100%;
  border: 10px solid #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item {
  padding: 2rem;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.stat-number {
  font-size: 3rem;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Contact Info */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
}

.info-card {
  background-color: #fff;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--secondary);
}

.info-card h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.info-card p {
  color: #555;
}

.contact-form {
  background-color: #fff;
  padding: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
  color: var(--primary);
}

.form-control {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ccc;
  font-family: var(--font-body);
  font-size: 1rem;
  background-color: var(--bg-light);
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--secondary);
  background-color: #fff;
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* Footer */
footer {
  background-color: #050d18;
  color: #fff;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: #fff;
  margin-bottom: 1.5rem;
}

.footer-col p {
  color: #aaa;
  margin-bottom: 1rem;
}

.footer-col ul li {
  margin-bottom: 0.8rem;
}

.footer-col ul li a {
  color: #aaa;
}

.footer-col ul li a:hover {
  color: var(--secondary);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #777;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .page-hero .hero-content h1 {
    font-size: 2rem;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  /* hamburger menu placeholder */
}

.logo-img {
  max-height: 60px;
  width: auto;
  vertical-align: middle;
  background-color: rgba(255, 255, 255, 0.95);
  padding: 4px;
  border-radius: 4px;
}

.nav-phone a {
  color: var(--secondary) !important;
  font-weight: 800;
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.nav-phone a:hover {
  background-color: var(--secondary);
  color: #fff !important;
}

/* Redesign Styles based on Reference */

/* Top Bar */
.top-bar {
  background-color: #f8f9fa;
  border-bottom: 1px solid #eee;
  padding: 8px 0;
  font-size: 0.85rem;
  color: #555;
}

.top-bar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-social a {
  margin-left: 15px;
  color: var(--primary);
  font-weight: bold;
}

/* Navbar adjustments */
.navbar {
  /* top: 36px; */
  /* Offset for top bar */
}

/* Hero Carousel (Reference Style) */
.hero-carousel {
  height: 80vh;
  position: relative;
  overflow: hidden;
  margin-top: 2rem;
}

.hero-slide {
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-text-box {
  position: relative;
  z-index: 2;
  color: white;
  max-width: 600px;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
}

.hero-text-box h1 {
  color: white;
  font-size: 3.5rem;
  text-transform: none;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-text-box p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #ddd;
}

/* Intro Section */
.intro-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.intro-highlight {
  font-size: 1.3rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.section-title-small {
  font-size: 1.2rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.intro-image-container {
  position: relative;
  padding: 0 0 20px 20px;
}

.intro-img {
  width: 100%;
  position: relative;
  z-index: 2;
  box-shadow: 10px 10px 40px rgba(0, 0, 0, 0.1);
}

.img-accent-border {
  position: absolute;
  top: 20px;
  left: 0;
  width: calc(100% - 20px);
  height: calc(100%);
  border: 5px solid var(--secondary);
  z-index: 1;
}

/* Business Lines */
.business-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.business-card {
  position: relative;
  overflow: hidden;
  height: 300px;
}

.business-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.business-card:hover img {
  transform: scale(1.1);
}

.business-label {
  position: absolute;
  bottom: 0;
  width: 100%;
  background-color: var(--secondary);
  color: white;
  padding: 1rem;
  text-align: center;
  font-weight: 800;
  letter-spacing: 1px;
}

/* Stats Section New */
.stats-header {
  text-align: left;
  margin-bottom: 3rem;
}

.stats-grid-new {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.stat-box {
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1rem;
}

.stat-val {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--secondary);
}

.stat-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #8892b0;
  margin-top: 0.5rem;
}

/* Career Section */
.career-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.career-image img {
  width: 100%;
  border-radius: 4px;
}

/* News Section */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.news-card {
  background: white;
  padding: 2.5rem;
  border: 1px solid #eee;
  transition: all 0.3s ease;
}

.news-card:hover {
  border-left: 5px solid var(--secondary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.news-logo {
  font-size: 0.75rem;
  color: var(--secondary);
  font-weight: 800;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.news-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary);
}

/* CTA Bar */
.cta-bar {
  background-color: var(--secondary);
  padding: 2.5rem 0;
}

.cta-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
}

.cta-flex h3 {
  color: white;
  text-transform: none;
  font-size: 1.5rem;
}

.btn-outline-white {
  background: transparent;
  border: 2px solid white;
  color: white;
  padding: 0.8rem 2rem;
  font-weight: 700;
  text-transform: uppercase;
}

.btn-outline-white:hover {
  background: white;
  color: var(--secondary);
}

/* Original Carousel Styles (keeping for compatibility or reuse) */
.carousel-container {
  /* max-width: 1200px; */
  position: relative;
  padding-top: 80px;
  /* margin: calc(var(--nav-height) + 60px) auto 2rem; */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.carousel-slide {
  display: none;
  animation-name: fade;
  animation-duration: 1.5s;
}

.carousel-slide img {
  width: 100%;
  /* height: 400px; */
  object-fit: cover;
  display: block;
}

.carousel-caption {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(10, 25, 47, 0.85);
  /* var(--primary) with opacity */
  color: var(--text-light);
  padding: 1.5rem 2rem;
  text-align: center;
  font-size: 1.1rem;
}

.carousel-caption p {
  margin: 0;
  max-width: 800px;
  margin: 0 auto;
}

.carousel-prev,
.carousel-next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  background-color: rgba(0, 0, 0, 0.3);
  text-decoration: none;
}

.carousel-next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.carousel-prev {
  left: 0;
}

.carousel-prev:hover,
.carousel-next:hover {
  background-color: var(--secondary);
}

.carousel-dot {
  cursor: pointer;
  height: 12px;
  width: 12px;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.carousel-dot.active,
.carousel-dot:hover {
  background-color: var(--secondary);
}

@keyframes fade {
  from {
    opacity: .4
  }

  to {
    opacity: 1
  }
}

@media (max-width: 768px) {
  .carousel-slide img {
    height: 300px;
  }

  .carousel-caption {
    font-size: 0.95rem;
    padding: 1rem;
  }
}

@media (max-width: 992px) {

  .intro-grid,
  .career-grid,
  .stats-grid-new {
    grid-template-columns: 1fr;
  }

  .hero-carousel {
    height: 60vh;
  }

  .hero-text-box h1 {
    font-size: 2.5rem;
  }

  .cta-flex {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
}