/* ===========================
   Global Styles
   =========================== */

   :root {
    --scroll-lock-top: 0px;
  }
  
  body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background: #ffffff;
    color: #222;
    line-height: 1.7;
    overscroll-behavior: none;
  }
  
  body.modal-open {
    position: fixed;
    top: var(--scroll-lock-top);
    left: 0;
    width: 100%;
    overflow: hidden;
  }

  .title_green{
    color:rgb(34, 139, 34);
  }

  .title_view{
    color:rgb(50, 65, 145);
  }
  
  /* ===========================
     HERO SECTION
     =========================== */
  
  .mulch-hero {
    margin-top: 0;
    position: relative;
    height: 65vh;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, #8a8a8a 0%, #a1a1a1 50%, #8a8a8a 100%);
    overflow: hidden;
  }
  
  .mulch-hero::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -15%;
    width: 550px;
    height: 550px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
  }
  
  .mulch-hero::after {
    content: "";
    position: absolute;
    bottom: -35%;
    left: -12%;
    width: 450px;
    height: 450px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
  }
  
  .hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease;
  }
  
  .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
  
  .hero-title {
    font-size: 4rem;
    font-weight: 800;
    color: white;
    margin: 20px 0;
    letter-spacing: -1.5px;
  }
  
  .hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
  }
  
  .hero-scroll-indicator {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.5rem;
    opacity: 0.7;
    animation: bounce 2s infinite;
    z-index: 2;
    cursor: pointer;
  }
  
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
      transform: translateX(-50%) translateY(0);
    }
    40% {
      transform: translateX(-50%) translateY(-10px);
    }
    60% {
      transform: translateX(-50%) translateY(-5px);
    }
  }
  
  /* ===========================
     INFO SECTION
     =========================== */
  
  .info-section {
    padding: 80px 10%;
    background: #f9f9f9;
  }
  
  .info-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
  }
  
  .info-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
  }
  
  .info-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, rgb(34, 139, 34), rgb(69, 85, 175));
    transform: scaleX(0);
    transition: transform 0.4s ease;
  }
  
  .info-card:hover::before {
    transform: scaleX(1);
  }
  
  .info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12);
  }
  
  .info-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgb(34, 139, 34), rgb(50, 160, 50));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
  }
  
  .info-icon i {
    font-size: 2rem;
    color: white;
  }
  
  .info-card h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #222;
    margin: 0 0 20px;
  }
  
  .info-card p {
    color: #555;
    font-size: 1rem;
    line-height: 1.8;
    margin: 0;
  }
  
  /* Location Details */
  .location-details {
    margin-top: 25px;
  }
  
  .detail-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: #444;
    font-size: 1rem;
  }
  
  .detail-row i {
    color: rgb(34, 139, 34);
    font-size: 1.1rem;
    width: 20px;
  }
  
  .detail-row a {
    color: rgb(69, 85, 175);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
  }
  
  .detail-row a:hover {
    color: rgb(34, 139, 34);
  }
  
  .hours-section {
    margin: 25px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 12px;
    border-left: 4px solid rgb(34, 139, 34);
  }
  
  .hours-section h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    margin: 0 0 15px;
    color: #222;
  }
  
  .hours-section h3 i {
    color: rgb(34, 139, 34);
  }
  
  .hours-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px 20px;
    font-size: 0.95rem;
  }
  
  .hours-grid .day {
    font-weight: 600;
    color: #444;
  }
  
  .hours-grid .time {
    color: #666;
  }
  
  .map-link {
    display: block;
    position: relative;
    margin-top: 25px;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
  }
  
  .map-link:hover {
    transform: scale(1.02);
  }
  
  .map-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
  }
  
  .map-overlay {
    position: absolute;
    inset: 0;
    background: rgba(34, 139, 34, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
  }
  
  .map-overlay i {
    font-size: 2rem;
  }
  
  .map-link:hover .map-overlay {
    opacity: 1;
  }
  
  /* Fade-in animation */
  .fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }
  
  .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* ===========================
     MATERIALS WRAPPER
     =========================== */
  
  .materials-wrapper {
    position: relative;
    background: linear-gradient(135deg, rgb(69, 85, 175) 0%, rgb(50, 65, 145) 100%);
    padding: 80px 10% 100px;
    overflow: hidden;
  }
  
  .materials-wrapper::before {
    content: "";
    position: absolute;
    top: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
  }
  
  .materials-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
  }
  
  .section-label {
    display: inline-block;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
  }
  
  .materials-header h2 {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin: 10px 0 15px;
    letter-spacing: -1px;
  }
  
  .materials-header p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.15rem;
    margin: 0;
  }
  
  /* ===========================
     CATEGORY TABS
     =========================== */
  
  .category-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 900px;
    margin: 0 auto 50px;
    gap: 15px;
    position: relative;
    z-index: 2;
  }
  
  .tab-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 25px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
  }
  
  .tab-button i {
    font-size: 1.8rem;
  }
  
  .tab-button:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
  }
  
  .tab-button.active {
    background: white;
    color: rgb(69, 85, 175);
    border-color: white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  }
  
  .tab-button.active i {
    color: rgb(34, 139, 34);
  }
  
  /* ===========================
     MATERIALS CONTENT
     =========================== */
  
  .materials-content {
    max-width: 2000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
  }
  
  .category-section {
    display: none;
  }
  
  .category-section.active {
    display: block;
    animation: fadeIn 0.5s ease;
  }
  
  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  
  .material-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 35px;
    max-width: 1800px;
    margin: 0 auto;
  }
  
  /* ===========================
     MATERIAL CARDS
     =========================== */
  
  .material-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    width: 260px;
    flex-shrink: 0;
  }
  
  .material-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  }
  
  .card-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
  }
  
  .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
  }
  
  .material-card:hover .card-image img {
    transform: scale(1.1);
  }
  
  .card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(34, 139, 34, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .material-card:hover .card-overlay {
    opacity: 1;
  }
  
  .card-overlay i {
    font-size: 2.5rem;
    color: white;
  }
  
  .card-content {
    padding: 20px;
    text-align: center;
  }
  
  .card-content h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #222;
    line-height: 1.4;
  }
  
  /* ===========================
     MODAL
     =========================== */
  
  .modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(0, 0, 0, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
  }
  
  .modal[aria-hidden="false"] {
    display: flex;
  }
  
  .modal-content {
    background: white;
    border-radius: 20px;
    width: min(95vw, 650px);
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideUp 0.4s ease;
  }
  
  @keyframes slideUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    font-weight: 700;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  
  .modal-close:hover {
    background: rgb(34, 139, 34);
    color: white;
    transform: rotate(90deg);
  }
  
  .modal-body {
    padding: 50px 40px 40px;
    text-align: center;
  }
  
  .modal-body h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #222;
    margin: 0 0 25px;
  }
  
  .modal-body img {
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 25px;
  }
  
  .modal-body p {
    color: #555;
    font-size: 1.05rem;
    line-height: 1.8;
    margin: 0;
  }
  
  /* ===========================
     RESPONSIVE DESIGN
     =========================== */

  /* ===========================
   Fresh To You Program - Desktop Styling
   =========================== */
  @media (min-width: 1025px) {
    .fresh-to-you p {
        font-size: 1.45rem;
        line-height: 1.9;
    }

    .fresh-to-you {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
  }
  
  @media (max-width: 1024px) {
    .hero-title {
      font-size: 3.2rem;
    }
  
    .materials-header h2 {
      font-size: 2.5rem;
    }
  
    .category-tabs {
      max-width: 100%;
    }
  
    .material-card {
      width: 260px;
    }
  }

  /* Stack info cards only below 900px - keeps them side-by-side at 779px */
  @media (max-width: 900px) {
    .info-container {
      grid-template-columns: 1fr;
      gap: 30px;
    }
  }
  
  @media (max-width: 768px) {
    .mulch-hero {
      height: auto;
      min-height: 400px;
      padding: 100px 20px;
    }
  
    .hero-title {
      font-size: 2.5rem;
    }
  
    .hero-subtitle {
      font-size: 1.1rem;
    }
  
    .info-section {
      padding: 60px 6%;
    }
  
    .info-card {
      padding: 30px 25px;
    }
  
    .materials-wrapper {
      padding: 60px 6% 80px;
    }
  
    .materials-header h2 {
      font-size: 2rem;
    }
  
    .category-tabs {
      grid-template-columns: 1fr;
      gap: 12px;
    }
  
    .tab-button {
      flex-direction: row;
      justify-content: center;
      padding: 18px 20px;
      font-size: 1rem;
    }
  
    .tab-button i {
      font-size: 1.4rem;
    }
  
    .material-grid {
      gap: 20px;
    }

    .material-card {
      width: calc(50% - 10px);
      max-width: 280px;
    }
  
    .card-image {
      height: 180px;
    }
  
    .modal-body {
      padding: 45px 25px 30px;
    }
  
    .modal-body h2 {
      font-size: 1.6rem;
    }
  }

  /* Reduce minmax for smaller tablets to allow wrapping earlier */
  @media (max-width: 600px) {
    .info-container {
      grid-template-columns: 1fr;
      gap: 25px;
    }
  }
  
  @media (max-width: 480px) {
    .hero-title {
      font-size: 2rem;
    }
  
    .hero-badge {
      font-size: 0.8rem;
      padding: 6px 16px;
    }
  
    .info-card {
      padding: 25px 20px;
    }
  
    .info-icon {
      width: 60px;
      height: 60px;
    }
  
    .info-icon i {
      font-size: 1.6rem;
    }
  
    .info-card h2 {
      font-size: 1.5rem;
    }
  
    .materials-header h2 {
      font-size: 1.8rem;
    }
  
    .materials-header p {
      font-size: 1rem;
    }
  
    .material-grid {
      gap: 18px;
    }
  
    .material-card {
      width: 100%;
      max-width: 100%;
    }
  
    .card-content h3 {
      font-size: 1rem;
    }
  
    .modal-body h2 {
      font-size: 1.4rem;
    }
  
    .modal-body img {
      max-height: 250px;
    }
  }