/**
 * DarkHoster Extended Homepage Sections Stylesheet
 *
 * Provides dedicated styles and complete responsive layout utilities for:
 * - VPS & Cloud Infrastructure Section
 * - One Account Management Portal Mockup
 * - Business & Enterprise Services Section
 * - Zero-Downtime Migration Section
 * - Defensive Security Architecture Section
 * - Technical FAQ Accordion Section
 * - Final Call to Action Section
 * - Optical Luminous Section Dividers
 *
 * @package DarkHoster
 */

/* ==========================================================================
   1. Essential Layout & Utility Engine for Homepage Sections
   ========================================================================== */

/* Display & Flexbox */
.flex {
  display: flex !important;
}

.inline-flex {
  display: inline-flex !important;
}

.flex-col {
  flex-direction: column !important;
}

.flex-wrap {
  flex-wrap: wrap !important;
}

.items-center {
  align-items: center !important;
}

.items-start {
  align-items: flex-start !important;
}

.items-stretch {
  align-items: stretch !important;
}

.items-baseline {
  align-items: baseline !important;
}

.justify-between {
  justify-content: space-between !important;
}

.justify-center {
  justify-content: center !important;
}

.justify-start {
  justify-content: flex-start !important;
}

.shrink-0 {
  flex-shrink: 0 !important;
}

.self-start {
  align-self: flex-start !important;
}

/* CSS Grid Engine */
.grid {
  display: grid !important;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
}

.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

/* Gaps */
.gap-1 { gap: 0.25rem !important; }
.gap-1\.5 { gap: 0.375rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 0.75rem !important; }
.gap-3\.5 { gap: 0.875rem !important; }
.gap-4 { gap: 1rem !important; }
.gap-5 { gap: 1.25rem !important; }
.gap-6 { gap: 1.5rem !important; }
.gap-8 { gap: 2rem !important; }
.gap-10 { gap: 2.5rem !important; }
.gap-12 { gap: 3rem !important; }
.gap-16 { gap: 4rem !important; }

/* Responsive Grid & Flex Breakpoints */
@media (min-width: 640px) {
  .sm\:flex-row {
    flex-direction: row !important;
  }
  .sm\:w-auto {
    width: auto !important;
  }
  .sm\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .sm\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  .sm\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
  .sm\:text-4xl {
    font-size: 2.25rem !important;
    line-height: 2.5rem !important;
  }
  .sm\:inline {
    display: inline !important;
  }
}

