:root {
  --primary: #011021;
  --secondary: #fefcc8;
}

/* Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

/* Topbar */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 76px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  z-index: 1000;
}

.topbar img {
  max-height: 56px;
  cursor: pointer;
}

.topnav {
  display: flex;
  gap: 22px;
}

.topnav a {
  color: var(--secondary);
  text-decoration: none;
  font-weight: bold;
}

/* Hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--secondary);
  cursor: pointer;
}

/* Overlay */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 1050;
}

.overlay.show {
  opacity: 1;
  visibility: visible;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 100%;
  background: var(--primary);
  transform: translateX(-100%);
  transition: 0.3s;
  z-index: 1100;
}

.sidebar.open { transform: translateX(0); }

.sidebar-logo {
  width: 80%;
  margin: 24px auto;
  display: block;
  cursor: pointer;
}

.sidebar a {
  display: block;
  padding: 16px 32px;
  color: var(--secondary);
  text-decoration: none;
  font-size: 1.1rem;
}

/* Hero */
header {
  background: var(--primary);
  color: var(--secondary);
  text-align: center;
  padding: 140px 20px 90px;
}

header h1 {
  font-size: clamp(2rem, 5vw, 2.6rem);
  margin-bottom: 20px;
}

header p {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.15rem;
}

.cta {
  display: inline-block;
  margin-top: 30px;
  padding: 14px 30px;
  background: var(--secondary);
  color: var(--primary);
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
}

/* Sections */
section {
  width: 100%;
  padding: 70px 20px;
}

h2 {
  color: var(--primary);
  margin-bottom: 20px;
  text-align: center;
}

/* About */
#about p {
  max-width: 900px;
  margin: auto;
}

.leadership {
  margin-top: 20px;
  font-size: 0.95rem;
  text-align: center;
}

.leadership a {
  color: var(--primary);
  margin-left: 8px;
}

/* About section: LinkedIn icon color */
#about a i.fab.fa-linkedin {
  color: var(--primary); /* navy blue */
  vertical-align: middle; /* aligns icon with text */
  margin-left: 4px; /* small spacing from name */
  font-size: 1rem; /* optional: adjust size to match text */
}


/* Services */
#services {
  background: #fafafa;
}
.services-grid {
  display: grid;
  gap: 40px;
  max-width: 1100px;
  margin: auto;
  justify-items: center; /* centers items in their grid cells */
}

/* Desktop: first row 3 cols, second row 2 cols centered */
@media (min-width: 1024px) {
  .services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1100px;
    margin: auto;

    /* Center last incomplete row */
    justify-items: center; /* center items in columns */
    justify-content: center; /* center the grid itself */
  }

  /* Span 2nd row items so they are centered */
  .services-grid .service:nth-child(4),
  .services-grid .service:nth-child(5) {
    grid-column: auto; /* let them flow naturally */
  }
}




/* Tablet */
@media (max-width: 1023px) and (min-width: 600px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    justify-items: center; /* center items in columns */
  }

  /* Center the last service if it would be alone in a row */
  .services-grid .service:last-child:nth-child(odd) {
    grid-column: 1 / -1; /* span entire row */
    justify-self: center;
  }

  .contact-box {
    grid-template-columns: repeat(2, 1fr);
    justify-items: center; /* center items in columns */
  }
  .contact-box div:last-child:nth-child(odd) {
    grid-column: 1 / -1; /* span entire row */
    justify-self: center;
  }
}


/* Mobile */
@media (max-width: 599px) {
  .services-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}


.service {
  text-align: center;
  padding: 20px;
}

.service i {
  font-size: 2.4rem;
  color: var(--primary);
  margin-bottom: 14px;
}

.service h3 {
  margin-bottom: 10px;
}

/* Experience */
.experience {
  max-width: 900px;
  margin: auto;
  border-left: 4px solid var(--primary);
  padding-left: 16px;
  margin-bottom: 24px;
}

/* Use Case / Content Analysis */
#use-case {
      background: #fafafa;
}

.use-case {
  max-width: 900px;
  margin: 50px auto;
  line-height: 1.6;
}

.use-case h3 {
  margin-top: 30px;
}

.use-case ul, #why-us ul {
  margin-left: 40px;
}

/* Contact */
#contact {
  background: var(--primary);
  color: var(--secondary);
  text-align: center;
}

#contact img {
  width:80px;
  cursor: pointer;
}

#contact h2 {
  color: var(--secondary);
}

.contact-box {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.contact-box i {
  font-size: 2rem;
  margin-bottom: 12px;
}

.contact-box a {
  color: var(--secondary);
  text-decoration: none;
  font-weight: bold;
}

/* Footer */
footer {
  background: var(--primary);
  color: var(--secondary);
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
}

footer span {
  text-decoration:underline;
  cursor:pointer;
}

footer a {
    color: var(--secondary);
}

/* Responsive Nav */
@media (max-width: 768px) {
  .topnav { display: none; }
  .menu-toggle { display: block; }
}


/* WHY US */
#why-us {
  padding: 60px 20px;
  background: #ffffff;
}

.why-list {
  max-width: 800px;
  margin: 30px auto 0;
  list-style: none;
  padding: 0;
}

.why-list li {
  padding: 12px 0;
  font-weight: 500;
  border-bottom: 1px solid #eee;
}

