/* -----------------------------
     1. Typography & Global Reset
  ----------------------------- */

  @font-face {
    font-family: 'Founders Grotesk';
    src: url('fonts/fndrs-md.woff2') format('woff2'),
         url('fonts/fndrs-md.woff') format('woff'),
         url('fonts/fndrs-md.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
  }

  * {
    box-sizing: border-box;
  }

  html, body {
    height: 100%;
    font-family: "DM Sans", sans-serif;
    color: black;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 1.6em;
    scroll-behavior: smooth;
  }

  body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    min-height: 100vh;
    min-width:320px;
  }

  h1,h2,h3,h4,h5 {
    margin-top:0;
    line-height:1.2em;
    letter-spacing:0.02em;
    cursor: default;
  }

  p {
    margin-top: 0;
    letter-spacing:0.01em;
    cursor: default;
  }


  /* Global small paragraph style */
  p.small {
    font-size: 0.85em;
    opacity: 0.75;
    letter-spacing: 0.02em;
    margin: 0;
  }

  p.large {
    font-family: 'Founders Grotesk', sans-serif;
    font-size: 1.35em;
    line-height: 1.4;
    margin: 0 auto 2rem;
    max-width: 100%;
  }

  @media (min-width: 768px) {
    p.large {
      max-width: 60vw;
    }
  }

  @media (max-width: 767px) {
    p.large {
      font-size: 1em;
    }
  }

  .body-content {

  }

  .center {
    text-align:center;
    align-items:center;
    justify-content: center;
  }




  /* -----------------------------
     2. Global Utility Classes
  ----------------------------- */

  .round {
    border-radius: 50%;
    overflow: hidden;
  }

  .border {
    border: 6px solid white;
  }

  .shadow {
    box-shadow:
      0 3px 12px rgba(0, 0, 0, 0.2),
      0 1px 3px rgba(0, 0, 0, 0.15);
  }

  .icon {
    width: 40px;
    height: auto;
    display: inline-block;
  }

  .hide {
    display:none!important;
  }

  .mobile-show {
    display:none!important;
  }

  .mobile-hide {
    display:normal;
  }

  @media screen and (max-width: 960px) {
     .mobile-show {
      display:inline-block!important;
    }

    .mobile-hide {
      display:none!important;
    }
  }


  /* -----------------------------
   3. Navigation
----------------------------- */

nav {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  width: 100%;
  padding: 5vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  transition: all 0.3s ease;
}

nav.condensed {
  background: white;
  padding: 1.25vw;
  box-shadow: 0 0.25em 1.5em rgba(0,0,0,0.1);
}

nav .logo svg {
  width: 75px;
  height:auto;
  transition: all 0.3s ease-out;
}



#logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: black;
  font-size: 1rem;
  font-weight: 500;
}

#home #logo {
  color: white;
}

#logo .logo {
  display: flex;
}

#logo a {
  color: currentColor!important;
}

nav.condensed #logo {
  color: black;
}
#home nav.condensed #logo {
  color: black;
}

nav.condensed #logo .logo svg {
  width:60px;
}

@media (max-width: 960px) {
  nav .logo svg {
    width: 60px;
  }
  nav.condensed #logo .logo svg {
    width:50px;
  }
}

nav #logo-name {
  font-size:1.15em;
  line-height:1.3;
  display: flex;
  flex-direction: column;
  gap:0em;
}

@media (max-width: 960px) {
  nav #logo-name {
    font-size:0.9em;
  }
}

@media (max-width: 500px) {
  nav #logo-name {
    font-size:0.85em;
  }
}

nav #logo-name span {
  text-wrap: nowrap;
}


#links {
    display: flex;
    align-items: center;
    gap: 2em;
}

#page-links {
  display: flex;
  align-items: center;
  gap:1em;
}


@media (max-width: 960px) {
  #main-nav {
    flex-direction: column;
    gap: 0.5em;
  }
  #home #main-nav:not(.condensed) #links {
    background: black;
    padding:0.5em;
    border-radius:1em;
  }

  #page-links {
  }
}

@media (min-width: 1199px) {
  #page-links {
    gap:2.5vw;
  }
}


#page-links a {
  color: black;
  transition: all 0.25s ease;
  opacity:0.75;
  text-decoration: none;
  line-height: 1em;
  display: inline-block;
}

#page-links a.mobile {
  display:none;
}

@media (max-width: 960px) {
  #page-links {
    gap:0.25em;
  }
  #page-links a {
    font-size: 0.9em;
    padding: 0.35em;
    text-align: center;
  }
  #page-links a.mobile {
    display: inline-block;
  }
}

#home #page-links a {
  opacity:1;
  color:white;
}

#main-nav.condensed #page-links a {
  opacity:1;
  color:black;
}


#page-links a:hover {
  opacity:1!important;
  text-decoration:underline;
}

