/* ============================================
   HOMEPAGE — default.asp
   Organized per design system restraints.
   All variables reference :root in styles.css.
   ============================================ */

/* ============================================
   1. HERO SECTION — Dark (#001A47)
   ============================================ */
.product-hero {
  background: var(--sophos-dark-blue);
  position: relative;
  overflow: hidden;
}

.product-hero .hero-row {
  display: flex;
  align-items: center;
  gap: 40px;
}

.product-hero .hero-content {
  flex: 1;
  min-width: 0;
}

.product-hero .hero-image {
  flex: 1;
  min-width: 0;
}

.product-hero .hero-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.product-hero .hero-eyebrow {
  font-size: 14px;
  font-weight: 400;
  color: var(--sophos-cyber-blue);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}

.product-hero h1 {
  margin-bottom: 24px;
  max-width: 720px;
}

.product-hero .hero-subcopy {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
  max-width: 600px;
  margin-bottom: 36px;
}

.product-hero .hero-ctas {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

/* EMERGENCY BANNER */
.emergency-banner {
  background: #B91C1C;
  padding: 12px 0;
}

.emergency-icon {
  color: #FCA5A5;
  font-size: 16px;
}

.emergency-text {
  color: var(--sophos-base-white);
  font-size: 15px;
  font-weight: 600;
}

.btn-emergency {
  background: var(--sophos-base-white);
  color: #B91C1C;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 6px;
  border: none;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.btn-emergency:hover {
  opacity: 0.9;
  color: #B91C1C;
  text-decoration: none;
}

/* ============================================
   2. SPOTLIGHT CARDS — White (#FFFFFF)
   ============================================ */
.spotlight-section {
  padding: 80px 0;
  background: var(--sophos-base-white);
}

.spotlight-card {
  display: flex;
  flex-direction: column;
  background: var(--sophos-base-white);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 0;
  height: 100%;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.spotlight-card:hover {
  border-color: var(--sophos-blue);
}

.spotlight-card .spotlight-label {
  font-size: 12px;
  font-weight: 400;
  color: var(--sophos-blue);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}

.spotlight-card .spotlight-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.spotlight-card h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
}

.spotlight-card p {
  font-size: 14px;
  color: var(--sophos-dark-blue);
  opacity: 0.75;
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
}

.spotlight-card .spotlight-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

/* ============================================
   3. CHALLENGE GRID — Light (#EBF6FF)
   ============================================ */
.challenges-section {
  padding: 80px 0;
  background: var(--sophos-white);
}

.challenge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.challenge-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  background: var(--sophos-base-white);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--sophos-dark-blue);
  transition: border-color 0.2s ease;
}

.challenge-item:hover {
  border-color: var(--sophos-blue);
  color: var(--sophos-dark-blue);
  text-decoration: none;
}

.challenge-item .challenge-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--sophos-blue);
}

.challenge-item span {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

/* ============================================
   4. ECOSYSTEM PRODUCT CARDS — Light (#EBF6FF)
   ============================================ */
.ecosystem-section {
  padding: 80px 0;
  background: var(--sophos-white);
}

.product-pillar-card {
  background: var(--sophos-base-white);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 24px;
  height: 100%;
  transition: border-color 0.2s ease;
}

.product-pillar-card:hover {
  border-color: var(--sophos-blue);
}

.product-pillar-card img {
  border-radius: 4px;
  margin-bottom: 16px;
}

.product-pillar-card h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
}

.product-pillar-card p {
  font-size: 14px;
  color: var(--sophos-dark-blue);
  opacity: 0.7;
  line-height: 1.4;
  margin-bottom: 16px;
}

/* ============================================
   5. PLATFORM / SOPHOS CENTRAL — White (#FFFFFF)
   ============================================ */
.central-section {
  padding: 80px 0;
  background: var(--sophos-base-white);
}

.central-eyebrow {
  font-size: 14px;
  font-weight: 400;
  color: var(--sophos-blue);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.central-section ul {
  padding-left: 0;
  list-style: none;
}

.central-section ul li {
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
  font-size: 16px;
  line-height: 1.5;
}

.central-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  background: var(--sophos-blue);
  border-radius: 50%;
}

/* Platform Hub Visual */
.platform-hub {
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 24px;
  background: var(--sophos-white);
}

.platform-hub-header {
  text-align: center;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--card-border);
}

.platform-hub-label {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: var(--sophos-blue);
}

