  :root {
    --green: #007d0d;
    --light-bg: #e3f7f1;
    --text-dark: #111;
    --max-width: 1200px;
    --spacing: 1rem;
    --border-grey: #ccc;
  }

  * {
    box-sizing: border-box;
    /* Global reset for every object (wraps content, padding, border) margins and padding rest to 0 */
    margin: 0;
    padding: 0;
  }


  /* Base styles, full site */

  body {
    font-family: 'Source Sans 3', sans-serif;
    /* All body text, everything except the titles */
    color: var(--text-dark);
    background: var(--light-bg);
    line-height: 1.5;
  }

  p:not(:last-child) {
    /* adds margin to bottom of every <p></p> */
    margin-bottom: 2rem;
  }

  h1,
  h2,
  h3 {
    /* Title text:
                  `     - h1 is "Conscious Systems Designs" in the header
                        - h2 is "My Strengths...." under hero img & "Let’s Start...." in contact & "The Person...." + "The How...." in about & "Rave Reviews" & "Previous Projects"
                         -h3 is "Example 1/2/3/4" & "Joe’s...." + "Sally’s...." + "That Hardware...." +Cute Coffee..."   */
    color: var(--green);
    margin-bottom: var(--spacing);
    font-family: 'Aleo', serif;
  }


  /* Adds outline to h1 and h2 */
  h1,
  h2 {
    text-shadow:
      0.3px 0 #9498c9b2,
      -0.3px 0 #9498c9b2,
      0 0.3px #9498c9b2,
      0 -0.3px #9498c9b2,
      0.3px 0.3px #9498c9b2,
      -0.3px 0.3px #9498c9b2,
      0.3px -0.3px #9498c9b2,
      -0.3px -0.3px #9498c9b2;
  }


  a {
    color: inherit;
    text-decoration: none;
  }

  /* Links maintain text color, no underline */

  /* Layout */

  .container {
    /* creates shape of container for all visual elements (except hero) */
    max-width: 1175px;
    margin-inline: auto;
    padding-inline: 2rem;
    width: 100%;
    box-sizing: border-box;
    scroll-margin-top: 100px;
  }

  /* Override scroll margin for reviews and projects section */
  #reviews {
    scroll-margin-top: 100px;
  }

  #projects {
    scroll-margin-top: 100px;
  }

  /* Hero Img */

  .hero-img-wrapper {
  position: relative;
  text-align: center;
  margin-bottom: 2rem;
  overflow: hidden;
  width: 100%;
  height: auto;
}

