/* ==========================================================================
   HIDROPRIA INDONESIA — STYLESHEET (hidropria.id)
   Namespace: .hp-* (Strictly Scoped, Zero CSS Collision)
   Theme: Deep Aqua & Pure Cyan Tropical Cellular Hydration
   ========================================================================== */

:root {
  --hp-primary: #0284c7;
  --hp-primary-hover: #0369a1;
  --hp-primary-dark: #075985;
  --hp-primary-light: #f0f9ff;
  --hp-cyan: #06b6d4;
  --hp-cyan-light: #e0f2fe;
  --hp-cyan-dark: #0891b2;
  --hp-navy: #0f172a;
  --hp-navy-deep: #0c4a6e;
  --hp-slate: #334155;
  --hp-slate-muted: #64748b;
  --hp-border: #e2e8f0;
  --hp-border-cyan: #bae6fd;
  --hp-bg-page: #f8fafc;
  --hp-bg-card: #ffffff;
  --hp-bg-alt: #f0f9ff;

  --hp-font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --hp-font-heading: 'Lexend', 'Inter', system-ui, sans-serif;

  --hp-shadow-sm: 0 1px 3px rgba(2, 132, 199, 0.08);
  --hp-shadow-md: 0 4px 14px -2px rgba(2, 132, 199, 0.12), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --hp-shadow-lg: 0 12px 28px -4px rgba(2, 132, 199, 0.16), 0 4px 10px -2px rgba(15, 23, 42, 0.05);
  --hp-shadow-xl: 0 20px 40px -6px rgba(6, 182, 212, 0.22);

  --hp-radius-sm: 6px;
  --hp-radius-md: 12px;
  --hp-radius-lg: 20px;
  --hp-radius-full: 9999px;

  --hp-transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--hp-font-main);
  background-color: var(--hp-bg-page);
  color: var(--hp-slate);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body.hp-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.hp-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hp-border-cyan);
  box-shadow: var(--hp-shadow-sm);
}

.hp-nav-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hp-brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--hp-navy);
}

.hp-brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--hp-primary), var(--hp-cyan));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.3rem;
  box-shadow: 0 4px 10px rgba(6, 182, 212, 0.3);
}

.hp-brand-text {
  display: flex;
  flex-direction: column;
}

.hp-brand-name {
  font-family: var(--hp-font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--hp-navy);
}

.hp-brand-name span {
  color: var(--hp-primary);
}

.hp-brand-sub {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--hp-cyan-dark);
}

.hp-nav-menu {
  display: flex;
  align-items: center;
  gap: 1.85rem;
  list-style: none;
}

.hp-nav-link {
  text-decoration: none;
  color: var(--hp-slate);
  font-size: 0.92rem;
  font-weight: 600;
  transition: var(--hp-transition);
}

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

.hp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  font-family: var(--hp-font-main);
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: var(--hp-radius-md);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--hp-transition);
}

.hp-btn-primary {
  background: linear-gradient(135deg, var(--hp-primary), var(--hp-cyan));
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.28);
}

.hp-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.38);
}

.hp-btn-outline {
  background: #ffffff;
  border-color: var(--hp-border-cyan);
  color: var(--hp-navy-deep);
}

.hp-btn-outline:hover {
  border-color: var(--hp-primary);
  color: var(--hp-primary);
  background: var(--hp-primary-light);
}

.hp-btn-sm {
  padding: 0.45rem 0.95rem;
  font-size: 0.82rem;
}

.hp-mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--hp-navy);
  cursor: pointer;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hp-hero {
  padding: 4.5rem 1.5rem 3.5rem;
  background: linear-gradient(180deg, #ffffff 0%, #e0f2fe 100%);
  border-bottom: 1px solid var(--hp-border-cyan);
  position: relative;
  overflow: hidden;
}

.hp-hero-container {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hp-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--hp-cyan-light);
  border: 1px solid #7dd3fc;
  color: var(--hp-navy-deep);
  padding: 0.35rem 0.85rem;
  border-radius: var(--hp-radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.hp-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--hp-primary);
  animation: hp-pulse 2s infinite;
}

