@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Caveat:wght@700&display=swap');

:root {
  --primary-color: #800802;
  --primary-hover: #a10d07;
  --primary-light: rgba(128, 8, 2, 0.06);
  --primary-glow: rgba(128, 8, 2, 0.15);
  
  /* Visual Variety Blue Color Variables */
  --blue-color: #2a599e;
  --blue-hover: #1e3f70;
  --blue-light: rgba(42, 89, 158, 0.06);
  --blue-glow: rgba(42, 89, 158, 0.15);
  
  --text-dark: #0f172a;
  --text-muted: #475569;
  --bg-light: #f8fafc;
  --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  --bg-card: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-inset: inset 0 2px 4px 0 rgba(0, 0, 0, 0.03);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg-gradient);
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  font-size: 16px;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

a:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  color: var(--primary-color);
  font-weight: 700;
  line-height: 1.25;
}

/* Layout Container */
.page-container {
  width: 100%;
  max-width: 960px;
  background: var(--bg-card);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-lg);
  margin: 24px auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(226, 232, 240, 0.8);
}

@media (max-width: 980px) {
  .page-container {
    margin: 0;
    border-radius: 0;
    border: none;
  }
}

/* Header & Nav Placement Redesign */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  background: #ffffff;
  border-bottom: 3px solid var(--primary-color);
  position: relative;
}

.site-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-header-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid var(--primary-color);
  object-fit: cover;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
  animation: logoPulse 4s infinite alternate;
}

.site-header-logo:hover {
  transform: scale(1.05);
}

.site-header-text {
  display: flex;
  flex-direction: column;
}

.site-header-brand {
  font-family: 'Caveat', cursive;
  font-size: 34px;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: -0.5px;
  line-height: 1.0;
}

.site-header-tagline {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.0px;
  margin-top: 1px;
}

/* Navigation Menu on the Right */
.site-nav {
  margin-left: auto;
}

.site-nav-list {
  display: flex;
  gap: 6px;
  list-style: none;
}

.site-nav-link {
  display: block;
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

/* Hover gets the Blue/Faded Blue treatment! */
.site-nav-link:hover {
  color: var(--blue-color);
  background: var(--blue-light);
  border-color: rgba(42, 89, 158, 0.15);
  text-decoration: none;
}

/* Active keeps the Red/Faded Red treatment! */
.site-nav-link.active {
  color: var(--primary-color);
  background: rgba(128, 8, 2, 0.08);
  border-color: rgba(128, 8, 2, 0.15);
}

/* Hamburger Toggle Menu Button */
.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
  margin-left: auto;
  padding: 0;
}

.mobile-nav-toggle span {
  width: 100%;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .site-header {
    padding: 16px 20px;
  }
  
  .mobile-nav-toggle {
    display: flex;
  }
  
  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    width: 220px;
    background: #ffffff;
    border-left: 1px solid #cbd5e1;
    border-bottom: 1px solid #cbd5e1;
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    border-radius: 0 0 0 var(--radius-md);
    padding: 16px 8px;
  }
  
  .site-nav.open {
    transform: translateX(0);
  }
  
  .site-nav-list {
    flex-direction: column;
    gap: 8px;
  }
  
  .site-nav-link {
    padding: 10px 16px;
    font-size: 15px;
  }
  
  .mobile-nav-toggle.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }
  
  .mobile-nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-nav-toggle.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }
}

@media (max-width: 480px) {
  .site-header-brand {
    font-size: 26px;
  }
  .site-header-tagline {
    font-size: 11px;
    letter-spacing: 0.5px;
  }
  .site-header-logo {
    width: 50px;
    height: 50px;
  }
}

/* Main Content Wrapper */
.main-content {
  flex: 1;
  padding: 32px;
}

@media (max-width: 580px) {
  .main-content {
    padding: 20px;
  }
}

/* Helper Components & Cards */
.intro-section {
  margin-bottom: 32px;
}

.content-heading {
  font-size: 24px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f1f5f9;
}

.modern-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.modern-card:hover {
  box-shadow: var(--shadow-md);
}

.announcement-card {
  border-left: 5px solid #d97706;
  background: #fffbeb;
  border-color: #f59e0b;
}

.announcement-card h3 {
  color: #b45309;
  margin-bottom: 8px;
}

.alert-card {
  border-left: 5px solid var(--primary-color);
  background: rgba(128, 8, 2, 0.02);
  border-color: var(--primary-color);
}

