* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html, body {
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: #FFFCED;
    font-family: 'Georgia', serif;
  }
  
  main {
    flex: 1;
  }
  
  /* HEADER */
  header {
    background: url("Header.png") center/cover no-repeat;
    height: 600px;
    padding-top: 30px;
    padding-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
   nav {
    background-color: #FFFCED;
    height: 50px;
    /* width: 90%; */
    max-width: 1500px;
    margin: 10px auto 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 25px;
    padding: 0 40px;
    z-index: 2;
  }
  
  /* LINKS */

.nav-links {
    display: flex;
    gap: 5px;
    width: 90%;
  }
  
  .section-links {
    display: flex;
    gap: 35px;
    width: 60%;
  }
  
  .nav-links a {
    text-decoration: none;
    color: #A6B280;
    font-family: 'Georgia', serif;
    font-size: 18px;
    transition: color 0.3s ease;
    /* width: 500px; */
  }
  
  .nav-links a:hover {
    color: #5B653D;
  }
  
  /* Right side icons */
  .nav-icons {
    display: flex;
    flex-direction: row;
    justify-content: right;
    align-items: right;
    width: 40%;
    gap: 20px;
  }
  
  .nav-icons img {
    width: 35px;
    height: 35px;
    transition: opacity 0.3s ease;
  }
  
  .nav-icons img:hover {
    opacity: 0.7;
  }

  
  .logo {
    width: 500px;
    margin: 80px auto 20px auto;
  }
  
  .main-button {
    background-color: #FFFCED;
    color: #5B653D;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 18px;
    font-family: 'Georgia', serif;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 auto;
    z-index: 2;
    margin-top: 20px;
    margin-bottom: 55px;
  }
  
  .main-button:hover {
    background-color: #f3f0d0;
  }
  
  /* ABOUT SECTION (modern split design) */
.about-section {
    background-color: #faf6ec;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .about-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    max-width: 100%;
    width: 100%;
    background: #fffbea;
    overflow: hidden;
  }
  
  /* Left image side */
  .about-image img {
    width: 100%;
    max-width: 450px;
    height: auto;
    object-fit: cover;
    border-radius: 30px;
    margin-left: 100px;
  }
  
  /* Right text side */
  .about-text {
    flex: 1;
    padding: 150px 60px;
    font-family: 'Poppins', sans-serif;
    color: #3d5037;
  }
  
  .about-tagline {
    display: inline-block;
    font-size: 0.8em;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #6c8e52;
    background-color: #eaf2e0;
    padding: 6px 12px;
    border-radius: 20px;
    margin-bottom: 15px;
  }
  
  .about-text h2 {
    font-size: 1.9em;
    font-weight: 700;
    margin-bottom: 20px;
    color: #3a4c2f;
  }
  
  .about-text p {
    font-size: 1.05em;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #4a4a4a;
  }
  
  
  /* Responsive */
  @media (max-width: 900px) {
    .about-container {
      flex-direction: column;
      text-align: center;
    }
    .about-image img {
      border-radius: 25px 25px 0 0;
      max-width: 100%;
    }
    .about-text {
      padding: 30px;
    }
  }
  
  
  /* DIETS GRID */
  .diets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(475px, 1fr));
    gap: 100px;
    justify-content: center;     /* center grid items horizontally */
    justify-items: center;       /* center each block within its column */
    align-items: center;         /* vertically align items (optional) */
    margin: 60px auto;
    max-width: 1630ppx;           /* keeps layout nicely contained */
    padding: 0 20px;             /* adds breathing room on smaller screens */
  }

  .diet-block {
    position: relative;
    height: 300px;
    width: 475px;
    border-radius: 30px;
    background-color: #A6B280;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
    cursor: pointer;
    overflow: hidden; /* keeps overlay within rounded edges */
  }
  
  .diet-block:hover {
    transform: scale(1.03);
  }
  
  .learn-more-btn {
    position: absolute;
    bottom: 15px;
    right: 20px;
    width: 100px;
    height: 40px;
    border-radius: 30px;
    background-color: #A6B280;
    color: #f3f0d0;
    text-decoration: none; /* removes underline */
    text-align: center;
    line-height: 40px; /* vertically centers text */
    font-weight: bold;
    font-size: 0.80rem;
    cursor: pointer;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.3s ease;
  }
  
  /* Hover effect */
  .learn-more-btn:hover {
    background-color: #919c6f;
    transform: scale(1.05);
  }

  .diet-content h1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 470px;
    color: #ffffff;
    font-size: 3.5 em;
    text-align: center;
    z-index: 2;
    transition: opacity 0.4s ease;
  }
  
  /* OVERLAY */
  .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 30px;
    background-color: rgba(91, 101, 61, 0.9);
    color: #FFFCED;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
  }
  
  .overlay h2 {
    font-size: 1.8em;
    margin-bottom: 10px;
  }
  
  .overlay p {
    max-width: 300px;
    font-size: 1em;
    line-height: 1.5em;
  }
  
  .diet-block:hover .overlay {
    opacity: 1;
    visibility: visible;
  }
  
  .diet-block:hover h1 {
    opacity: 0;
  }
  
  /* Example Backgrounds */
  .block-1 { background-image: url('FODMAP.png'); }
  .block-2 { background-image: url('LCHF.png'); }
  .block-3 { background-image: url('Paleo.png'); }
  .block-4 { background-image: url('Mediterranean.png'); }
  .block-5 { background-image: url('AIP.png'); }
  .block-6 { background-image: url('GAPS.png'); }
  .block-7 { background-image: url('GFAP.png'); }
  .block-8 { background-image: url('Antihistamine.png'); }
  .block-9 { background-image: url('Anti-Candida.png'); }
  
  .services {
    position: relative;
    background-color: #a5af84;
    text-align: center;
    padding: 5rem 2rem;
    color: #f9f6e8;
    overflow: visible;
  }
  
  .services h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    margin-top: -40px;
  }
  
  /* Container for cards */
  .service-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 0px; /* overlap effect */
  }
  
  /* Individual card */
  .service-card {
    width: 260px;
    height: 320px;
    background-color: #5f6848;
    border-radius: 20px;
    color: #f9f6e8;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    text-decoration: none;
    padding: 1.5rem;
    transition: all 0.3s ease;
    background-size: cover;
    background-position: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  }
  
  /* Example images for demo */
  .service-card:nth-child(1) {
    background-image: url('https://via.placeholder.com/260x320?text=Food+App');
  }
  .service-card:nth-child(2) {
    background-image: url('https://via.placeholder.com/260x320?text=Recipe+Book');
  }
  .service-card:nth-child(3) {
    background-image: url('https://via.placeholder.com/260x320?text=Diet+Plan');
  }
  .service-card:nth-child(4) {
    background-image: url('https://via.placeholder.com/260x320?text=Nutrition');
  }
  
  /* Hover animation */
  .service-card:hover {
    transform: scale(1.05);
    filter: brightness(0.9);
  }
  
  .card-content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
  }
  
  .card-content h3 {
    margin: 0;
    font-size: 1.4rem;
  }
  
  .card-content .price {
    font-size: 1.1rem;
    font-weight: 500;
    color: #f9f6e8;
    opacity: 0.9;
  }
  
  
  /* FAQ & CONTACTS */
