/* FONT-FACE DECLARATIONS */
@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@400;500;700&family=Inter:wght@400;600&display=swap');

@font-face {
    font-family: 'LibreBaskerville-Regular';
    src: url('LibreBaskerville-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'LibreBaskerville-Bold';
    src: url('LibreBaskerville-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'LibreBaskerville-Italic';
    src: url('LibreBaskerville-Italic.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'Inter-Regular';
    src: url('Inter-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Inter-SemiBold';
    src: url('Inter-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}


/* THEME COLORS */
:root {
    --primary: #27241F;
    --primary-light: #DEF6FF;
    --secondary: #5C6B73;
    --accent: #9253E0;
    --background: #FFFFF7;
    --white: #FFFFFF;
    --black: #000000;
    --text-dark: #27241F;
    --text-light: #FFFFFF;
    --text-subtle: #5C6B73;
    --surface: #f0f0f0;
    --disabled: #cccccc;
    --light-gray: #5C6B73;
    --gray: #5C6B73;
    --dark-gray: #5C6B73;
    --error: #D32F2F;
    --error-light: #fdecea;
    --error-background: #FFEBEE;
    --success: #2E7D32;
    --success-dark: #1b4b1e;
    --success-light: #dcfce7;
    --warning: #FFA000;
    --divider: #e6e0d9;
    --text-muted: #8e8e8e;
    --google-blue: #4285F4;
}

/* General Reset & Base Styles */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Inter-Regular', Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    background-color: var(--background);
    color: var(--text-dark);
    line-height: 1.5;
    height: 100%;
    display: flex;
    flex-direction: column;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header & Navigation */
header {
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 0 20px;
    box-sizing: border-box;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 40px;
    padding-right: 40px;
}

#olea-logo-header {
    display: block;
    height: 40px;
    width: auto;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 80px;
    padding-left: 40px;
    padding-right: 40px;
}

.logo img {
    height: 24px; /* Adjust as needed */
    width: auto;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-dark);
    padding: 10px 15px;
    display: block;
    border-bottom: 2px solid transparent;
    font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    font-weight: 600;
    font-size: 16px;
}

nav ul li a.active,
nav ul li a:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Main Content Area */
main {
    flex-grow: 1;
    padding-top: 80px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-sizing: border-box;
    overflow: visible;
    padding-left: 40px;
    padding-right: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.tab-content {
    display: none;
    width: 100%;
    max-width: none;
    padding: 0;
    box-sizing: border-box;
    animation: fadeIn 0.5s ease-in-out;
}

.tab-content.active {
    display: block; /* Shown when active */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Header Logo */
#olea-logo-header {
    display: none; /* Hide the duplicate header logo */
}

/* Logo Row with Full Width Background */
.logo-row {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background-color: var(--primary-light);
    padding: 40px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    margin-bottom: 20px;
    max-width: none;
}

.logo-row-inner {
    width: 100%;
    max-width: 1200px;
    padding: 0 40px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

/* Main Olea Logo */
#olea-logo {
    display: block;
    width: 300px;
    height: 80px;
    object-fit: contain;
}

/* Home Section Specifics */
.input-container {
    text-align: left;
    padding: 32px 0;
    display: block;
    box-sizing: border-box;
    max-width: 75ch;
}

#email-form {
    display: flex;
    width: 500px;
    max-width: 100%;
    margin: 32px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

#email-input {
    flex-grow: 1;
    padding: 15px 20px;
    font-size: 16px; /* from bodyText */
    font-family: 'Inter-Regular', sans-serif;
    border: 1px solid var(--light-gray);
    border-right: none;
    border-radius: 8px 0 0 8px;
    outline: none;
    background-color: var(--white);
    color: var(--text-dark);
}

#email-input::placeholder {
    color: var(--dark-gray);
}

#email-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(16, 157, 240, 0.25);
}

#email-form button {
    padding: 15px 25px;
    font-size: 16px; /* from bodyStrongText */
    font-family: 'Inter-SemiBold', sans-serif;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    border-radius: 0 8px 8px 0;
    transition: background-color 0.2s ease;
}

#email-form button:hover {
    background-color: #1a1815; /* Darker shade of primary */
}

#email-form button:disabled {
    background-color: var(--disabled);
    cursor: not-allowed;
    opacity: 0.6;
}

#email-input:disabled {
    background-color: var(--disabled);
    cursor: not-allowed;
    opacity: 0.6;
}

