/* ===========================
   UPDATED & ENHANCED STYLES.CSS
   For: ChefiChoice Health Menu
   Fully Responsive + Mobile-First
   =========================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #FFFFFF;
    color: #000000;
    position: relative;
    z-index: 3;
    font-family: "Nunito Sans Body", Arial, sans-serif;
    overflow-y: auto; /* Better than just 'overflow: auto' */
    overscroll-behavior-y: none; /* Prevent pull-to-refresh on mobile */
}

/* Hide scrollbar but allow scrolling */
body::-webkit-scrollbar {
    display: none;
}

/* Scrolling Fixes */
.container::-webkit-scrollbar {
    width: 0px;
}
.container::-webkit-scrollbar-track {
    background: transparent;
}
.container::-webkit-scrollbar-thumb {
    background: #120000;
    border-radius: 3px;
}
.container::-webkit-scrollbar-thumb:hover {
    background: #120000;
}
.container {
    scrollbar-width: thin;
    scrollbar-color: #120000 transparent;
}
html, body {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* ===========================================
   HEADER SECTION – Fixed Issues
   =========================================== */

/* Fixed App Header with Background */
header.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 500;
    width: 100%;
    max-width: 3800px;
    box-sizing: border-box;
    height: 100px;
}

.app-header {
    max-width: 3800px;
    height: 100px;
    background: url('images/neutrinos-2HDbanner.jpg') right bottom no-repeat;
    background-size: cover;
    background-position: right bottom;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: start;
    padding-top: 25px;
    padding-left: 25px;
    position: relative;
    z-index: 1000;
}

/* Logo positioning: 43px from top of header */
.logo {
    position: absolute;
    top: 80px;
    left: 45px;
    z-index: 1100;

}

.logo img {
    height: 50px; /* Matches original design */
    width: auto;
}

/* Logline */
.logline {
    position: absolute;
    top: 76px;
    white-space: nowrap;
    left: 150px;
    font-size: 0.6rem;
    color: #FDEBCF;
}

.img {
    display: block;
    margin: 0 auto;
    max-width: 80%;
    height: auto;
	}
	
	.logoright {
    position: absolute;
    top: 44px;
    left: 980px;
    z-index: 1100;
}

.logoright img {
    height: 15px; /* Matches original design */
    width: auto;
}

/* =========================================
   FLEXBOX CSS
   ========================================= */	

.main-wrapper {
    display: flex;
    gap: 0px;
    max-width: 1600px;
    margin: 0px auto;
    padding: 0px;
}

.main-content {
    flex: 3; /* Takes 3/4 width */
    min-width: 0; /* Prevents overflow */
}

.sidebar {
    flex: 1; /* Takes 1/4 width */
	top: 120px;    
    height: fit-content;
    padding: 25px 0px 0 0px;
}

/* Mobile collapse */
@media (max-width: 768px) {
    .main-wrapper {
        flex-direction: column;
    }
    .sidebar {
        position: static;
    }
}	


/* =========================================
   SCROLLABLE CONTAINER
   ========================================= */

.container {
    max-width: 1600px;
    width: 100%;
    margin: 80px auto 0; /* Offset for fixed header */
    padding: 0 0px;
    display: flex;
    flex-direction: column; /* Stack on mobile */
    gap: 0px;
    min-height: 400px;
    margin-bottom: 60px !important; /* Match body padding-bottom */
}