.alert-card h3 {
  color: var(--primary-color);
  margin-bottom: 12px;
}

/* YouTube Responsive Container */
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 2px solid #e2e8f0;
  margin-bottom: 24px;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none; /* Permanently block pointer events to hide native YouTube overlays */
}

/* Flexible Grid Systems */
.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

@media (max-width: 768px) {
  .grid-2col {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.service-list {
  list-style: none;
}

.service-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 15px;
}

.service-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 2px;
  color: #16a34a;
  font-weight: 800;
  font-size: 16px;
}

/* Rates Display Styles - Updated with Blue Variety background & border! */
.rates-block {
  background: var(--blue-light);
  border: 1px dashed var(--blue-color);
  border-radius: var(--radius-md);
  padding: 20px;
  font-size: 14px;
  color: #1e3a8a;
  margin-bottom: 28px;
}

.rates-block strong {
  color: var(--blue-color);
}

.rates-block a {
  color: var(--blue-color);
}

.rates-block a:hover {
  color: var(--blue-hover);
}

/* Double award display on contact */
.awards-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: 16px auto;
}

.award-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
  max-width: 100%;
}

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

.award-item img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Image Wrappers */
.media-img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid #cbd5e1;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.media-img:hover {
  opacity: 0.9;
}

.floated-img {
  float: right;
  margin: 0 0 16px 20px;
  max-width: 200px;
}

@media (max-width: 580px) {
  .floated-img {
    float: none;
    display: block;
    margin: 16px auto;
    max-width: 100%;
  }
}

/* Best of Yolo 2025 Grow Animation */
.yolo-grow-hover {
  transition: transform 0.3s ease;
}

.yolo-grow-hover:hover,
.yolo-grow-hover:active {
  animation: yoloGrow 3s ease-in-out infinite;
}

@keyframes yoloGrow {
  0% { transform: scale(1.0); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1.0); }
}

/* Signature */
.sig-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 32px;
  gap: 8px;
  text-align: center;
}

.sig-image {
  max-height: 80px;
  object-fit: contain;
}

.sig-date {
  font-size: 12px;
  color: var(--text-muted);
}

/* The Next Step Footer Component */
.next-step-section {
  background: #f1f5f9;
  border-top: 1px solid #cbd5e1;
  padding: 32px;
}

.next-step-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.next-step-header {
  background: #64748b;
  color: #ffffff;
  padding: 12px 24px;
  font-weight: 700;
  letter-spacing: 1px;
  text-align: center;
}

.next-step-body {
  padding: 24px;
}

.next-step-intro {
  font-size: 15px;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 24px;
}

.next-step-intro b {
  color: var(--primary-color);
}

.next-step-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  border-top: 1px solid #f1f5f9;
  padding-top: 24px;
}

@media (max-width: 680px) {
  .next-step-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.next-step-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
}

/* Match double text lines combined height */
.support-tool-layout {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  margin-bottom: 12px;
}

.support-tool-icon-img {
  height: 38px;
  width: 38px;
  object-fit: contain;
  flex-shrink: 0;
}

.support-tool-text-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.25;
}

