/* =========================
   RESET + BASE
   ========================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  color: #0D2A42;
  background: #f7f9fc;

  /* Sticky footer layout */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* =========================
   NAVBAR
   ========================= */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: white;
  border-bottom: 2px solid #e0e4e8;
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  width: auto;
  max-width: 160px;
}

/* Desktop nav */
.nav-links {
  display: flex;
  list-style: none;
  gap: 25px;
}

.nav-links a {
  text-decoration: none;
  color: #0D2A42;
  font-weight: 600;
}

.nav-links a:hover {
  color: #1E90FF;
}

/* Hamburger */
.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: #0D2A42;
  margin: 5px 0;
  transition: 0.3s ease;
}

/* =========================
   MOBILE NAV - SLIDE DOWN
   ========================= */
@media (max-width: 768px) {

  /* Show hamburger */
  .hamburger {
    display: flex;
  }

  /* Hide menu by default using max-height for animation */
  .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 20px;
    background: white;
    padding: 16px 22px;
    gap: 14px;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    z-index: 200;

    max-height: 0;          /* collapsed by default */
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease;
  }

  /* Slide down when checkbox is checked */
  .nav-toggle:checked ~ .nav-links {
    max-height: 500px;      /* adjust if more items */
    opacity: 1;
  }

  /* Hamburger → X animation */
  .nav-toggle:checked ~ .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle:checked ~ .hamburger span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked ~ .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
}

/* =========================
   MAIN CONTENT
   ========================= */
main {
  flex: 1; /* expand to fill space between header and footer */
  display: flex;
  flex-direction: column;
}

/* =========================
   HERO SECTION
   ========================= */
.hero {
  text-align: center;
  padding: 100px 20px;
  background: linear-gradient(135deg, #0D2A42, #12395a);
  color: white;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 30px;
}

.cta {
  background: #1E90FF;
  color: white;
  padding: 14px 28px;
  text-decoration: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: bold;
}

/* =========================
   CONTAINERS
   ========================= */
.container {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
}

.page-content h1,
.page-content h2 {
  margin-bottom: 12px;
}

.page-content p {
  margin-bottom: 20px;
  line-height: 1.7;
}

/* =========================
   SERVICE CARDS
   ========================= */
.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
  margin-top: 25px;
}

.card {
  background: white;
  padding: 25px;
  border-radius: 10px;
  border: 1px solid #e0e4e8;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}

/* =========================
   FORMS
   ========================= */
input,
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccd6dd;
  border-radius: 6px;
  margin-bottom: 15px;
}

button {
  background: #1E90FF;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  cursor: pointer;
}

/* =========================
   FOOTER
   ========================= */
footer {
  text-align: center;
  padding: 20px;
  background: #0D2A42;
  color: white;
  flex-shrink: 0;
}

/* =========================
   ANIMATIONS
   ========================= */
.fade-in {
  animation: fadeIn 1.3s ease forwards;
  opacity: 0;
}

.slide-up {
  animation: slideUp 1s ease forwards;
  opacity: 0;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(25px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}


/* =========================
   SERVICES SECTION
   ========================= */
.services {
  margin-top: 40px;
}

.services h1 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #0D2A42;
}

/* Grid layout for service cards */
.service-cards {
  display: grid;
  gap: 30px; /* spacing between cards */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 40px;
}


/* Individual service cards */
.service-card {
  background: white;
  padding: 25px 20px;
  border-radius: 12px;
  border: 1px solid #e0e4e8;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.service-card .icon {
  margin-bottom: 15px;
}

.service-card .icon img {
  width: 50px;
  height: 50px;
}

.service-card h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: #0D2A42;
}

.service-card ul {
  list-style-type: disc;
  padding-left: 20px;
  color: #444;
  line-height: 1.6;
  margin-bottom: 15px;
}

.service-card .cta {
  background: #1E90FF;
  color: white;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: bold;
  align-self: flex-start;
  transition: background 0.3s ease;
}

.service-card .cta:hover {
  background: #0d6efd;
}

.service-card .icon {
  margin-bottom: 15px;
}

.service-card .icon img {
  width: 50px;
  height: 50px;
  display: block;
  stroke: #0D2A42; /* match ABC brand color */
  fill: none; /* for line icons */
}

.services.container {
  max-width: 1200px; /* optional max width */
  width: 100%;       /* allows flexibility */
  margin: 0 auto;
  padding: 0 20px;
}


/* =========================
   CONTACT PAGE
   ========================= */
.secure-note {
  font-size: 0.9rem;
  color: #1E90FF;
  margin-bottom: 20px;
}

.form-feedback {
  margin-top: 15px;
  font-weight: bold;
  font-size: 1rem;
}

.form-feedback.success {
  color: #28a745; /* green */
}

.form-feedback.error {
  color: #dc3545; /* red */
}