.main-column {
    flex: none !important;
    max-width: none !important;
    min-width: auto !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.right-column  {
	display: flex;
	padding-top: 100px;
    flex-wrap: wrap;
    border: 0px solid #ff9900;
    border-radius: 16px;
    padding: 20px;
}

.chooser {
    display: flex;
    flex-wrap: wrap;
    gap: 1px;
    justify-content: center;
    margin: 5px 0 0 0;
    background: rgba(139, 69, 19, 0.1);
    border-radius: 8px;

} 
.topbar {
    margin: 0 auto;
	width: 100%;
}

.text-nav a {
    margin: 0.6em 2em 0.2em 2em;
    widows: 2;
    orphans: 2;
    text-align: justify;
    font-size: 1.3rem;
    color: #00cccc important!;
    line-height: 1.5;
    text-indent: 0.0em;
}

.text-nav a:hover {
    margin: 0.6em 2em 0.2em 2em;
    widows: 2;
    orphans: 2;
    text-align: justify;
    font-size: 1.3rem;
    color: #ff66cc;
    line-height: 1.5;
    text-indent: 0.0em;
}

p  {
    font-family: "Nunito Sans Body", Arial, sans-serif; 
    margin: 0.6em 2em 0.2em 2em;
    widows: 2;
    orphans: 2;
    text-align: justify;
    font-size: 1.15rem;
    line-height: 1.5;
    text-indent: 0.0em;
}

ul  {
    font-family: "Nunito Sans Body", Arial, sans-serif; 
    margin: 0.6em 2em 0.2em 2.4em;
    widows: 2;
    orphans: 2;
    text-align: justify;
    font-size: 1.15rem;
    line-height: 1.5;
    text-indent: 0.1em;
}

h1, h2, h3, h4 {
	font-family: "Nunito Sans Headings", Arial, sans-serif;
} 
h1 {	
	font-size: 3rem;
	font-weight: 800; 
    font-stretch: 90%;
    text-align: center;
    letter-spacing: -0.02rem;
    margin: 0.6em 2em 0.2em 2em;
    color: #650F5B;
    font-style: normal;
}
em { 
	font-family: "Nunito Sans Headings", Arial, sans-serif; 
	font-style: italic;
	font-weight: 500;  
}
strong { 
	font-family: "Nunito Sans Headings", Arial, sans-serif;
	font-weight: 750; 
}
h2 {
	font-weight: 900; 
    font-stretch: 80%;
    font-size: 1.8rem;
    text-align: center;
    letter-spacing: 0.0rem;
    margin: 0.6em 2em 0.1em 2em;
    color: #650F5B;
}

h3 {
	font-weight: 800; 
    font-stretch: 80%;
    font-size: 1.6rem;
    text-align: left;
    margin: 0.6em 2em 0em 2em;
    color: #650F5B;
}

h4 {
	font-weight: 800; 
    font-stretch: 85%;
    font-size: 1.4rem;
    text-align: left;
    font-style: normal;
    margin: 0.5em 2em 0em 2em;
    color: #650F5B;
}
h4.italic {
	font-weight: 800; 
    font-stretch: 85%;
    font-size: 0.75rem;
    text-align: left;
    font-style: italic;
    color: #650F5B;
}

.smalltext {
	font-weight: 200; 
    font-stretch: 90%;
    color: #650F5B;
    font-size: 0.70rem;
    text-align: center;
    padding-bottom: 5px;
    line-height: 0.7rem;
    font-style: italic;
}


p.dropcap::first-letter {
    float: left;
    font-size: 1.7em;
    line-height: 1;
    margin-top: 0.15em;
    margin-right: 0.0em;
    margin-left: 0;
    font-weight: 600; 
    font-stretch: 80%;
    font-family: 'Nunito Sans', sans-serif;
}

.center {
    position: relative;
    margin: auto;
}

.about-text {
    item-align: center;
    font-size: 1.00rem;
    line-height: 1.5rem;
    letter-spacing: 0.04rem;
    padding-top: 20px;
    margin-left: 20px;
    margin-right: 20px;
    font-weight: normal;
}

#demand-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 20px;
}

