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

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Brand palette — Crimson Red matching the HostChoice logo */
  --hc-primary: #C62828;
  --hc-primary-light: #E53935;
  --hc-primary-dark: #8E0000;
  --hc-accent: #FFD600;
  --hc-accent-dark: #F9A825;
  --hc-warning: #F59E0B;
  --hc-danger: #EF4444;
  --hc-info: #3B82F6;
  --hc-success: #22C55E;

  /* Neutral tones */
  --hc-dark: #1A1A2E;
  --hc-dark-2: #2D2D44;
  --hc-dark-3: #3E3E5E;
  --hc-gray: #64748B;
  --hc-gray-light: #94A3B8;
  --hc-light: #F8F9FA;
  --hc-light-2: #E2E8F0;
  --hc-white: #FFFFFF;

  /* Gradients */
  --hc-gradient-hero: linear-gradient(135deg, #8E0000 0%, #C62828 50%, #D32F2F 100%);
  --hc-gradient-primary: linear-gradient(135deg, #C62828 0%, #E53935 100%);
  --hc-gradient-accent: linear-gradient(135deg, #FFD600 0%, #FFCA28 100%);
  --hc-gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);

  /* Glass */
  --hc-glass-bg: rgba(0, 0, 0, 0.15);
  --hc-glass-border: rgba(255, 255, 255, 0.2);
  --hc-glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --section-pad: 5rem 0;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Transition */
  --transition-fast: 0.2s ease;
  --transition-med: 0.35s cubic-bezier(.4, 0, .2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--hc-dark);
  background: var(--hc-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
}

/* ---------- Utility Classes ---------- */
.section-pad {
  padding: var(--section-pad);
}

.section-pad-sm {
  padding: 3rem 0;
}

.text-gradient {
  background: var(--hc-gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-accent {
  color: var(--hc-accent);
}

/* ---------- Buttons ---------- */
.btn-hc {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .95rem;
  border: none;
  cursor: pointer;
  transition: var(--transition-med);
  text-decoration: none;
}

.btn-hc i {
  font-size: 1rem;
}

.btn-primary {
  background: var(--hc-gradient-primary);
  color: var(--hc-white);
  box-shadow: 0 4px 15px rgba(198, 40, 40, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(198, 40, 40, 0.55);
  color: var(--hc-white);
}

.btn-accent {
  background: var(--hc-gradient-accent);
  color: var(--hc-dark);
  box-shadow: 0 4px 15px rgba(255, 214, 0, 0.35);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 214, 0, 0.5);
  color: var(--hc-dark);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--hc-primary-light);
  color: var(--hc-primary-light);
}

.btn-outline:hover {
  background: var(--hc-primary-light);
  color: var(--hc-white);
  transform: translateY(-2px);
}

.btn-outline-light {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--hc-white);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--hc-white);
  transform: translateY(-2px);
}

.btn-deal {
  background: var(--hc-primary);
  color: var(--hc-white);
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(198, 40, 40, 0.35);
}

.btn-deal:hover {
  background: var(--hc-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(198, 40, 40, 0.5);
  color: var(--hc-white);
}

.btn-sm {
  padding: .5rem 1.25rem;
  font-size: .85rem;
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.05rem;
}

/* ---------- Navbar ---------- */
.hc-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1100;
  padding: .75rem 0;
  transition: var(--transition-med);
  background: var(--hc-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.hc-navbar.scrolled {
  background: var(--hc-white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: .5rem 0;
}

.hc-navbar .navbar-brand {
  display: flex;
  align-items: center;
}

.hc-navbar .navbar-brand img {
  height: 65px;
  width: auto;
}

.hc-navbar .nav-link {
  color: var(--hc-dark);
  font-weight: 500;
  font-size: 1rem;
  padding: .5rem 1rem !important;
  transition: var(--transition-fast);
}

.hc-navbar .nav-link:hover,
.hc-navbar .nav-link.active {
  color: var(--hc-primary);
}

/* Hover dropdown for desktop */
@media (min-width: 992px) {
  .hc-navbar .nav-item.dropdown:hover>.dropdown-menu {
    display: block;
    margin-top: 0;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .hc-navbar .dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-med);
    pointer-events: none;
  }

  .hc-navbar .nav-item.dropdown:hover>.dropdown-menu {
    pointer-events: auto;
  }
}

.hc-navbar .dropdown-menu {
  background: var(--hc-white);
  border: 1px solid var(--hc-light-2);
  border-radius: var(--radius-md);
  padding: .5rem;
  min-width: 200px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hc-navbar .dropdown-item {
  color: var(--hc-dark-3);
  border-radius: var(--radius-sm);
  padding: .5rem 1rem;
  font-size: 0.9rem;
}

.hc-navbar .dropdown-item:hover {
  background: var(--hc-light);
  color: var(--hc-primary);
}

.navbar-toggler {
  border-color: rgba(0, 0, 0, 0.15);
}

/* ---------- Hero Section ---------- */
.hero-section {
  background: var(--hc-gradient-hero);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 0, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 40, 40, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  color: var(--hc-white);
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  margin-bottom: 2rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem 1rem;
  background: rgba(255, 214, 0, 0.15);
  border: 1px solid rgba(255, 214, 0, 0.35);
  border-radius: 50px;
  color: var(--hc-accent);
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

/* ---------- Glass Cards ---------- */
.glass-card {
  background: var(--hc-glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--hc-glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition-med);
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--hc-glass-shadow);
  border-color: rgba(255, 255, 255, 0.18);
}

/* ---------- Provider Cards (Light BG) ---------- */
.provider-card {
  background: var(--hc-white);
  border: 1px solid var(--hc-light-2);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: var(--transition-med);
  position: relative;
  overflow: hidden;
}

.provider-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--hc-gradient-primary);
  opacity: 0;
  transition: var(--transition-med);
}

.provider-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: var(--hc-primary-light);
}

.provider-card:hover::before {
  opacity: 1;
}

.provider-card .provider-logo {
  width: 120px;
  height: 50px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.provider-card .provider-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: .5rem;
}

.provider-card .provider-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--hc-primary);
}

