* {
    box-sizing: border-box;
}

/* Base styles */
body {
    font-size: 100%;
    font-family: 'Inter', sans-serif;
    color: #333333;
    background-color: #FAF4EF;
    margin: 0;
    position: relative;    
    line-height: 1.6;
}

/* Nav */

.nav-global {
    background-color: #ffffff;
    width: 100%;
    height: 5vh;
    border-bottom: 1px solid #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    position: sticky;
    z-index: 3;
    top: 0;
}

#nav-menu-id {
    width: 100%;
    height: 5vh;
    margin: 0 10% 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end; /* this is used to keep hamburger menu on right */
}

#nav-menu-full-id {
    display: none;
    width: 100%;
    height: 95vh;
    margin-top: 10vh;
    opacity: 0;
    flex-flow: column wrap;
    align-items: flex-start;
    justify-content: flex-start;
}

#em-link {
    width: 10%;
    height: 100%;
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
}

#other-links {
    width: 80%;
    height: 100%;
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: center;
}

#nav-rt-buf {
    visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 10%;
    height: 100%;
}

#em-link a, #other-links a  {
    font-size: 1.5rem;
    color: #333333;
    font-family: "Corbel Light", Corbel, sans-serif;
    /* font-family: "Playfair Display", serif; */
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    text-decoration: none;
    margin-left: 20px;
    margin-right: 20px;
    text-align: center;
    display: inline-block;
}

#em-link a:hover, #other-links a:hover {
    color: #9C6644;
}

.inline-link {
    color: #333333;
    text-decoration: none;
}

.inline-link:hover {
    color: #9C6644;
}


/* ** Responsive Navigation ** */

.nav-global.expand {
    align-items: flex-start;
    flex-direction: column;
    height: 100vh;
}

#em-link.hide {
    display: none;
}

#nav-menu-full-id.show {
    display: flex;
    transition: opacity 1s;
    opacity: 1;
}

.nav-link {
    color: #333333;
    font-family: "Corbel Light", Corbel, sans-serif;
    /* font-family: "Playfair Display", serif; */
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 2rem;
    text-decoration: none;
    width: 100%;
    text-align: center;
    margin-bottom: 15px;
}

.nav-link:hover {
    color: #6D6969;
}



/* Styling the menu button */
.menu-btn {
    background-color: transparent;
    border-color: transparent;
    transition: all 0.5s ease-out;
}

/* Styling the hamburger lines */
.menu-btn .btn-line {
    width: 28px;
    height: 2px;
    background: #000000;
    transition: all 0.5s ease-out;
}

.menu-btn .btn-line:nth-child(2) {
    margin: 5px 0 5px 0;
}

/* Adding transform to the X */
.menu-btn.close {
    transform: rotate(180deg);
}

/* Styling the three lines to make it an X */
.menu-btn.close .btn-line:nth-child(1) {
    transform: translate(-0.5px, 7px) rotate(45deg);
}

.menu-btn.close .btn-line:nth-child(2) {
    opacity: 0;
}

.menu-btn.close .btn-line:nth-child(3) {
    transform: translate(-0.5px, -7px) rotate(-45deg);
}

.main-global.hide {
    display: none;
}

.footer-global.hide {
    display: none;
}

/* Main */

.main-global {
    background-color: white;
    border: 5px solid white;
    min-height: 95vh;
    margin-top: 0;
    margin-bottom: 0;
    margin-left: 10%;
    margin-right: 10%;
}

.section-border {
    width: 100%;
    height: 6px;
    background-color: #F4D3D6;
    border-top: 2px solid #000000;
    border-bottom: 2px solid #000000;
}

.section {
    width: 100%;
    padding: 30px 100px 30px;
}

/* Hero Section */
.hero {
    background-color: #F5F5F5;
    padding: 6rem 2rem;
    text-align: center;
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
}

.logo {
    font-family: "Corbel Light", Corbel, sans-serif;
    /* font-family: 'Playfair Display', serif; */
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #333333;
}

.tagline {
    font-size: 1.25rem;
    color: #6B705C;
    margin-bottom: 2rem;
}

.cta-button {
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    /* background-color: #A3B18A; */
    background-color: #9C6644; 
    color: #ffffff;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    display: inline-block;
    transition: all 0.2s ease-in-out;
}

.cta-button:hover {
    background-color: #919191;
    color: #ffffff;
}

/* Section */
.section {
    padding: 3rem 2rem;
    text-align: center;
    background-color: #ffffff;
}

.section h2 {
    font-family: "Corbel Light", Corbel, sans-serif;
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Meal plan prompt form */
#custom-prompt-form {
  max-width: 650px;
  margin: 0 auto;
  padding: 2rem 1rem;
  text-align: center;
}

#promptForm textarea {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  border-radius: 6px;
  border: 1px solid #ccc;
  margin-bottom: 1rem;
  resize: vertical;
}

/* Meal plan structured form */

.planForm {
  max-width: 500px;
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.planForm label {
  text-align: left;
  font-weight: 600;
  color: #6B705C;
  font-family: 'Inter', sans-serif;
}

.planForm input {
  width: 100%;
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.response-box {
  white-space: pre-wrap;
  background-color: #fff;
  padding: 1rem;
  margin-top: 2rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: monospace;
}

  /* Clean layout for fieldsets */
fieldset {
  border: none;
  padding: 0;
  margin: 1rem 0;
}

/* Shared styles for grouped radio buttons and checkboxes */
.radio-options,
.checkbox-options {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
  padding-left: 0.25rem;
}

.radio-group legend, .checkbox-group legend, .household-group legend {
  text-align: left;
  font-weight: 600;
  color: #6B705C;
  margin-bottom: 0.5rem;
  display: block;
}

.radio-options label, .checkbox-options label, .household-options label {
  font-weight: 400;
  color: #333333;
  font-family: 'Inter', sans-serif;
}

.radio-options, .checkbox-options {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  padding-left: 0.25rem;
}

/* Ensure labels and inputs align inline */
.radio-options label,
.checkbox-options label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 400;
  color: #333333;
  font-family: 'Inter', sans-serif;
  margin: 0.25rem 0;
  white-space: nowrap;       /* prevent line wrapping */
}

.radio-options input[type="radio"],
.checkbox-options input[type="checkbox"] {
  width: auto;
  height: auto;
  flex-shrink: 0;            /* prevent growing or wrapping */
  margin: 0;                 /* remove excess spacing */
}

.household-group {
  margin-top: 1.5rem;
  text-align: left;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
.footer-global {
    background-color: white;
    width: 100%;
    height: 75px;
    height: 5vh;
}

/* tiny/small/medium/large mobile screens */
@media (max-width: 1230px) {
    body {
        background-color: white;
    }

    .main-global {
        background-color: white;
        border: none;
        margin-left: 0;
        margin-right: 0;
     }

    /* this is to prevent scrolling when full page navigation is open */
    .nav-open {
        overflow: hidden;
    }

    #nav-menu-id {
        margin: 0;
    }

    #em-link {
        width: 80%;
    }
    
    #other-links {
        display: none;
    }

    /* show hamburger menu container on small screens */
    #nav-rt-buf {
        visibility: visible;
        width: 20%;
        margin-right: 10px;
    }

    .section {
        padding: 30px 20px 30px;
    }

}