/* ----------------------------------------
   Reset & Base Styles
---------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', sans-serif;
  line-height: 1.6;
  color: #222;
  background-color: #f9f9f9;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ----------------------------------------
   Utility Container
---------------------------------------- */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ----------------------------------------
   Header & Navigation
   (UPDATED: includes desktop + mobile hamburger menu)
---------------------------------------- */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #ffffffcc;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  z-index: 1000;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;             /* fixed height */
  padding: 0 15px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0b3d91;
  flex: 0 0 auto;
  z-index: 1100; /* sits above slide-in menu */
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0;
  padding: 0;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links a {
  font-weight: 500;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  white-space: nowrap;
  transition: color 0.2s;
  border-radius: 4px;
  color: #222;
}

.nav-links a:hover {
  color: #0b3d91;
}

.nav-toggle {
  display: none; /* hidden by default (desktop) */
  cursor: pointer;
  z-index: 1100; /* on top of everything */
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px 0;
  background-color: #0b3d91;
  border-radius: 3px;
  transition: all 0.3s ease-in-out;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ----------------------------------------
   Hero Section
---------------------------------------- */
.hero {
  position: relative;
  background-image: url('../assets/images/hero_centered.png');
  background-size: cover;
  background-position: center;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 61, 145, 0.7);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 800px;
  padding: 0 15px;
}

.hero-content h1,
.hero-content p {
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.cta-button {
  background-color: #ff4e00;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.cta-button:hover {
  background-color: #e64400;
}

.hero::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  transform: translate(-50%, -50%) scale(1);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 150, 255, 0.4), transparent 70%);
  opacity: 0;
  animation: lockGlow 2.5s infinite ease-in-out;
  z-index: 1;
}

@keyframes lockGlow {
  0%, 80%, 100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }
  40% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* ----------------------------------------
   Section Headings
---------------------------------------- */
section {
  padding: 80px 0;
}

section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #0b3d91;
  margin-bottom: 1rem;
  text-align: center;
}

section p {
  max-width: 800px;
  margin: 0.5rem auto 1.5rem;
  text-align: center;
  color: #555;
}

/* ----------------------------------------
   Who Are We Section (Image left of text)
---------------------------------------- */
#who-we-are .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.profile-image {
  flex: 0 0 30%;
  min-width: 200px;
  text-align: center;
}

.profile-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.profile-image .caption {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: #555;
  text-align: center;
}

.profile-text {
  flex: 1 1 65%;
  min-width: 300px;
}

.profile-text p {
  margin-bottom: 1rem;
  text-align: left;
  color: #555;
}

/* ----------------------------------------
   What We Offer Section
---------------------------------------- */
#what-we-offer .offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.offer-card {
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  padding: 1.75rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.offer-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.offer-card .offer-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
}

.offer-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: #0b3d91;
}

.offer-card p {
  font-size: 0.95rem;
  color: #555;
}

/* ----------------------------------------
   Contact Section
---------------------------------------- */
#contact .contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info, .contact-form {
  flex: 1 1 350px;
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  padding: 1.75rem;
}

.contact-info h3, .contact-form h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #0b3d91;
  text-align: center;
}

.contact-info p {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  color: #333;
}

.contact-info a {
  display: block;
  font-weight: 500;
  color: #0b3d91;
  margin-bottom: 0.5rem;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.contact-form label {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: #333;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
}

.contact-form textarea {
  min-height: 120px;
}

.contact-form button {
  align-self: flex-start;
  background-color: #0b3d91;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.contact-form button:hover {
  background-color: #0a367f;
}

.form-status {
  margin-top: 1rem;
  font-size: 0.9rem;
  display: none;
}

/* ----------------------------------------
   Footer
---------------------------------------- */
footer {
  position: relative;
  background-color: #222;
  color: #eee;
  padding: 40px 0;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('./assets/images/footer-accent.svg') no-repeat center center;
  background-size: cover;
  opacity: 0.05;
  pointer-events: none;
}

.footer-container {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.footer-brand {
  flex: 1 1 250px;
}

.footer-brand h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #ff4e00;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #ccc;
}

.footer-columns {
  display: flex;
  flex: 2 1 500px;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-column {
  flex: 1 1 200px;
}

.footer-column h4 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: #fff;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li {
  margin-bottom: 0.5rem;
}

.footer-column a {
  color: #ccc;
  font-size: 0.9rem;
}

.footer-column a:hover {
  color: #ff4e00;
}

.footer-column p {
  font-size: 0.9rem;
  color: #ccc;
  margin-bottom: 0.5rem;
}

.legal {
  text-align: center;
  width: 100%;
  margin-top: 2rem;
  font-size: 0.8rem;
  color: #777;
}

/* ----------------------------------------
   Responsive Adjustments (max-width: 1024px)
---------------------------------------- */
@media (max-width: 1024px) {
  #who-we-are .content-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .profile-text p {
    text-align: center;
  }
}

/* ----------------------------------------
   Mobile Navigation + Text Formatting (max-width: 768px)
---------------------------------------- */
@media (max-width: 768px) {
  /* Header / Nav tweaks */
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 60px; /* just below the header */
    right: 0;
    width: 100%;
    max-width: 300px; /* adjust as needed */
    background-color: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 1rem 0;
    transform: translateX(100%); /* start off-screen */
    transition: transform 0.3s ease-in-out;
    box-shadow: -2px 2px 6px rgba(0,0,0,0.1);
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links li a {
    display: block;
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    color: #222;
  }

  .nav-links li a:hover {
    background-color: #f0f0f0;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  /* Ensure other content sits below header */
  .container,
  .hero,
  section,
  footer {
    z-index: 1;
  }

  /* Mobile text & section formatting */
  section {
    padding: 60px 15px;
  }

  section h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    text-align: left;
  }

  section p {
    margin: 0.5rem 0 1rem;
    padding: 0 5px;
    text-align: left;
    line-height: 1.8;
  }

  /* Adjust Who We Are layout */
  #who-we-are .content-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-text p {
    text-align: center;
  }

  /* Adjust What We Offer grid to single column */
  #what-we-offer .offer-grid {
    grid-template-columns: 1fr;
  }

  /* Adjust Contact section to single column */
  #contact .contact-wrapper {
    flex-direction: column;
    align-items: stretch;
  }
}
