/* SearchOptiMark Design System
   Agency Orange/Flame Red (#FF3B00, #FF6B00), Deep Navy (#0A1128, #0B132B), Clean White (#FFFFFF), Slate (#1E293B)
   Clean, high-converting aesthetic inspired by WebFX & Thrive Agency.
*/

:root {
  --color-flame: #FF1E1E;
  --color-flame-hover: #E01818;
  --color-orange: #FF5E14;
  --color-orange-hover: #E64E07;
  --color-navy: #0A1128;
  --color-navy-dark: #070C1E;
  --color-navy-card: #0F1A3A;
  --color-slate-dark: #1E293B;
  --color-slate-light: #F8FAFC;
  --color-border: #E2E8F0;
  --color-text-main: #0F172A;
  --color-text-muted: #64748B;
  --color-success: #10B981;
}

/* Reset & Base */
*, ::before, ::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-color: #E2E8F0;
}

/* Defensive SVG sizing */
svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  max-width: 100%;
}
svg.w-3\.5 { width: 0.875rem !important; height: 0.875rem !important; }
svg.w-4 { width: 1rem !important; height: 1rem !important; }
svg.w-5 { width: 1.25rem !important; height: 1.25rem !important; }
svg.w-6 { width: 1.5rem !important; height: 1.5rem !important; }
svg.w-8 { width: 2rem !important; height: 2rem !important; }

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: #0F172A;
  background-color: #F8FAFC;
}

body {
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: inherit;
  letter-spacing: -0.02em;
}

.text-white { color: #ffffff !important; }

/* Color Utility Classes */
.bg-navy-950 { background-color: #070C1E; }
.bg-navy-900 { background-color: #0A1128; }
.bg-navy-850 { background-color: #0F1A3A; }
.border-navy-800 { border-color: rgba(255, 255, 255, 0.1); }

/* Mega Dropdown Hover Handling */
.mega-dropdown-trigger:hover .mega-menu {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}

.mega-menu {
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateY(-8px);
}

/* Interactive Card Hover */
.agency-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.25s ease-in-out;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
}

.agency-card:hover {
  transform: translateY(-4px);
  border-color: #FF5E14;
  box-shadow: 0 20px 25px -5px rgba(255, 94, 20, 0.1), 0 8px 10px -6px rgba(255, 94, 20, 0.05);
}

/* Feature Badge */
.agency-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: rgba(255, 94, 20, 0.1);
  color: #FF5E14;
  border: 1px solid rgba(255, 94, 20, 0.2);
}

/* Interactive Calendar for Meeting Scheduler */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.375rem;
  text-align: center;
}

.calendar-header {
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748B;
  padding: 0.5rem 0;
  text-transform: uppercase;
}

.calendar-day {
  padding: 0.625rem 0;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  cursor: pointer;
  background: #FFFFFF;
  color: #1E293B;
}

.calendar-day:hover:not(.disabled) {
  background: #FFF7ED;
  border-color: #FF5E14;
  color: #FF5E14;
}

.calendar-day.selected {
  background: #FF5E14 !important;
  color: #FFFFFF !important;
  border-color: #FF5E14 !important;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(255, 94, 20, 0.35);
}

.calendar-day.disabled {
  background: #F1F5F9;
  color: #94A3B8;
  cursor: not-allowed;
  opacity: 0.6;
  text-decoration: line-through;
}

.calendar-day.empty {
  background: transparent;
  cursor: default;
}

/* Custom form inputs */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 0.625rem;
  font-size: 0.875rem;
  color: #0F172A;
  transition: all 0.2s ease;
  outline: none;
}

.form-input:focus {
  border-color: #FF5E14;
  box-shadow: 0 0 0 3px rgba(255, 94, 20, 0.15);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: linear-gradient(135deg, #FF5E14 0%, #FF1E1E 100%);
  color: #FFFFFF;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 15px -3px rgba(255, 94, 20, 0.3);
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 20px -3px rgba(255, 94, 20, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: #FFFFFF;
  color: #0F172A;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 0.75rem;
  border: 1px solid #CBD5E1;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-secondary:hover {
  background: #F8FAFC;
  border-color: #94A3B8;
  color: #FF5E14;
}

/* Copy HEX Toast */
#copy-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #0A1128;
  color: #FFFFFF;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  transform: translateY(10px);
  z-index: 9999;
}

#copy-toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
