/* ==========================================================================
   B-TheOne Marketing - Base Stylesheet
   ========================================================================== */

/* 1. Google Fonts 
   Loaded via <link> tags in the HTML <head> as per the brief. */

/* 2. CSS Custom Properties (Variables) */
:root {
  /* Colors */
  --color-deep-navy: #0e284d;
  --color-mid-navy: #163a70;
  --color-ice-blue: #8eb9ec;
  --color-light-blue: #dcecff;
  --color-white: #ffffff;
  --color-off-white: #f7f9fc;
  --color-text-dark: #1a1a2e;
  --color-text-mid: #4a5568;
  --color-border-subtle: #e2e8f0;

  /* Typography */
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  /* Spacing */
  --spacing-section-desktop: 120px;
  --spacing-section-mobile: 80px;
  --spacing-heading-body: 24px;
  --spacing-paragraph: 16px;

  /* Navigation */
  --nav-height: 76px;

  /* Typography Extras */
  --letter-spacing-tight: -0.0125em;

  /* Components: Borders & Shadows */
  --radius-sm: 6px;
  --radius-md: 8px;
  
  /* Very subtle shadows - Stripe level */
  --shadow-subtle: 0 4px 6px -1px rgba(14, 40, 77, 0.05), 0 2px 4px -1px rgba(14, 40, 77, 0.03);
  --shadow-hover: 0 10px 15px -3px rgba(14, 40, 77, 0.1), 0 4px 6px -2px rgba(14, 40, 77, 0.05);
  
  /* Transitions */
  --transition-fast: 200ms ease;
  --transition-gradient: 4s ease-in-out infinite alternate;
}

/* 3. Global Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-dark);
  background-color: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 4. Typography Base */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-text-dark);
  margin-bottom: var(--spacing-heading-body);
}

p {
  margin-bottom: var(--spacing-paragraph);
  color: var(--color-text-mid);
}

p:last-child {
  margin-bottom: 0;
}

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

/* 5. Utility Classes */
.text-center { text-align: center; }
.text-white { color: var(--color-white); }
.bg-deep-navy { background-color: var(--color-deep-navy); }
.bg-off-white { background-color: var(--color-off-white); }

/* Stripe-style slow gradient text animation for specific highlighted words */
.animate-gradient-text {
  background: linear-gradient(135deg, #8eb9ec 0%, #dcecff 40%, #163a70 100%);
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientSlow var(--transition-gradient);
}

@keyframes gradientSlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* 6. Base Button Patterns */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

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

.btn-primary:hover {
  background-color: var(--color-mid-navy);
}

.btn-secondary {
  background-color: var(--color-white);
  color: var(--color-deep-navy);
  border-color: var(--color-deep-navy);
}

.btn-secondary:hover {
  background-color: var(--color-light-blue);
}

/* 7. Base Card Patterns */
.card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* 8. Layout & Spacing Defaults */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding-top: var(--spacing-section-desktop);
  padding-bottom: var(--spacing-section-desktop);
}

@media (max-width: 768px) {
  .section {
    padding-top: var(--spacing-section-mobile);
    padding-bottom: var(--spacing-section-mobile);
  }
}

/* ==========================================================================
   9. Shared Navigation
   ========================================================================== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--color-white);
  border-bottom: 1px solid transparent;
  transition: all var(--transition-fast);
  padding: 14px 0;
}
header.scrolled {
  border-bottom: 1px solid var(--color-border-subtle);
  box-shadow: var(--shadow-subtle);
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo-nav img {
  height: 44px;
}
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-weight: 500;
  color: var(--color-text-dark);
  font-size: 1rem;
}
.nav-links a:hover {
  color: var(--color-deep-navy);
}
.nav-links .btn-primary {
  color: var(--color-white);
}
.nav-links .btn-primary:hover {
  color: var(--color-white);
}
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-text-dark);
}

/* ==========================================================================
   10. Shared Footer
   ========================================================================== */
footer {
  background-color: #0a1e3d;
  padding: 80px 24px 40px;
  color: var(--color-white);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 64px;
}
img.footer-logo {
  width: 200px;
  margin-bottom: 24px;
  filter: brightness(0) invert(1);
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-links h4 {
  color: var(--color-white);
  font-size: 1.125rem;
  margin-bottom: 8px;
}
.footer-links a,
.footer-links p {
  color: var(--color-ice-blue);
  transition: color var(--transition-fast);
}
.footer-links a:hover {
  color: var(--color-white);
}
.footer-bottom {
  margin-top: 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

/* ==========================================================================
   11. Gradient Text Animation Variants
   ========================================================================== */

/* Alt + Warm variants: same gradient and speed as primary for consistency */
.animate-gradient-text-alt,
.animate-gradient-text-warm {
  background: linear-gradient(135deg, #8eb9ec 0%, #dcecff 40%, #163a70 100%);
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientSlow var(--transition-gradient);
}

/* Accessibility: disable gradient animation for reduced-motion users */
@media (prefers-reduced-motion: reduce) {
  .animate-gradient-text,
  .animate-gradient-text-alt,
  .animate-gradient-text-warm {
    animation: none;
    background-position: 0% 50%;
  }
}

/* ==========================================================================
   12. Section Border Utility
   ========================================================================== */
.section-border-top {
  border-top: 1px solid var(--color-border-subtle);
}

/* ==========================================================================
   13. Shared Responsive (Navigation & Footer)
   ========================================================================== */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   14. Reduced Motion Accessibility
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
