/* ============================================================
   EUGENE DIGITAL HQ — COMPLETE DESIGN SYSTEM
   Brand: Deep Brown + Gold | Premium | Cinematic | Editorial
   ============================================================ */

:root {
    --color-espresso: #1a0f0a;
    --color-chocolate: #2d1810;
    --color-warm-brown: #4a2c1a;
    --color-near-black: #0d0705;
    --color-gold: #c9a84c;
    --color-gold-light: #d4b96a;
    --color-gold-bright: #e8cc6e;
    
    --text-primary: #f5f0e8;
    --text-secondary: #d4c8b8;
    --text-muted: #a89888;
    
    --bg-primary: #0d0705;
    --bg-secondary: #1a0f0a;
    --bg-card: #2d1810;
    --bg-surface: #231510;
    --bg-overlay: rgba(13, 7, 5, 0.85);
    
    --border-subtle: rgba(201, 168, 76, 0.2);
    --border-gold: rgba(201, 168, 76, 0.5);
    --border-gold-strong: rgba(201, 168, 76, 0.85);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-gold: 0 4px 20px rgba(201, 168, 76, 0.18);
    --shadow-gold-strong: 0 4px 30px rgba(201, 168, 76, 0.35);
    
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', sans-serif;
    
    --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;
    --space-5xl: 8rem;
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    --z-base: 1;
    --z-sticky: 200;
    --z-overlay: 300;
    --z-modal: 400;
    --z-toast: 500;
    --z-concierge: 600;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); background-color: var(--bg-primary); color: var(--text-primary); line-height: 1.7; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-gold); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--color-gold-bright); }
button { font-family: var(--font-body); cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: var(--font-body); font-size: 1rem; color: var(--text-primary); background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 0.75rem 1rem; width: 100%; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--color-gold); box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.2); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); color: var(--text-primary); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.4rem, 3vw, 2rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.5rem); }
p { margin-bottom: var(--space-md); color: var(--text-secondary); }

/* Utility & Layout */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--space-lg); }
.section { padding: var(--space-5xl) 0; position: relative; }
.section-sm { padding: var(--space-3xl) 0; }
.text-gold { color: var(--color-gold); }
.text-center { text-align: center; }
.hidden { display: none !important; }

/* Typography */
.section-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-gold); margin-bottom: var(--space-md); display: inline-block; }
.section-title { font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 3.2rem); color: var(--text-primary); margin-bottom: var(--space-lg); }
.section-title .gold { color: var(--color-gold); }
.section-subtitle { font-size: 1.1rem; color: var(--text-secondary); max-width: 650px; line-height: 1.8; }
.section-subtitle.centered { margin: 0 auto; text-align: center; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-sm); padding: 0.85rem 2rem; font-size: 0.95rem; font-weight: 600; border-radius: var(--radius-md); transition: all var(--transition-base); text-decoration: none; white-space: nowrap; }
.btn-primary { background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light)); color: var(--color-near-black); box-shadow: var(--shadow-gold); }
.btn-primary:hover { background: linear-gradient(135deg, var(--color-gold-bright), var(--color-gold)); box-shadow: var(--shadow-gold-strong); transform: translateY(-2px); color: var(--color-near-black); }
.btn-secondary { background: transparent; color: var(--color-gold); border: 1px solid var(--border-gold); }
.btn-secondary:hover { background: rgba(201, 168, 76, 0.12); border-color: var(--color-gold-bright); transform: translateY(-2px); color: var(--color-gold-bright); }
.btn-ghost { background: transparent; color: var(--text-secondary); padding: 0.6rem 1rem; }
.btn-ghost:hover { color: var(--color-gold); }
.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.85rem; }
.btn-lg { padding: 1.1rem 2.5rem; font-size: 1.05rem; }

