/* Global Colors */
:root { 
    --background-color: #eb0043; 
    --default-color: #ffffff; 
    --heading-color: #ffffff; 
    --accent-color: #ffffff; 
    --surface-color: #eb0043; 
    --contrast-color: #ffffff; 
    --footer-color: #2b2e34; 
}

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

body {
    background-color: var(--background-color);
    color: var(--default-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--background-color);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--heading-color);
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--default-color);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.8;
}

/* Hero Section */
.hero {
    padding: 100px 0;
    text-align: center;
    background-image: url('/api/placeholder/1200/600');
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(235, 0, 67, 0.7);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--heading-color);
}

.hero p {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 40px;
}

.btn {
    display: inline-block;
    background-color: var(--contrast-color);
    color: var(--background-color);
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: opacity 0.3s;
    cursor: pointer;
}

.btn:hover {
    opacity: 0.9;
}

/* Features Section */
.features {
    padding: 80px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-item {
    border-left: 3px solid var(--contrast-color);
    padding-left: 20px;
}

.feature-item h3 {
    margin-bottom: 15px;
    color: var(--heading-color);
}

/* Menu Section */
.menu {
    padding: 80px 0;
    background-color: var(--footer-color);
}

.menu h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--heading-color);
}

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

.menu-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s;
}

.menu-item:hover {
    transform: translateY(-5px);
}

.menu-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.menu-item-content {
    padding: 20px;
}

.menu-item h3 {
    margin-bottom: 10px;
    color: var(--heading-color);
}

/* About Section */
.about {
    padding: 80px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--heading-color);
}

.about-text p {
    margin-bottom: 20px;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
}

/* Franchise Terms */
.franchise-terms {
    padding: 80px 0;
    background-color: var(--footer-color);
}

.franchise-terms h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--heading-color);
}

.terms-content {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 10px;
    max-width: 800px;
    margin: 0 auto;
}

.terms-content h3 {
    margin-bottom: 20px;
    color: var(--heading-color);
    font-size: 24px;
}

/* Space Specifications */
.space-specs {
    padding: 80px 0;
}

.space-specs h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--heading-color);
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.specs-item {
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.05);
}

.specs-item img {
    width: 60px;
    margin-bottom: 20px;
}

/* Franchise Offer */
.franchise-offer {
    padding: 80px 0;
    text-align: center;
    background-color:var(--footer-color)
}

.franchise-offer h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--heading-color);
}

.franchise-offer p {
    font-size: 24px;
    margin-bottom: 30px;
}

.offer-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Contact */
.contact {
    padding: 80px 0;
}

.contact h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--heading-color);
}

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

.contact-item {
    text-align: center;
}

.contact-item h3 {
    margin: 20px 0;
    color: var(--heading-color);
}

/* Newsletter */
.newsletter {
    padding: 60px 0;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.2);
}

.newsletter h3 {
    margin-bottom: 20px;
    color: var(--heading-color);
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 5px 0 0 5px;
}

