:root {
    --pink-cotton: #ffb6e1;
    --pink-light: #ffd6ee;
    --blue-cotton: #89cff0;
    --blue-light: #bce6ff;
    --purple-soft: #e0b7ff;
    --text-dark: #4a4a6b;
    --white-soft: #fefeff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Georgia', serif;
}

body {
    color: var(--text-dark);
}

header {
    position: relative; 
    color: var(--white-soft);
    text-align: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 2.8rem;
    font-family: 'Georgia', serif;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}


nav {
    position: relative;
    z-index: 10;  /* Increased z-index to ensure nav stays on top */
    background-color: var(--white-soft);
    padding: 1rem;
    margin-bottom: 4rem; /* Add space below nav */
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2.5rem;
}

nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

nav a:hover {
    background: linear-gradient(to right, var(--pink-light), var(--blue-light));
    transform: translateY(-2px);
}

.hero {
    position: relative;
    z-index: 0;
    min-height: 450px;
    padding: 4rem 0 2rem;
    margin-top: 0;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    text-align: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;  /* Added padding all around */
}

.shop-image {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    position: relative;
    aspect-ratio: 632/524;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.shop-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.hero h2 {
    font-size: 3.2rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.3rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

section {
    padding: 4rem 2rem;
    margin-top: 4rem;  /* Increase this value */
    position: relative; /* Add this */
    z-index: 1; /* Add this */
}

section h2 {
    text-align: center;
    margin: -3rem 0 3rem;  /* Increased top and bottom margins */
    padding-top: 1rem;    /* Added top padding */
    font-size: 2.4rem;
    color: var(--text-dark);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.menu {
    background-color: var(--white-soft);
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.menu-section {
    margin-bottom: 2.5rem;
}

.menu-section h3 {
    color: var(--text-dark);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
    background: linear-gradient(to right, var(--pink-cotton), var(--blue-cotton));
    color: white;
    padding: 0.8rem;
    border-radius: 15px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem;
    background: linear-gradient(135deg, var(--pink-light), var(--blue-light));
    border-radius: 15px;
    transition: all 0.3s ease;
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.menu-item-details {
    flex-grow: 1;
}

.menu-item-name {
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
    color: var(--text-dark);
}

.menu-item-description {
    color: var(--text-dark);
    font-size: 0.95rem;
    font-style: italic;
    opacity: 0.9;
}

.menu-item-price {
    font-weight: bold;
    color: var(--text-dark);
    font-size: 1.2rem;
    margin-left: 1rem;
    padding: 0.5rem 1rem;
    background-color: var(--white-soft);
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.contact {
    background: linear-gradient(to right, var(--pink-cotton), var(--blue-cotton));
    text-align: center;
    color: var(--white-soft);
}

.contact-info {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--white-soft);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    color: var(--text-dark);
}

.hours {
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--pink-light), var(--blue-light));
    border-radius: 15px;
}

.hours h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.social-icons {
    margin-top: 2rem;
}

.social-icons a {
    color: var(--text-dark);
    margin: 0 10px;
    transition: all 0.3s ease;
    padding: 0.8rem;
    background-color: var(--white-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
}

.social-icons svg {
    width: 24px;
    height: 24px;
}

.social-icons a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    background: linear-gradient(to right, var(--pink-cotton), var(--blue-cotton));
    color: var(--white-soft);
}

footer {
    text-align: center;
    padding: 1.5rem;
    font-size: 0.9rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

/* Enhance touch targets for mobile */
nav a {
    padding: 0.8rem 1.2rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

/* Improve menu item touch areas */
.menu-item {
    padding: 1.5rem; /* Increased padding for better touch targets */
    margin: 0.5rem 0; /* Space between items */
    flex-direction: column; /* Stack content on mobile */
    align-items: flex-start;
}

.menu-item-price {
    margin-left: 0;
    margin-top: 0.8rem;
    align-self: flex-end;
    padding: 0.8rem 1.2rem; /* Larger touch target */
}

/* Enhance social icon touch areas */
.social-icons a {
    width: 55px; /* Larger touch target */
    height: 55px;
    line-height: 55px;
    margin: 0 15px; /* More space between icons */
}

/* Improved spacing for contact info */
.contact-info p {
    padding: 0.8rem 0;
    font-size: 1.1rem; /* Slightly larger text for readability */
}

.hours {
    padding: 2rem; /* More breathing room */
}


/* Enhanced media queries */
@media (max-width: 768px) {
    nav ul {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 2rem;
    }

    body {
        font-size: 16px; /* Ensure readable base font size */
    }

    header h1 {
        font-size: 2.2rem; /* Slightly smaller on mobile */
    }

    .hero {
        height: 350px;
        min-height: auto;
        padding: 6rem 1rem 2rem; 
    }

    .hero h2 {
        font-size: 2rem;
        margin-top: 1rem;  /* Added top margin */
    }


    section#menu {
        margin-top: 8rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .shop-image {
        margin-top: 1rem;
    }

    .menu {
        padding: 2rem 1rem;
        margin: 0 1rem; /* Add side margins */
    }

    .menu-section h3 {
        font-size: 1.5rem;
        padding: 1rem;
    }

    .menu-grid {
        grid-template-columns: 1fr;
        gap: 1rem; /* Reduced gap on mobile */
    }

    .menu-item-name {
        font-size: 1.1rem;
    }

    .menu-item-description {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    /* Better spacing for contact section */
    .contact-info {
        margin: 1rem;
        padding: 1.5rem;
    }
}

  .background-stripes {
    background: repeating-linear-gradient(
      45deg,
      #0ca4e8,
      #0ca4e8 20px,
      #4dc6ff 20px,
      #4dc6ff 40px
    );
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
  }
  
  .logo-container {
    text-align: center;
    background: white;
    padding: 20px 40px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
  }
  
  .logo-the {
    font-size: 2.5rem;
    font-weight: bold;
    font-family: 'Arial', sans-serif;
    color: #ff59a8;
    text-shadow: 2px 2px #ffffff, 4px 4px rgba(0, 0, 0, 0.3);
    display: block;
  }
  
  .logo-yard {
    font-size: 4rem;
    font-weight: bold;
    font-family: 'Arial', sans-serif;
    color: #ff59a8;
    text-shadow: 2px 2px #ffffff, 4px 4px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
  }

  .logo-ice-cream {
    font-size: 2.0rem;
    font-weight: bold;
    color: #ff59a8;
    display: block;
  }
  
  .curvy-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: white;
    border-top-left-radius: 50%;
    border-top-right-radius: 50%;
  }
  