/* Daedalus Advisory Services - Custom Styles */
/* Extends Tailwind CSS */

:root {
  /* Brand Colors - Premium Advisory Palette */
  --navy-900: #0a1628;
  --navy-800: #0f2744;
  --navy-700: #1a3a5c;
  --navy-600: #2a5080;
  --gold-500: #c9a227;
  --gold-400: #d4b445;
  --gold-300: #e3c96a;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-600: #475569;
  --slate-800: #1e293b;
  --white: #ffffff;
}

/* Typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-display {
  font-family: 'Playfair Display', Georgia, serif;
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Navigation */
.nav-link {
  position: relative;
  padding-bottom: 2px;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--gold-500);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Hero Section */
.hero-gradient {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 50%, var(--navy-700) 100%);
}

.hero-pattern {
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(201, 162, 39, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(201, 162, 39, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 60%);
}

/* Gold Accent Line */
.gold-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-400));
}

/* Section Styling */
.section-light {
  background-color: var(--slate-100);
}

.section-dark {
  background-color: var(--navy-900);
}

/* Card Styling */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(10, 22, 40, 0.12);
}

.service-card {
  border-top: 3px solid transparent;
  transition: all 0.3s ease;
}

.service-card:hover {
  border-top-color: var(--gold-500);
}

/* Case Study Cards */
.case-study-card {
  position: relative;
  overflow: hidden;
}

.case-study-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.case-study-card:hover::before {
  transform: scaleX(1);
}

/* Stat Blocks */
.stat-block {
  border-left: 2px solid var(--gold-500);
  padding-left: 1.5rem;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--navy-900);
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(201, 162, 39, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-300));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 162, 39, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.875rem 2rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold-500);
  border: 1px solid var(--gold-500);
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.btn-outline-gold:hover {
  background: var(--gold-500);
  color: var(--navy-900);
}

/* Testimonials */
.testimonial-card {
  position: relative;
  padding-left: 1.5rem;
}

.testimonial-card::before {
  content: '"';
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 4rem;
  color: var(--gold-500);
  position: absolute;
  top: -1rem;
  left: 0;
  line-height: 1;
  opacity: 0.5;
}

/* Footer */
footer a {
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--gold-500);
}

/* Client Portal Scaffold */
.portal-preview {
  background: linear-gradient(135deg, var(--slate-100) 0%, var(--white) 100%);
  border: 1px solid var(--slate-200);
}

/* Insight Cards */
.insight-card {
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.insight-card:hover {
  border-bottom-color: var(--gold-500);
}

.insight-tag {
  background-color: var(--navy-900);
  color: var(--gold-500);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  border-radius: 2px;
}

/* Form Styling */
input[type="text"],
input[type="email"],
textarea,
select {
  border: 1px solid var(--slate-200);
  border-radius: 4px;
  padding: 0.875rem 1rem;
  transition: all 0.3s ease;
  width: 100%;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}

/* Globe Animation (Hero) */
.globe-container {
  position: absolute;
  right: -10%;
  top: 50%;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  opacity: 0.15;
  background: radial-gradient(circle, transparent 30%, var(--navy-700) 31%, transparent 32%),
              radial-gradient(circle, transparent 60%, var(--navy-700) 61%, transparent 62%);
  background-size: 30px 30px;
  border-radius: 50%;
  animation: rotate-globe 60s linear infinite;
}

@keyframes rotate-globe {
  from { transform: translateY(-50%) rotate(0deg); }
  to { transform: translateY(-50%) rotate(360deg); }
}

/* Animated Stats */
@keyframes count-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-stat {
  animation: count-up 0.6s ease forwards;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .globe-container {
    display: none;
  }
  
  .hero-content {
    text-align: center;
  }
}

/* Page Transition */
.page-transition {
  animation: fade-in 0.4s ease;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll Reveal Classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