@media (min-width: 768px) {
  .md\:flex-row {
    flex-direction: row !important;
  }
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  .md\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
  .md\:col-span-3 {
    grid-column: span 3 / span 3 !important;
  }
  .md\:py-24 {
    padding-top: 6rem !important;
    padding-bottom: 6rem !important;
  }
  .md\:py-28 {
    padding-top: 7rem !important;
    padding-bottom: 7rem !important;
  }
  .md\:p-8 {
    padding: 2rem !important;
  }
  .md\:text-left {
    text-align: left !important;
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
  .lg\:grid-cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
  .lg\:grid-cols-12 {
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
  }
  .lg\:col-span-4 {
    grid-column: span 4 / span 4 !important;
  }
  .lg\:col-span-5 {
    grid-column: span 5 / span 5 !important;
  }
  .lg\:col-span-6 {
    grid-column: span 6 / span 6 !important;
  }
  .lg\:col-span-7 {
    grid-column: span 7 / span 7 !important;
  }
  .lg\:sticky {
    position: sticky !important;
  }
  .lg\:top-24 {
    top: 6rem !important;
  }
  .lg\:gap-16 {
    gap: 4rem !important;
  }
}

/* Sizing Utilities */
.w-full { width: 100% !important; }
.w-1\.5 { width: 0.375rem !important; }
.h-1\.5 { height: 0.375rem !important; }
.w-2 { width: 0.5rem !important; }
.h-2 { height: 0.5rem !important; }
.w-2\.5 { width: 0.625rem !important; }
.h-2\.5 { height: 0.625rem !important; }
.w-3 { width: 0.75rem !important; }
.h-3 { height: 0.75rem !important; }
.w-3\.5 { width: 0.875rem !important; }
.h-3\.5 { height: 0.875rem !important; }
.w-4 { width: 1rem !important; }
.h-4 { height: 1rem !important; }
.w-7 { width: 1.75rem !important; }
.h-7 { height: 1.75rem !important; }
.w-8 { width: 2rem !important; }
.h-8 { height: 2rem !important; }
.w-9 { width: 2.25rem !important; }
.h-9 { height: 2.25rem !important; }
.w-10 { width: 2.5rem !important; }
.h-10 { height: 2.5rem !important; }
.h-11 { height: 2.75rem !important; }

.max-w-xl { max-width: 36rem !important; }
.max-w-2xl { max-width: 42rem !important; }
.max-w-3xl { max-width: 48rem !important; }
.max-w-5xl { max-width: 64rem !important; }
.min-h-\[440px\] { min-height: 440px !important; }
.min-h-\[36px\] { min-height: 36px !important; }

/* Spacing */
.py-16 { padding-top: 4rem !important; padding-bottom: 4rem !important; }
.py-20 { padding-top: 5rem !important; padding-bottom: 5rem !important; }
.p-2 { padding: 0.5rem !important; }
.p-2\.5 { padding: 0.625rem !important; }
.p-3 { padding: 0.75rem !important; }
.p-3\.5 { padding: 0.875rem !important; }
.p-4 { padding: 1rem !important; }
.p-5 { padding: 1.25rem !important; }
.p-6 { padding: 1.5rem !important; }
.px-2 { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }
.px-2\.5 { padding-left: 0.625rem !important; padding-right: 0.625rem !important; }
.px-3 { padding-left: 0.75rem !important; padding-right: 0.75rem !important; }
.px-4 { padding-left: 1rem !important; padding-right: 1rem !important; }
.px-5 { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }
.px-6 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.px-7 { padding-left: 1.75rem !important; padding-right: 1.75rem !important; }
.py-0\.5 { padding-top: 0.125rem !important; padding-bottom: 0.125rem !important; }
.py-1 { padding-top: 0.25rem !important; padding-bottom: 0.25rem !important; }
.py-1\.5 { padding-top: 0.375rem !important; padding-bottom: 0.375rem !important; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.py-3 { padding-top: 0.75rem !important; padding-bottom: 0.75rem !important; }
.py-3\.5 { padding-top: 0.875rem !important; padding-bottom: 0.875rem !important; }
.pt-1 { padding-top: 0.25rem !important; }
.pt-2 { padding-top: 0.5rem !important; }
.pt-4 { padding-top: 1rem !important; }
.pb-3 { padding-bottom: 0.75rem !important; }
.pb-4 { padding-bottom: 1rem !important; }
.pb-5 { padding-bottom: 1.25rem !important; }
.pb-6 { padding-bottom: 1.5rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 0.75rem !important; }
.mb-4 { margin-bottom: 1rem !important; }
.mb-6 { margin-bottom: 1.5rem !important; }
.mb-8 { margin-bottom: 2rem !important; }
.mb-12 { margin-bottom: 3rem !important; }
.mb-14 { margin-bottom: 3.5rem !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-8 { margin-top: 2rem !important; }
.mt-12 { margin-top: 3rem !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }

/* Flow Spacing (space-y-*) */
.space-y-1 > * + * { margin-top: 0.25rem !important; }
.space-y-2 > * + * { margin-top: 0.5rem !important; }
.space-y-3 > * + * { margin-top: 0.75rem !important; }
.space-y-3\.5 > * + * { margin-top: 0.875rem !important; }
.space-y-4 > * + * { margin-top: 1rem !important; }
.space-y-5 > * + * { margin-top: 1.25rem !important; }
.space-y-6 > * + * { margin-top: 1.5rem !important; }

/* Typography */
.text-\[10px\] { font-size: 10px !important; line-height: 14px !important; }
.text-\[11px\] { font-size: 11px !important; line-height: 16px !important; }
.text-xs { font-size: 0.75rem !important; line-height: 1rem !important; }
.text-sm { font-size: 0.875rem !important; line-height: 1.25rem !important; }
.text-base { font-size: 1rem !important; line-height: 1.5rem !important; }
.text-lg { font-size: 1.125rem !important; line-height: 1.75rem !important; }
.text-xl { font-size: 1.25rem !important; line-height: 1.75rem !important; }
.text-2xl { font-size: 1.5rem !important; line-height: 2rem !important; }
.text-3xl { font-size: 1.875rem !important; line-height: 2.25rem !important; }

.font-mono { font-family: var(--dh-font-mono, 'JetBrains Mono', monospace) !important; }
.font-sans { font-family: var(--dh-font-sans, sans-serif) !important; }
.font-medium { font-weight: 500 !important; }
.font-semibold { font-weight: 600 !important; }
.font-bold { font-weight: 700 !important; }
.font-extrabold { font-weight: 800 !important; }
.uppercase { text-transform: uppercase !important; }
.tracking-wider { letter-spacing: 0.05em !important; }
.tracking-widest { letter-spacing: 0.1em !important; }
.leading-relaxed { line-height: 1.625 !important; }
.leading-snug { line-height: 1.375 !important; }
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }
.truncate { overflow: hidden !important; text-overflow: ellipsis !important; white-space: nowrap !important; }

/* Colors */
.text-white { color: #ffffff !important; }
.text-emerald-400 { color: #34d399 !important; }
.text-amber-400 { color: #fbbf24 !important; }
.text-cyan-400 { color: #22d3ee !important; }
.text-blue-400 { color: #60a5fa !important; }
.bg-emerald-400 { background-color: #34d399 !important; }
.bg-emerald-950\/10 { background-color: rgba(2, 44, 34, 0.15) !important; }
.bg-red-500\/80 { background-color: rgba(239, 68, 68, 0.8) !important; }
.bg-amber-500\/80 { background-color: rgba(245, 158, 11, 0.8) !important; }
.bg-emerald-500\/80 { background-color: rgba(16, 185, 129, 0.8) !important; }
.bg-emerald-500\/10 { background-color: rgba(16, 185, 129, 0.1) !important; }
.bg-white\/5 { background-color: rgba(255, 255, 255, 0.05) !important; }

/* Borders & Rounded */
.rounded { border-radius: 0.25rem !important; }
.rounded-md { border-radius: 0.375rem !important; }
.rounded-lg { border-radius: 0.5rem !important; }
.rounded-xl { border-radius: 0.75rem !important; }
.rounded-2xl { border-radius: 1rem !important; }
.rounded-full { border-radius: 9999px !important; }

.border { border: 1px solid var(--dh-border) !important; }
.border-b { border-bottom: 1px solid var(--dh-border) !important; }
.border-t { border-top: 1px solid var(--dh-border) !important; }
.border-r { border-right: 1px solid var(--dh-border) !important; }
.border-emerald-500\/20 { border-color: rgba(16, 185, 129, 0.2) !important; }

/* Display States */
.hidden { display: none !important; }
.block { display: block !important; }
.inline-block { display: inline-block !important; }
.relative { position: relative !important; }
.absolute { position: absolute !important; }
.overflow-hidden { overflow: hidden !important; }
.select-none { user-select: none !important; }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5) !important; }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7) !important; }

/* Animations */
.animate-pulse {
  animation: dhPulseSimple 2s cubic-bezier(0.4, 0, 0.6, 1) infinite !important;
}

@keyframes dhPulseSimple {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.rotate-180 {
  transform: rotate(180deg) !important;
}


/* ==========================================================================
   2. Optical Section Dividers & Glowing Badges
   ========================================================================== */
.dh-section-divider {
  position: relative;
  width: 100%;
  height: 1px;
  background: #090e17;
  overflow: visible;
  z-index: 10;
}

.dh-divider-badge {
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
  transition: all 0.3s ease;
}

.dh-divider-badge:hover {
  border-color: rgba(56, 189, 248, 0.5) !important;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
}


/* ==========================================================================
   3. VPS & Cloud Infrastructure Section
   ========================================================================== */
.dh-vps-cloud-section {
  position: relative;
  background: var(--dh-bg, #030712);
  border-bottom: 1px solid var(--dh-border);
}

.dh-loc-pill {
  cursor: pointer;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--dh-border);
  color: var(--dh-text-secondary);
  transition: all 0.2s ease;
}

.dh-loc-pill:hover,
.dh-loc-pill.active {
  background: rgba(56, 189, 248, 0.12);
  border-color: var(--dh-primary);
  color: #ffffff;
}

/* VPS Pricing Cards */
.dh-card-pricing {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--dh-border);
  border-radius: var(--dh-radius-lg, 16px);
  padding: 1.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.dh-card-pricing:hover {
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
}

.dh-card-pricing.popular {
  border: 2px solid rgba(56, 189, 248, 0.65) !important;
  box-shadow: 0 0 40px rgba(56, 189, 248, 0.18) !important;
  background: rgba(15, 23, 42, 0.92) !important;
}


/* ==========================================================================
   4. One Account Portal Console Mockup
   ========================================================================== */
.dh-one-account-section {
  position: relative;
  background: var(--dh-bg, #030712);
}

.dh-portal-tab-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dh-portal-tab-btn.active {
  background: var(--dh-primary, #38bdf8) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
}

.dh-portal-tab-btn:not(.active):hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}


/* ==========================================================================
   5. Business Services Section
   ========================================================================== */
.dh-business-services-section {
  background: var(--dh-bg-secondary, #080e1e);
}

.dh-business-services-section .dh-card {
  transition: border-color 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.dh-business-services-section .dh-card:hover {
  border-color: var(--dh-border-hover, rgba(56, 189, 248, 0.35));
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}


/* ==========================================================================
   6. Migration Checklist & Cards
   ========================================================================== */
.dh-migration-section {
  background: var(--dh-bg, #030712);
}


/* ==========================================================================
   7. Defensive Security Architecture Section
   ========================================================================== */
.dh-security-section {
  background: var(--dh-bg-secondary, #080e1e);
}

.dh-security-section .dh-card {
  transition: border-color 0.25s ease, transform 0.2s ease;
}

.dh-security-section .dh-card:hover {
  border-color: var(--dh-border-hover);
  transform: translateY(-3px);
}


/* ==========================================================================
   8. Technical FAQ Accordions
   ========================================================================== */
.dh-faq-section {
  background: var(--dh-bg, #030712);
}

.dh-faq-item {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dh-faq-item:hover {
  border-color: var(--dh-border-hover);
}

.dh-faq-trigger {
  cursor: pointer;
  border: none;
  background: transparent;
}

.dh-faq-trigger:focus-visible {
  outline: 2px solid var(--dh-primary);
  outline-offset: -2px;
}

.dh-faq-chevron {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.dh-faq-trigger[aria-expanded="true"] .dh-faq-chevron {
  transform: rotate(180deg);
}

.dh-faq-content {
  transition: all 0.2s ease-in-out;
}


/* ==========================================================================
   9. Final Call to Action Section
   ========================================================================== */
.dh-final-cta-section {
  background: var(--dh-bg-secondary, #080e1e);
}
