/* Fiefounut Quest - Main Styles */

/* CSS Variables from Design Tokens */
:root {
  /* Colors - Primary */
  --primary-50: #E0F7FA;
  --primary-100: #B2EBF2;
  --primary-500: #00BCD4;
  --primary-700: #0097A7;
  --primary-900: #006064;
  
  /* Colors - Accent */
  --accent-500: #FF6B6B;
  --accent-700: #EE5A52;
  
  /* Colors - Neutral */
  --neutral-50: #FAFAFA;
  --neutral-100: #F5F5F5;
  --neutral-200: #E5E5E5;
  --neutral-400: #A3A3A3;
  --neutral-700: #404040;
  --neutral-900: #171717;
  
  /* Colors - Background */
  --bg-page: #FAFAFA;
  --bg-surface: #FFFFFF;
  --bg-gradient: linear-gradient(135deg, #E0F7FA 0%, #FFE5E5 100%);
  
  /* Colors - Semantic */
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;
  --info: #3B82F6;
  
  /* Typography */
  --font-heading: 'Inter', -apple-system, system-ui, sans-serif;
  --font-body: 'Inter', -apple-system, system-ui, sans-serif;
  
  /* Font Sizes */
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --text-3xl: 32px;
  --text-4xl: 40px;
  --text-5xl: 56px;
  
  /* Font Weights */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  
  /* Line Heights */
  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.6;
  
  /* Spacing */
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Box Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-card-hover: 0 8px 24px rgba(0, 188, 212, 0.15);
  --shadow-modal: 0 20px 48px rgba(0, 0, 0, 0.12);
  
  /* Animation */
  --duration-fast: 200ms;
  --duration-normal: 300ms;
  --duration-slow: 400ms;
  --easing-default: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  color: var(--neutral-700);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  color: var(--neutral-900);
  line-height: var(--leading-tight);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

p {
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-md);
}

a {
  color: var(--primary-500);
  text-decoration: none;
  transition: color var(--duration-normal) var(--easing-default);
}

a:hover {
  color: var(--primary-700);
}

/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background-color: var(--bg-surface);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--primary-500);
  max-width: 180px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--space-lg);
  align-items: center;
}

.nav-menu a {
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--neutral-700);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: all var(--duration-normal) var(--easing-default);
}

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

.nav-cta {
  margin-left: var(--space-lg);
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
}

.mobile-menu-toggle svg {
  width: 24px;
  height: 24px;
  stroke: var(--neutral-900);
}

/* Hero Section */
.hero {
  min-height: 500px;
  background: var(--bg-gradient);
  display: flex;
  align-items: center;
  margin-top: 72px;
  padding: var(--space-4xl) 0;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 600px;
  z-index: 2;
}

.hero h1 {
  font-size: var(--text-5xl);
  margin-bottom: var(--space-lg);
}

.hero p {
  font-size: var(--text-xl);
  color: var(--neutral-700);
  margin-bottom: var(--space-xl);
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-image {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 35%;
  max-width: 500px;
  opacity: 0.9;
  z-index: 1;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: var(--space-md) var(--space-lg);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  text-align: center;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  min-height: 48px;
  transition: all var(--duration-normal) var(--easing-default);
  font-family: var(--font-body);
}

.btn-primary {
  background-color: var(--primary-500);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-700);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  color: white;
}

.btn-primary:active {
  background-color: var(--primary-900);
  transform: translateY(0);
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--primary-500);
  border: 2px solid var(--primary-500);
}

.btn-secondary:hover {
  background-color: var(--primary-50);
  color: var(--primary-500);
}

.btn-secondary:active {
  background-color: var(--primary-100);
}

/* Sections */
section {
  padding: var(--space-3xl) 0;
}

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

.section-header h2 {
  margin-bottom: var(--space-md);
}

.section-header p {
  font-size: var(--text-lg);
  color: var(--neutral-700);
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.card {
  background-color: var(--bg-surface);
  padding: var(--space-xl);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: all var(--duration-normal) var(--easing-default);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--primary-500);
}

.card-icon {
  width: 48px;
  height: 48px;
  background-color: var(--primary-500);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.card-icon svg {
  width: 28px;
  height: 28px;
  stroke: white;
}

.card h3 {
  margin-bottom: var(--space-sm);
}

.card p {
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-xl);
}

