/* Local Flavor Mount Prospect - Consolidated Styles */

:root {
    --navy: #150040;
    --white: #ffffff;
    --font-main: 'Helvetica Neue', Arial, sans-serif;
}

/* Base Styles */
body, html {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    color: var(--navy);
    line-height: 1.6;
}

body {
    background-color: #ffffff;
}

/* Typography */
h1, h2, h3 {
    font-weight: 600;
    margin-top: 40px;
}

h1 {
    font-size: 1.9rem;
    margin: 0;
    font-weight: 300;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Hero Section */
.hero {
    position: relative;
    height: 50vh;
    min-height: 400px;
    padding-top: 80px;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), 
                url('background.png') no-repeat center center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white);
    text-align: center;
}

.hero h1 {
    font-size: 1.9rem;
    margin: 0;
    font-weight: 300;
    max-width: 900px;
    text-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

/* Navigation */
nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 10;
    padding: 20px 0;
    display: flex;
    justify-content: center;
    gap: 30px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
    padding: 6px 10px;
    border-radius: 6px;
    display: inline-block;
}

nav a.active {
    color: #ffffff;
    font-weight: 900;
    border-bottom: 2px solid #ffffff;
    padding-bottom: 4px;
}

nav a:hover {
    background: #ffffff;
    color: #000000;
    transform: translateY(-1px);
}

/* Logo Container */
.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.logo-container img {
    max-width: 340px;
    width: 100%;
    height: auto;
    margin-bottom: 0;
}

/* QR Code Styles */
.qr-hero {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    justify-content: center;
}

.qr-placeholder {
    width: 180px;
    height: 180px;
    aspect-ratio: 1 / 1;
    border-radius: 5px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* Content Sections */
.section {
    padding: 80px 20px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.navy-bg {
    background-color: var(--navy);
    color: var(--white);
}

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.grid h3 a {
    color: inherit;
    text-decoration: underline;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.grid h3 a:hover {
    color: #0056b3;
    opacity: 0.8;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 30px;
    margin: 10px;
    border: 2px solid var(--white);
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn:hover {
    background: var(--white);
    color: var(--navy);
}

a.button {
    display: inline-block;
    padding: 10px 18px;
    margin-top: 20px;
    background: black;
    color: white;
    text-decoration: none;
    border-radius: 4px;
}

a.button:hover {
    background: #333;
}

/* Tables */
table {
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
    border-collapse: collapse;
}

td {
    padding: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

/* Form Pages (Feedback, FlavorSearch, etc.) */
body.form-page {
    background: #150040;
    color: #f2f2f2;
    max-width: 720px;
    margin: auto;
    padding: 40px 20px;
}

body.form-page label {
    display: block;
    margin-top: 20px;
    font-weight: bold;
}

body.form-page select,
body.form-page textarea {
    width: 100%;
    border-radius: 6px;
    border: 1px solid #ccc;
    padding: 12px;
    margin-top: 8px;
    font-size: 1rem;
    font-family: inherit;
}

body.form-page textarea {
    min-height: 140px;
    resize: vertical;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px 5px;
    margin-top: 4px;
    align-items: center;
}

.radio-group label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    flex: 0 0 auto;
    white-space: nowrap;
    margin-right: 8px;
    padding: 6px 4px 6px 0;
}

.radio-group input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.info-box {
    background: #9399ed;
    color: #150040;
    border: 1px solid #c1c1c1;
    border-radius: 10px;
    padding: 14px 16px;
    margin: 6px 0 16px;
    font-size: 0.98rem;
    line-height: 1.5;
}

.info-box a {
    color: #150040;
    text-decoration: underline;
    font-weight: 600;
}

.submit-button {
    margin-top: 28px;
    padding: 14px 24px;
    font-size: 1rem;
    background: #ffffff;
    color: #150040;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

.submit-button:hover {
    background: #f0f0f0;
}

.back-link {
    color: #ffffff;
    display: inline-block;
    margin-top: 30px;
}

.page-header {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
}

.page-header h1 {
    margin: 0;
}

.logo-link img {
    max-height: 120px;
    display: block;
}

/* Smaller logo for form pages (feedback, test-form, etc.) */
body.form-page .logo-link img,
body.test-form-page .logo-link img,
body.flavorsearch-page .logo-link img {
    max-height: 120px;
}

/* FlavorSearch Page */
body.flavorsearch-page {
    background: #150040;
    color: #f2f2f2;
    max-width: 700px;
    padding: 40px 20px;
    margin-left: auto;
    margin-right: auto;
}

body.flavorsearch-page h1,
body.flavorsearch-page h2,
body.flavorsearch-page h3 {
    color: #ffffff;
}

/* Test Form Page */
body.test-form-page {
    padding: 40px;
    max-width: 600px;
    margin: auto;
}

/* Status message styles used by form pages */
.status-message {
    display: none;
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    font-weight: 600;
}
.status-message.processing {
    display: block;
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}
.status-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.status-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Forms */
input, textarea, select {
    background: #ffffff;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 8px;
    width: 100%;
    font-family: inherit;
    font-size: 14px;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 2px rgba(21, 0, 64, 0.1);
}

label {
    font-weight: bold;
    display: block;
    margin-top: 20px;
}

button {
    margin-top: 25px;
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: var(--navy);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-weight: bold;
    transition: 0.3s;
}

button:hover {
    background-color: #0a0025;
}

/* Footer */
footer {
    padding: 40px;
    background: #05051a;
    color: #888;
    font-size: 12px;
}

.back-link {
    margin-top: 20px;
    display: inline-block;
    color: #ffffff;
}

/* Utility Classes */
.navy-bg h1, .navy-bg h2, .navy-bg h3 {
    color: var(--white);
}

.navy-bg p {
    color: #f2f2f2;
}
