/* ============================================
   PEPPERCORN FOODS - Premium Landing Page
   ============================================ */

:root {
    /* Colors */
    --color-primary: #E85D04;
    --color-primary-dark: #D45103;
    --color-primary-light: #FFBA08;
    --color-secondary: #1A1A2E;
    --color-accent: #16213E;
    --color-dark: #0F0F1A;
    --color-light: #FAFAFA;
    --color-gray-100: #F5F5F7;
    --color-gray-200: #E8E8ED;
    --color-gray-300: #D1D1D6;
    --color-gray-400: #A1A1AA;
    --color-gray-500: #71717A;
    --color-gray-600: #52525B;
    --color-gray-700: #3F3F46;
    --color-gray-800: #27272A;
    --color-success: #22C55E;
    --color-error: #EF4444;
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --shadow-glow: 0 0 40px rgba(232, 93, 4, 0.3);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
}

/* ============================================
   RESET & BASE
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-gray-800);
    background: var(--color-light);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-md) var(--space-xl);
    transition: all 0.3s var(--ease-out);
}

.nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-dark);
}

.logo-icon {
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-links a {
    font-weight: 500;
    color: var(--color-gray-600);
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--color-primary);
}

.nav-cta {
    padding: var(--space-sm) var(--space-lg);
    background: var(--color-primary);
    color: white !important;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: all 0.3s var(--ease-out);
}

.nav-cta:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: var(--space-sm);
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--color-dark);
    transition: all 0.3s ease;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 120px var(--space-xl) var(--space-4xl);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(232, 93, 4, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(255, 186, 8, 0.1), transparent),
        linear-gradient(180deg, var(--color-light) 0%, var(--color-gray-100) 100%);
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: var(--space-4xl) 0;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-dark);
    margin-bottom: var(--space-xl);
}

.hero-title-line {
    display: block;
}

.hero-title .highlight {
    color: var(--color-primary);
    position: relative;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: var(--color-gray-500);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================
   PATH CARDS
   ============================================ */

.paths-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.paths {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.path-card {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    aspect-ratio: 3/4;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    cursor: pointer;
    transition: all 0.5s var(--ease-out);
}

.path-card:hover {
    transform: translateY(-8px);
}

.path-image {
    position: absolute;
    inset: 0;
}

.path-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease-out);
}

.path-card:hover .path-image img {
    transform: scale(1.05);
}

.path-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        transparent 40%,
        rgba(0,0,0,0.7) 100%
    );
}

.path-content {
    position: relative;
    z-index: 1;
    padding: var(--space-2xl);
    color: white;
}

.path-tag {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
}

.path-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.path-desc {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.5;
    margin-bottom: var(--space-lg);
}

.path-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-primary-light);
    transition: gap 0.3s var(--ease-out);
}

.path-card:hover .path-cta {
    gap: var(--space-md);
}

.path-cta svg {
    transition: transform 0.3s var(--ease-out);
}

.path-card:hover .path-cta svg {
    transform: translateX(4px);
}

/* ============================================
   SECTIONS (General)
   ============================================ */

.section {
    padding: var(--space-4xl) var(--space-xl);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-3xl);
}

.section-tag {
    display: inline-block;
    padding: var(--space-xs) var(--space-lg);
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: white;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-lg);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--color-dark);
    line-height: 1.2;
    margin-bottom: var(--space-lg);
}

.section-title .highlight {
    color: var(--color-primary);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-gray-500);
    line-height: 1.7;
}

/* ============================================
   CATERING SECTION
   ============================================ */

.catering-section {
    background: var(--color-gray-100);
}

.catering-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 200px);
    gap: var(--space-md);
    max-width: 1200px;
    margin: 0 auto var(--space-3xl);
}

.gallery-item {
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease-out);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Placeholder styles for images */
.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-gray-200), var(--color-gray-300));
    z-index: -1;
}

.catering-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
    max-width: 1200px;
    margin: 0 auto var(--space-3xl);
}

.feature {
    text-align: center;
    padding: var(--space-xl);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.feature h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: var(--space-sm);
}

.feature p {
    font-size: 0.95rem;
    color: var(--color-gray-500);
}

/* ============================================
   FORM STYLES
   ============================================ */

.form-container {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    border-radius: var(--radius-2xl);
    padding: var(--space-3xl);
    box-shadow: var(--shadow-xl);
}

.form-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.form-header h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: var(--space-sm);
}

.form-header p {
    color: var(--color-gray-500);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-gray-700);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: var(--space-md) var(--space-lg);
    border: 2px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    transition: all 0.2s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(232, 93, 4, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-gray-400);
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    width: 100%;
    margin-top: var(--space-xl);
    padding: var(--space-lg) var(--space-2xl);
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: var(--radius-xl);
    transition: all 0.3s var(--ease-out);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.submit-btn:active {
    transform: translateY(0);
}

/* ============================================
   TYPEFORM QUESTIONNAIRE
   ============================================ */

.meal-plans-section {
    background: linear-gradient(180deg, var(--color-dark) 0%, var(--color-accent) 100%);
    min-height: 100vh;
}

.meal-plans-section .section-tag {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

.meal-plans-section .section-title {
    color: white;
}

.meal-plans-section .section-subtitle {
    color: rgba(255,255,255,0.7);
}

.typeform-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.typeform-progress {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-3xl);
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--color-primary);
    border-radius: var(--radius-full);
    transition: width 0.5s var(--ease-out);
}

