/*
 * Custom stylesheet for the ARCHA landing page.
 * The palette and typography are inspired by the provided slides.
 */

/* Root variables for easy theming */
:root {
  --primary-color: #013a63;      /* dark navy similar to slide backgrounds */
  --secondary-color: #00a1c6;    /* turquoise accent for highlights */
  --accent-color: #ea8a22;       /* warm orange accent */
  --light-bg: #f4fbfd;           /* very light blue background for contrast */
  --text-color: #0d3b66;         /* dark text for headings */
  --muted-text: #647c9a;         /* muted text colour for descriptions */
  --white: #ffffff;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --radius: 10px;
  --transition: all 0.3s ease;
}

/* Reset some basic elements */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  color: var(--text-color);
  background-color: var(--white);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

/* Utility container to center content */
.container {
  width: 90%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Header */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 0.5rem 0;
  /* Dark navigation bar that blends with the hero section */
  background-color: var(--primary-color);
  color: var(--white);
  z-index: 999;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* Logo styling for ARCHA brand */
.navbar .logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--white);
}

.logo-mark {
  display: grid;
  grid-template-columns: repeat(2, auto);
  grid-template-rows: repeat(2, auto);
  gap: 2px;
}

.logo-mark .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
}

.logo-mark .dot.accent {
  background-color: var(--accent-color);
}

.logo-text {
  margin-left: 8px;
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.5px;
  color: var(--white);
}

/* Logo inside the navigation bar should display normally on dark backgrounds */
.navbar .logo img {
  height: 45px;
  /* No filter needed for the light variant of the logo */
  filter: none;
}

.nav-links ul {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease-in-out;
}

.nav-links a:hover {
  color: var(--secondary-color);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

/* Hamburger spans adopt white colour on dark nav */
.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* Hamburger animation when menu is open */
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* Hero Section */
.hero {
  padding-top: 100px; /* offset for fixed navbar */
  background: linear-gradient(130deg, var(--primary-color) 0%, #021b34 100%);
  color: var(--white);
  overflow: hidden;
}

.hero-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: calc(100vh - 100px);
}

.hero-content {
  flex: 1 1 50%;
  max-width: 600px;
}

.hero-content h1 {
  font-size: 2.4rem;
  line-height: 1.2;
  margin: 0 0 1rem 0;
}

.hero-content p {
  margin-bottom: 2rem;
  color: #d1e3f3;
  font-size: 1rem;
}

.cta-btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background-color: var(--secondary-color);
  color: var(--white);
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease-in-out;
}

.cta-btn:hover {
  background-color: var(--accent-color);
}

.hero-image {
  flex: 1 1 45%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  object-fit: cover;
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-color);
  text-align: center;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--muted-text);
  margin-bottom: 3rem;
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.light-bg {
  background-color: var(--light-bg);
}

/* Services */
.cards-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.service-card {
  background-color: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 2rem;
  flex: 1 1 300px;
  max-width: 350px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.icon-wrapper {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem auto;
  border-radius: 50%;
  background-color: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
}

/* Integration */
.integration-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
}

.integration-content {
  flex: 1 1 50%;
}

.integration-list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.integration-item h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
  color: var(--primary-color);
}

.integration-item p {
  margin: 0;
  color: var(--muted-text);
  line-height: 1.6;
  font-size: 0.95rem;
}

.integration-image {
  flex: 1 1 45%;
  text-align: center;
}

.integration-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Security */
.security {
  background: linear-gradient(130deg, #011f42, #04325c);
  color: var(--white);
}

.security-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
}

.security-image {
  flex: 1 1 45%;
}

.security-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.security-content {
  flex: 1 1 50%;
}

.security-content h2 {
  color: var(--white);
}

.security-content p {
  color: #cddcec;
  max-width: 600px;
}

.security-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0 0;
}

.security-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.security-list li::before {
  content: '\f058'; /* FontAwesome check-circle icon */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-color);
}

/* Packages */
.packages-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.package-card {
  background-color: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 2rem;
  flex: 1 1 300px;
  max-width: 350px;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.package-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--white);
  font-weight: 600;
  text-transform: uppercase;
}

