  :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;
  }

  /* Header */

  .site-header {
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
  }

  .logo {
    margin-top: 1rem;
    font-size: 2rem;
    line-height: 1;
  }

  .logo-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    display: inline-block;
  }

  .logo-link:hover,
  .logo-link:focus {
    text-decoration: underline;
  }


  /* Navigation Buttons */

  /* Mobile */

  /* Position of nav buttons */
  .nav-wrapper {
    position: relative;
    margin-left: auto;
  }

  /* Hamburger menu button exterior styling */
  .nav-toggle {
    display: block;
    font-size: 2rem;
    background: none;
    cursor: pointer;
    color: var(--green);
    margin-left: auto;
    padding: 0.5rem;
    position: relative;
    z-index: 1001;
  }

  /* Hamburger menu visibility on hover */
  .nav-wrapper:hover .nav {
    max-height: 600px;
    opacity: 1;
    pointer-events: auto;
  }

  /* Extend hover area */
  .nav-toggle::before {
    content: "";
    position: absolute;
    top: -1rem;
    bottom: -1rem;
    left: -1rem;
    right: -1rem;
  }

  /* Hamburger menu container styling */
  .nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: max-content;
    min-width: 150px;
    z-index: 1000;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out;
  }

  /* Hamburger menu button interior styling */
  .nav a {
    display: block;
    width: 100%;
    margin: 0.5rem 0;
    padding: 0.5rem 1rem;
    font-size: 1.15rem;
    text-decoration: none;
    border-radius: 999px;
    border: 1px solid var(--border-grey);
    background-color: var(--green);
    color: white;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  }

  /* Hamburger menu visual feedback while hovering */
  .nav a:hover {
    background-color: var(--light-bg);
    color: var(--green);
    border-color: var(--border-grey);
  }

  /* Desktop Styles */

  /* Overrides mobile styling on larger screens */

  /* Drop shadows start at 508px */
  @media (min-width: 508px) {

    h1,
    h2 {
      text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    }

    /* Remove shadow inside offerings cards */
    .examples h1,
    .examples h2 {
      text-shadow: none;
    }
  }

  @media (min-width: 1051px) {
    .nav {
      display: flex;
      flex-direction: row;
      align-items: center;
      gap: 0.6rem;
      max-height: none;
      opacity: 1;
      overflow: visible;
      pointer-events: auto;
      position: static;
      padding: 0;
      border: none;
      box-shadow: none;
    }

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

    /* Links maintain text color, no underline */

    /* Navigation button size/shape consistency */
    .nav a {
      width: auto;
      margin: 0;
      padding: 0.2rem 0.76em;
      border: 1px solid var(--border-grey);
    }

    /* Hamburger button visibility */
    .nav-toggle {
      display: none;
    }

    /* Header */

    .site-header {
      background: white;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
      position: sticky;
      top: 0;
      z-index: 1000;
    }

    .header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0.5rem 1rem;
    }

    .logo {
      margin-top: 1rem;
      font-size: 2.6rem;
      line-height: 1;
    }

    .logo-link {
      color: inherit;
      text-decoration: none;
      cursor: pointer;
      display: inline-block;
    }

    .logo-link:hover,
    .logo-link:focus {
      text-decoration: underline;
    }
  }


  /* 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%;
  }


  /* 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 {
    position: relative;
    background: #005e09;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    margin-bottom: 0;
    border-radius: 999px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 550;
    line-height: 1;
  }

  @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;
  }

  /* Button wrapper and thank you message 
    .button-wrapper {
      margin-top: 0rem;
      overflow: visible;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.1rem; 
    }

    */

  /* 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;
  }

  .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;
  }


  /* Reviews and 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;
  }



  /* Footer */
  .site-footer {
    background: white;
    width: 100vw;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    padding: var(--spacing) 0;
  }

  .site-footer .container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    gap: clamp(1.5rem, 15vw, 12rem);
  }

  .site-footer .branding {
    font-family: 'Aleo', serif;
    color: var(--green);
    font-size: 2.6rem;
    margin-bottom: -0.3rem;
    font-weight: 600;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
  }