/* ==========================================================================
   Martinus Coaching - Custom CSS
   Colors: primary=#1a2744, gold=#c8a951, cream=#faf8f5
   ========================================================================== */

/* ---------- Base & Resets ---------- */
html {
  scroll-behavior: smooth;
}

::selection {
  background-color: rgba(200, 169, 81, 0.35);
  color: #1a2744;
}

::-moz-selection {
  background-color: rgba(200, 169, 81, 0.35);
  color: #1a2744;
}

/* ---------- Custom Scrollbar ---------- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #c8a951;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #b8993f;
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #c8a951 transparent;
}

/* ---------- Glass Card ---------- */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(26, 39, 68, 0.06);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.glass-card:hover {
  box-shadow: 0 8px 40px rgba(26, 39, 68, 0.12);
  transform: translateY(-2px);
}

/* ---------- Navigation Glass ---------- */
.nav-glass {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(26, 39, 68, 0.06);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav-glass.nav-scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 20px rgba(26, 39, 68, 0.1);
}

/* ---------- Gradient Text ---------- */
.gradient-text {
  background: linear-gradient(135deg, #1a2744 0%, #c8a951 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Hero ---------- */
.hero-gradient {
  background:
    linear-gradient(135deg, rgba(15, 26, 46, 0.90) 0%, rgba(26, 39, 68, 0.78) 60%, rgba(45, 64, 102, 0.65) 100%),
    url('/assets/images/hero-bg.png') center center / cover no-repeat;
}

/* ---------- Nav Links ---------- */
.nav-link {
  position: relative;
  padding: 0.5rem 0.75rem;
  font-weight: 500;
  color: #1a2744;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #c8a951;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #c8a951;
  transition: width 0.3s ease, left 0.3s ease;
}

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

/* ---------- Mobile Nav Link ---------- */
.mobile-nav-link {
  display: block;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(26, 39, 68, 0.08);
  color: #1a2744;
  font-weight: 500;
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.mobile-nav-link:hover {
  color: #c8a951;
  padding-left: 1.25rem;
}

/* ---------- Footer Social ---------- */
.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: background 0.3s ease, transform 0.3s ease;
}

.footer-social:hover {
  background: #c8a951;
  transform: scale(1.1);
}

/* ---------- Footer Link ---------- */
.footer-link {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #c8a951;
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 8px rgba(200, 169, 81, 0.3);
  }
  50% {
    box-shadow: 0 0 24px rgba(200, 169, 81, 0.6);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-slide-in {
  animation: slideIn 0.5s ease forwards;
}

.animate-pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* ---------- Blog Prose ---------- */
.blog-content {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #2d2d2d;
}

.blog-content h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a2744;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(200, 169, 81, 0.3);
}

.blog-content h3 {
  font-size: 1.375rem;
  font-weight: 600;
  color: #1a2744;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.blog-content p {
  margin-bottom: 1.25rem;
}

.blog-content ul,
.blog-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.blog-content ul {
  list-style-type: disc;
}

.blog-content ol {
  list-style-type: decimal;
}

.blog-content li {
  margin-bottom: 0.5rem;
}

.blog-content blockquote {
  border-left: 4px solid #c8a951;
  background: rgba(200, 169, 81, 0.06);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 0.5rem 0.5rem 0;
  font-style: italic;
  color: #1a2744;
}

.blog-content a {
  color: #c8a951;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.3s ease;
}

.blog-content a:hover {
  color: #1a2744;
}

.blog-content img {
  border-radius: 0.75rem;
  margin: 1.5rem 0;
}

.blog-content code {
  background: rgba(26, 39, 68, 0.06);
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.9em;
}

/* ---------- Form Inputs ---------- */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(26, 39, 68, 0.15);
  border-radius: 0.5rem;
  background: #fff;
  color: #1a2744;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: #c8a951;
  box-shadow: 0 0 0 3px rgba(200, 169, 81, 0.2);
}

.form-input::placeholder {
  color: rgba(26, 39, 68, 0.4);
}

/* ---------- Buttons ---------- */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  background: #c8a951;
  color: #fff;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: background 0.3s ease, transform 0.15s ease, box-shadow 0.3s ease;
}

.btn-gold:hover {
  background: #b8993f;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(200, 169, 81, 0.35);
}

.btn-gold:active {
  transform: translateY(0);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  background: transparent;
  color: #c8a951;
  font-weight: 600;
  border: 2px solid #c8a951;
  border-radius: 0.5rem;
  transition: background 0.3s ease, color 0.3s ease, transform 0.15s ease;
}

.btn-outline:hover {
  background: #c8a951;
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline:active {
  transform: translateY(0);
}

/* ---------- Blob Decoration ---------- */
.blob-decoration {
  position: absolute;
  border-radius: 9999px;
  filter: blur(80px);
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

.blob-decoration.blob-primary {
  background: radial-gradient(circle, #1a2744, transparent 70%);
}

.blob-decoration.blob-gold {
  background: radial-gradient(circle, #c8a951, transparent 70%);
}

/* ---------- Section Dividers ---------- */
.section-divider-wave {
  position: relative;
  overflow: hidden;
}

.section-divider-wave::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60'%3E%3Cpath fill='%23faf8f5' d='M0,40 C360,80 720,0 1440,40 L1440,60 L0,60 Z'/%3E%3C/svg%3E") no-repeat center bottom;
  background-size: cover;
}

.section-divider-curve {
  position: relative;
  overflow: hidden;
}

.section-divider-curve::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 80px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80'%3E%3Cpath fill='%23faf8f5' d='M0,80 Q720,0 1440,80 L1440,80 L0,80 Z'/%3E%3C/svg%3E") no-repeat center bottom;
  background-size: cover;
}

/* Dark section divider variant */
.section-divider-wave-dark::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60'%3E%3Cpath fill='%231a2744' d='M0,40 C360,80 720,0 1440,40 L1440,60 L0,60 Z'/%3E%3C/svg%3E");
}

/* ---------- Cookie Banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.cookie-visible {
  transform: translateY(0);
}

/* ---------- Reading Progress Bar ---------- */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #1a2744, #c8a951);
  z-index: 9999;
  transition: width 0.1s linear;
  width: 0%;
}

/* ---------- Scroll to Top ---------- */
#scroll-top {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#scroll-top.scroll-top-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

#scroll-top.scroll-top-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ---------- Utility: stagger delays ---------- */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* ---------- Responsive refinements ---------- */
@media (max-width: 768px) {
  .glass-card {
    padding: 1.25rem;
  }

  .blog-content {
    font-size: 1rem;
    line-height: 1.7;
  }

  .blog-content h2 {
    font-size: 1.5rem;
  }

  .blog-content h3 {
    font-size: 1.25rem;
  }
}
