/**
 * Team Mehrwert Landing Page - Custom Styles
 * Font: The Seasons (serif typeface)
 * Design: Clean, minimalist
 */

/* ========================================
   Font Face Declarations
   ======================================== */

/* The Seasons font has rendering issues with special characters and umlauts
   Using system font stack for better compatibility */

@font-face {
  font-family: 'The Seasons';
  src: url('../assets/fonts/fonnts.com-theseasons-reg.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0041-005A, U+0061-007A; /* Only basic Latin letters */
}

@font-face {
  font-family: 'The Seasons';
  src: url('../assets/fonts/fonnts.com-theseasons-lt.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0041-005A, U+0061-007A; /* Only basic Latin letters */
}

@font-face {
  font-family: 'The Seasons';
  src: url('../assets/fonts/fonnts.com-theseasons-bd.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0041-005A, U+0061-007A; /* Only basic Latin letters */
}

/* ========================================
   CSS Variables
   ======================================== */

:root {
  /* Colors - Minimalist palette */
  --color-primary: #1f2937;      /* Gray 800 */
  --color-secondary: #6b7280;    /* Gray 500 */
  --color-accent: #3b82f6;       /* Blue 500 */
  --color-background: #f9fafb;   /* Gray 50 */
  --color-white: #ffffff;
  --color-error: #ef4444;        /* Red 500 */
  --color-success: #10b981;      /* Green 500 */
  --color-border: #e5e7eb;       /* Gray 200 */
  
  /* Typography */
  --font-family: 'The Seasons', 'Georgia', 'Times New Roman', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, serif;
  --font-family-fallback: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  --font-size-base: 16px;
  --line-height-base: 1.6;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  
  /* Border radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
}

/* ========================================
   Base Styles
   ======================================== */

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

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-weight: 300;
  line-height: var(--line-height-base);
  color: var(--color-primary);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: normal;
  font-variant-ligatures: normal;
}

/* ========================================
   Typography
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.875rem);
}

p {
  margin-bottom: var(--spacing-sm);
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

/* ========================================
   Form Styles
   ======================================== */

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-label {
  display: block;
  font-weight: 400;
  margin-bottom: var(--spacing-xs);
  color: var(--color-primary);
}

/* Use fallback font for special characters */
.form-label .text-red-500,
.form-checkbox label,
p.text-sm {
  font-family: var(--font-family-fallback);
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 300;
  color: var(--color-primary);
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  font-feature-settings: normal;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input::placeholder {
  color: var(--color-secondary);
  opacity: 0.6;
}

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

.form-input.error:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-error {
  display: none;
  margin-top: var(--spacing-xs);
  font-size: 0.875rem;
  color: var(--color-error);
}

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

/* Checkbox styles */
.form-checkbox {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--spacing-md);
}

.form-checkbox input[type="checkbox"] {
  margin-top: 0.25rem;
  margin-right: var(--spacing-xs);
  width: 1.125rem;
  height: 1.125rem;
  cursor: pointer;
}

.form-checkbox label {
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.5;
  cursor: pointer;
}

/* Button styles */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 400;
  text-align: center;
  color: var(--color-white);
  background-color: var(--color-primary);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn:hover {
  background-color: var(--color-secondary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

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

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-loading {
  position: relative;
  color: transparent;
}

.btn-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: -0.625rem;
  margin-left: -0.625rem;
  border: 2px solid var(--color-white);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ========================================
   Message Styles
   ======================================== */

.message {
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  border-radius: var(--radius-md);
  font-weight: 400;
}

.message-success {
  color: #065f46;
  background-color: #d1fae5;
  border: 1px solid #6ee7b7;
}

.message-error {
  color: #991b1b;
  background-color: #fee2e2;
  border: 1px solid #fca5a5;
}

.message.hidden {
  display: none;
}

/* ========================================
   Honeypot (hidden spam protection)
   ======================================== */

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ========================================
   Special Character Handling
   ======================================== */

/* Use system font for asterisks and special characters to avoid rendering issues */
.text-red-500 {
  font-family: var(--font-family-fallback) !important;
}

/* ========================================
   Utility Classes
   ======================================== */

.hidden {
  display: none !important;
}

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

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 640px) {
  :root {
    --font-size-base: 14px;
  }
  
  .btn {
    width: 100%;
    padding: 1rem;
  }
}