#page-links a.active {
  opacity:1!important;
  font-weight:800;
  text-decoration: underline;
}

/* Contact Button - default white theme */
#links .button {
  background: transparent;
  color: black;
  border: 2px solid black;
  padding: 0.5rem 1.25rem;
  border-radius: 3em;
  font-size: 0.9em;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}

#home #links .button {
  color: white;
  border: 2px solid white;
}

#links .button:hover {
  background: white;
  color: black;
}

/* Condensed button theme (black version) */
nav.condensed #links .button {
  color: black;
  border-color: black;
}

#home nav.condensed #links .button {
  color: black;
  border-color: black;
}

nav.condensed #links .button:hover {
  background: black;
  color: white;
}


  /* -----------------------------
     4. Shared Content Block
  ----------------------------- */

  .content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
  }

  .content h1 {
    font-family: 'Founders Grotesk', sans-serif;
    font-weight: 500;
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .content p {
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 1rem;
  }

  .content .email {
    font-weight: 600;
  }

  .content > div {
    max-width: 620px;
  }

  @media (min-width: 768px) {
    .content h1 {
      font-size: 2.75rem;
    }

    .content p {
      font-size: 1.25rem;
    }
  }

  /* -----------------------------
     5. Hero Section
  ----------------------------- */

  #hero {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10vw;
    padding-top: calc(10vw + 110px); /* Add nav height */
    padding-bottom: 5vw;
    z-index: 1;
    color:black;
    background: white;
  }

  #home #hero {
    background: url('https://sccs-cert.com/img/factory.jpg') no-repeat center bottom fixed;
    background-size: cover;
    color:white;
    padding-top: calc(15vw + 110px); /* Add nav height */
    padding-bottom: 10vw;
  }

  @media (max-width: 1100px) {
    #hero {
      padding-top: calc(9vw + 110px); /* Add nav height */
    }
    #home #hero {
      padding-top: calc(10vw + 110px); /* Add nav height */
    }
  }

  @media (max-width: 960px) {
    #hero {
      padding-top: calc(9vw + 110px); /* Add nav height */
    }
    #home #hero {
      padding-top: calc(10vw + 110px); /* Add nav height */
    }
  }

  /* Mobile override */
  /* Override on mobile/touch devices */
  @media (hover: none) {
    #hero {
      background-attachment: scroll;
    }
  }


  #home #hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.1); /* optional overlay for legibility */
    z-index: 0;
  }

  #hero .wrapper {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 5vw;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
  }

  #hero-content {
    text-align: left;
  }

  #home #hero-content {
    color: white;
    text-shadow:
      0 3px 6px rgba(0, 0, 0, 0.1),
      0 1px 2px rgba(0, 0, 0, 0.2);
  }

  @media (min-width: 960px) {
    #hero-content {
      flex: 1 1 300px;
    }
  }

  .hero-title {
    display: flex;
    gap:1em;
    flex-direction: column;
    width: auto;
    align-items: center;
  }

  .tag-title {
    display: flex;  
    align-items: center;
    gap:0.5em;
    font-size:1.15em;
    background:#DCE9FF;
    border-radius:2em;
    padding: 0.5em 1.25em;
    width: fit-content;
    line-height: 1;
  }

  #hero-content h1 {
    font-family: 'Founders Grotesk', sans-serif;
    font-weight: 500;
    font-size: 2rem;
    margin-bottom: 1rem;
    line-height: 1.1em;
  }

  #home #hero-content h1 {
    font-size: 2.5rem;
  }

  #hero-content p {
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.5;
    max-width: 620px;
  }

  @media (min-width: 768px) {
    .hero-title {
      align-items: flex-start;
    }
    #hero-content h1 {
      font-size: 2.5rem;
    }

    #home #hero-content h1 {
      font-size: 3rem;
    }

    #hero-content p {
      font-size: 1.25rem;
    }
  }

  .hero-image {
    flex: 0 0 auto;
    width: 40vw;
    max-width: 360px;
    min-width:200px;
    aspect-ratio: 1 / 1;
  }

  .hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  @media (max-width: 767px) {
    #hero .wrapper {
      flex-direction: column;
      gap: 2rem;
    }

    #hero-content {
      text-align: center;
    }
  }


  /* -----------------------------
   6. Logos Section
  ----------------------------- */

  #logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 3.5vw;
    padding: 5vw;
    background: #F4F4F4;
    border-radius: 2em;
    text-align: center;
    max-width: 1200px;
  }

  #home #logos {
    background: transparent;
  }

  /* Let logos use their native sizes */
  #logos img {
    display: block;
  }

  /* Responsive logo scaling for tablet and below */
  @media (max-width: 1280px) {
    #logos img {
      transform: scale(0.9);
      transform-origin: center;
    }
  }

  @media (max-width: 1024px) {
    #logos img {
      transform: scale(0.8);
      transform-origin: center;
    }
  }


  /* -----------------------------
     7. Main Information Section
  ----------------------------- */

  #information {
    padding:2.5vw;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  #main {
    background: white;
    color: black;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 5vw;
    padding: 5vw;
    width: 100%;
    max-width: 1200px;
    box-sizing: border-box;
  }