.hero-img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Under 625px: crop from edges, centered */
@media (max-width: 507px) {
  .hero-img-wrapper {
    height: 116px; /* set a fixed height that looks good for small screens */
  }

  .hero-img {
    width: 100%;
    height: 100%;
    min-width: unset;
    object-fit: cover;
    object-position: center;
  }
}

  .unit {
    /*  control the spacing and white-space behavior for title "My Strength..." */
    white-space: nowrap;
    display: inline-block;
    margin-right: 0.5rem;
  }

  @media (max-width: 836px) {
    .unit-hyphen:nth-child(4) {visibility:hidden}
  }

  @media (max-width: 507px) {
    .unit-hyphen:nth-child(2) {visibility:hidden}
  }


  /* Offerings Cards */

  .examples {
    /* Default: 4 per row */
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.7rem;
    margin-bottom: 1.75rem
  }

  /* 2x2 grid */
  @media (max-width: 900px) {
    .examples {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  /* Vertical stack */
  @media (max-width: 500px) {
    .examples {
      grid-template-columns: 1fr;
    }
  }

  /* Card formatting */
  .card {
    background: white;
    padding: var(--spacing);
    border-radius: .5rem;
    text-align: center;
  }

  .card h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
  }

  .card img {
    width: 100%;
    border-radius: 50%;
  }

  /* Homepage Services Preview */

.services-index-page {
  padding: 2rem 0 3rem 0;
}

.services-index-page h2 {
  text-align: center;
  font-size: 2.3rem;
  line-height: 1.2;
  margin-bottom: 2rem;
}

.services-index-page .examples {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 2rem;
}

.services-index-page-button {
  display: flex;
  justify-content: center;
}

.services-index-page-button .button {
  display: inline-block;
  width: auto;
}

@media (max-width: 900px) {
  .services-index-page .examples {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .services-index-page .examples {
    grid-template-columns: 1fr;
  }
}

  /* Contact form */

  .contact {
    padding-bottom: 2rem;
  }

  /* Header inside contact */
  .contact h2 {
    text-align: center;
    font-size: 2.3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    margin-top: 2.5rem;
  }

  .contact-layout {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-top: 1rem;
    overflow: visible;
  }

  .contact-instructions {
    flex: 1 1 45%;
    margin-right: 2.5rem;
  }

  .contact-layout form {
    flex: 1 1 45%;
    display: flex;
    flex-direction: column;
    gap: var(--spacing);
    flex-grow: 1;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding-bottom: 1rem;
    /* Extra space at bottom */
  }

  .contact form {
    /* Ensure form itself allows growth and visible overflow */
    flex-grow: 1;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    display: flex;
    flex-direction: column;
    gap: var(--spacing);
  }

  input {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 999px;
    width: 100%;
    background-color: var(--light-bg);
  }

  textarea {
    resize: vertical;
    min-height: 100px;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    width: 100%;
    background-color: var(--light-bg);
    margin-bottom: .5rem;
  }

button,
.button {
  display: inline-block;
  background: #005e09;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  transition: background-color 0.3s ease;
}

button:hover,
.button:hover {
  background-color: #007d0d;
}

  @media (max-width: 768px) {
    .contact-layout form {
      min-height: 400px;
    }
  }

  .field p {
    margin-bottom: 0.25rem;
  }

  fieldset {
    border: none;
    margin: 0;
    padding: 0;
  }


  .field label {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    flex-direction: row-reverse;
    cursor: pointer;
    margin-right: 1rem;
    user-select: none;
  }

  .inline-preferences {
    display: flex;
    align-items: center;
    gap: 2rem;
    /* Adjust spacing to simulate tabs */
  }

  .inline-preferences .label {
    white-space: nowrap;
  }

  .field:nth-child(-n+4) {
    margin-bottom: 0.75rem;
  }

  .field:nth-child(5) {
    margin-bottom: 0.5rem;
  }

  #form-status {
    margin: 0;
    padding: 0;
    font-weight: bold;
    text-align: center;
    line-height: 1.2;
  }

  .form-status {
  margin-top: 0.75rem;
  min-height: 1.2em;
  color: #555;
  font-size: 0.9rem;
}

  /* Thank you message */
  .thankyou-message {
    margin: 0;
    padding: 0.25rem 0;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    text-align: center;
    font-weight: bold;
    color: var(--green);
  }

  .thankyou-message.visible {
    display: block;
    opacity: 1;
    text-shadow:
      0.15px 0 #9498c9b2,
      -0.15px 0 #9498c9b2,
      0 0.15px #9498c9b2,
      0 -0.15px #9498c9b2,
      0.15px 0.15px #9498c9b2,
      -0.15px 0.15px #9498c9b2,
      0.15px -0.15px #9498c9b2,
      -0.15px -0.15px #9498c9b2 !important;
  }

  .honeypot-field {
    position: absolute !important;
    left: -9999px;
    /* move it off-screen */
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    /* no clicks */
  }

  #contact input:focus,
  #contact textarea:focus {
    outline: none;
    /* remove browser default */
    border-color: var(--green);
    /* highlight with your brand color */
    box-shadow: 0 0 4px 1px rgba(0, 94, 9, 0.25);
    /* subtle glow */
  }




  /* About Section*/
  .about {
    padding: 1.5rem;
    margin-bottom: -1rem;
    background-color: var(--light-bg);
    border-radius: 0.5rem;
  }

  /*  Flex layout wrapper */
  .about-layout {
    display: flex;
    flex-wrap: nowrap;
    gap: 2rem;
    align-items: flex-start;
  }

  /* Shared basic formatting */
  .about-text,
  .about-image {
    flex: 0 0 50%;
    max-width: 50%;
    box-sizing: border-box;
  }

  @media (max-width: 768px) {
    .about-layout {
      flex-direction: column;
    }

    #about .about-text,
    .about-image {
      max-width: 100%;
      padding-right: 0;
    }
  }

  /* Center top heading */
  .about-text h2 {
    text-align: center;
    font-size: 2.3rem;
    margin-top: -.2rem;
    margin-bottom: 1rem;
    margin-left: -.2rem;
    margin-right: 0;
    width: calc(100%);
  }

  /* .about-image formatting */
  .about-image {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .about-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 0.5rem;
    margin-top: 0.5em;
  }

  /* Responsive layout */
  @media (max-width: 768px) {
    .about-layout {
      flex-direction: column;
    }

    .about-image {
      justify-content: center;
      align-items: center;
    }

    .about-image img {
      margin-top: 2rem;
      width: auto;
      max-width: 80%;
      height: auto;
      border-radius: 0.5rem;
      display: block;
    }
  }

  /* Collapse layout on mobile */
  .about-text,
  .about-image {
    flex: 1 1 100%;
    max-width: 100%;
    padding-right: 0;
  }

  .about-how h2 {
    text-align: center;
    font-size: 2.3rem;
    line-height: 1.2;
    margin-bottom: var(--spacing);
    color: var(--green);
    font-family: 'Aleo', serif;
  }

  /* Bullet point formatting */
  .about-bullet-points {
    padding-left: 100px;
    padding-bottom: 1.5rem;
    list-style: disc;
  }


  /* Projects */
  .reviews,
  .projects {
    margin: 2rem 0 3rem 0;
  }

  .reviews h2,
  .projects h2 {
    font-size: 2.3rem;
    line-height: 1.2;
    text-align: center;
  }

  .carousel-container {
    max-width: 1000px;
    margin: 0 auto !important;
    padding: 0 1rem;
    background: var(--light-bg);
  }

  .carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    position: relative;
    width: 100%;
  }

  .carousel .slides-wrapper {
    overflow: hidden;
    flex: 1 1 auto;
    max-width: 900px;
    margin: 0 auto;
  }

  .carousel .slides {
    display: flex;
    transition: transform 0.3s ease-in-out;
    gap: 1.5rem;
    margin: 0 auto;
  }

  .carousel .slide {
    flex: 0 0 auto;
    width: calc((100% - 3rem) / 3);
    box-sizing: border-box;
    padding: 1rem;
    text-align: center;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }

  @media (max-width: 900px) {
    .carousel .slide {
      width: 100%;
    }
  }

  @media (min-width: 901px) {
    .carousel .slide {
      width: calc((100% - 3rem) / 3);
    }
  }

  .carousel button {
    border: none;
    cursor: pointer;
    padding: 0.5rem 1rem;
    user-select: none;
    font-size: 1.5rem;
    border-radius: 999px;
    background-color: var(--green, #007d0d);
    color: white;
    transition: background-color 0.3s ease;
    position: relative;
    z-index: 1;
  }

  .carousel button:disabled {
    opacity: 0.3;
    cursor: default;
  }

  .slide img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    margin-bottom: 0.5rem;
  }

  .slide-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
  }

  .slide-link h3 {
    margin-top: 0.5rem;
  }