.newsletter-form button {
    background-color: var(--contrast-color);
    color: var(--background-color);
    border: none;
    padding: 0 20px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-weight: bold;
}
/*--------------------------------------------------------------
# Footer Section (Rewritten for iPhone Compatibility)
--------------------------------------------------------------*/
footer {
    background-color: var(--footer-color, #2b2e34); /* Fallback color */
    color: var(--default-color, #adb5bd); /* Fallback color */
    width: 100%;
    /* Define base padding: Top, Horizontal (LR), Bottom */
    /* Using clamp for flexible horizontal padding */
    /* Setting a base bottom padding (e.g., 25px) which will be augmented by safe-area */
    padding: clamp(40px, 6vw, 60px) clamp(15px, 4vw, 25px) 25px;
    box-sizing: border-box; /* Crucial for correct padding calculation */
  }
  
  /* Ensure container within footer doesn't add extra conflicting padding */
  footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0; /* Padding is handled by the footer element itself */
  }
  
  .footer-grid {
    display: grid;
    /* Adjust minmax for better small screen fit, e.g., 200px */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: clamp(25px, 4vw, 40px); /* Flexible gap */
    margin-bottom: clamp(30px, 5vw, 40px); /* Spacing above copyright */
  }
  
  .footer-section h3 {
    color: var(--heading-color, #ffffff); /* Fallback color */
    font-size: clamp(18px, 3vw, 20px); /* Responsive font size */
    margin-bottom: 15px;
    font-weight: 700;
    padding-bottom: 8px;
    /* Using border-bottom for the underline effect - simpler than ::after */
    border-bottom: 2px solid var(--accent-color, #cb2e40); /* Fallback color */
    display: inline-block; /* Border only spans the text width */
  }
  
  .footer-section p,
  .footer-section a {
    color: #adb5bd; /* Specific color for readability */
    margin-bottom: 10px;
    display: block;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: clamp(14px, 2.5vw, 15px); /* Responsive font size */
    line-height: 1.6;
    /* Help prevent long words from breaking layout */
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .footer-section a:hover {
    color: var(--accent-color, #cb2e40); /* Use accent color for hover */
  }
  
  .footer-section .location {
    margin-bottom: 18px;
  }
  
  .location strong {
    display: block;
    color: #e9ecef; /* Slightly brighter than default text */
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.5;
    margin-bottom: 6px;
    font-weight: 600; /* Slightly bolder */
  }
  
  .location p {
    margin-bottom: 5px;
  }
  
  .social-links {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    gap: 12px; /* Spacing between icons */
    margin-top: 15px;
  }
  
  .social-links a.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px; /* Decent touch target size */
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--default-color, #adb5bd);
    font-size: 16px; /* Icon size */
    transition: all 0.3s ease;
    flex-shrink: 0; /* Prevent icons from shrinking unevenly */
  }
  
  .social-links a.social-link img {
    width: 20px; /* SVG/image size */
    height: 20px;
    object-fit: contain;
  }
  
  .social-links a.social-link:hover {
    background-color: var(--accent-color, #cb2e40);
    color: var(--contrast-color, #ffffff); /* Ensure icon is visible on hover */
    transform: translateY(-3px); /* Subtle lift effect */
  }
  
  .copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px; /* Match base bottom padding */
    margin-top: clamp(25px, 4vw, 35px); /* Space above copyright, separate from padding */
    color: #adb5bd;
    font-size: clamp(13px, 2.2vw, 14px); /* Responsive font size */
    line-height: 1.5;
  }
  
  /* --- Refined iOS Safe Area Support --- */
  /* Applies padding adjustments ONLY if the browser supports env() variables */
  @supports (padding-bottom: env(safe-area-inset-bottom)) {
    footer {
      /* Add safe area insets to the base padding */
      /* Use max() to ensure minimum padding even if inset is 0 */
      padding-left: max(clamp(15px, 4vw, 25px), env(safe-area-inset-left));
      padding-right: max(clamp(15px, 4vw, 25px), env(safe-area-inset-right));
      padding-bottom: calc(25px + env(safe-area-inset-bottom)); /* Base padding + bottom inset */
    }
  }
  
  /* --- Responsive Adjustments --- */
  
  /* Tablet and smaller - Adjust grid and center content */
  @media (max-width: 768px) {
    .footer-grid {
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); /* Ensure columns don't get too squished */
      gap: 30px;
    }
    /* Optionally center content within sections on smaller screens */
    .footer-section {
       text-align: center;
    }
     .footer-section h3 {
       display: inline-block; /* Required for centering border */
       border-bottom-width: 2px; /* Ensure border is visible */
    }
    .social-links {
       justify-content: center; /* Center social icons */
    }
  }
  
  /* Mobile general - Stack columns */
  @media (max-width: 576px) {
    .footer-grid {
      grid-template-columns: 1fr; /* Stack into a single column */
      gap: 30px; /* Adjust vertical gap when stacked */
    }
    .footer-section {
      padding-bottom: 10px; /* Add a bit of spacing below each section when stacked */
      text-align: center; /* Ensure centering persists */
    }
  }
  
  /* Very Small Mobile adjustments (e.g., iPhone SE 1st gen width) */
  @media (max-width: 375px) {
     .footer-section h3 {
        font-size: clamp(17px, 4.5vw, 19px);
     }
     .location strong,
     .footer-section p,
     .footer-section a {
        font-size: clamp(13px, 3.8vw, 14px); /* Slightly smaller text */
     }
     .social-links a.social-link {
        width: 36px; /* Can slightly reduce if space is very tight */
        height: 36px;
        font-size: 15px;
     }
     .social-links a.social-link img {
        width: 18px;
        height: 18px;
     }
  }

.location strong {
    display: block;
    color: #e9ecef;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--default-color);
    font-size: 14px;
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: var(--background-color);
    transform: translateY(-3px);
}
.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    color: #adb5bd;
    font-size: 14px;
}

/* Modal Popup Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    margin: auto;
    width: 90%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: modalopen 0.4s;
}

@keyframes modalopen {
    from {opacity: 0; transform: translateY(-60px);}
    to {opacity: 1; transform: translateY(0);}
}

.modal-header {
    background-color: var(--background-color);
    color: white;
    padding: 20px;
    border-radius: 10px 10px 0 0;
    text-align: center;
}

.modal-body {
    padding: 30px;
}

.modal-footer {
    padding: 15px 20px;
    text-align: center;
    border-top: 1px solid #ddd;
}

.close-btn {
    color: white;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover {
    color: #aaa;
}

.contact-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: all 0.3s;
    text-decoration: none;
    color: #333;
}

.contact-option:hover {
    background-color: #f8f8f8;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-option-icon {
    font-size: 24px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--background-color);
    border-radius: 50%;
    color: white;
}

.contact-option-text {
    flex-grow: 1;
}

.contact-option-text h4 {
    margin-bottom: 5px;
}

.contact-option-text p {
    color: #666;
    font-size: 14px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-section h3 {
        font-size: 18px;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .offer-buttons {
        flex-direction: column;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
}