#thank-you-message {
    text-align: center;
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background: var(--success-light);
    border: 1px solid var(--success);
    border-radius: 8px;
    color: var(--success-dark);
    font-family: 'Inter-Regular', sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

.tagline-container {
    text-align: left;
    padding-bottom: 0;
    margin-top: 0;
}

.main-tagline {
    font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 28px;
    color: var(--text-dark);
    margin-bottom: 32px;
    text-align: left;
    max-width: 60ch;
}

.main-tagline strong {
    font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 28px;
    color: var(--text-dark);
}

.tagline-bullets {
    margin: 32px 0;
    max-width: 60ch;
}

.tagline-bullet {
    font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 28px;
    color: var(--text-dark);
    margin: 4px 0;
    text-align: left;
}

.typewriter-cursor {
    display: inline-block;
    width: 2px;
    height: 52px;
    background-color: var(--text-dark);
    margin-left: 2px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.sub-tagline {
    font-family: 'Inter-Regular';
    font-size: 36px; /* Increased by 12px from 24px */
    color: var(--text-dark);
    opacity: 0.7;
    max-width: 400px; /* Increased for larger text */
    margin: 53px auto 15px auto; /* Increased top margin by 48px (5px + 48px = 53px) */
}

.grocery-list-header {
    text-align: left;
    margin-bottom: 40px;
    padding: 25px 30px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 
        0 4px 20px rgba(0,0,0,0.08),
        0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.06);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}





.grocery-list-subtitle {
    font-family: 'Inter-Regular', sans-serif;
    font-size: 16px;
    color: var(--text-subtle);
    margin: 0;
    opacity: 0.8;
    font-weight: 400;
    letter-spacing: 0.2px;
    text-transform: lowercase;
}

.shopping-cart-icon {
    display: none; /* Remove the icon for handwritten style */
}

.features-text {
    font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 18px;
    color: var(--text-dark);
    opacity: 0.9;
    max-width: 60ch;
    margin: 48px 0;
    text-align: left;
    line-height: 1.5;
    position: relative;
}

.feature-bullet {
    margin-bottom: 16px;
    position: relative;
    display: flex;
    align-items: center;
    min-height: 28px;
    padding-left: 0;
    max-width: none;
}






/* QR Code Container - Assuming this is still needed */
#qr-code-container {
    margin-top: 30px;
    padding: 20px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    text-align: center;
}

#qr-code-img {
    max-width: 200px;
    height: auto;
    margin-top: 10px;
    border: 1px solid #eee;
}

/* "What is this?" Section */
.whatisthis-container {
    padding: 32px 0;
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
    margin-top: 0;
    max-width: 75ch;
}

.whatisthis-container h2,
.whatisthis-container h3 {
    font-family: Ubuntu, Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 32px;
    color: var(--text-dark);
    margin-top: 0;
    margin-bottom: 24px;
    line-height: 1.2;
    text-align: left;
}

.whatisthis-container h3 {
    margin-top: 40px; /* Extra spacing for h3 */
}

.whatisthis-container p,
.whatisthis-container ol {
    font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 18px;
    color: var(--text-dark);
    line-height: 1.5;
    margin-bottom: 16px;
    text-align: left;
}

.whatisthis-container ol {
    padding-left: 20px;
}

.whatisthis-container ol li {
    margin-bottom: 8px;
    font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

.whatisthis-container a {
    color: var(--primary);
    text-decoration: none;
    font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    font-weight: 600;
}

.whatisthis-container a:hover {
    text-decoration: underline;
}

.whatisthis-container em {
    font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    font-style: italic;
}

/* Loading Steps Animation */
#loading-steps {
    margin: 30px auto 0; /* Center the block */
    width: 420px; /* Fixed width for the container */
    max-width: 100%; /* Responsive guard for small screens */
    display: none; /* Controlled by JS */
    padding-left: 42px; /* Nudge content to the right */
    box-sizing: border-box; /* Keep width consistent */
}

.step-item {
    display: flex; /* Use flex to align check and text */
    align-items: center;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInStep 0.5s ease-out forwards;
}

@keyframes fadeInStep {
    to {
        opacity: 1;
    }
}

