/* affirmaciok.hu - Warm Beige Apple Professional Design */

@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:wght@400;500;600;700&display=swap');

:root {
  /* Warm Beige Color Palette */
  --cream: #faf8f6;
  --cream-dark: #f5f2ef;
  --beige: #e8e4df;
  --charcoal: #1a1a1a;
  --charcoal-soft: #2d2d2d;
  --brown: #6b5d54;
  --brown-light: #8a7b72;
  
  /* Accents - Natural & Warm */
  --accent-sage: #9fb09e;
  --accent-terracotta: #d4a89a;
  --accent-gold: #c9b38c;
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(26, 26, 26, 0.08);
  
  /* Shadows */
  --shadow-subtle: 0 2px 16px rgba(26, 26, 26, 0.04);
  --shadow-medium: 0 8px 32px rgba(26, 26, 26, 0.08);
  --shadow-strong: 0 16px 48px rgba(26, 26, 26, 0.12);
  
  /* Typography */
  --font-display: 'Crimson Pro', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
  
  /* Spacing & Radius */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 64px;
  --space-3xl: 96px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  
  /* Transitions */
  --ease: cubic-bezier(0.4, 0.0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent-sage);
  color: var(--cream);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--charcoal);
}

h1 {
  font-size: clamp(40px, 5vw, 64px);
  margin-bottom: var(--space-md);
}

h2 {
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: var(--space-md);
}

h3 {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: var(--space-sm);
}

p {
  margin-bottom: var(--space-md);
  color: var(--brown);
}

a {
  color: var(--accent-sage);
  text-decoration: none;
  transition: all 0.3s var(--ease);
}

a:hover {
  color: var(--charcoal);
}

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

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 248, 246, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-sm) var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 17px;
  font-weight: 600;
  color: var(--charcoal);
}

.nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-sage), var(--accent-terracotta));
}

.nav-links {
  display: flex;
  gap: var(--space-xs);
}

.nav-link {
  padding: 8px var(--space-sm);
  color: var(--brown);
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all 0.3s var(--ease);
}

.nav-link:hover {
  color: var(--charcoal);
  background: var(--glass-bg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--charcoal);
  transition: all 0.3s var(--ease);
}

.btn:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: translateY(-1px);
  box-shadow: var(--shadow-medium);
}

.btn-primary {
  background: var(--charcoal);
  border: none;
  color: var(--cream);
  box-shadow: var(--shadow-medium);
}

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

/* Hero */
.hero {
  padding: 140px var(--space-lg) var(--space-3xl);
  min-height: 70vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(159, 176, 158, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 2;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 8px var(--space-sm);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--brown);
  margin-bottom: var(--space-md);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-subtle);
}

.hero-lead {
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.65;
  color: var(--brown);
  max-width: 680px;
  margin-bottom: var(--space-xl);
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* Cards */
.card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-subtle);
  transition: all 0.4s var(--ease);
}

.card:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-2px);
}

/* Category Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
  margin: var(--space-xl) 0;
}

.category-tile {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  overflow: hidden;
  transition: all 0.4s var(--ease);
  text-decoration: none;
  display: block;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-subtle);
}

.category-tile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-sage), var(--accent-terracotta), var(--accent-gold));
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.category-tile:hover {
  border-color: var(--accent-sage);
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.category-tile:hover::before {
  opacity: 1;
}

.category-tile h3 {
  color: var(--charcoal);
  margin-bottom: var(--space-xs);
  font-size: 22px;
}

.category-tile p {
  color: var(--brown-light);
  font-size: 15px;
  margin: 0;
}

/* Affirmation List */
.affirmation-list {
  list-style: none;
  padding: 0;
  margin: var(--space-xl) 0;
}

.affirmation-list li {
  position: relative;
  padding: var(--space-md) var(--space-md) var(--space-md) var(--space-xl);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  font-size: 18px;
  font-style: italic;
  color: var(--charcoal-soft);
  transition: all 0.3s var(--ease);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-subtle);
}

.affirmation-list li::before {
  content: '✦';
  position: absolute;
  left: var(--space-sm);
  color: var(--accent-sage);
  font-size: 16px;
  font-style: normal;
}

