/* ============================================================
   Hotel Management System — page-specific styles (Viqsa orange theme)
   Shared site shell: style.css, layout.css, animations.css
   ============================================================ */

.hotel-management-page {
  --hms-brand:       var(--orange);
  --hms-brand-dark:  var(--orange-dark);
  --hms-brand-light: var(--orange-light);
  --hms-accent:      var(--orange-light);
  --hms-dark-bg:     #1a1d2b;
  --hms-cream:       var(--cream);
  --hms-dark:        #121212;
  --hms-muted:       rgba(18, 18, 18, 0.7);
  --hms-border:      rgba(215, 146, 60, 0.22);
  --hms-grad:        linear-gradient(135deg, #8D4B00 0%, #D7923C 60%, #6b3a00 100%);
  --hms-grad-accent: linear-gradient(135deg, #8D4B00, #F8B05E);
  --hms-grad-dark:   linear-gradient(160deg, #1a1d2b 0%, #1f1f1f 55%, #141820 100%);
  --hms-header-offset: 132px;

  /* Legacy aliases used across component rules */
  --hms-navy: var(--hms-dark-bg);
  --hms-gold: var(--hms-brand);
  --hms-gold-light: var(--hms-brand-light);
}

/* ── HERO ── */
.hms-hero {
  position: relative;
  height: var(--page-banner-height, 660px);
  min-height: var(--page-banner-height, 660px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--hms-navy);
}

.hms-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 75% 40%, rgba(215, 146, 60, 0.22) 0%, transparent 65%),
    radial-gradient(ellipse 50% 80% at 5% 90%, rgba(248, 176, 94, 0.1) 0%, transparent 60%),
    var(--hms-grad-dark);
}

.hms-hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(215, 146, 60, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(215, 146, 60, 0.08) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hms-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hms-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1300px;
  margin: 0 auto;
  padding: var(--hms-header-offset) 40px 36px;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.hms-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid rgba(248, 176, 94, 0.35);
  border-radius: 100px;
  background: rgba(248, 176, 94, 0.1);
  color: var(--hms-brand-light);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hms-badge span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hms-gold);
  display: inline-block;
}

.hms-hero h1 {
  margin-bottom: 16px;
  font-size: clamp(26px, 2.8vw, 38px);
  line-height: 1.2;
}

.hms-hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--hms-gold), var(--hms-gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hms-hero-desc {
  margin-bottom: 24px;
  max-width: 520px;
  font-size: 15px;
  line-height: 1.55;
}

.hms-hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hotel-management-page .btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--hms-brand-dark), var(--hms-brand-light));
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(215, 146, 60, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hotel-management-page .btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(215, 146, 60, 0.5);
}

.hotel-management-page .btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.hotel-management-page .btn-outline-white:hover {
  border-color: var(--hms-accent);
  background: rgba(248, 176, 94, 0.1);
  color: var(--hms-brand-light);
}

.hms-hero-visual {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hms-stat-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(215, 146, 60, 0.2);
  border-radius: 16px;
  padding: 20px 22px;
  backdrop-filter: blur(12px);
}