.package-badge.starter {
  background-color: var(--secondary-color);
}

.package-badge.standard {
  background-color: var(--accent-color);
}

.package-badge.enterprise {
  background-color: var(--primary-color);
}

.package-title {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  color: var(--primary-color);
  text-align: center;
}

.package-desc {
  font-size: 0.95rem;
  color: var(--muted-text);
  text-align: center;
  margin-bottom: 1rem;
}

.package-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.package-features li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-color);
}

.package-features li::before {
  content: '\f111'; /* FontAwesome circle */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.5rem;
  color: var(--secondary-color);
  margin-top: 0.25rem;
}

/* CTA Section */
.cta {
  background: linear-gradient(130deg, var(--primary-color) 0%, #021c35 100%);
  color: var(--white);
  text-align: center;
}

/* Ensure CTA headings and subtitles are visible on dark backgrounds */
.cta .section-title,
.cta .section-subtitle {
  color: var(--white);
}

.cta-inner {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
.footer {
  background-color: #021a33;
  color: #c8d8e5;
  padding-top: 60px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.footer-brand img {
  height: 40px;
  margin-bottom: 1rem;
}

.footer-brand p {
  margin: 0;
  max-width: 220px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.footer-links,
.footer-contact,
.footer-social {
  flex: 1 1 180px;
}

.footer-links h4,
.footer-contact h4,
.footer-social h4 {
  margin-bottom: 0.5rem;
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
}

.footer-links ul,
.footer-contact ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links ul li,
.footer-contact ul li {
  margin-bottom: 0.4rem;
}

.footer-links a,
.footer-contact a {
  color: #c8d8e5;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
  font-size: 0.9rem;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--secondary-color);
}

.footer-contact i {
  margin-right: 0.5rem;
}

.social-links a {
  color: #c8d8e5;
  margin-right: 0.75rem;
  font-size: 1.2rem;
  transition: color 0.2s ease-in-out;
}

.social-links a:hover {
  color: var(--secondary-color);
}

.footer-bottom {
  text-align: center;
  padding: 1rem 0;
  margin-top: 30px;
  font-size: 0.8rem;
  background-color: #00192f;
  color: #7fa1c0;
}

/* Audience (Full Support) Section */
.audience {
  /* Dark gradient similar to hero but slightly different for visual separation */
  background: linear-gradient(130deg, #001e3c, #00345e);
  color: var(--white);
}

.audience .section-title,
.audience .section-subtitle {
  color: var(--white);
}

.audience-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.audience-card {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 2rem;
  flex: 1 1 250px;
  max-width: 280px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.audience-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.audience-icon {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.audience-card h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
  color: var(--white);
}

.audience-card p {
  color: #cddcec;
  font-size: 0.9rem;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .audience-grid {
    gap: 1rem;
  }
  .audience-card {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* Responsive Styles */
@media (max-width: 991px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  .hero-inner {
    gap: 1.5rem;
  }
  .integration-inner,
  .security-inner {
    flex-direction: column;
    text-align: center;
  }
  .integration-content,
  .security-content {
    max-width: 100%;
  }
  .integration-image,
  .security-image {
    max-width: 100%;
  }
  .nav-links ul {
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    right: 0;
    background-color: var(--white);
    width: 220px;
    height: calc(100vh - 70px);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.05);
  }
  .nav-links.active {
    transform: translateX(0);
  }
  .nav-links ul {
    flex-direction: column;
    gap: 1rem;
  }
  .hamburger {
    display: flex;
  }
  .hero-inner {
    flex-direction: column;
    text-align: center;
  }
  .hero-content,
  .hero-image {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .cards-grid {
    gap: 1rem;
  }
  .service-card {
    flex: 1 1 100%;
  }
  .packages-grid {
    gap: 1rem;
  }
  .package-card {
    flex: 1 1 100%;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .footer-links,
  .footer-contact,
  .footer-social {
    flex: 1 1 100%;
    max-width: 300px;
    margin-bottom: 1.5rem;
  }
}

/*
 * Previously we forced the navigation bar to be light using !important declarations.  
 * These overrides have been removed to allow the dark navigation bar defined above  
 * to display correctly.  
 */