/* Pricing Cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
  max-width: 1200px;
  margin: 0 auto;
}

.pricing-card {
  position: relative;
}

.pricing-card.featured {
  background-color: var(--primary-50);
}

.pricing-badge {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  background-color: var(--accent-500);
  color: white;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
}

.pricing-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-md);
}

.pricing-price {
  font-size: var(--text-4xl);
  font-weight: var(--weight-bold);
  color: var(--primary-500);
  margin-bottom: var(--space-xs);
}

.pricing-period {
  font-size: var(--text-sm);
  color: var(--neutral-400);
  margin-bottom: var(--space-lg);
}

.pricing-features {
  list-style: none;
  margin-bottom: var(--space-xl);
}

.pricing-features li {
  padding: var(--space-sm) 0;
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.pricing-features li svg {
  width: 20px;
  height: 20px;
  stroke: var(--success);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.testimonial {
  background-color: var(--bg-surface);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.testimonial-text {
  font-style: italic;
  margin-bottom: var(--space-lg);
  line-height: var(--leading-relaxed);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  background-color: var(--primary-100);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--weight-bold);
  color: var(--primary-700);
}

.testimonial-info h4 {
  font-size: var(--text-base);
  margin-bottom: 2px;
}

.testimonial-info p {
  font-size: var(--text-sm);
  color: var(--neutral-400);
  margin: 0;
}

/* Forms */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--neutral-700);
  margin-bottom: var(--space-xs);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-md);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  font-family: var(--font-body);
  color: var(--neutral-900);
  background-color: var(--bg-surface);
  border: 2px solid var(--neutral-200);
  border-radius: var(--radius-md);
  transition: all var(--duration-normal) var(--easing-default);
  min-height: 48px;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.1);
}

.form-input.error,
.form-textarea.error {
  border-color: var(--error);
}

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

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-error {
  font-size: var(--text-sm);
  color: var(--error);
  margin-top: var(--space-xs);
  display: none;
}

.form-error.visible {
  display: block;
}

.form-success {
  background-color: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--success);
  color: var(--success);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  display: none;
}

.form-success.visible {
  display: block;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(23, 23, 23, 0.95);
  color: white;
  padding: var(--space-lg) var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  z-index: 2000;
  transform: translateY(100%);
  transition: transform var(--duration-slow) var(--easing-default);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-content {
  flex: 1;
}

.cookie-content p {
  font-size: var(--text-sm);
  margin: 0;
}

.cookie-content a {
  color: var(--primary-100);
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.cookie-buttons .btn {
  min-width: 120px;
}

.btn-decline {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

.btn-decline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

/* Footer */
footer {
  background-color: var(--neutral-900);
  color: white;
  padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-section h3 {
  color: white;
  font-size: var(--text-lg);
  margin-bottom: var(--space-md);
}

.footer-section p,
.footer-section a {
  color: var(--neutral-400);
  font-size: var(--text-sm);
  line-height: 1.8;
}

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

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

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-bottom {
  border-top: 1px solid var(--neutral-700);
  padding-top: var(--space-lg);
  text-align: center;
  color: var(--neutral-400);
  font-size: var(--text-sm);
}

/* Benefits Section */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
}

.benefit-item {
  text-align: center;
  padding: var(--space-lg);
}

.benefit-icon {
  width: 64px;
  height: 64px;
  background-color: var(--primary-50);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
}

.benefit-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--primary-500);
}

.benefit-item h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}

/* Services Section */
.services-section {
  background-color: var(--neutral-100);
}

.service-image-wrapper {
  margin-bottom: var(--space-lg);
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.service-image-wrapper img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--easing-default);
}

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

/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.contact-info {
  background-color: var(--bg-surface);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.contact-info-item {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.contact-info-icon {
  width: 40px;
  height: 40px;
  background-color: var(--primary-50);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--primary-500);
}

/* Legal Pages */
.legal-content {
  max-width: 900px;
  margin: 0 auto;
  background-color: var(--bg-surface);
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.legal-content h2 {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.legal-content h3 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.legal-content ul,
.legal-content ol {
  margin-left: var(--space-xl);
  margin-bottom: var(--space-md);
}

.legal-content li {
  margin-bottom: var(--space-sm);
  line-height: var(--leading-relaxed);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .card:hover,
  .btn:hover {
    transform: none;
  }
}

/* Responsive Design */
@media (max-width: 1023px) {
  .hero-image {
    display: none;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
}

@media (max-width: 767px) {
  /* Mobile Navigation */
  .nav-menu {
    position: fixed;
    top: 72px;
    right: -100%;
    width: 280px;
    height: calc(100vh - 72px);
    background-color: var(--bg-surface);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-xl);
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.1);
    transition: right var(--duration-slow) var(--easing-default);
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .nav-cta {
    margin-left: 0;
    width: 100%;
  }
  
  .nav-cta .btn {
    width: 100%;
  }
  
  /* Hero */
  .hero {
    min-height: 400px;
    padding: var(--space-2xl) 0;
  }
  
  .hero h1 {
    font-size: var(--text-4xl);
  }
  
  .hero p {
    font-size: var(--text-lg);
  }
  
  .hero-cta {
    flex-direction: column;
  }
  
  .hero-cta .btn {
    width: 100%;
  }
  
  /* Sections */
  section {
    padding: var(--space-2xl) 0;
  }
  
  .container {
    padding: 0 var(--space-lg);
  }
  
  /* Cards */
  .card {
    padding: var(--space-lg);
  }
  
  .card-grid,
  .pricing-grid,
  .benefits-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  /* Cookie Banner */
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-lg);
  }
  
  .cookie-buttons {
    justify-content: stretch;
  }
  
  .cookie-buttons .btn {
    flex: 1;
  }
  
  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-lg {
  margin-top: var(--space-lg);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.hidden {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
