/* ===========================================
   ELEGANT & MINIMAL CSS - CUSTOM OVERRIDES
   Clean Corporate with Sophisticated Touch
   =========================================== */

/* CSS Variables for Consistent Theming */
:root {
  /* Brand Colors */
  --color-primary: #1e40af;
  --color-secondary: #64748b;
  --color-button: #f97316;
  --color-footer: #1e293b;
  
  /* Background Colors */
  --color-bg-primary: #ffffff;
  --color-bg-section-1: #f8fafc;
  --color-bg-section-2: #ffffff;
  --color-bg-section-3: #f1f5f9;
  
  /* Neutral Colors */
  --color-text-primary: #1e293b;
  --color-text-secondary: #64748b;
  --color-text-light: #94a3b8;
  --color-border: #e2e8f0;
  
  /* Typography */
  --font-heading: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Inter', 'system-ui', sans-serif;
  --font-accent: 'Cormorant Garamond', 'Georgia', 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: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-soft: 0 2px 10px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.12);
  
  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ===========================================
   BASE TYPOGRAPHY & ELEMENTS
   =========================================== */

/* Import elegant fonts if not already loaded */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600&family=Cormorant+Garamond:wght@400;500;600&display=swap');

/* Reset and Base Styles */
* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  line-height: 1.6;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  margin: 0;
  padding: 0;
  line-height: 1.7;
  letter-spacing: -0.01em;
  font-size: 16px;
}

/* Elegant Heading Hierarchy */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--color-text-primary);
  margin-top: 0;
  margin-bottom: var(--space-md);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 500;
  line-height: 1.3;
}

h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1.4;
  margin-bottom: var(--space-sm);
}

h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

/* Paragraph & Text Elements */
p {
  margin-bottom: var(--space-md);
  color: var(--color-text-secondary);
  font-size: 1.1rem;
  line-height: 1.8;
}

.text-large {
  font-size: 1.25rem;
  line-height: 1.7;
}

.text-small {
  font-size: 0.875rem;
  line-height: 1.6;
}

.lead-text {
  font-family: var(--font-accent);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

/* Elegant Links */
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition-smooth);
  position: relative;
}

a:hover {
  color: var(--color-button);
}

a.underlined {
  position: relative;
}

a.underlined::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: var(--color-button);
  transition: width 0.3s ease;
}

a.underlined:hover::after {
  width: 100%;
}

/* Lists */
ul, ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-lg);
}

li {
  margin-bottom: var(--space-xs);
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ===========================================
   LAYOUT COMPONENTS
   =========================================== */

/* Elegant Container System */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  position: relative;
}

.container-wide {
  max-width: 1400px;
}

.container-narrow {
  max-width: 800px;
}

/* Section Styling with Color Variations */
.section {
  padding: var(--space-3xl) 0;
  position: relative;
}

.section-alt {
  background-color: var(--color-bg-section-1);
}

.section-alt-2 {
  background-color: var(--color-bg-section-3);
}

.section-dark {
  background-color: var(--color-footer);
  color: #ffffff;
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5,
.section-dark h6 {
  color: #ffffff;
}

.section-dark p,
.section-dark li,
.section-dark .text-secondary {
  color: #cbd5e1;
}

/* Spacing Utilities */
.spacious {
  padding: var(--space-3xl) 0;
}

.comfortable {
  padding: var(--space-2xl) 0;
}

.cozy {
  padding: var(--space-xl) 0;
}

/* ===========================================
   ELEGANT BUTTON SYSTEM
   =========================================== */

/* Primary Button - Pill Shaped */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  text-align: center;
  min-width: 140px;
  letter-spacing: 0.025em;
}

.btn-primary {
  background-color: var(--color-button);
  color: #ffffff;
  border-color: var(--color-button);
  box-shadow: var(--shadow-subtle);
}

.btn-primary:hover {
  background-color: #ea580c;
  border-color: #ea580c;
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
  color: #ffffff;
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-subtle);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-text-primary);
  border-color: var(--color-border);
}

.btn-outline:hover {
  background-color: var(--color-bg-section-1);
  border-color: var(--color-secondary);
  color: var(--color-text-primary);
}

.btn-large {
  padding: var(--space-md) var(--space-2xl);
  font-size: 1.125rem;
  min-width: 180px;
}

.btn-small {
  padding: var(--space-xs) var(--space-md);
  font-size: 0.875rem;
  min-width: 100px;
}

/* ===========================================
   ELEGANT CARD SYSTEM
   =========================================== */

.card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
  border-color: var(--color-primary);
}

.card-dark {
  background-color: var(--color-footer);
  color: #ffffff;
  border-color: #334155;
}

.card-dark:hover {
  border-color: var(--color-button);
}

.card-minimal {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: none;
}

.card-minimal:hover {
  transform: none;
  box-shadow: var(--shadow-subtle);
  border-color: var(--color-primary);
}

.card-elevated {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-medium);
  border: none;
  position: relative;
}

.card-elevated::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-button));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* ===========================================
   FORM ELEMENTS
   =========================================== */

.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: var(--space-xs);
  font-size: 0.95rem;
}

.form-input {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text-primary);
  background-color: #ffffff;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: var(--transition-smooth);
  outline: none;
}

.form-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-input::placeholder {
  color: var(--color-text-light);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right var(--space-sm) center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: var(--space-2xl);
}

/* ===========================================
   TYPOGRAPHY COMPONENTS
   =========================================== */

.heading-accent {
  font-family: var(--font-accent);
  font-weight: 500;
  font-style: italic;
  color: var(--color-primary);
}

