:root {
  --primary-colour: #004854;
  --text-colour-dark: #000;
  --text-colour-light: #fefefe;
  --text-colour-white: #fff;
  --text-colour-grey: #e5e5e5;
  --text-colour-green-light: #d6e7af;
  --text-colour-green-medium: #61ce70;
  --text-colour-green-dark: #044751;
  --bg-colour-dark: #272629;
}

/**************************/
/* BELOW 1920px  */
/**************************/
@media (max-width: 120em) and (orientation: landscape) {
}

@media (max-width: 120em) {
  .about-certificate-images-grid {
    grid-template-rows: repeat(2, 50rem);
  }
}

/**************************/
/* BELOW 1904px  */
/**************************/
@media (max-width: 119em) {
  .home-products-item {
    grid-template-rows: 30rem auto;
  }
}

/**************************/
/* BELOW 1440px  */
/**************************/
@media (max-width: 90em) {
  .features-img {
    width: 100%;
    height: 40rem;
  }
}

/**************************/
/* BELOW 1376px (Smaller desktops) */
/**************************/
@media (max-width: 86em) and (orientation: landscape) {
  .feature-details {
    column-gap: 4rem;
    row-gap: 10rem;
  }

  .feature-box {
    width: 90%;
  }
}

/**************************/
/* BELOW 1376px both orientation */
/**************************/
@media (max-width: 86em) {
  .main-nav-list {
    gap: 12rem;
  }

  .hero-heading {
    font-size: 7.2rem;
  }

  .process-number {
    font-size: 10rem;
  }

  .home-products-text-description {
    line-height: 1.75;
  }

  .heading-pages {
    font-size: 6.4rem;
    font-weight: 300;
    letter-spacing: 3px;
  }

  .contact-social-media-container {
    justify-self: center;
    padding-left: 0;
  }

  .contact-map-embed {
    width: 450px;
    height: 337.5px;
  }

  .about-certificate-img {
    filter: grayscale(0);
    -webkit-filter: grayscale(0);
  }

  .product-name {
    position: static; /* ✅ remove absolute positioning */
    transform: none; /* ✅ reset transform */
    opacity: 1; /* ✅ always visible */
    margin-top: 1.2rem; /* spacing under image */
    font-size: 2rem; /* optional: better mobile size */
    color: var(--text-colour-light);
    white-space: normal; /* allow wrapping on small screens */
    text-align: center;
  }

  .products-item:hover .product-name {
    opacity: 1;
    transform: none; /* disable hover animation */
  }

  .products-item:hover .products-img {
    filter: none; /* optional: remove dark hover */
  }

  .products-items-grid {
    row-gap: 12rem;
  }

  .program-selection-link:hover {
    background-color: transparent;
    color: var(--text-colour-light);
  }
}

/**************************/
/* BELOW 1360px (Smaller desktops) */
/**************************/
@media (max-width: 85em) and (orientation: landscape) {
  /* .feature-text {
    font-size: 1.8rem;
  } */
}

/**************************/
/* BELOW 1360px (both orientations) */
/**************************/
@media (max-width: 85em) {
  .feature-box {
    padding: 4rem;
  }

  .feature-text {
    font-size: 1.8rem;
  }
}

/**************************/
/* BELOW 1280px  */
/**************************/
@media (max-width: 80em) and (orientation: landscape) {
}

@media (max-width: 80em) {
  .hero-heading {
    font-size: 6.4rem;
  }

  .section-process {
    padding: 16rem 4rem;
  }

  .section-community {
    padding: 0 4rem 25rem;
  }

  .features-img {
    width: 100%;
    height: 30rem;
  }

  .certificate-container {
    width: 60%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-items: center;
    gap: 8rem;
    /* padding-top: 8rem; */
  }
}