@keyframes hp-pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(2, 132, 199, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(2, 132, 199, 0); }
}

.hp-hero-title {
  font-family: var(--hp-font-heading);
  font-size: 2.85rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--hp-navy);
  margin-bottom: 1.25rem;
}

.hp-hero-title span {
  color: var(--hp-primary);
  background: linear-gradient(135deg, var(--hp-primary), var(--hp-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hp-hero-lead {
  font-size: 1.1rem;
  color: var(--hp-slate);
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: 580px;
}

.hp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hp-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(2, 132, 199, 0.15);
}

.hp-stat-number {
  font-family: var(--hp-font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--hp-navy);
}

.hp-stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--hp-slate-muted);
}

.hp-hero-media {
  position: relative;
}

.hp-hero-card {
  position: relative;
  background: #ffffff;
  border-radius: var(--hp-radius-lg);
  padding: 0.75rem;
  box-shadow: var(--hp-shadow-xl);
  border: 1px solid var(--hp-border-cyan);
}

.hp-hero-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: calc(var(--hp-radius-lg) - 6px);
  display: block;
}

.hp-hero-floating-badge {
  position: absolute;
  bottom: -20px;
  left: 20px;
  background: #ffffff;
  border-radius: var(--hp-radius-md);
  padding: 1rem 1.25rem;
  box-shadow: var(--hp-shadow-lg);
  border: 1px solid var(--hp-border-cyan);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hp-floating-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--hp-primary-light);
  color: var(--hp-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

/* ==========================================================================
   SECTIONS & GRIDS
   ========================================================================== */
.hp-section {
  padding: 4.5rem 1.5rem;
}

.hp-section-alt {
  background-color: var(--hp-bg-alt);
}

.hp-container {
  max-width: 1240px;
  margin: 0 auto;
}

.hp-section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.hp-section-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--hp-primary);
  margin-bottom: 0.5rem;
  display: block;
}

.hp-section-title {
  font-family: var(--hp-font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--hp-navy);
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}

.hp-section-subtitle {
  font-size: 1rem;
  color: var(--hp-slate-muted);
}

/* ==========================================================================
   CALCULATOR WIDGET
   ========================================================================== */
.hp-calc-card {
  background: #ffffff;
  border: 1px solid var(--hp-border-cyan);
  border-radius: var(--hp-radius-lg);
  box-shadow: var(--hp-shadow-lg);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  overflow: hidden;
  max-width: 1020px;
  margin: 0 auto;
}

.hp-calc-form {
  padding: 2.5rem;
}

.hp-calc-output {
  background: linear-gradient(135deg, var(--hp-navy-deep), var(--hp-navy));
  color: #ffffff;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hp-form-group {
  margin-bottom: 1.25rem;
}

.hp-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--hp-navy);
  margin-bottom: 0.4rem;
}

.hp-input, .hp-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius-md);
  font-family: var(--hp-font-main);
  font-size: 0.9rem;
  color: var(--hp-slate);
  background: #ffffff;
  transition: var(--hp-transition);
}

.hp-input:focus, .hp-select:focus {
  outline: none;
  border-color: var(--hp-primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.18);
}

.hp-output-fluid {
  font-family: var(--hp-font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  color: #38bdf8;
  line-height: 1;
  margin: 0.5rem 0 1rem;
}

.hp-electrolyte-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.hp-elec-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--hp-radius-sm);
  padding: 0.75rem;
  text-align: center;
}

.hp-elec-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
}

.hp-elec-name {
  font-size: 0.72rem;
  color: #94a3b8;
  text-transform: uppercase;
}

/* ==========================================================================
   MINERAL MATRIX CARDS
   ========================================================================== */
.hp-matrix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.hp-matrix-card {
  background: #ffffff;
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius-lg);
  padding: 1.75rem;
  box-shadow: var(--hp-shadow-md);
  transition: var(--hp-transition);
  display: flex;
  flex-direction: column;
}

.hp-matrix-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--hp-shadow-xl);
  border-color: #38bdf8;
}

.hp-matrix-badge {
  display: inline-block;
  background: var(--hp-cyan-light);
  color: var(--hp-navy-deep);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--hp-radius-full);
  margin-bottom: 0.75rem;
}

