/* Timely Website - Vanilla CSS Conversion */
/* Based on original Next.js/Tailwind design */

:root {
  --brand-brown: #8B4513;
  --brand-dark-brown: #5D2F0A;
  --brand-tan: #D2B48C;
  --brand-cream: #F5F5DC;
  --theme-card: #FFFFFF;
  --theme-background: #F9F2E1;
  --text-primary: #5D2F0A;
  --text-secondary: #6B7280;
  --accent-orange: #FF8C00;
  --accent-blue: #3B82F6;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  
  /* Transitions */
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--theme-background);
  color: var(--text-primary);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hidden {
  display: none;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.text-center {
  text-align: center;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.fixed {
  position: fixed;
}

.z-50 {
  z-index: 50;
}

.z-1000 {
  z-index: 1000;
}

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.min-h-screen {
  min-height: 100vh;
}

.opacity-0 {
  opacity: 0;
}

.opacity-100 {
  opacity: 1;
}

/* Typography */
.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-base {
  font-size: 1rem;
  line-height: 1.5rem;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}

.text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}

.text-5xl {
  font-size: 3rem;
  line-height: 1;
}

.text-6xl {
  font-size: 3.75rem;
  line-height: 1;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

.font-black {
  font-weight: 900;
}

.leading-relaxed {
  line-height: 1.625;
}

/* Enhanced UI Polish */
.card-hover {
  transition: var(--transition-slow);
}

.card-hover:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px -12px rgba(139, 69, 19, 0.25);
}

.button-glow {
  box-shadow: 0 0 0 0 rgba(139, 69, 19, 0.4);
  transition: var(--transition-normal);
}

.button-glow:hover {
  box-shadow: 0 0 0 8px rgba(139, 69, 19, 0.1);
  transform: translateY(-2px);
}

.text-shadow {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.subtle-border {
  border: 1px solid rgba(139, 69, 19, 0.1);
}

/* Floating Navigation */
.floating-nav-wide {
  position: fixed;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(139, 69, 19, 0.1);
  border-radius: 2rem;
  box-shadow: 0 8px 32px rgba(139, 69, 19, 0.1), 
              0 2px 8px rgba(139, 69, 19, 0.05);
  transition: var(--transition-normal);
  width: auto;
  min-width: 750px;
  padding: 0 1.5rem;
}

.floating-nav-wide:hover {
  box-shadow: 0 12px 48px rgba(139, 69, 19, 0.15), 
              0 4px 16px rgba(139, 69, 19, 0.1);
  transform: translateX(-50%) translateY(-2px);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: var(--transition-normal);
  cursor: pointer;
}

.nav-logo:hover {
  transform: scale(1.05);
}

.nav-logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  transition: var(--transition-normal);
  filter: drop-shadow(0 2px 8px rgba(139, 69, 19, 0.2));
}

.nav-logo:hover .nav-logo-icon {
  transform: scale(1.1);
  filter: drop-shadow(0 4px 16px rgba(139, 69, 19, 0.3));
}

.nav-brand-text {
  background: linear-gradient(135deg, #8B4513, #5D2F0A);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: 1.25rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-link {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.75rem 1.25rem;
  border-radius: 1.25rem;
  transition: var(--transition-normal);
  position: relative;
  white-space: nowrap;
}

.nav-link:hover {
  background: rgba(139, 69, 19, 0.1);
  color: var(--brand-brown);
  transform: translateY(-1px);
}

.nav-link-active {
  background: linear-gradient(135deg, rgba(139, 69, 19, 0.15), rgba(139, 69, 19, 0.1));
  color: var(--brand-brown);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(139, 69, 19, 0.1);
}

.nav-download-btn {
  background: linear-gradient(135deg, var(--brand-brown), var(--brand-dark-brown));
  color: var(--brand-cream);
  border: none;
  border-radius: 1.25rem;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  font-size: 0.875rem;
  transition: var(--transition-normal);
  box-shadow: 0 4px 16px rgba(139, 69, 19, 0.3);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.nav-download-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.nav-download-btn:hover::before {
  left: 100%;
}

.nav-download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139, 69, 19, 0.4);
}

.nav-download-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(139, 69, 19, 0.3);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  padding: 0.75rem;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--brand-dark-brown);
  cursor: pointer;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.mobile-menu-btn:hover {
  transform: scale(1.1);
}

.mobile-menu-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--brand-tan);
  opacity: 0;
  transform: scale(0);
  transition: var(--transition-normal);
}

.mobile-menu-btn:hover::before {
  opacity: 0.2;
  transform: scale(1);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

/* Ensure overlay is hidden on larger screens by default */
@media (min-width: 769px) {
  .mobile-menu-overlay {
    display: none !important;
  }
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.mobile-menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 320px;
  max-width: 85vw;
  background: linear-gradient(135deg, var(--theme-card) 0%, var(--brand-cream) 100%);
  box-shadow: var(--shadow-2xl);
  border-left: 1px solid rgba(139, 69, 19, 0.1);
  transform: translateX(100%);
  transition: var(--transition-normal);
  overflow-y: auto;
}

.mobile-menu-overlay.active .mobile-menu-panel {
  transform: translateX(0);
}

/* Page Spacing */
.page-content {
  padding-top: 8rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-brown), var(--brand-dark-brown));
  color: var(--brand-cream);
  box-shadow: 0 8px 25px rgba(139, 69, 19, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(139, 69, 19, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--brand-brown);
  border: 2px solid var(--brand-brown);
}