.progress-text {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
    white-space: nowrap;
}

.typeform {
    min-height: 400px;
    position: relative;
}

.tf-question {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(40px);
    transition: all 0.5s var(--ease-out);
}

.tf-question.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    position: relative;
}

.tf-question.exit {
    opacity: 0;
    transform: translateX(-40px);
}

.tf-question-content {
    color: white;
}

.tf-question-number {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--space-md);
    display: block;
}

.tf-question-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: var(--space-md);
    line-height: 1.3;
}

.tf-question-subtitle {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: var(--space-2xl);
}

.tf-options {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.tf-option {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-lg) var(--space-xl);
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-xl);
    text-align: left;
    color: white;
    transition: all 0.3s var(--ease-out);
}

.tf-option:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    transform: translateX(8px);
}

.tf-option.selected {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.tf-option-key {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.tf-option.selected .tf-option-key {
    background: rgba(0,0,0,0.2);
}

.tf-option-text {
    font-size: 1.0625rem;
    line-height: 1.4;
}

.tf-options.multi .tf-option.selected {
    background: rgba(232, 93, 4, 0.3);
    border-color: var(--color-primary);
}

.tf-next-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-xl);
    padding: var(--space-md) var(--space-xl);
    background: var(--color-primary);
    color: white;
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: all 0.3s var(--ease-out);
}

.tf-next-btn:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
}

/* Typeform Inputs */
.tf-inputs {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.tf-input-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.tf-input-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
}

.tf-input-group input,
.tf-input-group textarea {
    padding: var(--space-lg);
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    color: white;
    font-size: 1.125rem;
    transition: all 0.3s ease;
}

.tf-input-group input:focus,
.tf-input-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(255,255,255,0.08);
}

.tf-input-group input::placeholder,
.tf-input-group textarea::placeholder {
    color: rgba(255,255,255,0.4);
}

.tf-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-xl);
    padding: var(--space-lg) var(--space-2xl);
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: white;
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: var(--radius-xl);
    transition: all 0.3s var(--ease-out);
    width: 100%;
}

.tf-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* Typeform Navigation */
.tf-nav {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-3xl);
}

.tf-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    color: white;
    transition: all 0.3s var(--ease-out);
}

.tf-nav-btn:hover:not(:disabled) {
    background: rgba(255,255,255,0.2);
}

.tf-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Success State */
.tf-success {
    display: none;
    text-align: center;
    padding: var(--space-3xl);
}

.tf-success.active {
    display: block;
}

.tf-success-icon {
    font-size: 4rem;
    margin-bottom: var(--space-xl);
}

.tf-success h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: var(--space-md);
}

.tf-success p {
    color: rgba(255,255,255,0.7);
    font-size: 1.125rem;
    max-width: 400px;
    margin: 0 auto;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--color-dark);
    color: white;
    padding: var(--space-4xl) var(--space-xl) var(--space-xl);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: var(--space-3xl);
    padding-bottom: var(--space-3xl);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo-icon {
    font-size: 2rem;
}

.footer-brand .logo-text {
    font-size: 1.5rem;
}

.footer-brand p {
    color: rgba(255,255,255,0.5);
    margin-top: var(--space-md);
}

.footer-links {
    display: flex;
    gap: var(--space-4xl);
}

.footer-col h4 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.5);
    margin-bottom: var(--space-lg);
}

.footer-col a {
    display: block;
    color: rgba(255,255,255,0.8);
    margin-bottom: var(--space-md);
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: var(--space-xl);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.4);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .paths {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .path-card {
        aspect-ratio: 16/9;
    }
    
    .catering-features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .catering-gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 180px);
    }
    
    .gallery-item.large {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        padding: 100px var(--space-md) var(--space-2xl);
    }
    
    .hero-content {
        padding: var(--space-2xl) 0;
    }
    
    .section {
        padding: var(--space-3xl) var(--space-md);
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width {
        grid-column: span 1;
    }
    
    .form-container {
        padding: var(--space-xl);
    }
    
    .catering-features {
        grid-template-columns: 1fr;
    }
    
    .catering-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 200px);
    }
    
    .gallery-item.large {
        grid-column: span 1;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: var(--space-2xl);
    }
    
    .tf-option {
        padding: var(--space-md) var(--space-lg);
    }
    
    .tf-option-text {
        font-size: 0.95rem;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

.hero-title,
.hero-subtitle,
.path-card {
    animation: fadeInUp 0.8s var(--ease-out) backwards;
}

.hero-title { animation-delay: 0.1s; }
.hero-subtitle { animation-delay: 0.2s; }
.path-card:nth-child(1) { animation-delay: 0.3s; }
.path-card:nth-child(2) { animation-delay: 0.4s; }
.path-card:nth-child(3) { animation-delay: 0.5s; }

/* Placeholder image backgrounds */
.path-image::before,
.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 50%, #c2410c 100%);
    opacity: 0.3;
}

[data-path="catering"] .path-image::before {
    background: linear-gradient(135deg, #f97316, #dc2626);
}

[data-path="meals"] .path-image::before {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

[data-path="uber"] .path-image::before {
    background: linear-gradient(135deg, #000000, #1f2937);
}