/**************************/
/* BELOW 1152px - done */
/**************************/
@media (max-width: 72em) {
  .footer-container-1 {
    grid-template-columns: 1fr;
    row-gap: 12rem;
    /* align-items: center; */
  }

  .footer-item-container-1:first-child {
    /* align-self: center; */
    align-items: center;
  }

  .footer-text {
    text-align: center;
  }

  .footer-sms-text {
    padding-top: 1rem;
  }

  .footer-logo-img {
    /* width: 25rem; */
    /* width: 100%; */
    width: 100%;
  }

  .copyright {
    grid-row: 3;
    padding: 0;
  }

  .address-break {
    display: none;
  }

  .index-feature-text-container {
    padding-left: 6rem;
  }

  .index-feature-text {
    /* font-size: 2.4rem; */
    padding-right: 6rem;
    width: 90%;
  }

  .feature-details {
    margin-top: 4rem;
    row-gap: 8rem;
  }

  .feature-box {
    /* margin: 6rem auto 8rem; */
    width: 100%;
    padding: 4rem;
  }
}

/**************************/
/* BELOW 1072px   */
/**************************/
@media (max-width: 67em) {
  .header {
    justify-content: space-between;
  }

  /* MOBILE NAVIGATION */
  .btn-mobile-nav {
    display: block;
    z-index: 9999;
    padding-right: 4rem;
  }

  .main-nav {
    background: var(--primary-colour);
    /* background: var(--text-colour-dark); */
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(10px);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: all 0.5s ease-in;

    /* Hide navigation */
    /* Allows NO transition at all */
    /* display: none; */

    /* 1) Hide it visually */
    opacity: 0;

    /* 2) Make it unaccessible to mouse and keyboard */
    pointer-events: none;

    /* 3) Hide it from screen readers */
    visibility: hidden;
  }

  .nav-open .main-nav {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateX(0);
  }

  .icon-mobile-nav {
    color: var(--text-colour-light);
  }

  .nav-open .icon-mobile-nav[name="close-outline"] {
    display: block;
    color: var(--text-colour-light);
  }

  .nav-open .icon-mobile-nav[name="menu-outline"] {
    display: none;
  }

  .main-nav-list {
    flex-direction: column;
    gap: 8rem;
    padding-right: 0;
  }

  .main-nav-link:link,
  .main-nav-link:visited,
  .current-page {
    color: var(--text-colour-light);
    font-size: 2.4rem;
    font-weight: 400;
    text-shadow: none;
  }

  .main-nav-link.nav-cta:link,
  .main-nav-link.nav-cta:visited {
    padding: 1.5rem 3rem;
  }

  .hero-text-container {
    width: 70%;
    bottom: 30%;
  }

  .process-number {
    font-size: 8rem;
    width: 10rem;
    /* text-align: right; */
  }

  .process-container {
    /* display: flex; */
    display: grid;
    grid-template-columns: 1fr;
    padding-top: 6rem;
    gap: 6.4rem;
  }

  .process-item {
    display: grid;
    grid-template-columns: auto auto;
  }

  .secondary-heading {
    text-align: center;
  }

  .community-heading-btn {
    display: flex;
    flex-direction: column;
    /* justify-content: space-between;
    align-items: center; */
  }

  .home-products-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16rem;
    padding: 8rem 8rem 0;
    /* padding-top: 8rem;
    padding-left: 4rem;
    padding-right: 4rem; */
  }

  .home-products-item {
    grid-template-rows: 45rem auto;
  }

  .home-products-text-heading {
    text-align: center;
  }

  .home-products-text-container {
    padding: 6rem;
  }

  .slide-text-container {
    width: 70%;
    /* bottom: 30%; */
    top: 70%;
  }

  .slide-heading {
    font-size: 4.2rem;
    font-weight: 600;
    text-shadow: 0.5px 0.5px 2px rgba(00, 00, 00, 0.8);
  }

  .default-btn:hover {
    cursor: pointer;
    background-color: transparent;
    color: var(--text-colour-light);
  }

  .all-products-btn:hover {
    cursor: pointer;
    /* color: var(--text-colour-light); */
    /* text-decoration: underline; */
    /* background-color: var(--btn-hover); */
    background-color: transparent;
    color: var(--text-colour-green-light);
  }

  .facebook:hover,
  .instagram:hover,
  .whatsapp:hover {
    fill: var(--text-colour-grey);
  }

  .footer-sms-text:hover {
    cursor: pointer;
    /* text-decoration: underline; */
    border-color: var(--text-colour-light);
  }

  .footer-contact-link:hover {
    cursor: pointer;
    border-color: var(--text-colour-light);
  }

  .contact-sms-text:hover {
    border-bottom: none;
  }

  .contact-heading {
    font-size: 3.6rem;
  }

  .contact-text,
  .contact-sms-text {
    font-size: 2rem;
    letter-spacing: 1px;
  }

  .contact-link-map:link,
  .contact-link-map:visited {
    font-size: 2rem;
  }

  .tel-email-container {
    flex-direction: column;
    gap: 9.6rem;
  }

  .heading-pages {
    font-size: 3.8rem;
    padding: 1.5rem 3rem;
  }

  .contact-phone-address-email-container {
    display: flex;
    flex-direction: column;
    gap: 3.6rem;
  }

  .contact-map-social-container {
    display: flex;
    flex-direction: column;
    gap: 8rem;
    align-items: center;
  }

  .feature-details {
    grid-template-columns: 1fr;
    /* row-gap: 4rem; */
    row-gap: 2rem;
    margin-bottom: 2rem;
  }

  .feature-details picture:nth-child(4) {
    grid-row: 3;
  }

  .feature-details picture:nth-child(8) {
    grid-row: 7;
  }

  .features-img {
    width: 80%;
    height: 45rem;
  }

  .feature-box {
    width: 80%;
    margin-bottom: 15rem;
    padding-top: 2rem;
  }

  .feature-box:last-child {
    margin-bottom: 1rem;
  }

  .products-category-section {
    padding-top: 6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
  }

  .program-selection-container {
    padding-left: 0;
  }

  .catalogue-container {
    padding-right: 0;
  }
}