.text-primary {
  color: var(--color-primary) !important;
}

.text-secondary {
  color: var(--color-text-secondary) !important;
}

.text-muted {
  color: var(--color-text-light) !important;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-left {
  text-align: left;
}

/* ===========================================
   DECORATIVE ELEMENTS
   =========================================== */

.divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-button));
  margin: var(--space-lg) auto;
  border-radius: var(--radius-full);
}

.divider-small {
  width: 40px;
  height: 2px;
  background: var(--color-secondary);
  margin: var(--space-md) 0;
  border-radius: var(--radius-full);
}

.quote-mark {
  font-family: var(--font-accent);
  font-size: 4rem;
  color: var(--color-primary);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.highlight-box {
  background: linear-gradient(135deg, var(--color-bg-section-1), var(--color-bg-section-3));
  border-left: 4px solid var(--color-primary);
  padding: var(--space-lg);
  margin: var(--space-lg) 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* ===========================================
   NAVIGATION COMPONENTS
   =========================================== */

.nav-link {
  font-weight: 500;
  color: var(--color-text-primary);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
  position: relative;
}

.nav-link:hover {
  color: var(--color-primary);
  background-color: var(--color-bg-section-1);
}

.nav-link.active {
  color: var(--color-primary);
  background-color: rgba(30, 64, 175, 0.1);
}

.nav-underline {
  position: relative;
}

.nav-underline::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 50%;
  background-color: var(--color-button);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-underline:hover::after,
.nav-underline.active::after {
  width: 100%;
}

/* ===========================================
   ALERT & MESSAGE COMPONENTS
   =========================================== */

.alert {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  border-left: 4px solid;
  font-weight: 500;
}

.alert-success {
  background-color: #f0fdf4;
  border-color: #22c55e;
  color: #166534;
}

.alert-warning {
  background-color: #fffbeb;
  border-color: #f59e0b;
  color: #92400e;
}

.alert-error {
  background-color: #fef2f2;
  border-color: #ef4444;
  color: #991b1b;
}

.alert-info {
  background-color: #eff6ff;
  border-color: var(--color-primary);
  color: #1e40af;
}

/* ===========================================
   BADGES & LABELS
   =========================================== */

.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-xs) var(--space-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
}

.badge-primary {
  background-color: rgba(30, 64, 175, 0.1);
  color: var(--color-primary);
}

.badge-secondary {
  background-color: rgba(100, 116, 139, 0.1);
  color: var(--color-secondary);
}

.badge-accent {
  background-color: rgba(249, 115, 22, 0.1);
  color: var(--color-button);
}

/* ===========================================
   GRID & FLEX SYSTEM
   =========================================== */

.grid-elegant {
  display: grid;
  gap: var(--space-xl);
}

.grid-2-cols {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3-cols {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

/* ===========================================
   RESPONSIVE DESIGN
   =========================================== */

@media (max-width: 768px) {
  :root {
    --space-3xl: 4rem;
    --space-2xl: 3rem;
    --space-xl: 2rem;
  }
  
  .container {
    padding: 0 var(--space-sm);
  }
  
  .section {
    padding: var(--space-2xl) 0;
  }
  
  .card {
    padding: var(--space-lg);
  }
  
  .btn {
    min-width: 120px;
    padding: var(--space-sm) var(--space-md);
  }
  
  .btn-large {
    padding: var(--space-md) var(--space-lg);
    min-width: 160px;
  }
}

@media (max-width: 480px) {
  .grid-2-cols,
  .grid-3-cols {
    grid-template-columns: 1fr;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .card {
    padding: var(--space-md);
  }
}

/* ===========================================
   UTILITY CLASSES
   =========================================== */

.margin-none { margin: 0; }
.margin-sm { margin: var(--space-sm); }
.margin-md { margin: var(--space-md); }
.margin-lg { margin: var(--space-lg); }
.margin-xl { margin: var(--space-xl); }

.padding-none { padding: 0; }
.padding-sm { padding: var(--space-sm); }
.padding-md { padding: var(--space-md); }
.padding-lg { padding: var(--space-lg); }
.padding-xl { padding: var(--space-xl); }

.border-radius-none { border-radius: 0; }
.border-radius-sm { border-radius: var(--radius-sm); }
.border-radius-md { border-radius: var(--radius-md); }
.border-radius-lg { border-radius: var(--radius-lg); }
.border-radius-full { border-radius: var(--radius-full); }

.shadow-subtle { box-shadow: var(--shadow-subtle); }
.shadow-soft { box-shadow: var(--shadow-soft); }
.shadow-medium { box-shadow: var(--shadow-medium); }

.opacity-low { opacity: 0.6; }
.opacity-medium { opacity: 0.8; }

.cursor-pointer { cursor: pointer; }
.cursor-default { cursor: default; }

.overflow-hidden { overflow: hidden; }
.overflow-visible { overflow: visible; }

/* ===========================================
   ANIMATIONS & TRANSITIONS
   =========================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

/* ===========================================
   PRINT STYLES
   =========================================== */

@media print {
  .btn,
  .card,
  .nav-link,
  .alert {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
  }
  
  a {
    text-decoration: underline;
  }
  
  .section-dark {
    background: none !important;
    color: #000 !important;
  }
}

/* ===========================================
   ACCESSIBILITY ENHANCEMENTS
   =========================================== */

.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;
}

.focus-visible:focus {
  outline: 2px solid var(--color-button);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .card {
    border: 2px solid var(--color-text-primary);
  }
  
  .btn {
    border-width: 3px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* 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;
    }
}