
body.site  {

    height: 92vh;
    padding: 4vh;
    line-height: 1.5;
    color: white;
    /* background-color: var(--blue); */
    background-color: var(--dark-bg);
    /* background-image: url("/imgs/bottles.svg"); */
    background-image: url("/imgs/intro_bottles.jpg");
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: 49%;
    background-size: 23%;
    justify-content: space-between;

    &.about {
      background-image: none;
    }

    &.features {
      background-image: none;
    }

    &.login {
      button[type="submit"] {
        margin: 20px 0 0 0;
      }
    }


    
    h1 {
      font-size: 40px;
      color: white;
      line-height: 85%;
      font-weight: 700;
      margin-bottom: 30px;
    }
    
    h2 {
      font-size: 30px;
      font-family: Safiro-bold-italic;
      /* font-style: italic; */
      color: var(--blue);
      line-height: 1;
      margin-bottom: 1rem;
    }

    h3 {
      line-height: 1;
    }

    button {

      margin: 0 auto;

      &.primary {
        background-color: var(--dark-blue);
        border: 1px solid var(--dark-blue);

        &:hover {
          background-color: var(--mid-blue);
          border: 1px solid var(--mid-blue);
        }
      }
    }
    
    .pullDown {
      display: block;
      margin-top: 10px;
      color: white;
    }
    
    ul {
      padding: 0;
      margin: 0;
      
      li {
        
        &.disabled {
          color: #888;
          font-style: italic;
        }
        
      }
    }

    label {
        display: block;
        margin-bottom: 5px;
        color: var(--text-color);

        a {
          color: inherit;
        }
      }

    main {
        padding: 0 8%;

        .left-column {

          display: flex;
          justify-content: space-between;

          .top {
            margin-bottom: 20%;
          }

          .pullDown {
            width: 80%;
          }

          h1, h2 {
            margin-bottom: 1.5rem;
          }

          ul {
            font-size: 1.1rem;
            font-weight: 300;;

            li {
              margin-right: 0;
              padding: 5px 0;
              margin-bottom: 5px;;
              min-width: 100%;
              max-width: 100%;
              text-transform: none;
            }
          }

          button.secondary {
            color: inherit;
            margin: 5% 0 0 0;
          }

        }

        .right-column {
          padding: 10% 0 0 0;
          justify-content: end;
        }
    }

   .contact-form {
      margin-top: 30px;
      max-width: 500px;
      padding-left: 10%;

      h3 {
        margin-bottom: 20px;
      }

      .form-group {
        margin-bottom: 15px;
      }

      button {
        margin: 30px 0 0 0;
        display: block;
      }

      input, textarea {
        width: 100%;
        padding: 10px 15px;
        border: none;
        border-radius: 4px;
        background-color: rgba(255, 255, 255, 0.1);
      }

      textarea {
        min-height: 100px;
      }

    }


    .contact-success {
      color: white;
      margin-bottom: 15px;
      padding: 10px;
      border-radius: 4px;
      background-color: rgba(76, 175, 80, 0.7);
    }
    .contact-error {
      color: var(--critical);
      margin-bottom: 15px;
      padding: 10px;
      border-radius: 4px;
      background-color: rgba(244, 67, 54, 0.1);
    }
    .form-message {
      font-size: 14px;
      line-height: 1.4;
    }

    /*********** HOME **********/

    &.index {
      main {
        display: flex;
        flex-direction: row;
        gap: 20%;
        flex: 1;
      }
    }

    /*********** LOGIN **********/

    
    /*********** FEATURES PAGE **********/

    .features-grid {
        display: grid;
        grid-template-columns: repeat(10, 1fr);
        gap: 100px 30px;
        margin-top: 30px;
        max-width: 1400px;

        &.primary {
          margin-top: 10%;
        }

        &.secondary {
          margin-top: 10%;
          grid-template-columns: repeat(5, 1fr);
          gap: 100px 0;
        }
    }

    /* Odd rows: card (30%) then image (70%) */
    .feature-card {
      grid-column: span 3;
      background-color: black;
      z-index: 1000;
      height: fit-content;
      padding: 15%;
      border-radius: 10px;
    
      &:nth-child(4n+1) {
        margin: 12% -15% 0 0;    
      }

      &:nth-child(4n+4) {
        margin: 12% 0 0 -15%;
      }

      h3 {
        margin-top: 0;
        color: var(--primary-color);
      }

      p {
        line-height: 1.6;
        font-size: 14px;
        color: var(--text-color);
      }

    }

    .feature-image {

      /* background: rgba(255,255,255,0.05); */
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 200px;
    
      &:nth-child(4n+2) {
          grid-column: span 7;
      }

      /* Even rows: image (70%) then card (30%) */
      &:nth-child(4n+3) {
          grid-column: span 7;
      }

        img {
          border-radius: 10px;
        }
    
    }

    /*********** ABOUT PAGE **********/


    .about-content {
        margin-bottom: 20px;
        gap: 10%;
        font-size: 14px;

        &.secondary {
          margin: 10% auto 0 auto;
        }

        h3 {
          margin-top: 2rem;
        }

        .left-column {
          justify-content: unset;
        }

        .right-column {
          justify-content: unset;
          padding: 0;
        }
    }

    .cta-section {
        margin-top: 50px;
        text-align: center;

        h2 {
          margin-bottom: 30px;
        }
    }

    footer {
      padding: 50px 8% 30px 8%;
      border-top-color: var(--dark-gray);
      background-color: var(--dark-bg);
    }


    /* Responsive: Stack on mobile */
    @media (max-width: 768px) {

      &.index main {
        flex-direction: column;
        gap: 2%;
        flex: auto;
      }

      main {
        padding: 0;
      }

      .features-grid {
          display: flex;
          flex-direction: column;
          gap: 20px;
      }

      .feature-card {
        padding: 10%;
        margin: 0 !important;
      }

      .feature-image {
        margin: 0 0 50px 0 !important;
      }

      /* Assign explicit orders to keep pairs together but swap the swapped ones */
      /* Pair 1: positions 1-2 stay as is */
      .feature-card:nth-child(1) { order: 1; }
      .feature-image:nth-child(2) { order: 2; }

      /* Pair 2: positions 3-4 get swapped (card first, then image) */
      .feature-image:nth-child(3) { order: 4; }
      .feature-card:nth-child(4) { order: 3; }

      /* Pair 3: positions 5-6 stay as is */
      .feature-card:nth-child(5) { order: 5; }
      .feature-image:nth-child(6) { order: 6; }

      /* Pair 4: positions 7-8 get swapped (card first, then image) */
      .feature-image:nth-child(7) { order: 8; }
      .feature-card:nth-child(8) { order: 7; }

      /* Pair 5: positions 9-10 stay as is */
      .feature-card:nth-child(9) { order: 9; }
      .feature-image:nth-child(10) { order: 10; }

      /* Pair 6: positions 11-12 get swapped (card first, then image) */
      .feature-image:nth-child(11) { order: 12; }
      .feature-card:nth-child(12) { order: 11; }

      .contact-form {
        padding-left: 0;
      }

      footer {
        margin-top: 50px;
        padding-top: 30px;
        gap: 20px;
      }
    }

}