/**************************/
/* BELOW 1000px  */
/**************************/

@media (max-width: 62.5em) {
  .index-feature-text {
    font-size: 2.4rem;
  }
}

/**************************/
/* BELOW 960px - done */
/**************************/

@media (max-width: 60em) {
  .facebook-img {
    height: 9rem;
  }

  .about-certificate-images-grid {
    grid-template-columns: 1fr;
    /* grid-template-rows: repeat(4, 50rem); */
  }
}

@media (max-width: 60em) and (orientation: landscape) {
}

/**************************/
/* (mobile landscape -1) */
/**************************/
@media (min-width: 900px) and (max-width: 960px) and (orientation: landscape) {
  .hero-text-container {
    top: 25%;
    transform: translateY(0%);
    width: 90%;
  }

  .hero-text {
    line-height: 1.5;
    padding-top: 0.5rem;
  }

  .slide-text-container {
    width: 90%;
    top: 10%;

    transform: translateY(0);
  }

  .slide-text {
    font-size: 1.6rem;

    line-height: 1.5;
    padding-top: 1rem;
  }
}
/**************************/
/* BELOW 896px - done */
/**************************/

@media (max-width: 56em) {
  .index-feature-text-container {
    padding-left: 4rem;
  }

  .index-feature-text {
    font-size: 2.2rem;
  }
}

/**************************/
/* (mobile landscape -2) */
/**************************/
@media (min-width: 800px) and (max-width: 880px) and (orientation: landscape) {
  .hero-text-container {
    top: 25%;
    transform: translateY(0%);
    width: 90%;
  }

  .hero-text {
    line-height: 1.5;
    padding-top: 0.5rem;
  }

  .slide-text-container {
    width: 90%;
    top: 10%;

    transform: translateY(0);
  }

  .slide-text {
    font-size: 1.6rem;

    line-height: 1.5;
    padding-top: 1rem;
  }
}

/**************************/
/* BELOW 848px */
/**************************/

@media (max-width: 53em) {
  .hero-heading {
    font-size: 4.8rem;
  }

  .hero-text-products-pages,
  .heading-pages-products {
    font-size: 4rem;
    text-align: center;
    white-space: nowrap;
  }

  .products-items-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 53em) and (orientation: landscape) {
}

/**************************/
/* iPhone 14 844px - Landscape */
/**************************/
@media (min-width: 843px) and (max-width: 844px) {
}

/**************************/
/* iPad Air 820px orientation: portrait */
/**************************/

@media (min-width: 819px) and (max-width: 820px) and (orientation: portrait) {
}

/**************************/
/* BELOW 784px */
/**************************/
@media (max-width: 49em) {
  .home-products-container {
    padding: 8rem 4rem 0;
  }

  .home-products-text-container {
    padding: 4rem;
    padding-bottom: 6rem;
  }

  .features-img {
    /* width: 80%; */
    height: 30rem;
  }
}

