/* css/globals.css */
:root {
  /* Premium Color Palette (Lovable Reference) */
  --primary: #15305B; /* Deep Navy Background */
  --primary-light: #1E3F75; /* Lighter Navy for cards */
  --secondary: #8B2635; /* Burgundy Red */
  --secondary-hover: #A82E40;
  --cream: #F4EFE6; /* Logo background block */
  --background: #FFFFFF; 
  --surface: #FFFFFF;
  --text-main: #1F2937;
  --text-muted: #6B7280;
  --text-blue-muted: #94A3B8; /* For the small caps above title */
  --text-light: #FFFFFF;
  --border: #E5E7EB;
  
  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif; 
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 4rem;
  --spacing-xxl: 8rem;
  
  /* Shadows & Layout - Softer, more modern */
  --shadow-sm: 0 2px 4px rgba(26, 47, 76, 0.05);
  --shadow-md: 0 8px 16px -4px rgba(26, 47, 76, 0.08), 0 4px 8px -4px rgba(26, 47, 76, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(26, 47, 76, 0.1), 0 10px 10px -5px rgba(26, 47, 76, 0.04);
  --shadow-premium: 0 30px 40px -10px rgba(26, 47, 76, 0.15), 0 15px 15px -10px rgba(26, 47, 76, 0.05);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px; /* Very modern rounded corners */
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 800ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--background);
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.15;
  color: var(--primary);
  margin-bottom: var(--spacing-md);
  letter-spacing: -0.01em;
}

.heading-serif {
  font-family: var(--font-serif);
  font-weight: 600;
}

.subtitle-caps {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-blue-muted);
  margin-bottom: var(--spacing-md);
  display: block;
}

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

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

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.section {
  padding: var(--spacing-xxl) 0;
}

.section-light {
  background-color: var(--surface);
}

.section-dark {
  background-color: var(--primary);
  color: var(--text-light);
}

.section-dark h1, .section-dark h2, .section-dark h3, .section-dark p {
  color: var(--text-light);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 1px solid transparent;
  text-align: center;
}

.btn-primary {
  background-color: var(--secondary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--secondary-hover);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(139, 38, 53, 0.3);
}

.btn-outline {
  background-color: transparent;
  border-color: rgba(255,255,255,0.3);
  color: white;
}

.btn-outline:hover {
  background-color: rgba(255,255,255,0.1);
  border-color: white;
  color: white;
  transform: translateY(-2px);
}

.btn-nav {
  background-color: var(--secondary);
  color: white;
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
}

.btn-nav:hover {
  background-color: var(--secondary-hover);
  transform: translateY(-2px);
}

/* Red Line Divider */
.red-divider {
  width: 60px;
  height: 3px;
  background-color: var(--secondary);
  margin: var(--spacing-md) auto var(--spacing-lg);
}

/* Cards */
.card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  border: 1px solid var(--border);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.card-navy {
  background: var(--primary-light);
  border-color: rgba(255,255,255,0.05);
  color: white;
}
.card-navy h3 {
  color: white;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.card-navy p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}
.card-navy:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 30px rgba(0,0,0,0.2);
}

/* Scroll Animations */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
  will-change: opacity, transform;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Flex & Grid */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
}