.hms-stat-card h3 {
  color: var(--hms-gold-light);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hms-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.hms-stat-item {
  text-align: center;
}

.hms-stat-num {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.hms-stat-num span {
  color: var(--hms-gold);
}

.hms-stat-label {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  margin-top: 4px;
}

.hms-phases-mini {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.hms-phase-chip {
  padding: 12px 10px;
  border-radius: 10px;
  border: 1px solid rgba(215, 146, 60, 0.15);
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
}

.hms-phase-chip .num {
  font-size: 11px;
  color: var(--hms-gold);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hms-phase-chip .label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
  line-height: 1.3;
}

/* ── SECTION BASE ── */
.hms-section {
  padding: clamp(32px, 7vw, 50px) 0;
}

.hms-section-light {
  background: var(--hms-cream);
}

.hms-section-dark {
  background: var(--hms-navy);
}

.hms-section-white {
  background: #fff;
}

.hms-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 40px;
}

.hms-label {
  display: inline-block;
  color: var(--hms-brand);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hms-label-light {
  color: var(--hms-brand-light);
}

.hms-section-title {
  margin-bottom: 16px;
}

.hms-section-title.light {
  color: #fff;
}

.hms-section-sub {
  max-width: 680px;
}

.hms-section-sub.light {
  color: rgba(255, 255, 255, 0.6);
}

.hms-center {
  text-align: center;
}

.hms-center .hms-section-sub {
  margin: 0 auto;
}

/* ── FEATURES OVERVIEW ── */
.hms-modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.hms-module-card {
  padding: 32px;
  border-radius: 16px;
  border: 1px solid rgba(18, 18, 18, 0.08);
  background: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.hms-module-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 56px rgba(215, 146, 60, 0.1);
  border-color: var(--hms-accent);
}

.hms-module-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(215, 146, 60, 0.15), rgba(215, 146, 60, 0.05));
  border: 1px solid rgba(215, 146, 60, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 22px;
}

.hms-module-card h3 {
  margin-bottom: 10px;
}

.hms-module-card p {
  line-height: 1.65;
}

.hms-module-tag {
  display: inline-block;
  margin-top: 14px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tag-phase1,
.tag-phase2,
.tag-phase3,
.tag-phase4 {
  background: var(--tag-bg);
  color: var(--tag-color);
}

/* ── PHASES TIMELINE ── */
.hms-phases-wrap {
  margin-top: 64px;
}

.hms-phase-block {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 4px 24px rgba(26, 29, 43, 0.08);
}

.hms-phase-aside {
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.phase-aside-1 {
  background: linear-gradient(160deg, #1a1d2b, #1f1f1f);
}

.phase-aside-2 {
  background: linear-gradient(160deg, #1f1f1f, #2a1f0a);
}

.phase-aside-3 {
  background: linear-gradient(160deg, #2c1810, #4a2410);
}

.phase-aside-4 {
  background: linear-gradient(160deg, #1a1d2b, #3d2810);
}

.hms-phase-aside .phase-num {
  font-size: 56px;
  font-weight: 700;
  color: rgba(215, 146, 60, 0.25);
  line-height: 1;
  margin-bottom: 8px;
}

.hms-phase-aside h3 {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.hms-phase-aside .timeline-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 100px;
  background: rgba(215, 146, 60, 0.15);
  border: 1px solid rgba(215, 146, 60, 0.3);
  color: var(--hms-gold-light);
  font-size: 12px;
  font-weight: 500;
  margin-top: 10px;
}

.hms-phase-body {
  padding: 40px;
  background: #fff;
}

.hms-phase-body p {
  color: var(--hms-muted);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.hms-feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hms-pill {
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid rgba(18, 18, 18, 0.1);
  color: var(--hms-dark);
  background: var(--hms-cream);
}

/* ── WHY CHOOSE ── */
.hms-why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 56px;
  align-items: center;
}

.hms-why-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hms-why-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
  border-radius: 14px;
  border: 1px solid rgba(18, 18, 18, 0.07);
  background: #fff;
  transition: box-shadow 0.2s ease;
}

.hms-why-item:hover {
  box-shadow: 0 8px 32px rgba(26, 29, 43, 0.08);
}

.hms-why-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--hms-brand-dark), var(--hms-brand-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.hms-why-item h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--hms-dark);
  margin-bottom: 6px;
}

.hms-why-item p {
  font-size: 14px;
  color: var(--hms-muted);
  line-height: 1.6;
  margin: 0;
}

.hms-why-visual {
  background: var(--hms-grad-dark);
  border-radius: 20px;
  padding: 40px;
  color: #fff;
}

.hms-why-visual h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 28px;
  color: var(--hms-brand-light);
}

.hms-check-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hms-check-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
}

.hms-check-item::before {
  content: "✓";
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(215, 146, 60, 0.2);
  border: 1px solid rgba(215, 146, 60, 0.4);
  color: var(--hms-gold);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── INTEGRATIONS ── */
.hms-integrations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.hms-int-card {
  padding: 28px 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(215, 146, 60, 0.15);
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.hms-int-card:hover {
  border-color: rgba(215, 146, 60, 0.5);
  background: rgba(215, 146, 60, 0.05);
}

.hms-int-card .icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.hms-int-card h4 {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}

.hms-int-card p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
}

/* ── PRICING ── */
.hms-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
  align-items: start;
}

.hms-price-card {
  border-radius: 20px;
  padding: 36px 32px;
  border: 1px solid rgba(18, 18, 18, 0.1);
  background: #fff;
  position: relative;
}

.hms-price-card.featured {
  background: var(--hms-grad-dark);
  border-color: var(--hms-brand);
  color: #fff;
}

.hotel-management-page .featured-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 18px;
  background: var(--hms-grad-accent);
  border-radius: 100px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hms-price-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.hms-price-card.featured h3 {
  color: #fff;
}

.price-amount {
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  margin: 16px 0 4px;
}

.hms-price-card.featured .price-amount {
  color: var(--hms-brand-light);
}

.price-per {
  font-size: 14px;
  color: var(--hms-muted);
  margin-bottom: 24px;
}

.hms-price-card.featured .price-per {
  color: rgba(255, 255, 255, 0.55);
}

.price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.price-features li {
  font-size: 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.price-features li::before {
  content: "✓";
  color: var(--hms-gold);
  font-weight: 700;
  flex-shrink: 0;
}

.hms-price-card.featured .price-features li {
  color: rgba(255, 255, 255, 0.8);
}

.btn-price {
  display: block;
  text-align: center;
  padding: 13px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.btn-price:hover {
  transform: translateY(-2px);
}

.btn-price-outline {
  border: 1px solid rgba(18, 18, 18, 0.2);
  color: var(--hms-dark);
}

.btn-price-outline:hover {
  border-color: var(--hms-brand);
  color: var(--hms-brand);
}

.btn-price-gold {
  background: linear-gradient(135deg, var(--hms-brand-dark), var(--hms-brand-light));
  color: #fff;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .hms-hero-inner {
    grid-template-columns: 1fr;
    padding: var(--hms-header-offset) 24px 36px;
  }

  .hms-hero-visual {
    display: none;
  }

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

  .hms-why-grid {
    grid-template-columns: 1fr;
  }

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

  .hms-pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
  }

  .hms-phase-block {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hotel-management-page { --hms-header-offset: 112px; }
  .hms-hero-inner { padding: var(--hms-header-offset) 20px 28px; }
}

@media (max-width: 640px) {
  .hms-container {
    padding: 0 20px;
  }

  .hms-modules-grid {
    grid-template-columns: 1fr;
  }

  .hms-integrations-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hms-phases-mini {
    grid-template-columns: repeat(2, 1fr);
  }
}