/**************************/
/* BELOW 720px */
/**************************/
@media (max-width: 45em) {
  .logo {
    padding-left: 2.4rem;
  }
  .btn-mobile-nav {
    padding-right: 2.4rem;
  }

  .slide-text-container {
    width: 70%;
    top: 50%;
  }

  .contact-text {
    padding-left: 2rem;
    padding-right: 2rem;
    text-align: center;
    line-height: 1.5;
  }

  .page-heading {
    padding-top: 6.4rem;
    font-size: 4rem;
    margin-bottom: -4rem;
  }

  .index-feature-text {
    font-size: 1.8rem;
    /* padding-right: 6rem;
    width: 90%; */
  }

  .feature-box {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .standard-text {
    font-size: 1.8rem;
  }

  .commitment-intro {
    padding-top: 8rem;
  }

  .products-items-grid {
    padding-left: 4rem;
    padding-right: 4rem;
  }
}

/**************************/
/* BELOW 624px */
/**************************/
@media (max-width: 39em) {
  .home-products-container {
    padding: 8rem 0 0;
  }

  .home-products-item {
    /* grid-template-rows: 35rem auto; */
    grid-template-rows: auto auto;
  }

  .slide-text-container {
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    /* top: 50%; */
  }

  .btn-container {
    text-align: center;
  }

  .hero-heading,
  .slide-heading {
    text-align: center;
    line-height: 1.25;
  }

  .hero-text-container {
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
  }

  .contact-social-media-links-icons {
    justify-content: center; /* centers horizontally */
    align-items: center;
  }

  .index-feature-text {
    /* white-space: pre-line; */
    width: 90%;
    white-space: normal;
  }

  .certificate-container {
    grid-template-columns: 1fr;
  }

  .certificate-img {
    filter: grayscale(0);
    -webkit-filter: grayscale(0);
  }

  .program-selection-link:link,
  .program-selection-link:visited {
    font-size: 1.8rem;
    width: 15rem;
  }

  .products-catalogue-btn,
  .products-catalogue-btn:link,
  .products-catalogue-btn:visited {
    font-size: 1.8rem;
  }
}

/**************************/
/* BELOW 528px */
/**************************/
@media (max-width: 33em) {
  .about-certificate-images-grid {
    grid-template-rows: repeat(4, 35rem);
  }

  .features-img {
    width: 100%;
  }

  .feature-box {
    width: 100%;
  }

  .feature-text {
    font-size: 1.6rem;
  }

  .program-selection-container {
    flex-direction: column;
  }
}

/**************************/
/* BELOW 480px */
/**************************/
@media (max-width: 30em) {
  .secondary-heading {
    line-height: 1.25;
  }

  .slide-heading {
    font-size: 3.6rem;
  }

  .footer-sub-heading {
    text-align: center;
    line-height: 1.25;
  }

  .copyright {
    line-height: 1.5;
  }

  .move-left {
    /* animation: moveFromLeft 1.5s ease-out; */
    animation: none;
  }

  .main-nav-list {
    /* gap: 14rem; */
    gap: 10rem;
  }

  .hero-text {
    color: var(--text-colour-white);

    font-weight: 300;
  }

  .slide-text {
    color: var(--text-colour-white);
    font-weight: 300;
  }

  .heading-pages {
    font-size: 3rem;
    letter-spacing: 2px;
    padding: 1rem 2rem;
  }

  /* .address-break {
    display: none;
  } */

  .contact-phone-address-email-container {
    display: grid;
    grid-template-columns: 1fr;
    padding-left: 2rem;
    padding-right: 2rem;
    row-gap: 3rem;
  }

  .contact-details-container {
    color: var(--text-colour-light);
    font-size: 2rem;
    font-weight: 200;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4rem;
  }

  .contact-tel-number-container {
    justify-content: center;
  }

  .contact-details-container:nth-child(2) {
    grid-row: 1;
  }

  .contact-icon {
    height: 3rem;
    width: 3rem;
    /* height: 2rem;
    width: 2rem; */
  }

  .location-icon {
    width: 5rem;
    color: var(--text-colour-light);
  }

  .contact-text,
  .contact-sms-text {
    font-size: 1.4rem;
    text-align: left;
    padding-left: 0;
  }

  .contact-text {
    padding-left: 0.2rem;
  }

  .contact-heading {
    display: none;
  }

  .contact-emails-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .page-heading {
    padding-top: 4.8rem;
    font-size: 3.2rem;
    margin-bottom: -3rem;
  }

  .contact-map-embed {
    /* width: 450px; */
    width: 100vw;
    height: 60vh;
  }

  .contact-section {
    gap: 6rem;
    padding-bottom: 8rem;
  }

  .contact-social-heading {
    display: block;
    font-size: 3rem;
    text-align: center;
    padding-bottom: 1.5rem;
  }

  .index-feature-text-container {
    padding-left: 3rem;
  }

  .index-feature-text {
    /* font-size: 1.8rem; */
    font-size: 1.6rem;
    padding-right: 0;
    font-weight: 400;
  }

  .standard-text {
    font-size: 1.6rem;
    line-height: 1.75;
    /* font-weight: 200;
  line-height: 1.5; */
  }

  .text-container {
    width: 100%;
    padding-left: 3.6rem;
    padding-right: 3.6rem;
  }

  .products-items-grid {
    grid-template-columns: 1fr;
    padding-left: 5rem;
    padding-right: 5rem;
  }

  .hero-text-products-pages {
    font-size: 2.4rem;
  }
  .hero-heading {
    font-size: 4.2rem;
  }
}

/**************************/
/* BELOW 432px */
/**************************/
@media (max-width: 27em) {
  .process-item {
    display: grid;
    grid-template-columns: 1fr;
  }

  .process-number {
    justify-self: center;
  }

  .section-process,
  .section-community {
    padding-left: 3rem;
    padding-right: 3rem;
  }

  .tertiary-heading {
    font-size: 2.4rem;
    text-align: center;
  }

  .process-container {
    /* gap: 9.6rem; */
    gap: 12rem;
  }

  .home-products-item {
    /* grid-template-rows: 35rem auto; */
    grid-template-rows: 35rem auto;
  }

  .home-products-text-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .page-heading {
    font-size: 2.8rem;
  }

  .contact-social-heading {
    font-size: 2.8rem;
  }

  /* .secondary-heading {
    font-size: 3.2rem;
  } */
}

/**************************/
/* BELOW 421px */
/**************************/
@media (max-width: 421px) {
  .slide-heading {
    font-size: 3rem;
  }

  .slide-text {
    font-size: 1.6rem;
    line-height: 1.5;
  }

  .contact-text {
    padding-right: 0;
  }
}

/**************************/
/* BELOW 416px */
/**************************/
@media (max-width: 26em) {
  .contact-details-container {
    gap: 6rem;
  }

  .location-icon {
    display: none;
  }

  .features-img {
    height: 25rem;
  }
}

/**************************/
/* BELOW 400px */
/**************************/

@media (max-width: 25em) {
  .company-name-break {
    display: none;
  }

  .contact-text span {
    display: block;
  }

  .about-certificate-images-grid {
    grid-template-rows: repeat(4, 30rem);
  }
}

/**************************/
/* BELOW 368px */
/**************************/
@media (max-width: 23em) {
  .products-items-grid {
    padding-left: 3rem;
    padding-right: 3rem;
  }

  .heading-pages-products {
    font-size: 2.4rem;
  }
}

/**************************/
/* BELOW 352px */
/**************************/
@media (max-width: 22em) {
  .footer-container-1:nth-child(2) {
    padding: 0;
    padding-bottom: 4.8rem;
  }

  .slide-text {
    font-size: 1.4rem;
    line-height: 1.25;
  }

  .heading-pages {
    white-space: wrap;
    line-height: 1.3;
  }

  .contact-details-container {
    gap: 3rem;
  }
}

/**************************/
/* BELOW 320px */
/**************************/
@media (max-width: 20em) {
  .footer-logo-img {
    padding-left: 3rem;
    padding-right: 3rem;
  }

  .contact-details-container {
    gap: 1.5rem;
  }
}

/**************************/
/* BELOW 288px */
/**************************/
@media (max-width: 18em) {
  .footer-container-1 {
    padding-top: 6.4rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    padding-bottom: 4.8rem;
  }
}