/* Navigation */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-sticky); padding: 1.2rem 0; transition: all var(--transition-base); background: rgba(13, 7, 5, 0.85); backdrop-filter: blur(15px); border-bottom: 1px solid var(--border-subtle); }
.navbar.scrolled { background: rgba(13, 7, 5, 0.95); padding: 0.8rem 0; }
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.nav-brand { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; color: var(--color-gold); }
.nav-brand span { color: var(--text-primary); font-weight: 400; }
.nav-links { display: flex; align-items: center; gap: var(--space-xl); }
.nav-links a { color: var(--text-secondary); font-size: 0.9rem; font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--color-gold); }
.nav-auth { display: flex; align-items: center; gap: var(--space-md); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text-primary); }
.mobile-menu { display: none; position: fixed; inset: 0; background: rgba(13, 7, 5, 0.98); z-index: var(--z-overlay); flex-direction: column; align-items: center; justify-content: center; gap: var(--space-xl); }
.mobile-menu.open { display: flex; }

/* Hero Section */
.hero { min-height: 90vh; display: flex; align-items: center; position: relative; overflow: hidden; padding-top: 120px; padding-bottom: var(--space-4xl); background: radial-gradient(ellipse at 30% 40%, rgba(201, 168, 76, 0.08) 0%, transparent 60%), radial-gradient(ellipse at 70% 60%, rgba(74, 44, 26, 0.35) 0%, transparent 50%), var(--bg-primary); }
.hero-grid-pattern { position: absolute; inset: 0; background-image: linear-gradient(rgba(201, 168, 76, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(201, 168, 76, 0.04) 1px, transparent 1px); background-size: 60px 60px; z-index: 0; }
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: var(--space-3xl); align-items: center; }
.hero-content { max-width: 650px; opacity: 1 !important; animation: fadeInUp 0.8s ease forwards; }
.hero-label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.25em; text-transform: uppercase; color: var(--color-gold); margin-bottom: var(--space-md); }
.hero-title { font-family: var(--font-heading); font-size: clamp(2.5rem, 5vw, 4.2rem); font-weight: 700; color: var(--text-primary); line-height: 1.1; margin-bottom: var(--space-md); }
.hero-title .gold { color: var(--color-gold); display: block; }
.hero-subtitle { font-size: 1.05rem; font-weight: 600; color: var(--color-gold-light); margin-bottom: var(--space-lg); letter-spacing: 0.02em; }
.hero-description { font-size: 1.1rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: var(--space-2xl); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--space-md); align-items: center; }
.hero-image-wrapper { position: relative; display: flex; justify-content: center; align-items: center; opacity: 1 !important; animation: fadeInRight 0.8s ease forwards; }
.hero-image-frame { position: relative; width: 100%; max-width: 400px; aspect-ratio: 3/4; border-radius: var(--radius-2xl); overflow: hidden; border: 2px solid var(--border-gold); box-shadow: var(--shadow-lg), var(--shadow-gold-strong); background: var(--bg-card); }
.hero-image-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.hero-image-glow { position: absolute; width: 320px; height: 320px; background: radial-gradient(circle, rgba(201, 168, 76, 0.2) 0%, transparent 70%); border-radius: 50%; z-index: -1; }
.image-placeholder { background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-surface) 100%); border: 2px dashed var(--border-gold); border-radius: var(--radius-lg); display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-muted); font-size: 0.85rem; text-align: center; padding: var(--space-xl); min-height: 220px; width: 100%; height: 100%; }
.image-placeholder svg { width: 44px; height: 44px; margin-bottom: var(--space-sm); stroke: var(--color-gold); opacity: 0.6; }

