/* ============================================
   ELEGANT & MINIMAL - Custom CSS
   Bootstrap 5 Complementary Styles
   ============================================ */

/* CSS Custom Properties - Theme Variables */
:root {
  /* Brand Colors */
  --primary-dark-blue: #002147;
  --secondary-dark-gray: #333333;
  --footer-dark: #1a1a1a;
  --section-light-gray: #f4f4f4;
  --pure-white: #ffffff;
  
  /* Extended Palette */
  --accent-blue: #1e3a8a;
  --light-blue: #e6f2ff;
  --text-gray: #666666;
  --text-light-gray: #999999;
  --border-light: #e5e5e5;
  --border-medium: #cccccc;
  
  /* Typography */
  --font-serif: 'Playfair Display', 'Georgia', serif;
  --font-sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  
  /* Spacing & Layout */
  --section-padding: 5rem 0;
  --container-padding: 0 1.5rem;
  --border-radius-pill: 9999px;
  --border-radius-small: 8px;
  --border-radius-medium: 16px;
  
  /* Shadows */
  --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-strong: 0 10px 25px rgba(0, 0, 0, 0.15);
  
  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-quick: all 0.15s ease-out;
}

/* ============================================
   BASE STYLES & TYPOGRAPHY
   ============================================ */

/* Body & HTML Base */
html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--pure-white);
  color: var(--secondary-dark-gray);
  font-family: var(--font-sans);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Enhanced Typography Hierarchy */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-dark-blue);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 2rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.75rem;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 1.5rem;
}

h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--secondary-dark-gray);
  line-height: 1.3;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.5rem;
  color: var(--text-gray);
  font-size: 1.1rem;
  line-height: 1.8;
}

a {
  color: var(--primary-dark-blue);
  text-decoration: none;
  transition: var(--transition-quick);
  position: relative;
}

a:hover {
  color: var(--accent-blue);
}

/* Underlined Links (Elegant Style) */
.link-underline {
  position: relative;
  font-weight: 500;
}

.link-underline::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: var(--primary-dark-blue);
  transition: width 0.3s ease;
}

.link-underline:hover::after {
  width: 100%;
}

/* ============================================
   LAYOUT & CONTAINER ENHANCEMENTS
   ============================================ */

/* Enhanced Bootstrap Container */
.container {
  padding: var(--container-padding);
  max-width: 1200px;
}

.container-fluid {
  padding: 0;
}

/* Custom Section Styling */
.section {
  padding: var(--section-padding);
  position: relative;
}

.section-light {
  background-color: var(--section-light-gray);
}

.section-dark {
  background-color: var(--footer-dark);
  color: var(--pure-white);
}

.section-dark h1,
.section-dark h2,
.section-dark h3 {
  color: var(--pure-white);
}

.section-dark p {
  color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   CUSTOM BUTTON VARIANTS
   ============================================ */

/* Pill-shaped Primary Button */
.btn-elegant {
  background-color: var(--primary-dark-blue);
  color: var(--pure-white);
  border: none;
  border-radius: var(--border-radius-pill);
  padding: 0.875rem 2.5rem;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.025em;
  text-transform: none;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-subtle);
  position: relative;
  overflow: hidden;
}

.btn-elegant:hover {
  background-color: var(--accent-blue);
  color: var(--pure-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn-elegant:active {
  transform: translateY(0);
  box-shadow: var(--shadow-subtle);
}

/* Secondary Pill Button */
.btn-secondary-elegant {
  background-color: transparent;
  color: var(--primary-dark-blue);
  border: 2px solid var(--primary-dark-blue);
  border-radius: var(--border-radius-pill);
  padding: 0.75rem 2.25rem;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.btn-secondary-elegant:hover {
  background-color: var(--primary-dark-blue);
  color: var(--pure-white);
  transform: translateY(-1px);
}

/* Ghost Button */
.btn-ghost {
  background-color: transparent;
  color: var(--pure-white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--border-radius-pill);
  padding: 0.75rem 2rem;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.btn-ghost:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--pure-white);
}

/* ============================================
   CUSTOM CARD COMPONENTS
   ============================================ */

.card-elegant {
  background: var(--pure-white);
  border: none;
  border-radius: var(--border-radius-medium);
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
  overflow: hidden;
  position: relative;
}

.card-elegant:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

.card-elegant .card-header {
  background: linear-gradient(135deg, var(--primary-dark-blue) 0%, var(--accent-blue) 100%);
  color: var(--pure-white);
  border: none;
  padding: 2rem;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.5rem;
}

.card-elegant .card-body {
  padding: 2.5rem;
}

.card-elegant .card-footer {
  background-color: transparent;
  border-top: 1px solid var(--border-light);
  padding: 1.5rem 2.5rem;
}

/* Feature Card with Icon */
.feature-card {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--pure-white);
  border-radius: var(--border-radius-medium);
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
  border: 1px solid var(--border-light);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
  border-color: var(--primary-dark-blue);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-dark-blue), var(--accent-blue));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  color: var(--pure-white);
  font-size: 2rem;
}