.support-tool-title-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.support-tool-subtitle-text {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.next-step-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.mcp-image {
  max-height: 100px;
  object-fit: contain;
  margin-bottom: 8px;
  border-radius: 8px;
}

.next-step-btn {
  display: inline-block;
  background: var(--primary-color);
  color: #ffffff;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  font-size: 15px;
  border: 1px solid var(--primary-hover);
  text-decoration: none !important;
}

.next-step-btn:hover {
  background: var(--primary-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

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

/* Base Copyright Footer */
.base-footer {
  background: #cbd5e1;
  border-top: 1px solid #94a3b8;
  padding: 20px;
  text-align: center;
  font-size: 12px;
  color: #475569;
  line-height: 1.8;
}

.base-footer-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.base-footer-link {
  color: #334155;
  font-weight: 700;
}

.base-footer-link:hover {
  color: var(--primary-color);
}

/* Custom Interactive Animations */
.spin-cw-5:hover {
  animation: spin 0.25s linear 5;
}

.swing-l-r:hover {
  animation: swinging 10s ease-in-out infinite;
  transform-origin: 50% 0;
}

/* Contact Page Specialties */
.hours-badge {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
}

.hours-badge h3 {
  color: #16a34a;
  text-align: center;
  margin-bottom: 12px;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  color: #1e3a1e;
}

.hours-table td {
  padding: 8px 12px;
}

.hours-table tr:not(:last-child) {
  border-bottom: 1px solid rgba(22, 163, 74, 0.1);
}

.hours-table td:first-child {
  font-weight: 700;
}

.hours-table td:last-child {
  text-align: right;
}

.contact-address {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  display: block;
}

/* Fade In Shirt Animation */
.shirt-fade-container {
  position: relative;
  width: 280px;
  height: 320px;
  margin: 20px auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid #cbd5e1;
}

.shirt-fade-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: shirtFade 9s infinite;
  opacity: 0;
}

.shirt-fade-img:nth-child(2) {
  animation-delay: 3s;
}

.shirt-fade-img:nth-child(3) {
  animation-delay: 6s;
}

/* Pure CSS / JS Modals Styling */
.mbs-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.mbs-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.mbs-modal-content {
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  border: 1px solid #cbd5e1;
  animation: modalSlide 0.3s ease forwards;
}

@keyframes modalSlide {
  from { transform: translateY(20px); }
  to { transform: translateY(0); }
}

.mbs-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.mbs-modal-close:hover {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-hover);
}

.mbs-modal-body {
  padding: 32px;
}

/* Lightbox Modal Specifics */
.lightbox-modal-content {
  max-width: 800px;
  background: transparent;
  box-shadow: none;
  border: none;
  overflow: visible;
  text-align: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 4px solid #ffffff;
}

/* Animations */
@keyframes logoPulse {
  0% { box-shadow: 0 0 5px var(--primary-glow); }
  100% { box-shadow: 0 0 15px var(--primary-color); }
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

@keyframes swinging {
  0% { transform: rotate(0); }
  5% { transform: rotate(10deg); }
  10% { transform: rotate(-9deg); }
  15% { transform: rotate(8deg); }
  20% { transform: rotate(-7deg); }
  25% { transform: rotate(6deg); }
  30% { transform: rotate(-5deg); }
  35% { transform: rotate(4deg); }
  40% { transform: rotate(-3deg); }
  45% { transform: rotate(2deg); }
  50% { transform: rotate(0); }
  100% { transform: rotate(0); }
}

@keyframes shirtFade {
  0% { opacity: 0; }
  11% { opacity: 1; }
  33% { opacity: 1; }
  44% { opacity: 0; }
  100% { opacity: 0; }
}

/* Color Pulse text */
.color-awesome {
  animation: textColorPulse 20s infinite alternate;
}

@keyframes textColorPulse {
  0% { color: #1701d9; text-shadow: 0 0 1px rgba(23,1,217,0.1); }
  15% { color: #8e44ad; }
  30% { color: #1abc9c; }
  45% { color: #d35400; }
  60% { color: #34495e; }
  75% { color: #2980b9; }
  90% { color: #f1c40f; }
  100% { color: #f58eff; }
}

/* Custom Video Controls Bar */
.video-controls-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 38px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 10px;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-container:hover .video-controls-bar {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.video-control-btn {
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  font-size: 15px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background-color 0.2s, transform 0.1s;
}

.video-control-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.1);
}

.video-control-btn:active {
  transform: scale(0.95);
}

.video-progress-container {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  position: relative;
  cursor: pointer;
  border-radius: 2px;
  transition: height 0.15s ease;
}

.video-progress-container:hover {
  height: 6px;
}

.video-progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: #f97316; /* Mild orange color to match branding */
  border-radius: 2px;
  transition: width 0.1s linear;
}

.video-time-display {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  min-width: 80px;
  text-align: center;
  font-family: 'Outfit', sans-serif;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: var(--primary-color);
  color: #ffffff;
  border: 1px solid var(--primary-hover);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(128, 8, 2, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999999 !important;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.9);
  transition: opacity 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s, box-shadow 0.2s;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.back-to-top:hover {
  transform: translateY(-4px) scale(1.05);
  background: var(--primary-hover);
  box-shadow: 0 8px 16px rgba(128, 8, 2, 0.5);
}

.back-to-top:active {
  transform: translateY(-1px) scale(0.98);
}

.back-to-top svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  transition: transform 0.2s ease;
}

.back-to-top:hover svg {
  transform: translateY(-2px);
}