.btn-secondary:hover {
  background: rgba(139, 69, 19, 0.1);
  transform: translateY(-2px);
}

/* Sections */
.section {
  padding: 5rem 0;
}

.hero-section {
  padding: 4rem 0;
  text-align: center;
}

/* Cards */
.card {
  background: var(--theme-card);
  border-radius: 1.5rem;
  padding: 2rem;
  border: 1px solid rgba(139, 69, 19, 0.1);
  box-shadow: 0 4px 20px rgba(139, 69, 19, 0.08);
}

/* Grid */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, 1fr);
}

.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fadeIn {
  animation: fadeIn 0.6s ease-out forwards;
}

.animate-slideInRight {
  animation: slideInRight 0.6s ease-out forwards;
}

.animate-slideInLeft {
  animation: slideInLeft 0.6s ease-out forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
  .floating-nav-wide {
    left: 1rem;
    right: 1rem;
    transform: none;
    top: 1rem;
    min-width: auto;
    max-width: none;
  }
  
  .floating-nav-wide:hover {
    transform: translateY(-2px);
  }
  
  .nav-links {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .text-4xl {
    font-size: 2rem;
    line-height: 2.25rem;
  }
  
  .text-5xl {
    font-size: 2.5rem;
    line-height: 1.1;
  }
  
  .text-6xl {
    font-size: 3rem;
    line-height: 1.1;
  }
  
  .grid-cols-2 {
    grid-template-columns: repeat(1, 1fr);
  }
  
  .grid-cols-3 {
    grid-template-columns: repeat(1, 1fr);
  }
  
  .container {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .mobile-menu-panel {
    width: 280px;
  }
  
  .text-5xl {
    font-size: 2rem;
    line-height: 1.1;
  }
  
  .text-6xl {
    font-size: 2.5rem;
    line-height: 1.1;
  }
}

/* Dark Mode Banner Styles */
.dark-mode-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 1rem;
  opacity: 0;
  transform: translateY(200px);
  transition: var(--transition-slow);
}

.dark-mode-banner.visible {
  opacity: 1;
  transform: translateY(0);
}

.banner-content {
  max-width: 1000px;
  margin: 0 auto;
  background: #F7F1DE;
  border: 2px solid #6C360E;
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.banner-content:hover {
  transform: scale(1.01);
  transition: var(--transition-normal);
}

.banner-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: transparent;
  border: none;
  color: rgba(108, 54, 14, 0.6);
  cursor: pointer;
  padding: 0.375rem;
  border-radius: 50%;
  transition: var(--transition-normal);
}

.banner-close:hover {
  color: #6C360E;
  background: rgba(245, 241, 222, 0.5);
  transform: scale(1.1);
}

.banner-icon {
  width: 3.5rem;
  height: 3.5rem;
  background: #fee2e2;
  border: 2px solid #fca5a5;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation: pulse 2s infinite;
  overflow: hidden;
}

.banner-icon video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.75rem;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.banner-text {
  flex: 1;
  color: #92400e;
  font-weight: 500;
  line-height: 1.5;
}

/* Footer Styles */
.footer {
  background: var(--brand-dark-brown);
  color: var(--brand-tan);
  padding: 5rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 25%;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 69, 19, 0.1) 0%, transparent 70%);
}

.footer::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 25%;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(210, 180, 140, 0.1) 0%, transparent 70%);
}

.footer-content {
  position: relative;
  z-index: 10;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.footer-brand img {
  width: 3.5rem;
  height: 3.5rem;
}

.footer-brand-text {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--brand-brown);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.footer-description {
  font-size: 1.125rem;
  line-height: 1.625;
  margin-bottom: 1.5rem;
  max-width: 24rem;
}

.footer-section h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-brown);
  margin-bottom: 2rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--brand-tan);
  text-decoration: none;
  font-size: 1.125rem;
  font-weight: 500;
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links a:hover {
  opacity: 0.9;
  transform: translateX(0.5rem);
}

.footer-links a::before {
  content: '';
  width: 0.25rem;
  height: 0.25rem;
  background: var(--brand-brown);
  border-radius: 50%;
  transition: var(--transition-normal);
}

.footer-links a:hover::before {
  width: 0.5rem;
  transform: scale(1.5);
}

.footer-bottom {
  border-top: 1px solid rgba(210, 180, 140, 0.2);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright {
  opacity: 0.7;
  transition: var(--transition-normal);
}

.footer-copyright:hover {
  opacity: 1;
}

.footer-tagline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  opacity: 0.6;
  transition: var(--transition-normal);
}

.footer-tagline:hover {
  opacity: 1;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}