/* 
 * ============================================================
 * KarateFlow Federation - Production Stylesheet
 * Theme: Executive / Professional / Martial Arts
 * Version: 1.0.0
 * ============================================================
 */

/* ------------------------------------------------------------
   1. IMPORTS & RESET
   ------------------------------------------------------------ */
@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  /* --- Brand Identity Colors --- */
  --color-red: #C8102E;
  /* Primary Red */
  --color-crimson: #A10F25;
  /* Deep Crimson (Hover) */
  --color-gold: #D4A017;
  /* Dragon Gold (Accent) */
  --color-gold-light: #F2C94C;
  /* Gold Light (Gradients) */

  /* --- Neutrals --- */
  --color-charcoal: #0E0E0E;
  /* Footer / Dark BG */
  --color-graphite: #1B1B1B;
  /* Headings / Nav Text */
  --color-silver: #BCBCBC;
  /* Subtitles / Borders */
  --color-grey: #D6D6D6;
  /* Section BG */
  --color-white: #FFFFFF;

  /* --- Layout Dimensions --- */
  --header-height: 90px;
  --border-radius: 2px;
  /* Sharp, executive corners */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Barlow', sans-serif;
  color: var(--color-graphite);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

/* ------------------------------------------------------------
   2. TYPOGRAPHY
   ------------------------------------------------------------ */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--color-charcoal);
}

.text-gold-gradient {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
  background-clip: text;
  /* Added standard property */
  -webkit-background-clip: text;
  /* Kept for compatibility */
  -webkit-text-fill-color: transparent;
}

.text-shadow-sm {
  text-shadow: 0 2px 10px rgba(14, 14, 14, 0.6);
}

/* ------------------------------------------------------------
   3. NAVIGATION & HEADER (The Executive Look)
   ------------------------------------------------------------ */

/* Main Header Container */
header {
  background-color: var(--color-white);
  transition: var(--transition);
}

/* Nav Links - Top Level */
.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  /* Spans full height of header */
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-graphite);
  transition: color 0.3s ease;
  padding: 0 4px;
}

/* Red Underline Animation */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background-color: var(--color-red);
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-red);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Dropdown Container */
.dropdown-menu {
  position: absolute;
  top: 100%;
  /* Pushes exactly below header */
  left: 0;
  min-width: 240px;
  background-color: var(--color-white);
  border-top: 4px solid var(--color-gold);
  /* THE GOLD LINE */
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
  padding: 8px 0;
}

/* Show Dropdown on Group Hover */
.group:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Dropdown Items */
.dropdown-item {
  display: block;
  padding: 12px 24px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-charcoal);
  border-left: 3px solid transparent;
  transition: var(--transition);
  text-decoration: none;
  background-color: transparent;
}

.dropdown-item:hover {
  background-color: #F9FAFB;
  color: var(--color-red);
  border-left-color: var(--color-red);
  padding-left: 28px;
  /* Slight shift to right */
}

/* Caret Rotation */
.group:hover .fa-caret-down {
  transform: rotate(180deg);
}

/* Sticky Header Modifier */
.header-scrolled {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--color-gold);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }

  to {
    transform: translateY(0);
  }
}

/* ------------------------------------------------------------
   4. COMPONENTS & UTILITIES
   ------------------------------------------------------------ */

/* Buttons */
.btn-primary {
  background-color: var(--color-red);
  color: var(--color-white);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary:hover {
  background-color: var(--color-charcoal);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(200, 16, 46, 0.3);
}

.btn-gold {
  background-color: var(--color-gold);
  color: var(--color-white);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.btn-gold:hover {
  background-color: var(--color-white);
  color: var(--color-gold);
  box-shadow: inset 0 0 0 2px var(--color-gold);
}

/* Background Patterns */
.bg-pattern-dots {
  background-image: radial-gradient(var(--color-graphite) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.05;
}

/* Images & Media */
.img-hover-zoom {
  overflow: hidden;
  border-radius: var(--border-radius);
}

.img-hover-zoom img {
  transition: transform 0.7s ease, filter 0.5s ease;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.group:hover .img-hover-zoom img {
  transform: scale(1.1);
}

/* Cards */
.card-executive {
  background: var(--color-white);
  border: 1px solid var(--color-grey);
  border-radius: var(--border-radius);
  transition: var(--transition);
  overflow: hidden;
  position: relative;
}

.card-executive:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
  border-color: transparent;
}

.card-executive::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: var(--color-gold);
  transition: width 0.4s ease;
}

.card-executive:hover::after {
  width: 100%;
}

/* ------------------------------------------------------------
   5. CMS / PROSE CONTENT (Legal, Blogs, About)
   ------------------------------------------------------------ */
.prose {
  color: #4B5563;
  max-width: 100%;
  line-height: 1.75;
}

.prose h1,
.prose h2,
.prose h3 {
  color: var(--color-graphite);
  margin-top: 2em;
  margin-bottom: 0.75em;
  line-height: 1.3;
}

.prose h2 {
  font-size: 1.75rem;
  border-bottom: 2px solid var(--color-grey);
  padding-bottom: 0.5rem;
}

.prose h3 {
  font-size: 1.25rem;
  color: var(--color-red);
}

.prose p {
  margin-bottom: 1.25rem;
}

.prose ul,
.prose ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.prose ul {
  list-style-type: disc;
}

.prose li::marker {
  color: var(--color-red);
  font-weight: bold;
}

.prose a {
  color: var(--color-red);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.prose a:hover {
  color: var(--color-gold);
  border-bottom-color: var(--color-gold);
}

.prose blockquote {
  border-left: 4px solid var(--color-red);
  background: #F9FAFB;
  padding: 1.5rem;
  font-style: italic;
  margin: 2rem 0;
}

/* ------------------------------------------------------------
   6. FOOTER STYLES
   ------------------------------------------------------------ */
.footer-link {
  color: #9CA3AF;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
}

.footer-link:hover {
  color: var(--color-gold);
  transform: translateX(5px);
}

/* ------------------------------------------------------------
   7. UTILITY HELPERS
   ------------------------------------------------------------ */
[x-cloak] {
  display: none !important;
}

.text-f-red {
  color: var(--color-red);
}

.text-f-gold {
  color: var(--color-gold);
}

.bg-f-red {
  background-color: var(--color-red);
}

.bg-f-charcoal {
  background-color: var(--color-charcoal);
}

/* Ken Burns Animation */
@keyframes kenBurns {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.15);
  }
}

.animate-ken-burns {
  animation: kenBurns 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive Overrides */
@media (max-width: 1024px) {
  :root {
    --header-height: 70px;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    border-top: none;
    border-left: 2px solid var(--color-grey);
    margin-left: 20px;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }
}