.platform-hub-sub {
  display: block;
  font-size: 13px;
  color: var(--sophos-dark-blue);
  opacity: 0.6;
  margin-top: 2px;
}

.platform-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.platform-hub-tile {
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 16px 12px;
  text-align: center;
  background: var(--sophos-base-white);
  transition: border-color 0.2s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

a.platform-hub-tile:hover {
  color: inherit;
  text-decoration: none;
}

.platform-hub-tile:hover {
  border-color: var(--sophos-blue);
}

.platform-hub-tile i {
  font-size: 20px;
  color: var(--sophos-blue);
  display: block;
  margin-bottom: 8px;
}

.platform-hub-tile h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
  color: var(--sophos-dark-blue);
}

.platform-hub-tile span {
  font-size: 12px;
  color: var(--sophos-dark-blue);
  opacity: 0.6;
}

.platform-hub-badge {
  text-align: center;
  margin-top: 16px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sophos-blue);
  border: 1px solid var(--sophos-blue);
  border-radius: 6px;
  display: block;
  width: 100%;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.platform-hub-badge:hover {
  background: var(--sophos-blue);
  color: var(--sophos-base-white);
  text-decoration: none;
}

.platform-hub-badge i {
  margin-right: 6px;
}

/* ============================================
   6. MDR HIGHLIGHT — Dark (#001A47)
   ============================================ */
.mdr-highlight {
  background: var(--sophos-dark-blue);
  color: var(--sophos-base-white);
  padding: 80px 0;
  position: relative;
}

.mdr-highlight .mdr-eyebrow {
  font-size: 14px;
  font-weight: 400;
  color: var(--sophos-cyber-blue);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.mdr-highlight h2 {
  color: var(--sophos-base-white);
  margin-bottom: 20px;
  max-width: 560px;
}

.mdr-highlight .mdr-lead {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  margin-bottom: 32px;
  max-width: 540px;
}

.mdr-highlight .mdr-stats {
  display: flex;
  gap: 40px;
  margin-bottom: 36px;
}

.mdr-highlight .mdr-stat {
  display: flex;
  flex-direction: column;
}

.mdr-highlight .mdr-stat .stat-value {
  font-size: 28px;
  font-weight: 600;
  color: var(--sophos-base-white);
  line-height: 1;
  margin-bottom: 4px;
}

.mdr-highlight .mdr-stat .stat-label {
  font-size: 12px;
  color: var(--sophos-cyber-blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mdr-highlight .mdr-image-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.mdr-highlight .mdr-image-wrapper img {
  max-width: 100%;
  height: auto;
}

/* ============================================
   7. XGS HARDWARE — Light (#EBF6FF)
   ============================================ */
.xgs-section {
  padding: 80px 0;
  background: var(--sophos-white);
}

.xgs-section .hero-eyebrow {
  font-size: 14px;
  font-weight: 400;
  color: var(--sophos-blue);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.xgs-section ul {
  padding-left: 0;
  list-style: none;
}

.xgs-section ul li {
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
  font-size: 16px;
  line-height: 1.5;
}

.xgs-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  background: var(--sophos-blue);
  border-radius: 50%;
}

/* ============================================
   8. WHY SOPHOS — White (#FFFFFF)
   ============================================ */
.advantage-section {
  padding: 80px 0;
  background: var(--sophos-base-white);
}

.value-prop-card {
  background: var(--sophos-base-white);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 24px;
  height: 100%;
  transition: border-color 0.2s ease;
}

.value-prop-card:hover {
  border-color: var(--sophos-blue);
}

.value-prop-card .prop-icon {
  color: var(--sophos-blue);
  font-size: 22px;
  margin-bottom: 16px;
}

.value-prop-card h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
}

.value-prop-card p {
  font-size: 14px;
  color: var(--sophos-dark-blue);
  opacity: 0.7;
  line-height: 1.4;
  margin: 0;
}

/* ============================================
   RESELLER CARDS (within Why Sophos)
   ============================================ */
.reseller-card {
  background: var(--sophos-base-white);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 24px;
  height: 100%;
  transition: border-color 0.2s ease;
}

.reseller-card:hover {
  border-color: var(--sophos-blue);
}

.reseller-card .reseller-icon {
  color: var(--sophos-blue);
  font-size: 22px;
  margin-bottom: 16px;
}

.reseller-card h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
}

.reseller-card p {
  font-size: 14px;
  color: var(--sophos-dark-blue);
  opacity: 0.7;
  line-height: 1.4;
  margin: 0;
}

/* ============================================
   9. SOLUTION FINDER — Light (#EBF6FF)
   ============================================ */
.solution-finder-section {
  background: var(--sophos-white);
  padding: 80px 0;
}

.goal-button {
  display: inline-block;
  padding: 12px 24px;
  margin: 6px;
  background: var(--sophos-base-white);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  color: var(--sophos-dark-blue);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: border-color 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.goal-button:hover {
  border-color: var(--sophos-blue);
  color: var(--sophos-blue);
  background: var(--sophos-white);
  text-decoration: none;
}

.goal-button.active {
  border-color: var(--sophos-blue);
  background: var(--sophos-blue);
  color: var(--sophos-base-white);
}

.environment-slider-container {
  max-width: 600px;
  padding: 20px 0;
}

.slider-wrapper {
  position: relative;
  margin: 30px 0;
}

.environment-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--card-border);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.environment-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--sophos-blue);
  cursor: pointer;
}

