html, body {
    max-width: 100%;
    overflow-x: hidden;
  }
/* Alternating section backgrounds */
section:nth-of-type(even) {
    background-color: #f9f9f9;
  }
  
  section:nth-of-type(odd) {
    background-color: #ffffff;
  }
  
  /* Base layout and fonts */
  :root {
    --gold-light: #FFD700;
    --gold-medium: #DAA520;
    --gold-deep: #B8860B;
    --gold: #DAA520;
    --charcoal-dark: #1C1C1C;
    --charcoal-deep: #111111;
    --white: #FFFFFF;
  }
  
  body {
    font-family: 'Josefin Sans', sans-serif;
    background-color: var(--white);
    color: var(--charcoal-dark);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  
  main, .content, .contact-grid, section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
  }
  
  nav {
    background: var(--charcoal-dark);
    width: 100%;
    padding: 12px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
  }
  
  nav a {
    color: white;
    text-decoration: none;
    margin: 0 16px;
    font-weight: 600;
  }
  
  header {
    position: relative;
    background: url('../assets/logo/GoldStandardLogoLong.webp') center/cover no-repeat;
    background-attachment: fixed;
    color: white;
    padding: 100px 20px;
    width: 100%;
    text-align: center;
    z-index: 1;
  }
  
  header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: -1;
  }
  
  .certification-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    justify-items: center;
    align-items: center;
    gap: 40px;
    padding: 0 20px;
  }
  
  .cert-card {
    text-align: center;
  }
  
  .cert-card img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
    object-fit: contain;
  }
  
  .cert-card a {
    text-decoration: underline;
    color: #004b6b;
    font-weight: bold;
  }
  
  header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: -1;
  }
  
  header h1 {
    font-family: 'Righteous', cursive;
    font-size: 3em;
    margin-bottom: 0.5em;
  }
  
  header p {
    font-size: 1.2em;
  }
  
  .cta {
    margin-top: 30px;
  }
  
  .cta a {
    background-color: var(--gold-medium);
    color: white;
    padding: 12px 24px;
    margin: 0 10px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
  }
  
  .services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    justify-content: center;
  }
  
  .service-box {
    background: white;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    transition: 0.3s ease;
  }
  
  .service-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  }
  
  .contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    margin-top: 40px;
  }
  
  .contact-form {
    flex: 1 1 45%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
  }
  
  .contact-form input,
  .contact-form textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
  }
  
  .contact-form button {
    background-color: var(--gold-medium);
    color: white;
    border: none;
    padding: 12px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
  }
  
  .contact-details {
    flex: 1 1 45%;
    text-align: left;
  }
  
  footer {
    background: var(--charcoal-dark);
    color: white;
    width: 100%;
    text-align: center;
    padding: 24px;
    margin-top: 40px;
  }
  
  footer a {
    color: var(--gold-medium);
    text-decoration: none;
  }
  
  /* Scroll animation */
  .hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }
  
  .show {
    opacity: 1;
    transform: translateY(0);
  }
  

  .navbar {
    position: fixed;
    background-color: var(--charcoal-dark);
    color: white;
    width: 100%;
    transition: top 0.3s, background-color 0.3s ease, box-shadow 0.3s ease;
  }
  
  .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
  }
  
  .nav-logo {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
  }
  
  .nav-toggle {
    display: none;
    font-size: 1.6em;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
  }
  
  .nav-links {
    display: flex;
    flex-wrap: wrap; /* Add this if not present */
    gap: 20px;
  }
  
  .nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 600;
  }
  
  /* Mobile styles */
  @media (max-width: 768px) {
    .nav-toggle {
      display: block;
    }
  
    .nav-links {
      display: none;
      flex-direction: column;
      width: 100%;
      background-color: var(--charcoal-dark);
      margin-top: 12px;
    }
  
    .nav-links.active {
      display: flex;
    }
  
    .nav-links a {
      padding: 12px 0;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
  }

  .about-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    line-height: 1.6;
    color: var(--charcoal-dark);
  }

/* Transparent navbar on page load */
.navbar.transparent {
    background-color: transparent;
    box-shadow: none;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    position: fixed;
    top: 0;
    z-index: 1000;
  }
  
  /* Solid navbar after scrolling */
  .navbar.solid {
    background-color: var(--charcoal-dark);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  }

  html {
    scroll-padding-top: 100px; /* Adjust this to match your navbar height */
  }