.provider-card .provider-price small {
  font-size: .85rem;
  font-weight: 500;
  color: var(--hc-gray);
}

/* Provider-specific accent borders */
.provider-card.hostinger:hover {
  border-color: #673DE6;
}

.provider-card.hostinger::before {
  background: linear-gradient(135deg, #673DE6, #8B5CF6);
}

.provider-card.chemicloud:hover {
  border-color: #2563EB;
}

.provider-card.chemicloud::before {
  background: linear-gradient(135deg, #2563EB, #3B82F6);
}

.provider-card.hostarmada:hover {
  border-color: #1A1A2E;
}

.provider-card.hostarmada::before {
  background: linear-gradient(135deg, #1A1A2E, #3E3E5E);
}

/* ---------- Rating Stars ---------- */
.star-rating {
  display: inline-flex;
  gap: 2px;
  color: var(--hc-warning);
  font-size: .9rem;
}

/* ---------- Feature List ---------- */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.feature-list li {
  padding: .4rem 0;
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .9rem;
  color: var(--hc-dark-3);
}

.feature-list li i {
  color: var(--hc-success);
}

/* ---------- Section Headers ---------- */
.section-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--hc-primary);
  margin-bottom: .75rem;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--hc-gray);
  max-width: 600px;
}

/* ---------- Comparison Table ---------- */
.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  background: var(--hc-white);
}

.comparison-table thead th {
  background: var(--hc-primary);
  color: var(--hc-white);
  padding: 1rem 1.25rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .9rem;
  text-align: center;
  border: none;
}

.comparison-table thead th:first-child {
  text-align: left;
}

.comparison-table tbody td {
  padding: 1rem 1.25rem;
  text-align: center;
  border-bottom: 1px solid var(--hc-light-2);
  font-size: .9rem;
  vertical-align: middle;
}

.comparison-table tbody td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--hc-dark);
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table tbody tr:hover {
  background: var(--hc-light);
}

.comparison-table .best-value {
  background: rgba(34, 197, 94, 0.08);
  font-weight: 700;
  color: #15803D;
}

/* ---------- Badge ---------- */
.badge-hc {
  display: inline-block;
  padding: .25rem .75rem;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 600;
}

.badge-popular {
  background: rgba(198, 40, 40, 0.1);
  color: var(--hc-primary);
}

.badge-value {
  background: rgba(34, 197, 94, 0.1);
  color: #15803D;
}

.badge-fast {
  background: rgba(251, 146, 60, 0.1);
  color: #EA580C;
}

.badge-deal {
  background: var(--hc-primary);
  color: var(--hc-white);
  font-size: .8rem;
  padding: .3rem .85rem;
}