/* Grid Sections (About, Services, Process, Products, Portfolio, Training, Why) */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4xl); align-items: center; }
.about-image-area .image-placeholder { aspect-ratio: 4/5; min-height: 380px; }
.about-pillars { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); margin-top: var(--space-2xl); }
.about-pillar { padding: var(--space-lg); background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); transition: all var(--transition-base); }
.about-pillar:hover { border-color: var(--border-gold); transform: translateY(-4px); box-shadow: var(--shadow-gold); }
.about-pillar-icon { font-size: 1.5rem; margin-bottom: var(--space-sm); }
.about-pillar h4 { color: var(--color-gold); font-size: 1.1rem; margin-bottom: var(--space-xs); }
.about-pillar p { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 0; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-lg); margin-top: var(--space-3xl); }
.service-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); padding: var(--space-2xl); transition: all var(--transition-base); }
.service-card:hover { border-color: var(--border-gold); transform: translateY(-5px); box-shadow: var(--shadow-gold); }
.service-icon { width: 48px; height: 48px; background: rgba(201, 168, 76, 0.1); border: 1px solid var(--border-gold); border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: var(--space-lg); }
.service-card h3 { font-size: 1.2rem; margin-bottom: var(--space-sm); }
.service-card p { font-size: 0.92rem; color: var(--text-muted); margin-bottom: 0; }
.process-flow { display: flex; flex-direction: column; align-items: center; margin-top: var(--space-3xl); }
.process-line { width: 2px; height: 50px; background: linear-gradient(180deg, var(--color-gold), var(--border-subtle)); }
.process-step { text-align: center; padding: var(--space-lg); }
.process-step-number { width: 54px; height: 54px; border-radius: 50%; background: var(--bg-card); border: 2px solid var(--color-gold); display: flex; align-items: center; justify-content: center; margin: 0 auto var(--space-sm); font-family: var(--font-heading); font-size: 1.2rem; color: var(--color-gold); font-weight: 700; }
.process-step h3 { font-size: 1.25rem; margin-bottom: var(--space-xs); }
.process-step p { font-size: 0.92rem; color: var(--text-muted); max-width: 320px; margin: 0 auto; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--space-xl); margin-top: var(--space-3xl); }
.product-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); overflow: hidden; transition: all var(--transition-base); }
.product-card:hover { border-color: var(--border-gold); transform: translateY(-5px); box-shadow: var(--shadow-gold); }
.product-card-image { width: 100%; aspect-ratio: 16/10; overflow: hidden; position: relative; background: var(--bg-surface); }
.product-card-image img { width: 100%; height: 100%; object-fit: cover; }
.product-card-badge { position: absolute; top: var(--space-md); left: var(--space-md); background: var(--color-gold); color: var(--color-near-black); font-size: 0.7rem; font-weight: 700; padding: 0.25rem 0.7rem; border-radius: var(--radius-full); text-transform: uppercase; }
.product-card-body { padding: var(--space-lg); }
.product-card-category { font-size: 0.72rem; font-weight: 600; color: var(--color-gold); text-transform: uppercase; margin-bottom: var(--space-xs); }
.product-card-title { font-size: 1.2rem; margin-bottom: var(--space-sm); }
.product-card-desc { font-size: 0.9rem; color: var(--text-muted); margin-bottom: var(--space-lg); }
.product-card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: var(--space-md); border-top: 1px solid var(--border-subtle); }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--space-xl); margin-top: var(--space-3xl); }
.portfolio-card { position: relative; border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 4/3; background: var(--bg-card); border: 1px solid var(--border-subtle); }
.portfolio-card img { width: 100%; height: 100%; object-fit: cover; }
.portfolio-card-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(13, 7, 5, 0.95) 100%); display: flex; flex-direction: column; justify-content: flex-end; padding: var(--space-xl); }
.training-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-lg); margin-top: var(--space-3xl); }
.training-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); padding: var(--space-2xl); }
.training-audience { font-size: 0.8rem; color: var(--color-gold); font-weight: 600; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--space-lg); margin-top: var(--space-3xl); }
.why-card { padding: var(--space-xl); text-align: center; }
.why-card-icon { font-size: 2rem; margin-bottom: var(--space-md); }
.why-card h4 { color: var(--color-gold); margin-bottom: var(--space-xs); }

/* ============================================================
   AUTHENTICATION PAGES (Login, Register, Password)
   -> THIS FIXES THE ALIGNMENT ISSUE!
   ============================================================ */
.auth-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: var(--space-2xl) var(--space-md);
    position: relative;
    width: 100%;
}