.info-sections {
    display: flex;
    width: 100%;
    height: 500px;
    margin-top: 60px;
    font-family: 'Georgia', serif;
  }
  
  /* FAQ SECTION */
  .FAQ {
    flex: 1;
    background-color: #A6B280;
    color: #FFFCED;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .faq-container {
    width: 80%;
    max-width: 600px;
  }
  
  .FAQ h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
  }
  
  /* Accordion style FAQ */
  .reviews {
    flex: 1;
    background-color: #A6B280;
    color: #FFFCED;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
    flex-direction: column;
    font-family: 'Georgia', serif;
}

.reviews-container {
    width: 80%;
    max-width: 600px;
    margin: 0 auto;
}

.reviews h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.review-item {
    border-bottom: 1px solid rgba(255, 252, 237, 0.3);
    padding: 10px 0;
    margin-bottom: 10px;
}

.review-item p {
    margin: 0;
    font-size: 1.1rem;
}

/* Review form */
.review-form {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.review-form input,
.review-form textarea {
    padding: 10px;
    border-radius: 10px;
    border: none;
    font-size: 1rem;
    width: 100%;
    background-color: #FFFCED;
}

.review-form button {
    width: 150px;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    background-color: #FFFCED;
    color: #5B653D;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.review-form button:hover {
    background-color: #f3f0d0;
}
  
  /* CONTACTS SECTION */
  .contacts {
    flex: 1;
    background-color: #5B653D;
    color: #FFFCED;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  
  .contacts-container {
    width: 80%;
    max-width: 500px;
  }
  
  .contacts h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  
  .contacts p {
    font-size: 1.2rem;
    margin: 10px 0;
  }
  
  .contacts a {
    color: #f3f0d0;
    text-decoration: none;
    transition: opacity 0.3s ease;
  }
  
  .contacts a:hover {
    opacity: 0.8;
  }
  
  .contact-btn {
    background-color: #A6B280;
    color: #FFFCED;
    border: none;
    border-radius: 25px;
    padding: 12px 25px;
    margin-top: 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .contact-btn:hover {
    background-color: #88946A;
  }
  
  /* FOOTER */
footer {
  background-color: #A6B280;
  height: 200px;
  padding: 60px 100px;
  margin-top: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #FFFCED;
  text-align: center;
}

footer .footer-link {
  color: #FFFCED;
  text-decoration: underline;
  margin-left: 10px;
}

footer .footer-link:hover {
  color: #eaf2e0;
}

/* Tablets */
@media (max-width: 1024px) {
  .logo {
    width: 350px;
  }
  .section-links {
    gap: 20px;
  }
  .about-container {
    flex-direction: column;
    padding: 40px 20px;
  }
  .about-text {
    padding: 30px;
  }
  .about-image {
    display: none;
 }
  .diets {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

/* Phones (≤768px) */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    height: auto;
    padding: 10px 20px;
    text-align: center;
  }

  .section-links {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .nav-icons {
    justify-content: center;
    width: 100%;
    margin-top: 10px;
  }

  .logo {
    width: 250px;
    margin: 40px auto;
  }

  .about-text h2 {
    font-size: 1.5em;
  }
  .about-image {
     display: none;
  }
  
  .diets {
    grid-template-columns: 1fr;
    padding: 0 10px;
  }

  .diet-block {
    width: 90%;
    height: 250px;
  }

  .overlay p {
    font-size: 0.9em;
  }

  .info-sections {
    flex-direction: column;
    height: auto;
  }

  .FAQ, .contacts {
    padding: 40px 20px;
  }

  .services h2 {
    font-size: 2rem;
  }

  .service-card {
    width: 90%;
    height: 280px;
  }

  footer {
    height: auto;
    padding: 30px 10px;
  }
}

/* Small Phones (≤480px) */
@media (max-width: 480px) {
  .nav-links a {
    font-size: 16px;
  }

  .logo {
    width: 200px;
  }

  .about-text {
    padding: 20px;
  }

  .about-text h2 {
    font-size: 1.3em;
  }

  .about-text p {
    font-size: 0.95em;
  }

  .about-image {
    display: none;
 }

  .diet-block {
    width: 100%;
    height: 220px;
  }

  .overlay h2 {
    font-size: 1.3em;
  }

  .overlay p {
    font-size: 0.85em;
  }

  .services {
    padding: 3rem 1rem;
  }

  .service-card {
    height: 250px;
  }

  .FAQ h2, .contacts h2 {
    font-size: 1.8rem;
  }

  footer p {
    font-size: 0.9rem;
  }
}


/* Mobile nav menu overlay */
@media (max-width: 768px) {
  

  .nav-links {
    position: fixed;
    inset: 0;
    background-color: #FFFCED;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.4s ease;
    z-index: 1000;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .section-links {
    flex-direction: column;
    text-align: center;
    gap: 25px;
  }

  .nav-icons {
    flex-direction: row;
    gap: 15px;
    justify-content: center;
  }

  .nav-icons img {
    width: 30px;
    height: 30px;
  }
}