/* ==============================================
   ELEGANT & MINIMAL - Custom CSS
   Tailwind Complement Styles
   ============================================== */

/* CSS Variables for Design System */
:root {
  /* Colors */
  --primary-color: #111827;
  --secondary-color: #6b7280;
  --background-color: #ffffff;
  --footer-bg-color: #000000;
  --button-color: #111827;
  --section-bg-1: #ffffff;
  --section-bg-2: #f9fafb;
  --section-bg-3: #ffffff;
  
  /* Accent Colors */
  --accent-warm: #d97706;
  --accent-cool: #0891b2;
  --text-light: #9ca3af;
  --text-muted: #6b7280;
  
  /* Typography */
  --font-serif: 'Playfair Display', 'Georgia', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Spacing Scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-pill: 9999px;
  
  /* Shadows */
  --shadow-subtle: 0 1px 3px 0 rgba(17, 24, 39, 0.05);
  --shadow-soft: 0 4px 6px -1px rgba(17, 24, 39, 0.05);
  --shadow-medium: 0 10px 15px -3px rgba(17, 24, 39, 0.08);
  --shadow-strong: 0 25px 50px -12px rgba(17, 24, 39, 0.15);
}

/* ==============================================
   BASE STYLES & TYPOGRAPHY
   ============================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--background-color);
  color: var(--primary-color);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography Hierarchy */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--primary-color);
  margin-bottom: var(--space-md);
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: var(--space-lg);
  position: relative;
}

h1::after {
  content: '';
  display: block;
  width: 4rem;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-warm), var(--accent-cool));
  margin: var(--space-md) 0;
  border-radius: 2px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--space-md);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: var(--space-sm);
}

p {
  margin-bottom: var(--space-md);
  color: var(--text-muted);
  max-width: 65ch;
}

.lead-text {
  font-size: 1.25rem;
  color: var(--secondary-color);
  font-weight: 400;
  line-height: 1.6;
}

/* Links */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

a:hover {
  color: var(--accent-warm);
}

a.underline-link {
  padding-bottom: 2px;
}

a.underline-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent-warm);
  transition: width 0.3s ease;
}

a.underline-link:hover::after {
  width: 100%;
}

/* ==============================================
   LAYOUT & SECTIONS
   ============================================== */

/* Full-width container override for Tailwind */
.container {
  max-width: none !important;
  width: 100% !important;
  padding-left: var(--space-md) !important;
  padding-right: var(--space-md) !important;
}

@media (min-width: 768px) {
  .container {
    padding-left: var(--space-lg) !important;
    padding-right: var(--space-lg) !important;
  }
}

/* Section Styling */
.section {
  padding: var(--space-3xl) 0;
  position: relative;
}

.section-alt {
  background-color: var(--section-bg-2);
}

.section-dark {
  background-color: var(--footer-bg-color);
  color: #ffffff;
}

.section-dark h1,
.section-dark h2,
.section-dark h3 {
  color: #ffffff;
}

.section-dark p {
  color: #d1d5db;
}

/* ==============================================
   COMPONENTS
   ============================================== */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-width: 140px;
}

.btn-primary {
  background-color: var(--button-color);
  color: #ffffff;
  box-shadow: var(--shadow-subtle);
}

.btn-primary:hover {
  background-color: #1f2937;
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
  color: #ffffff;
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-subtle);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: #ffffff;
}

.btn-ghost {
  background-color: transparent;
  color: var(--primary-color);
  padding: 0.5rem 1rem;
  min-width: auto;
}

.btn-ghost:hover {
  background-color: var(--section-bg-2);
  color: var(--accent-warm);
}

/* Cards */
.card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
  border: 1px solid rgba(17, 24, 39, 0.05);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-warm), var(--accent-cool));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.card:hover::before {
  opacity: 1;
}

.card-header {
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid rgba(107, 114, 128, 0.1);
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: var(--space-xs);
}

.card-subtitle {
  color: var(--text-muted);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Forms */
.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 500;
  color: var(--primary-color);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(107, 114, 128, 0.3);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: #ffffff;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent-warm);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) 0;
}

.nav-brand {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--space-lg);
}

.nav-link {
  color: var(--primary-color);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--accent-warm);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-warm);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  padding: var(--space-3xl) 0;
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-warm), var(--accent-cool));
  border-radius: 2px;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--secondary-color);
  margin-bottom: var(--space-xl);
  font-weight: 400;
}

/* ==============================================
   UTILITY CLASSES
   ============================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.grid { display: grid; }

/* ==============================================
   RESPONSIVE DESIGN
   ============================================== */

@media (max-width: 767px) {
  :root {
    --space-3xl: 4rem;
    --space-2xl: 3rem;
    --space-xl: 2rem;
  }
  
  .nav-menu {
    gap: var(--space-md);
  }
  
  .nav-link {
    font-size: 0.875rem;
  }
  
  .btn {
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
    min-width: 120px;
  }
  
  .card {
    padding: var(--space-md);
  }
  
  .hero {
    padding: var(--space-2xl) 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: var(--space-sm) !important;
    padding-right: var(--space-sm) !important;
  }
  
  .nav {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
  
  .nav-menu {
    flex-direction: column;
    gap: var(--space-sm);
  }
}

/* ==============================================
   SPECIAL EFFECTS & ANIMATIONS
   ============================================== */

/* Subtle fade-in animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Hover effects for interactive elements */
.interactive:hover {
  transform: translateY(-2px);
  transition: transform 0.3s ease;
}

/* Decorative elements */
.decorative-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-warm), var(--accent-cool));
  margin: var(--space-md) auto;
  border-radius: 1px;
}

/* ==============================================
   ACCESSIBILITY & FOCUS STATES
   ============================================== */

*:focus {
  outline: 2px solid var(--accent-warm);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .card {
    border: 2px solid var(--primary-color);
  }
  
  .btn-outline {
    border-width: 3px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}


/* Cookie Banner Additional Styles for Tailwind */
.cookie-banner-hover-effect:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

@media (prefers-reduced-motion: reduce) {
    .cookie-banner-hover-effect:hover {
        transform: none;
    }
}