/* Denver Garage Door - Agency Grade Master Stylesheet */
:root {
  --brand-black: #111111;
  --brand-red: #DC2626;
  --accent-red: #EF4444;
  --dark-gray: #374151;
  --light-gray: #F8FAFC;
  --border-gray: #E5E7EB;
}

html {
  scroll-behavior: smooth;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #111111;
  background-color: #0F172A;
  -webkit-font-smoothing: antialiased;
}

/* Font Display Swap for FontAwesome Webfonts */
@font-face {
  font-family: 'Font Awesome 6 Free';
  font-display: swap;
}
@font-face {
  font-family: 'Font Awesome 6 Brands';
  font-display: swap;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #0F172A;
}
::-webkit-scrollbar-thumb {
  background: #DC2626;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #EF4444;
}

/* Glassmorphism & Backdrop Blur */
.glass-nav {
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(229, 231, 235, 0.8);
}

/* Micro Interactions & Hover Animations */
.hover-lift {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.15);
}

/* Floating Mobile Action Button */
.mobile-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
}

/* Accordion Styling */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out;
}
.accordion-item.active .accordion-content {
  max-height: 500px;
}
.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

/* Custom Checkbox & Form Controls */
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #DC2626 !important;
}

/* High Contrast Agency Grade Internal Links & Helpful Resources Section Styling */
.internal-links-section,
.sa-related-links,
.svc-related-links,
.comm-related-links,
.page-related-links,
.related-services {
  background-color: #0F172A !important;
  border: 1px solid #1E293B !important;
  border-radius: 1rem !important;
  padding: 2rem 1.5rem !important;
  margin: 2.5rem auto !important;
  max-width: 80rem !important;
  width: calc(100% - 2rem) !important;
  color: #F8FAFC !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5) !important;
  box-sizing: border-box !important;
}

.internal-links-section > div[style*="grid"],
.sa-related-links > div[style*="grid"],
.svc-related-links > div[style*="grid"],
.comm-related-links > div[style*="grid"],
.page-related-links > div[style*="grid"],
.related-services > div[style*="grid"] {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 1.5rem 2rem !important;
}

@media (max-width: 768px) {
  .internal-links-section > div[style*="grid"],
  .sa-related-links > div[style*="grid"],
  .svc-related-links > div[style*="grid"],
  .comm-related-links > div[style*="grid"],
  .page-related-links > div[style*="grid"],
  .related-services > div[style*="grid"] {
    grid-template-columns: 1fr !important;
  }
}

.internal-links-section h2,
.internal-links-section h3,
.sa-related-links h2,
.sa-related-links h3,
.svc-related-links h2,
.svc-related-links h3,
.comm-related-links h2,
.comm-related-links h3,
.page-related-links h2,
.page-related-links h3,
.related-services h2,
.related-services h3 {
  color: #FFFFFF !important;
  font-weight: 700 !important;
  border-bottom: 2px solid #DC2626 !important;
  padding-bottom: 0.5rem !important;
  margin-bottom: 1.25rem !important;
  display: inline-block !important;
  width: auto !important;
  max-width: 100% !important;
}

.internal-links-section h2,
.sa-related-links h2,
.svc-related-links h2,
.comm-related-links h2,
.page-related-links h2,
.related-services h2 {
  display: block !important;
}

.sa-related-links ul li,
.svc-related-links ul li,
.comm-related-links ul li,
.page-related-links ul li,
.related-services ul li,
.internal-links-section ul li {
  margin-bottom: 0.4rem;
}

.internal-links-section a,
.sa-related-links a,
.svc-related-links a,
.comm-related-links a,
.page-related-links a,
.related-services a {
  color: #93C5FD !important;
  text-decoration: none !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  transition: all 0.2s ease-in-out !important;
}

.internal-links-section a:hover,
.sa-related-links a:hover,
.svc-related-links a:hover,
.comm-related-links a:hover,
.page-related-links a:hover,
.related-services a:hover {
  color: #FFFFFF !important;
  text-decoration: underline !important;
}

/* ---------------------------------------------------------------------------
   Missing Tailwind utilities (not in compiled tailwind.min.css)
   --------------------------------------------------------------------------- */
.w-11 { width: 2.75rem; }
.h-11 { height: 2.75rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2\.5 { gap: 0.625rem; }
.py-14 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.pt-3 { padding-top: 0.75rem; }
.pt-10 { padding-top: 2.5rem; }
.items-stretch { align-items: stretch; }
.border-red-500\/25 { border-color: rgb(239 68 68 / 0.25); }
@media (min-width: 640px) {
  .sm\:py-14 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .sm\:py-16 { padding-top: 4rem; padding-bottom: 4rem; }
  .sm\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
  .sm\:space-y-12 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-y-reverse: 0;
    margin-top: calc(3rem * calc(1 - var(--tw-space-y-reverse)));
    margin-bottom: calc(3rem * var(--tw-space-y-reverse));
  }
}
@media (min-width: 1024px) {
  .lg\:gap-6 { gap: 1.5rem; }
  .lg\:gap-7 { gap: 1.75rem; }
}

/* ---------------------------------------------------------------------------
   Section spacing system — consistent vertical rhythm across hubs
   --------------------------------------------------------------------------- */
.hub-section {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}
@media (min-width: 640px) {
  .hub-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

.hub-section-inner {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
@media (min-width: 640px) {
  .hub-section-inner { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 1024px) {
  .hub-section-inner { padding-left: 2rem; padding-right: 2rem; gap: 2.5rem; }
}

.hub-section-intro {
  max-width: 42rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.hub-section-intro p {
  margin: 0;
  line-height: 1.7;
}

.hub-feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: stretch;
}
@media (min-width: 768px) {
  .hub-feature-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

.hub-feature-card {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid #1e293b;
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  height: 100%;
  box-sizing: border-box;
}
@media (min-width: 640px) {
  .hub-feature-card { padding: 1.75rem; gap: 1rem; }
}

.hub-feature-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: rgb(239 68 68 / 0.1);
  border: 1px solid rgb(239 68 68 / 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #ef4444;
  font-size: 1.125rem;
}

.hub-feature-card h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
}

.hub-feature-card p {
  margin: 0;
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.65;
  color: #cbd5e1;
}

/* Service catalog card footers — stacked, no overlap */
.svc-card-footer {
  margin-top: auto;
  padding: 0.75rem 1.25rem 1.25rem;
  border-top: 1px solid rgb(30 41 59 / 0.8);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.svc-card-footer .svc-card-label {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f87171;
}
.svc-card-footer a {
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  transition: color 0.15s ease;
}
.svc-card-footer a:hover {
  color: #f87171;
}
