/* ============================================
   HORIZON XP CUSTOM STYLES
   Bold & Tactical Design Theme
   ============================================ */

/* ============================================
   COLOR SCHEME - Tactical & Bold
   ============================================ */
:root {
  --tactical-dark: #1a1a1a;
  --tactical-charcoal: #2d2d2d;
  --tactical-gray: #3a3a3a;
  --accent-orange: #ff6b35;
  --accent-orange-dark: #e85a28;
  --text-light: #f5f5f5;
  --text-gray: #b0b0b0;
  --border-tactical: #404040;
  --shadow-tactical: rgba(0, 0, 0, 0.4);
}

/* ============================================
   TYPOGRAPHY IMPROVEMENTS
   ============================================ */

/* Enhanced heading hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700 !important;
  letter-spacing: -0.02em;
  line-height: 1.2 !important;
}

h1 {
  font-size: 3rem !important;
  margin-bottom: 1.5rem !important;
}

h2 {
  font-size: 2.25rem !important;
  margin-top: 2.5rem !important;
  margin-bottom: 1.25rem !important;
}

h3 {
  font-size: 1.75rem !important;
  margin-top: 2rem !important;
}

/* Improved body text */
.serif, .nested-copy-line-height {
  font-size: 1.125rem !important;
  line-height: 1.8 !important;
  color: #2d2d2d;
}

/* Bold links with tactical accent */
a {
  transition: all 0.3s ease;
  font-weight: 500;
}

a:not(.no-underline) {
  text-decoration-color: var(--accent-orange);
  text-decoration-thickness: 2px;
}

a:hover {
  color: var(--accent-orange) !important;
  transform: translateX(2px);
}

/* ============================================
   NAVIGATION - Bold & Tactical
   ============================================ */

nav {
  background: linear-gradient(135deg, var(--tactical-dark) 0%, var(--tactical-charcoal) 100%) !important;
  box-shadow: 0 4px 12px var(--shadow-tactical);
  border-bottom: 3px solid var(--accent-orange);
  padding: 1.25rem 1.5rem !important;
}

nav a {
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.95rem !important;
  position: relative;
  padding-bottom: 4px;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-orange);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

nav .white-90:hover {
  color: var(--accent-orange) !important;
  transform: none !important;
}

/* Logo styling */
nav img {
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease;
}

nav img:hover {
  transform: scale(1.05);
}

/* ============================================
   HOMEPAGE & CONTENT CARDS
   ============================================ */

/* Enhanced post summaries */
.relative.w-100.mb4 {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border-left: 4px solid var(--accent-orange);
}

.relative.w-100.mb4:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
  border-left-width: 6px;
}

/* Featured images in cards */
.relative.w-100.mb4 img {
  transition: transform 0.3s ease;
}

.relative.w-100.mb4:hover img {
  transform: scale(1.05);
}

/* ============================================
   BUTTONS & CALL-TO-ACTIONS
   ============================================ */

/* Tactical button styling */
.bg-mid-gray,
input[type="submit"],
button {
  background: linear-gradient(135deg, var(--tactical-charcoal) 0%, var(--tactical-gray) 100%) !important;
  border: 2px solid var(--border-tactical) !important;
  color: var(--text-light) !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.875rem 2rem !important;
  border-radius: 4px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px var(--shadow-tactical);
}

.bg-mid-gray:hover,
input[type="submit"]:hover,
button:hover {
  background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-orange-dark) 100%) !important;
  border-color: var(--accent-orange) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4) !important;
}

/* ============================================
   CONTACT FORM - Tactical Design
   ============================================ */

.black-80 label {
  color: var(--tactical-dark) !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem !important;
}

.black-80 input,
.black-80 textarea {
  border: 2px solid #e0e0e0 !important;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-size: 1rem !important;
}

.black-80 input:focus,
.black-80 textarea:focus {
  outline: none !important;
  border-color: var(--accent-orange) !important;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
  background: white !important;
}

/* ============================================
   ARTICLE PAGES
   ============================================ */

article header {
  border-bottom: 3px solid var(--accent-orange);
  padding-bottom: 2rem !important;
  margin-bottom: 2rem !important;
}

article .instapaper_ignoref {
  color: var(--accent-orange) !important;
  font-weight: 800 !important;
  letter-spacing: 0.1em;
  font-size: 0.875rem !important;
}

/* Featured images on posts */
article header img {
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border: 4px solid white;
  outline: 2px solid var(--accent-orange);
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  background: linear-gradient(135deg, var(--tactical-dark) 0%, var(--tactical-charcoal) 100%) !important;
  border-top: 3px solid var(--accent-orange);
  padding: 3rem 1.5rem !important;
}

footer .white-90,
footer .white-80 {
  color: var(--text-gray) !important;
}

footer a:hover {
  color: var(--accent-orange) !important;
}

/* ============================================
   HOMEPAGE HERO
   ============================================ */

.measure-wide {
  max-width: 48rem !important;
}

.center.measure-wide.lh-copy {
  background: white;
  padding: 3rem;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  margin-top: 2rem;
  margin-bottom: 2rem;
  border-left: 6px solid var(--accent-orange);
}

/* ============================================
   SECTION HEADERS
   ============================================ */

main h1.flex-none {
  font-size: 2.5rem !important;
  font-weight: 800 !important;
  color: var(--tactical-dark);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  padding-bottom: 1rem;
  border-bottom: 4px solid var(--accent-orange);
  margin-bottom: 2rem !important;
}

/* ============================================
   SPACING IMPROVEMENTS
   ============================================ */

main.pb7 {
  padding-bottom: 4rem !important;
  min-height: 60vh;
}

.pa3.pa4-ns {
  padding: 2rem !important;
}

@media screen and (min-width: 60em) {
  .pa3.pa4-ns {
    padding: 3rem !important;
  }
}

/* ============================================
   RESPONSIVE TYPOGRAPHY
   ============================================ */

@media screen and (max-width: 60em) {
  h1 {
    font-size: 2.25rem !important;
  }

  h2 {
    font-size: 1.875rem !important;
  }

  .serif, .nested-copy-line-height {
    font-size: 1.0625rem !important;
  }
}

/* ============================================
   UTILITY ENHANCEMENTS
   ============================================ */

/* Improved shadows */
.hover-shadow:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
}

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

/* Selection color */
::selection {
  background: var(--accent-orange);
  color: white;
}

/* Focus states for accessibility */
*:focus-visible {
  outline: 2px solid var(--accent-orange);
  outline-offset: 2px;
}