/* ============================================
   NAVIGATION ENHANCEMENTS
   ============================================ */

.navbar-elegant {
  background-color: var(--pure-white);
  box-shadow: var(--shadow-subtle);
  padding: 1rem 0;
  transition: var(--transition-smooth);
}

.navbar-brand {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--primary-dark-blue) !important;
}

.nav-link {
  font-weight: 500;
  color: var(--secondary-dark-gray) !important;
  margin: 0 0.5rem;
  padding: 0.5rem 1rem !important;
  border-radius: var(--border-radius-pill);
  transition: var(--transition-quick);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-dark-blue) !important;
  background-color: var(--light-blue);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
  background: linear-gradient(135deg, var(--pure-white) 0%, var(--light-blue) 100%);
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e6f2ff" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: clamp(3rem, 6vw, 5rem);
  margin-bottom: 2rem;
  background: linear-gradient(135deg, var(--primary-dark-blue), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-gray);
  margin-bottom: 3rem;
  max-width: 600px;
}

/* ============================================
   FOOTER STYLES
   ============================================ */

.footer-elegant {
  background-color: var(--footer-dark);
  color: var(--pure-white);
  padding: 4rem 0 2rem;
}

.footer-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--pure-white);
}

.footer-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition-quick);
  display: block;
  margin-bottom: 0.75rem;
}

.footer-link:hover {
  color: var(--pure-white);
  padding-left: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  margin-top: 3rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   FORM ENHANCEMENTS
   ============================================ */

.form-elegant .form-control {
  border: 2px solid var(--border-light);
  border-radius: var(--border-radius-small);
  padding: 1rem 1.25rem;
  font-size: 1rem;
  transition: var(--transition-quick);
  background-color: var(--pure-white);
}

.form-elegant .form-control:focus {
  border-color: var(--primary-dark-blue);
  box-shadow: 0 0 0 0.2rem rgba(0, 33, 71, 0.15);
  outline: none;
}

.form-elegant .form-label {
  font-weight: 600;
  color: var(--secondary-dark-gray);
  margin-bottom: 0.75rem;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Text Utilities */
.text-elegant {
  color: var(--text-gray);
  line-height: 1.8;
}

.text-accent {
  color: var(--primary-dark-blue);
  font-weight: 600;
}

/* Spacing Utilities */
.py-elegant {
  padding: 5rem 0;
}

.px-elegant {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Background Utilities */
.bg-light-elegant {
  background-color: var(--section-light-gray);
}

.bg-primary-elegant {
  background: linear-gradient(135deg, var(--primary-dark-blue), var(--accent-blue));
  color: var(--pure-white);
}

/* Border Utilities */
.border-elegant {
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-medium);
}

.border-accent {
  border: 2px solid var(--primary-dark-blue);
  border-radius: var(--border-radius-medium);
}

/* ============================================
   ANIMATIONS & MICRO-INTERACTIONS
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.pulse-hover:hover {
  animation: pulse 0.3s ease-in-out;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Large Desktop */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .hero-section {
    padding: 10rem 0;
  }
}

/* Tablet */
@media (max-width: 991.98px) {
  :root {
    --section-padding: 4rem 0;
  }
  
  .hero-section {
    padding: 6rem 0;
  }
  
  .card-elegant .card-body {
    padding: 2rem;
  }
  
  .feature-card {
    padding: 2.5rem 1.5rem;
  }
}

/* Mobile */
@media (max-width: 767.98px) {
  :root {
    --section-padding: 3rem 0;
    --container-padding: 0 1rem;
  }
  
  .hero-section {
    padding: 4rem 0;
    text-align: center;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .btn-elegant,
  .btn-secondary-elegant {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .card-elegant .card-body {
    padding: 1.5rem;
  }
  
  .feature-card {
    margin-bottom: 2rem;
  }
  
  .footer-elegant {
    text-align: center;
  }
}

/* Small Mobile */
@media (max-width: 575.98px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .hero-section {
    padding: 3rem 0;
  }
  
  .feature-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  .navbar-elegant,
  .btn-elegant,
  .btn-secondary-elegant,
  .btn-ghost {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
  
  .card-elegant {
    border: 1px solid #ccc;
    box-shadow: none;
  }
}


/* Cookie Banner Additional Styles for Bootstrap */
.cookie-banner-custom {
    z-index: 1060;
    backdrop-filter: blur(10px);
}

.cookie-banner-custom .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}