#main.pains {
  flex-direction: column;
  flex-wrap: initial;
  gap: calc(2vw + 1em);
}

@media (max-width: 960px) {
  #main {
    flex-direction: column;
    align-items: stretch; /* optional – makes children full-width */
    justify-content: flex-start;
        flex-wrap: nowrap;
  }

  #intro,
  #audiences {
    width: 100%;
  }
}



  #main h2 {
    font-family: 'Founders Grotesk', sans-serif;
    font-weight: 500;
    font-size: 2rem;
    margin-bottom: 0;
  }

  #home #main h2 {
    margin-bottom: 1rem;
  }

  /* -----------------------------
   8. Intro and Audiences Layout
----------------------------- */

#intro,
#audiences {
  flex: 1 1 calc(50% - 5vw);
  text-align: left;
  display: flex;
  flex-direction: column;
}



/* -----------------------------
   9. Audience Card Styles
----------------------------- */

#audiences {
  display: flex;
  flex-direction: column;
  gap: 0.5rem; /* Gap between each card */
  text-align: left;
}

/* Base wrapper */
.cards {
  display: flex;
  gap: 0.5rem;
}

/* Modifier: horizontal layout with wrapping */
.cards.horizontal-cards {
  flex-wrap: wrap;
  justify-content: center; /* optional */
  text-align: center;      /* optional */
}

/* Modifier: horizontal layout with wrapping */
.cards.grid-cards {
  display: flex;
  flex-wrap: wrap;
  text-align: left;      /* optional */
}

/* Base card styles */
.card {
  background: transparent;
  border: 2px solid rgba(0,0,0,0.1);
  border-radius: 0.5rem;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 90px;
  width: auto;
  min-width: 0;
}

.small .card {
  max-width: 240px;
}

.thin .card {
  padding: 0.75rem;
}

.blue .card {
  background: #DCE9FF;
  border:none;
}

.card.plus {
  border:none;
  background: rgba(0,0,0,0.1);
  display: flex;
  align-items: center!important;
  justify-content: center;
  text-align: center;
}

.card.plus p {
  opacity:0.6;
  margin:0;
  line-height: 1.1em;
}

#home .card {
  max-width:100%;
}

/* Horizontal layout: 3 per row by default */
.horizontal-cards .card {
  flex: 1 1 calc(20% - 1rem);
}

.grid-cards .card {
  flex: 1 1 calc(50% - 1rem);
  align-items: flex-start;
}

/* Tablet: 2 per row */
@media (max-width: 960px) {
  .horizontal-cards .card {
    flex: 1 1 calc(50% - 1rem);
  }
}

/* Mobile: 1 per row */
@media (max-width: 640px) {
  .horizontal-cards .card {
    flex: 1 1 100%;
  }
  .grid-cards .card {
    flex: 1 1 100%;
  }
}



/* Icon inside the card */
.card .icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Content layout */
.card-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem; /* Space between h3 and p */
  line-height: 1.25em;
}

.card-content h3,
.card-content p {
  margin: 0;
}



/* -----------------------------
   10. Card Button Styles
----------------------------- */

.card .link {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.button {
  background: black;
  color: white;
  border: 2px solid black;
  padding: 0.5rem 1.25rem;
  border-radius: 3em; /* Fully rounded */
  font-size: 0.9em;
  text-decoration: none;
  transition: all 0.3s ease-out;
}

.button:hover {
  background: transparent;
  color: black;
  border-color: black;
  cursor: pointer;
}

/* -----------------------------
   11. Description Section
----------------------------- */

#description {
  background: url('https://sccs-cert.com/img/conference.jpg') no-repeat right center fixed;
  background-size: cover;
  padding: 5vw;
  color: black;
  width: 100%;
}

#description.fabricators {
  background: url('https://sccs-cert.com/img/img-description-fabricators.jpg') no-repeat right center fixed;
  padding: 5vw;
  background-size: cover;
}

#description.installers {
  background: url('https://sccs-cert.com/img/img-description-installers.jpg') no-repeat right center fixed;
  padding: 5vw;
  background-size: cover;
}

#description.system-houses {
  background: url('https://sccs-cert.com/img/img-description-system.jpg') no-repeat right center fixed;
  padding: 5vw;
  background-size: cover;
}



/* Override on mobile/touch devices */
@media (hover: none) {
  #description {
    background-size: contain;
    background-attachment: scroll;
    background-position-y: top;
  }
}