.auth-card {
    width: 100%;
    max-width: 480px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-2xl);
    padding: var(--space-3xl) var(--space-2xl);
    box-shadow: var(--shadow-lg);
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Contact & Footer */
.contact-section { background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card) 100%); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.contact-inner { text-align: center; max-width: 680px; margin: 0 auto; }
.contact-ctas { display: flex; gap: var(--space-md); justify-content: center; flex-wrap: wrap; }
.site-footer { background: var(--bg-secondary); border-top: 1px solid var(--border-subtle); padding: var(--space-4xl) 0 var(--space-xl); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-3xl); margin-bottom: var(--space-3xl); }
.footer-brand h3 { color: var(--color-gold); margin-bottom: var(--space-xs); }
.footer-bottom { border-top: 1px solid var(--border-subtle); padding-top: var(--space-xl); display: flex; justify-content: space-between; flex-wrap: wrap; }

/* Voice Concierge & PWA Banner */
.concierge-trigger { position: fixed; bottom: var(--space-xl); right: var(--space-xl); z-index: var(--z-concierge); width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light)); color: var(--color-near-black); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; box-shadow: var(--shadow-gold-strong); }
.concierge-overlay { position: fixed; inset: 0; z-index: var(--z-concierge); background: var(--bg-overlay); backdrop-filter: blur(10px); display: none; align-items: center; justify-content: center; }
.concierge-overlay.open { display: flex; }
.concierge-panel { width: 90%; max-width: 460px; background: var(--bg-card); border: 1px solid var(--border-gold); border-radius: var(--radius-2xl); padding: var(--space-2xl); text-align: center; }
.concierge-mic-btn { width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light)); color: var(--color-near-black); font-size: 1.8rem; display: flex; align-items: center; justify-content: center; margin: var(--space-lg) auto; }
.concierge-mic-btn.listening { background: linear-gradient(135deg, #e74c3c, #c0392b); color: white; }
.concierge-transcript { max-height: 180px; overflow-y: auto; text-align: left; padding: var(--space-md); background: var(--bg-surface); border-radius: var(--radius-lg); margin: var(--space-md) 0; font-size: 0.85rem; display: none; }
.concierge-transcript.visible { display: block; }
.pwa-install-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: var(--z-toast); background: var(--bg-card); border-top: 1px solid var(--border-gold); padding: var(--space-lg) var(--space-xl); display: none; align-items: center; justify-content: space-between; }
.pwa-install-banner.visible { display: flex; }

/* Animations, Skeletons, Toasts */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.skeleton { background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-surface) 50%, var(--bg-card) 75%); background-size: 200% 100%; animation: skeletonShimmer 1.5s ease-in-out infinite; border-radius: var(--radius-md); }
@keyframes skeletonShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skeleton-text { height: 16px; margin-bottom: var(--space-sm); width: 80%; }
.skeleton-title { height: 28px; margin-bottom: var(--space-md); width: 60%; }
.skeleton-image { width: 100%; aspect-ratio: 16/10; }
.skeleton-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); padding: var(--space-lg); }
.loading-spinner { width: 36px; height: 36px; border: 3px solid var(--border-subtle); border-top-color: var(--color-gold); border-radius: 50%; animation: spin 0.8s linear infinite; margin: var(--space-xl) auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast-container { position: fixed; top: 90px; right: var(--space-lg); z-index: var(--z-toast); display: flex; flex-direction: column; gap: var(--space-sm); }
.toast { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: var(--space-md) var(--space-lg); box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: var(--space-md); min-width: 280px; font-size: 0.9rem; }
.toast.success { border-left: 3px solid #2ecc71; }
.toast.error { border-left: 3px solid #e74c3c; }
.toast.info { border-left: 3px solid var(--color-gold); }

/* Responsive Design */
@media (max-width: 1024px) {
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero-content { max-width: 100%; order: 2; }
    .hero-image-wrapper { order: 1; }
    .hero-ctas { justify-content: center; }
    .about-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-auth .btn { display: none; }
    .nav-toggle { display: flex; }
    .footer-grid { grid-template-columns: 1fr; }
    .auth-card { padding: var(--space-2xl) var(--space-lg); }
}