.environment-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--sophos-blue);
  cursor: pointer;
  border: none;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 14px;
  opacity: 0.6;
}

.slider-value {
  margin-top: 15px;
  font-size: 24px;
  font-weight: 600;
  color: var(--sophos-blue);
}

/* Recommendation Panel */
.recommendation-panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.4s ease, margin 0.5s ease;
  margin-top: 0;
}

.recommendation-panel.show {
  max-height: 2000px;
  opacity: 1;
  margin-top: 40px;
}

.recommendation-content {
  background: var(--sophos-base-white);
  border-radius: 8px;
  padding: 32px;
  border: 1px solid var(--card-border);
  border-top: 3px solid var(--sophos-blue);
}

.recommendation-header {
  margin-bottom: 32px;
}

.recommendation-header .recommendation-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.4;
}

.recommendation-header .recommendation-subtitle {
  font-size: 14px;
  opacity: 0.6;
  margin: 0;
}

/* Solution Finder Product Cards */
.product-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.solution-finder-section .product-card {
  background: var(--sophos-base-white);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease;
}

.solution-finder-section .product-card:hover {
  border-color: var(--sophos-blue);
}

.product-card .product-card-image {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 16px;
}

.product-card .product-card-name {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
}

.product-card .product-card-desc {
  font-size: 14px;
  opacity: 0.7;
  line-height: 1.4;
  margin-bottom: 16px;
}

.product-card .product-card-why {
  background: var(--sophos-white);
  border-left: 3px solid var(--sophos-blue);
  padding: 12px 14px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.product-card .product-card-why .why-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--sophos-blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.product-card .product-card-why .why-text {
  font-size: 13px;
  line-height: 1.4;
  margin: 0;
}

.product-card .product-card-scales {
  font-size: 12px;
  opacity: 0.6;
  margin-bottom: 16px;
}

.product-card .product-card-link {
  margin-top: auto;
  font-size: 14px;
  font-weight: 600;
  color: var(--sophos-blue);
  text-decoration: none;
}

.product-card .product-card-link:hover {
  color: var(--sophos-purple-dark);
  text-decoration: underline;
}

/* ============================================
   10. FINAL CTA — White (#FFFFFF)
   ============================================ */
.final-cta {
  padding: 80px 0;
  background: var(--sophos-base-white);
}

.cta-card {
  background: var(--sophos-base-white);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
  transition: border-color 0.2s ease;
}

.cta-card:hover {
  border-color: var(--sophos-blue);
  color: inherit;
  text-decoration: none;
}

.cta-card h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
}

.cta-card p {
  font-size: 14px;
  opacity: 0.7;
  line-height: 1.4;
  flex-grow: 1;
  margin-bottom: 16px;
}

.cta-card .arrow-icon {
  color: var(--sophos-blue);
  font-size: 16px;
}

/* ============================================
   11. RESPONSIVE — Tablet & Mobile
   ============================================ */
@media (max-width: 991px) {
  .product-hero .hero-row {
    flex-direction: column;
  }

  .product-hero .hero-image {
    width: 100%;
  }

  .mdr-highlight {
    padding: 48px 0;
  }

  .mdr-highlight h2 {
    font-size: 30px;
    max-width: none;
  }

  .mdr-highlight .mdr-lead {
    max-width: none;
  }

  .mdr-highlight .mdr-stats {
    flex-wrap: wrap;
  }

  .mdr-highlight .mdr-image-wrapper {
    margin-top: 40px;
  }
}

@media (max-width: 768px) {
  .product-card-grid {
    grid-template-columns: 1fr;
  }

  .platform-hub-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