#description .wrapper {
  max-width: 100%;
  width: 100%;
  display: flex;
  justify-content: flex-start;
  max-width: 1200px;
}

#description-content {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  width: 100%;
}

@media (max-width: 767px) {
  #description {
    padding-top:50vw;
  }
  #description-content {
    width: 100%;
  }
}

@media (min-width: 768px) {
  #description-content {
    width: 60vw;
  }
}

@media (min-width: 1024px) {
  #description-content {
    width: 50vw;
  }
}

/* Dark header (top corners only) */
#description .dark-header {
  background: #111;
  color: white;
  padding: 3.5vw;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  font-family: 'Founders Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
  margin:0;
}

/* Light content (bottom corners only) */
#description .light-content {
  background: white;
  padding: 3.5vw;
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
}

#description .light-content p {
  color: black;
  font-size: 1.05rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.icon-list {
  display: flex;
  gap: 0.25em;
      flex-direction: column;
}

.icon-list .list-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5em;
}

.icon-list .list-item img {
}

.icon-list .list-item .list-item-content {
  font-size: inherit;
  font-weight: 600;
  line-height: 1em;
}

@media screen and (max-width:768px) {
  .icon-list .list-item .list-item-content {
    font-size:0.9em;
  }
}


/* -----------------------------
   12. Quote Section
----------------------------- */

#quote {
  background: white;
  color: black;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 5vw;
  text-align: center;
}

#quote .wrapper {
  max-width: 1200px;
}


/* Author styling */
#author {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

#author p {
  font-size: 1rem;
  font-weight: 500;
  margin: 0;
}

#author img {
  width: 24px;
  height: auto;
}





/* -----------------------------
   Help Section
----------------------------- */


  #help {
    background: white;
    color: black;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2vw;
    padding: 5vw;
    width: 100%;
    max-width: 1200px;
    box-sizing: border-box;
  }






/* -----------------------------
   Approach Section
----------------------------- */


#approach {
  background: #F4F4F4;
  width:100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#approach .wrapper {
  color: black;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 2.5vw;
  max-width: 1200px;
  padding: 5vw;
}

#approach-content {

}

#approach-image {
  flex-shrink: 1;
  margin-top:2.5vw;
  margin-bottom:2.5vw;
}

#approach-image img {
  width:100%;
  max-width:480px;
  border-radius: 1em;
}

@media screen and (max-width:768px) {
  #approach .wrapper {
    flex-direction: column-reverse;
    justify-content: center;
    text-align: center;
  }
  .icon-list {
    padding: 2.5vw;
    border-radius: 1em;
    border: 2px solid rgba(0, 0, 0, 0.1);
    text-align: left;
  }
}









/* -----------------------------
   13. CTA Section
----------------------------- */

#cta {
  background: white;
  padding: 5vw;
  color: black;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-wrapper {
  background: #DCE9FF;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 3vw;
  border-radius: 2em;
  gap: 5vw;
  max-width:1200px;
}

/* CTA Image */
.cta-image {
  flex: 0 0 auto;
  width: 180px;
  aspect-ratio: 1 / 1;
}

.cta-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 768px) {
  .cta-image {
    width: 33vw;
    max-width: 380px;
  }
}

/* CTA Content */
#cta-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  #cta-content {
    flex: 1 1 300px;
  }
}

#cta-content h2 {
  font-family: 'Founders Grotesk', sans-serif;
  font-size: 2rem;
  margin: 0 0 0.5rem 0;
}

#cta-content h2.cta-header {
  font-size: 1.5rem;
}

#cta-content p {
  font-size: 1.1rem;
  line-height: 1.5;
  margin: 0;
}

/* Contact Info */
#contact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-info img {
  width: 24px;
  height: auto;
}

.contact-info a {
  position: relative;
  color: black;
  font-size: 1.3rem;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

@media screen and (max-width:767px) {
  .contact-info a {
    font-size: 1rem;
  }
}

.contact-info a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: black;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease-in-out;
}

.contact-info a:hover::after {
  transform: scaleX(1);
}


@media (max-width: 1100px) {
  .cta-wrapper {
    padding: 4vw;
    gap: 3vw;
  }

  #cta-content {
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .cta-wrapper {
    flex-direction: column;
    align-items: center;
    padding: 5vw;
    gap: 2rem;
  }

  .cta-image {
    width: 100%;
    max-width: 200px;
  }

  #cta-content {
    width: 100%;
    gap: 1rem;
    text-align: center;
    align-items: center;
  }

  #cta-content h2,
  #cta-content p {
    text-align: center;
  }

  #contact {
    align-items: center;
  }
}



/* -----------------------------
   14. Footer
----------------------------- */

footer {
  background: white;
  padding: 0.5em;
  text-align: center;
}

footer p {
  color: black;
  opacity: 0.75;
  font-size: 0.85rem;
  margin: 0;
}