.hp-matrix-name {
  font-family: var(--hp-font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--hp-navy);
  margin-bottom: 0.5rem;
}

.hp-matrix-desc {
  font-size: 0.85rem;
  color: var(--hp-slate);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.hp-mineral-row {
  display: flex;
  justify-content: space-between;
  padding: 0.45rem 0;
  border-top: 1px dashed var(--hp-border);
  font-size: 0.82rem;
}

.hp-mineral-label {
  color: var(--hp-slate-muted);
}

.hp-mineral-value {
  font-weight: 700;
  color: var(--hp-navy);
}

/* ==========================================================================
   SCHEDULE TRACKER
   ========================================================================== */
.hp-tracker-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.hp-tracker-item {
  background: #ffffff;
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: var(--hp-transition);
}

.hp-tracker-item:hover {
  border-color: var(--hp-primary);
  background: var(--hp-primary-light);
}

.hp-tracker-time {
  background: var(--hp-navy-deep);
  color: #ffffff;
  font-family: var(--hp-font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  padding: 0.35rem 0.65rem;
  border-radius: var(--hp-radius-sm);
  white-space: nowrap;
}

.hp-tracker-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--hp-navy);
  margin-bottom: 0.25rem;
}

.hp-tracker-desc {
  font-size: 0.82rem;
  color: var(--hp-slate-muted);
}

/* ==========================================================================
   PROSE / CONTENT PAGES
   ========================================================================== */
.hp-page-header {
  padding: 3.5rem 1.5rem;
  background: linear-gradient(180deg, #ffffff 0%, #e0f2fe 100%);
  border-bottom: 1px solid var(--hp-border-cyan);
  text-align: center;
}

.hp-page-content {
  max-width: 860px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.hp-prose {
  font-size: 1rem;
  color: var(--hp-slate);
  line-height: 1.75;
}

.hp-prose h2 {
  font-family: var(--hp-font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--hp-navy);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--hp-border);
}

.hp-prose h3 {
  font-family: var(--hp-font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--hp-navy);
  margin: 1.75rem 0 0.75rem;
}

.hp-prose p {
  margin-bottom: 1.25rem;
}

.hp-prose ul, .hp-prose ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.hp-prose li {
  margin-bottom: 0.5rem;
}

.hp-alert-box {
  background: var(--hp-cyan-light);
  border: 1px solid #7dd3fc;
  border-left: 4px solid var(--hp-primary);
  border-radius: var(--hp-radius-md);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}

.hp-alert-box h4 {
  font-family: var(--hp-font-heading);
  color: var(--hp-navy-deep);
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.hp-alert-box p {
  color: #0369a1;
  font-size: 0.92rem;
  margin: 0;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.hp-footer {
  background-color: var(--hp-navy);
  color: #94a3b8;
  padding: 4rem 1.5rem 2rem;
  margin-top: auto;
}

.hp-footer-grid {
  max-width: 1240px;
  margin: 0 auto 3rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
}

.hp-footer-brand h4 {
  font-family: var(--hp-font-heading);
  color: #ffffff;
  font-size: 1.25rem;
  margin-bottom: 0.85rem;
}

.hp-footer-brand p {
  font-size: 0.85rem;
  line-height: 1.6;
}

.hp-footer-col h5 {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1.15rem;
}

.hp-footer-links {
  list-style: none;
}

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

.hp-footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--hp-transition);
}

.hp-footer-links a:hover {
  color: #38bdf8;
}

.hp-footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  gap: 1rem;
}

.hp-legal-bar {
  display: flex;
  gap: 1.25rem;
}

.hp-legal-bar a {
  color: #94a3b8;
  text-decoration: none;
  transition: var(--hp-transition);
}

.hp-legal-bar a:hover {
  color: #38bdf8;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 992px) {
  .hp-hero-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hp-calc-card {
    grid-template-columns: 1fr;
  }
  .hp-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hp-nav-menu {
    display: none;
  }
  .hp-mobile-toggle {
    display: block;
  }
  .hp-hero-title {
    font-size: 2.2rem;
  }
  .hp-footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hp-hero-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