.step-check {
    width: 28px; /* Increased from 24px */
    height: 28px; /* Increased from 24px */
    border-radius: 50%;
    border: 2px solid var(--primary-light);
    margin-right: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary);
    font-weight: bold;
    flex-shrink: 0;
    transition: all 0.3s ease-in-out;
}

.step-check.done {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.step-check.done::before {
    content: '✓';
}

.step-text {
    text-align: left; /* Keep text inside the item left-aligned */
}

.step-text .label {
    font-family: 'Inter-SemiBold', sans-serif;
    font-size: 18px; /* Increased from 16px */
    color: var(--text-dark);
    line-height: 1.2;
}

.step-text .subtext {
    font-family: 'Inter-Regular', sans-serif;
    font-size: 15px; /* Increased from 14px */
    color: var(--gray);
    padding-top: 4px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    nav {
        flex-direction: row;
        height: 60px;
        padding-left: 24px;
        padding-right: 24px;
    }
    
    .header-container {
        padding-left: 24px;
        padding-right: 24px;
    }
    
    #olea-logo-header {
        height: 32px;
    }

    main {
        padding-top: 80px;
        padding-left: 24px;
        padding-right: 24px;
    }

    .input-container {
        padding: 24px 0;
    }

    .whatisthis-container {
        padding: 20px;
    }

    .tagline-bullets {
        margin: 32px 0;
    }

    .main-tagline {
        font-size: 36px;
        line-height: 40px;
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    nav {
        flex-direction: row;
        justify-content: flex-start;
        padding-left: 24px;
        padding-right: 24px;
        height: 60px;
    }
    
    .footer-container {
        padding: 0 24px;
        text-align: left;
    }
    
    .header-container {
        padding-left: 24px;
        padding-right: 24px;
    }
    
    #olea-logo-header {
        height: 28px;
    }

    nav ul {
        display: block; /* Show navigation on mobile */
        margin: 0;
        padding: 0;
        list-style: none;
    }

    nav ul li {
        margin: 0;
        padding: 0;
    }

    nav ul li a {
        font-size: 14px; /* Smaller text for mobile */
        padding: 8px 12px;
        display: block;
    }

    main {
        padding-top: 60px;
    }

    .input-container {
        padding: 24px 0;
        min-height: auto;
    }

    /* Fix logo row and size on mobile */
    .logo-row {
        padding: 24px 0;
        margin-top: 0;
    }
    
    .logo-row-inner {
        max-width: none;
        padding: 0 24px;
    }
    
    #olea-logo {
        width: 150px;
        height: 60px;
    }

    /* Fix main tagline on mobile */
    .main-tagline {
        font-size: 20px;
        line-height: 26px;
        max-width: none;
        margin-bottom: 24px;
    }
    
    .main-tagline strong {
        font-size: 20px;
        line-height: 26px;
    }

    .tagline-bullets {
        margin: 24px 0;
    }

    .tagline-bullet {
        font-size: 20px;
        line-height: 26px;
        margin: 4px 0;
    }

    /* Fix email form on mobile */
    #email-form {
        margin: 0 auto 20px auto;
        width: 95%;
        position: relative; /* Ensure stable positioning */
    }

    #email-input {
        font-size: 12px; /* Even smaller text to fit better on mobile */
        padding: 12px 16px;
    }

    #email-form button {
        font-size: 12px; /* Even smaller text to fit better on mobile */
        padding: 12px 16px;
        white-space: nowrap; /* Prevent text wrapping */
    }

    /* Fix headings on mobile */
    .whatisthis-container h2,
    .whatisthis-container h3 {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .whatisthis-container h3 {
        margin-top: 30px;
    }

    .whatisthis-container p,
    .whatisthis-container ol {
        font-size: 16px;
        line-height: 1.5;
    }

    .home-cooks-tagline {
        font-size: 14px;
        line-height: 1.4;
        margin: 24px 0;
        max-width: none;
    }
}

/* Footer Styles */
footer {
    background-color: var(--white);
    border-top: 1px solid #e0e0e0;
    padding: 20px 0;
    margin-top: auto;
    width: 100%;
    box-sizing: border-box;
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.footer-container a {
    color: var(--text-dark);
    text-decoration: none;
    font-family: 'Inter-Regular', sans-serif;
    font-size: 14px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.footer-container a:hover {
    opacity: 1;
    color: var(--primary);
}

.footer-separator {
    color: var(--text-dark);
    opacity: 0.3;
    margin: 0 10px;
    font-size: 14px;
} 