.demand-form {
    background: #fdf8ef;
    padding: 30px;
    border-radius: 12px;
    max-width: 700px;
    margin: 0 auto;
    border: 2px solid #8B4513;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}
.form-header h2 {
    color: #FF9900;
    font-size: 2em;
    text-align: center;
    margin-bottom: 10px;
}
.form-header p {
    color: #F5F5DC !important;
    text-align: center;
}

.contact-info input,
.location-section input,
.location-section select,
.interests-section input[type="text"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    background: white;
    color: #000;
    box-sizing: border-box;
}

.contact-info input:focus,
.location-section input:focus,
.location-section select:focus {
    border-color: #8B4513;
    outline: none;
}

.section-title {
    color: #8B4513;
    font-weight: bold;
    font-size: 1.1em;
    margin: 20px 0 10px 0;
}

.demand-checkbox {
    display: block;
    margin: 10px 0;
    color: #000;
    cursor: pointer;
}

.demand-checkbox input[type="checkbox"] {
    margin-right: 8px;
    width: auto;
}

.diet-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.diet-tag {
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 20px;
    background: white;
    color: #000;
    cursor: pointer;
    font-size: 0.95em;
    transition: all 0.3s;
}

.diet-tag:hover {
    border-color: #8B4513;
    background: #f9f9f9;
}

.diet-tag.selected {
    background: #8B4513;
    color: white;
    border-color: #8B4513;
}

.email-btn {
    width: 100%;
    padding: 15px;
    background: #8B4513;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.email-btn:hover {
    background: #704010;
}

.email-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

#form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

#form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}


/* ===========================
   MINIMAL RESPONSIVE ENHANCEMENTS
   =========================== */

/* Mobile: Slightly smaller text & tighter spacing */
@media (max-width: 768px) {
body {
        font-size: 15px;
    }
.container {
        padding: 0 12px;
    }
 .text-nav {
 	font-size: 1rem;
 }  
p  {
    margin: 0.6em .5em 0.2em .5em;
    widows: 2;
    orphans: 2;
    text-align: justify;
    font-size: 1rem;
    line-height: 1.5;
}
h1 {
    font-size: 1.7rem;
    text-align: center;
    font-weight: bold;
    letter-spacing: 0.05rem;
    color: #110000;
}

h2 {
    font-size: 1.5rem;
    text-align: center;
    font-weight: bold;
    letter-spacing: 0.05rem;
    color: #110000;
}

h3 {
    font-size: 1.3rem;
    text-align: left;
    font-weight: bold;
    margin: 0.6em .5em 0.2em 0.6em;
    color: #110000;
}

h4 {
    font-size: 1.1rem;
    text-align: left;
    font-weight: bold;
    margin: 0.6em .5em 0.2em .6em;
    color: #facd8a;
}
}

/* Extra Small (iPhone SE) */
@media (max-width: 480px) {
    .menu-item {
        width: 55px;
        height: 55px;
    }
}


/* ===========================
   FOOTER FIX - Add this to your styles.css
   =========================== */

/* First, ensure any existing footer styles are overridden */
footer, .footer {
    all: unset !important; /* Reset all inherited styles */
}

/* Apply clean footer styles */
footer.footer {
            position: fixed !important;
            bottom: 0 !important;
            left: 0 !important;
            right: 0 !important;
            width: 100% !important;
            background: #110000 !important;
            color: #F5F5DC !important;
            font-size: 0.65rem !important;
            text-align: center !important;
            padding: 8px 10px !important;
            margin: 0 !important;
            border-top: 1px solid #333 !important;
            z-index: 9999 !important;
            font-family: 'Nunito Sans', sans-serif !important;
            line-height: 1.2 !important;
            box-sizing: border-box !important;
}

/* Footer links container */
footer.footer > div:first-child {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 4px 0 !important;
}

/* Footer links styling */
footer.footer a {
    color: #F5F5DC !important;
    text-decoration: none !important;
    font-size: 0.75rem !important;
    white-space: nowrap !important;
    padding: 2px 4px !important;
    border-radius: 3px !important;
    transition: color 0.2s ease !important;
}

footer.footer a:hover {
    color: #FF9900 !important;
    background: rgba(255, 153, 0, 0.1) !important;
}

/* Footer contact info */
footer.footer .footer-contact {
    color: #F5F5DC !important;
    font-size: 0.6rem !important;
    margin: 4px 0 0 0 !important;
    padding: 0 !important;
    opacity: 0.8 !important;
    line-height: 1.1 !important;
}

/* Ensure body has space for footer */
body {
    margin-bottom: 0 !important;
    padding-bottom: 60px !important;
}

/* Ensure main container has space for footer */
.container {
    margin-bottom: 60px !important;
    padding-bottom: 20px !important;
}

/* Override any popup or overlay z-index issues */
#popup-overlay,
#checkout-overlay, 
#payment-overlay {
    z-index: 1000 !important;
}

/* Make sure footer appears above page content but below popups */
footer.footer {
    z-index: 500 !important;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {


    footer.footer {
        padding: 6px 8px !important;
    }
    
    footer.footer > div:first-child {
        gap: 8px !important;
    }
    
    footer.footer a {
        font-size: 0.6rem !important;
    }
    
    footer.footer .footer-contact {
        font-size: 0.5rem !important;
    }
    
    body {
        padding-bottom: 50px !important;
    }
    
    .container {
        margin-bottom: 50px !important;
    }
}

@media (max-width: 480px) {
    footer.footer {
        padding: 4px 6px !important;
    }
    
    footer.footer > div:first-child {
        gap: 6px !important;
        line-height: 1.1 !important;
    }
    
    footer.footer a {
        font-size: 0.55rem !important;
        padding: 1px 2px !important;
    }
    
    body {
        padding-bottom: 45px !important;
    }
    
    .container {
        margin-bottom: 45px !important;
    }
}



/* Media queries for responsive footer */
@media (max-width: 768px) {
    .footer {
        font-size: 0.6rem !important;
        padding: 6px 0 !important;
    }
    
    .footer a {
        font-size: 0.6rem !important;
    }
    
    .footer-contact {
        font-size: 0.5rem !important;
    }
    
    body {
        padding-bottom: 50px !important;
    }
    
    .container {
        margin-bottom: 50px !important;
    }
}

@media (max-width: 480px) {
    .footer > div:first-child {
        gap: 4px !important;
    }
    
    .footer {
        padding: 4px 0 !important;
    }
    
    body {
        padding-bottom: 45px !important;
    }
    
    .container {
        margin-bottom: 45px !important;
    }
}