/* ENGAGEMENT */
#engagement {
  padding: 60px 20px;
  background: #f8f9fb;
}

.engagement-list {
  max-width: 800px;
  margin: 20px auto;
}

.engagement-list li {
  margin: 10px 0;
}

.engagement-note {
  text-align: center;
  font-weight: 600;
  margin-top: 20px;
}

/* EXPERIENCE LOGO */
.experience-header {
  display: flex;
  align-items: center;
  margin: 15px 0;
}

.experience-header img {
  max-width: 220px;
  height: auto;
  opacity: 0.9;
}

/* CONTACT URGENCY */
.contact-urgency {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 30px;
  font-weight: 500;
}

/* TRUST SIGNALS */
.trust-signals {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 0.85rem;
  opacity: 0.8;
  margin-top: 10px;
}

.trust-signals span{
    cursor: default;
    text-decoration: none;
    line-height:1;
}


/* Section wrapper */
.cta-section {
  background-color: var(--secondary); /* light gold */
  padding: 72px 24px;
}

/* Inner container aligns with site width */
.cta-container {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

/* Text */
.cta-text {
  color: var(--primary); /* navy */
  font-size: 1.25rem;
  line-height: 1.65;
  font-weight: 500;
  margin-bottom: 28px;
}

/* Button */
.cta-button {
  display: inline-block;
  background-color: var(--primary); /* navy */
  color: var(--secondary); /* gold */
  padding: 16px 36px;
  border-radius: 6px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-decoration: none;
  border: 2px solid var(--primary);
  transition: all 0.2s ease;
}

/* Hover */
.cta-button:hover {
  background-color: transparent;
  color: var(--primary);
}

/* Mobile */
@media (max-width: 768px) {
  .cta-section {
    padding: 56px 20px;
  }

  .cta-text {
    font-size: 1.1rem;
  }

  .cta-button {
    width: 100%;
    max-width: 320px;
  }
}


#why-us ul {
  max-width:900px;
  margin:0 auto;
}

.experience-note {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: #4b5563; /* muted slate */
  font-style: italic;
  line-height: 1.5;
}
.experience-note::before {
  content: "• ";
  color: var(--primary);
  font-weight: 600;
}


.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.principle {
  background: var(--secondary);
  color: var(--primary);
  padding: 1.5rem;
  border-radius: 1rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.principle i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.principle h3 {
  margin: 0.5rem 0;
  font-size: 1.25rem;
}

.principle p {
  font-size: 1rem;
  line-height: 1.5;
}

/* Hover effect */
.principle:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Responsive breakpoints */
@media (max-width: 1024px) {
  .principles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .principles-grid {
    grid-template-columns: 1fr;
  }
}




/* Authority Section */
#authority-icons .cta-button {
  margin-top:32px;
}

#authority-icons .icon-item i {
  margin-bottom:10px;
}

#authority-icons .icon-item h3 {
  margin-bottom:14px;
}


#authority-icons {
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(3, 1fr); /* Default 3-column layout */
  max-width: 1200px;
  margin: 0 auto;
}

/* Tablet: 2 columns, 1 item centered in the second row */
@media (max-width: 1024px) {
  #authority-icons {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Center the last item if it's alone in the row */
  #authority-icons .icon-item:nth-child(3) {
    grid-column: 1 / -1;
    justify-self: center;
  }
}

/* Mobile: 1 column with 3 rows */
@media (max-width: 600px) {
  #authority-icons {
    grid-template-columns: 1fr;
  }
}



@media (max-width: 899px) {
  .topnav a[href="#about"] {
    display: none;
  }
}

@media (max-width: 809px) {
  .topnav a[href="#contact"] {
    display: none;
  }
}

/* Hero Header */
header#home {
  position: relative;
  padding: 6rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

header#home.hero-enabled {
  min-height: 90vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}


/* Hero text */
header#home h1 {
  max-width: 948px;
  margin-bottom: 1rem;
}

header#home p {
  max-width: 758px;
  margin-bottom: 2rem;
}

/* CTA button spacing safeguard */
header#home .cta {
  margin-top: 1rem;
}

/* Responsive adjustment */
@media (max-width: 768px) {
  header#home {
    min-height: 80vh;
    padding: 4rem 1.25rem;
  }
}

/* Responsive adjustment */
@media (max-width: 995px) {
  header#home h1 {
    max-width: 500px;
    margin-bottom: 1rem;
  }
}





/* Sidebar scrollable */
.sidebar {
  height: 100vh;                       /* fill full viewport height */
  overflow-y: auto;                     /* scroll if content is taller */
  -webkit-overflow-scrolling: touch;    /* smooth scrolling on iOS */
  padding-bottom: 24px;                 /* optional bottom spacing */
}

/* Sticky sidebar logo */
.sidebar-logo {
  position: sticky;
  top: 0;                               /* sticks to very top */
  z-index: 10;
  background: var(--primary);           /* match sidebar */
  display: block;
  width: 80%;
  margin: 0 auto 16px auto;            /* spacing below logo */
  padding: 16px 0;                      /* optional logo padding */
}

/* Optional: add spacing between logo and links */
.sidebar a:first-of-type {
  margin-top: 16px; /* pushes first link down a bit so it's not flush with logo */
}