/* In dark/hero backgrounds restrict to lighter text */
.hero-section .badge-popular,
.hero-section .badge-value,
.hero-section .badge-fast,
.glass-card .badge-popular,
.glass-card .badge-value,
.glass-card .badge-fast {
  background: rgba(255, 255, 255, 0.15);
  color: var(--hc-white);
}

/* ---------- Pros / Cons ---------- */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.pros-list,
.cons-list {
  list-style: none;
  padding: 0;
}

.pros-list li,
.cons-list li {
  padding: .4rem 0;
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .9rem;
}

.pros-list li i {
  color: var(--hc-success);
  margin-top: 3px;
}

.cons-list li i {
  color: var(--hc-danger);
  margin-top: 3px;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: var(--hc-gradient-hero);
  border-radius: var(--radius-xl);
  padding: 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -20%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 0, 0.2) 0%, transparent 70%);
}

.cta-banner h2 {
  color: var(--hc-white);
  font-size: 2rem;
  margin-bottom: .75rem;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
}

/* ---------- Coupon Cards ---------- */
.coupon-card {
  background: var(--hc-white);
  border: 2px dashed var(--hc-light-2);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition-med);
  position: relative;
  overflow: hidden;
}

.coupon-card:hover {
  border-color: var(--hc-primary-light);
  box-shadow: 0 10px 30px rgba(198, 40, 40, 0.08);
  transform: translateY(-4px);
}

.coupon-card .discount-badge {
  display: inline-block;
  background: var(--hc-primary);
  color: var(--hc-white);
  padding: .3rem 1rem;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.coupon-code {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1.25rem;
  background: var(--hc-light);
  border: 2px dashed var(--hc-primary-light);
  border-radius: var(--radius-sm);
  font-family: monospace;
  font-size: 1rem;
  font-weight: 700;
  color: var(--hc-primary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.coupon-code:hover {
  background: rgba(198, 40, 40, 0.06);
}

.coupon-auto {
  color: var(--hc-success);
  font-weight: 600;
  font-size: .9rem;
}

/* ---------- Footer ---------- */
.hc-footer {
  background: var(--hc-dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 4rem 0 2rem;
}

.hc-footer h5 {
  font-family: var(--font-heading);
  color: var(--hc-white);
  font-weight: 700;
  margin-bottom: 1.25rem;
  font-size: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: .5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.55);
  font-size: .9rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--hc-accent);
  padding-left: 4px;
}

.social-links a {
  color: rgba(255, 255, 255, 0.5);
  transition: var(--transition-fast);
}

.social-links a:hover {
  color: var(--hc-accent);
  transform: translateY(-3px);
  display: inline-block;
}

.footer-brand {
  display: flex;
  align-items: center;
}

.footer-brand img {
  height: 55px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  margin-top: 3rem;
  font-size: .85rem;
}

/* ---------- Page Header (Inner Pages) ---------- */
.page-header {
  background: var(--hc-gradient-hero);
  padding: 8rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 0, 0.12) 0%, transparent 70%);
}

.page-header h1 {
  color: var(--hc-white);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: .75rem;
  position: relative;
}

.page-header p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

/* ---------- Trust Signals ---------- */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: left;
  gap: 2rem;
  margin-top: 2rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: .9rem;
}

.trust-item i {
  color: var(--hc-accent);
  font-size: 1.1rem;
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.2s;
}

.delay-3 {
  animation-delay: 0.3s;
}

.delay-4 {
  animation-delay: 0.4s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.float-anim {
  animation: float 6s ease-in-out infinite;
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 0 5px rgba(198, 40, 40, 0.3);
  }

  50% {
    box-shadow: 0 0 20px rgba(198, 40, 40, 0.6);
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .hero-section {
    padding-top: 6rem;
    min-height: auto;
    padding-bottom: 4rem;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .section-pad {
    padding: 3.5rem 0;
  }

  .cta-banner {
    padding: 2.5rem 1.5rem;
  }

  .pros-cons {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .hc-navbar .navbar-brand img {
    height: 45px;
  }

  .hero-title {
    font-size: 1.9rem;
  }

  .comparison-table {
    font-size: .8rem;
  }

  .comparison-table thead th,
  .comparison-table tbody td {
    padding: .7rem .5rem;
  }

  .hc-navbar .navbar-collapse {
    background: var(--hc-white);
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-top: .5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }
}