.affirmation-list li:hover {
  border-color: var(--accent-sage);
  background: rgba(255, 255, 255, 0.75);
  transform: translateX(4px);
  box-shadow: var(--shadow-medium);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, rgba(159, 176, 158, 0.15), rgba(212, 168, 154, 0.12));
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: var(--space-2xl) var(--space-xl);
  text-align: center;
  margin: var(--space-3xl) 0;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-subtle);
}

.cta-section h2 {
  margin-bottom: var(--space-sm);
}

.cta-section p {
  font-size: 18px;
  color: var(--brown);
  max-width: 600px;
  margin: 0 auto var(--space-xl);
}

.cta-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/* FAQ */
details {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-sm);
  transition: all 0.3s var(--ease);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-subtle);
}

details:hover {
  border-color: var(--accent-sage);
  box-shadow: var(--shadow-medium);
}

details[open] {
  background: rgba(255, 255, 255, 0.75);
}

summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--charcoal);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '+';
  font-size: 24px;
  color: var(--accent-sage);
  transition: transform 0.3s var(--ease);
}

details[open] summary::after {
  transform: rotate(45deg);
}

details p {
  margin-top: var(--space-sm);
  color: var(--brown);
  font-size: 15px;
}

/* Footer */
footer {
  border-top: 1px solid var(--glass-border);
  padding: var(--space-2xl) var(--space-lg) var(--space-xl);
  margin-top: var(--space-3xl);
  background: var(--cream-dark);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-brand {
  font-weight: 700;
  color: var(--charcoal);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.footer-links {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--brown-light);
  font-size: 14px;
}

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

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

.section-kicker {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-sage);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 100px var(--space-lg) var(--space-md);
  font-size: 14px;
  color: var(--brown-light);
}

.breadcrumbs a:hover {
  color: var(--accent-sage);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links { 
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--cream);
    flex-direction: column;
    padding: 80px 24px 24px;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s var(--ease);
  }
  
  .nav-links.active {
    display: flex;
    transform: translateX(0);
  }
  
  .nav-link {
    width: 100%;
    padding: 12px;
    font-size: 16px;
  }
  
  .hero { padding: 120px var(--space-md) var(--space-2xl); }
  .category-grid { grid-template-columns: 1fr; }
  .hero-actions, .cta-actions { flex-direction: column; width: 100%; }
  .btn { width: 100%; justify-content: center; }
  .footer-content { flex-direction: column; text-align: center; }
  
  .sticky-widget {
    bottom: 16px;
    right: 16px;
    left: 16px;
    max-width: none;
  }
  
  .sticky-widget-content {
    flex-direction: column;
    text-align: center;
  }
  
  .sticky-widget-icon {
    margin: 0 auto;
  }
}

/* Utilities */
.text-gradient {
  background: linear-gradient(135deg, var(--accent-sage), var(--accent-terracotta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Sticky Widget */
.sticky-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  max-width: 360px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: var(--shadow-strong);
  animation: slideInUp 0.5s var(--ease);
}

.sticky-widget.hidden {
  display: none;
}

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

.sticky-widget-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border: none;
  background: var(--cream-dark);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--brown);
  transition: all 0.2s var(--ease);
}

.sticky-widget-close:hover {
  background: var(--charcoal);
  color: var(--cream);
}

.sticky-widget-content {
  display: flex;
  gap: 16px;
  align-items: start;
}

.sticky-widget-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--accent-sage), var(--accent-terracotta));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}

.sticky-widget-text h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--charcoal);
}

.sticky-widget-text p {
  font-size: 13px;
  color: var(--brown);
  margin: 0 0 12px;
  line-height: 1.5;
}

.sticky-widget-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--charcoal);
  color: var(--cream);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s var(--ease);
  width: 100%;
}

.sticky-widget-btn:hover {
  background: var(--charcoal-soft);
  transform: translateY(-1px);
  box-shadow: var(--shadow-medium);
  color: var(--cream);
}

/* Mobile Hamburger Menu */
.nav-hamburger {
  display: none;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  position: relative;
  z-index: 1001;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  margin: 5px 0;
  transition: all 0.3s var(--ease);
  border-radius: 2px;
}

.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.nav-mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 26, 26, 0.5);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.nav-mobile-overlay.active {
  opacity: 1;
}

@media (max-width: 768px) {
  .nav-hamburger {
    display: block;
  }
  
  .nav-mobile-overlay {
    display: block;
  }
}
