/* --- Global Styles & Variables --- */
:root {
  --primary-color: #005a9c; /* Professional blue */
  --secondary-color: #d92121; /* Strong red for accents */
  --light-gray-bg: #f0f4f8; /* Clean background for sections */
  --dark-text: #1a202c;
  --light-text: #ffffff;
  --body-font: "Lato", sans-serif;
  --heading-font: "Montserrat", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body-font);
  color: var(--dark-text);
  background-color: var(--light-text);
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: var(--heading-font);
  font-weight: 700;
}

/* --- Header & Navigation --- */
.main-header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e2e8f0;
  position: fixed;
  width: 100%;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
}

.logo {
  font-family: var(--heading-font);
  font-size: 1.8rem;
  font-weight: 700;
  max-height: 50px;
  text-decoration: none;
  color: var(--primary-color);
}
.logo .fa-heart-pulse {
  color: var(--secondary-color);
  animation: pulse 2s infinite ease-in-out;
}

.nav-links a {
  margin: 0 1rem;
  text-decoration: none;
  color: var(--dark-text);
  font-weight: 600;
  transition: color 0.3s ease;
}
.nav-links a:hover {
  color: var(--primary-color);
}

.header-cta {
  background-color: var(--secondary-color);
  color: var(--light-text);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.header-cta:hover {
  background-color: #b71c1c;
  transform: scale(1.05);
}

/* --- Hero Section --- */
#hero {
  background: linear-gradient(rgba(0, 90, 156, 0.8), rgba(0, 48, 83, 0.8)),
    url("./hero.png") no-repeat center center/cover;
  height: 80vh;
  max-height: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--light-text);
  padding: 0 2rem;
}

.hero-content {
  animation: fadeInDown 1.5s ease-out;
}
.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}
.hero-subtitle {
  font-size: 1.3rem;
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.cta-button {
  background-color: var(--secondary-color);
  color: var(--light-text);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  display: inline-block;
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.cta-button:hover {
  background-color: #b71c1c;
  transform: translateY(-3px);
}

/* --- General Content Sections --- */
.content-section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.content-section:nth-child(odd) {
  background-color: var(--light-gray-bg);
}

.content-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.section-subtitle {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 3rem;
  color: #555;
}

/* --- "Who We Help" Section --- */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}
.client-item {
  padding: 2rem;
}
.client-item i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}
.client-item h3 {
  font-size: 1.3rem;
  margin: 0;
}

/* --- About Section --- */
.about-container {
  display: flex;
  align-items: center;
  gap: 3rem;
  text-align: left;
}
.about-image {
  flex: 1;
}
.about-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.about-text {
  flex: 1.2;
}
.about-text .tagline {
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

/* --- Services Section --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  text-align: left;
}
.service-card {
  background: var(--light-text);
  padding: 2.5rem;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 90, 156, 0.1);
}
.service-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}
.service-card h3 {
  margin-top: 0;
}

/* --- Contact Section --- */
.contact-container {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
  text-align: left;
}
.contact-info,
.contact-map {
  flex: 1;
}
.contact-info p {
  line-height: 1.8;
  font-size: 1.1rem;
}
.contact-info a {
  color: var(--primary-color);
  text-decoration: none;
}
.contact-info a:hover {
  text-decoration: underline;
}
.contact-info .sincerely {
  margin-top: 2rem;
  line-height: 1.5;
}
.contact-info i {
  color: var(--secondary-color);
}
.contact-map iframe {
  border-radius: 10px;
}

/* --- Footer --- */
footer {
  background-color: var(--dark-text);
  color: #a0aec0;
  text-align: center;
  padding: 2rem;
}

.disclaimer {
  font-size: 0.7rem;
  max-width: 800px;
  margin: 0.5rem auto 0;
  line-height: 1.4;
  opacity: 0.7;
}

/* --- Animations --- */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
  .navbar {
    flex-direction: column;
    gap: 1rem;
  }
  #hero {
    max-height: 80vh;
  }
  .hero-title {
    font-size: 2.8rem;
  }
  .about-container,
  .contact-container {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  } /* On mobile, nav links can be replaced by a hamburger menu */
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-subtitle {
    font-size: 1.1rem;
  }
  .content-section h2 {
    font-size: 2rem;
  }
}

/* --- Brands Section --- */
#brands {
  background-color: var(--light-text); /* White background */
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.brand-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 2rem 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 90, 156, 0.1);
}

.brand-card a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.brand-card h4 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--dark-text);
}

.brand-card svg,
.brand-card img {
  max-width: 150px;
  height: 60px; /* Set a fixed height for alignment */
  object-fit: contain; /* Ensures logos aren't stretched */
  filter: grayscale(100%);
  opacity: 0.7;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.brand-card:hover svg,
.brand-card:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

.terms-main {
  padding: 1rem;
  padding-top: 5rem;
}

@media (max-width: 768px) {
  .terms-main {
    padding: 1rem;
    padding-top: 8rem;
  }
}
