/* FILE: static/home_page.css
 *
 * Scop:
 * - Stilizare DOAR pentru homepage public (#home-section).
 * - Mobile-first, enterprise.
 * - Hero: imagine sus + conținut jos pe panou gri deschis, cu “glass” pentru carduri.
 */

:root {
  --home-glass-bg: rgba(255, 255, 255, 0.45);
  --home-glass-border: rgba(15, 23, 42, 0.12);
  --home-glass-shadow: 0 14px 40px rgba(15, 23, 42, 0.10);
  --home-ink: rgba(15, 23, 42, 0.86);
  --home-ink-soft: rgba(15, 23, 42, 0.72);

  /* Panou “underlay” pentru efectul de sticlă (gri deschis) */
  --home-panel-bg: rgba(15, 23, 42, 0.04);
  --home-panel-border: rgba(15, 23, 42, 0.08);
  --home-panel-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

@media (max-width: 520px) {
  .header-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
  }

  #user-info {
    width: 100%;
    text-align: right;
  }
}

/* =========================
   HOME layout
   ========================= */

.home {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

/* =========================
   HERO (imagine sus + panel jos)
   ========================= */

.home-hero {
  padding: 14px;
  position: relative;
  overflow: hidden;
}

/* Imaginea sus (decupaj controlat) */
.home-hero-media {
  position: relative;
  height: 170px;
  border-radius: var(--radius-xl);
  overflow: hidden;

  /* IMPORTANT: poza trebuie să fie în: static/home_assets/hero-call-center.jpg */
  background: url("home_assets/hero-call-center.jpg") center / cover no-repeat;
}

/* Wash pentru imagine (premium, lizibil) */
.home-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;

  background: radial-gradient(
    circle at 20% 0%,
    rgba(255, 255, 255, 0.62) 0%,
    rgba(255, 255, 255, 0.22) 55%,
    rgba(255, 255, 255, 0.16) 100%
  );
  pointer-events: none;
}

/* Panou jos (gri deschis) peste care punem cardurile “glass” */
.home-hero-panel {
  margin-top: 12px;
  border-radius: var(--radius-xl);
  background: var(--home-panel-bg);
  border: 1px solid var(--home-panel-border);
  box-shadow: var(--home-panel-shadow);

  /* blur subtil, fără efecte agresive */
  backdrop-filter: blur(4px);

  padding: 12px;
}

.home-hero-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.home-hero-text {
  background: var(--home-glass-bg);
  border: 1px solid var(--home-glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--home-glass-shadow);
  backdrop-filter: blur(6px);

  padding: 14px;
}

.home-title {
  margin: 0;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}

.home-subtitle {
  margin: 8px 0 0 0;
  font-size: 0.92rem;
  color: var(--home-ink-soft);
  line-height: 1.45;
}

.home-hero-cta {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.home-hero-links {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.home-link {
  font-size: 0.85rem;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-link:hover {
  opacity: 0.85;
}

/* Highlights */
.home-hero-highlights {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.home-highlight {
  border-radius: var(--radius-lg);
  border: 1px solid var(--home-glass-border);
  background: var(--home-glass-bg);
  padding: 12px;
  box-shadow: var(--home-glass-shadow);
  backdrop-filter: blur(6px);
}

.home-highlight-title {
  font-weight: 900;
  font-size: 0.90rem;
  letter-spacing: -0.01em;
  color: var(--home-ink);
}

.home-highlight-text {
  margin-top: 6px;
  font-size: 0.84rem;
  color: var(--home-ink-soft);
  line-height: 1.4;
}

/* =========================
   Notice highlight (Atenție)
   ========================= */

.home-highlight--notice {
  /* mai “citibil” peste fundalul hero */
  background: rgba(248, 250, 252, 0.78);
  border-color: rgba(15, 23, 42, 0.18);
}

.home-notice-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.home-notice-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;

  background: rgba(250, 204, 21, 0.95); /* galben (amber) */
  color: #111827;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-weight: 950;
  font-size: 1.55rem;
  line-height: 1;

  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
  flex: 0 0 auto;
}

.home-highlight--notice .home-highlight-title {
  font-size: 0.95rem;
}

.home-highlight--notice .home-highlight-text {
  margin-top: 0; /* avem head separat */
}


/* Desktop: păstrăm text stânga + highlights dreapta (dar totul rămâne sub imagine) */
@media (min-width: 900px) {
  .home-hero-media {
    height: 260px;
  }

  .home-hero-inner {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 16px;
    align-items: start;
  }

  .home-title {
    font-size: 1.75rem;
  }
}

/* =========================
   Secțiuni
   ========================= */

.home-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-section-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.home-section-title {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

/* =========================
   Plans
   ========================= */

.home-plans-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 900px) {
  .home-plans-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }
}

.home-plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.home-plan-top {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.home-plan-name {
  font-weight: 900;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}

.home-plan-price {
  font-weight: 800;
  color: var(--muted);
  font-size: 0.9rem;
}

.home-plan-body {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.home-plan-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  padding-bottom: 8px;
}

.home-plan-line:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.home-plan-label {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 800;
}

.home-plan-value {
  font-size: 0.9rem;
  font-weight: 900;
  color: var(--text);
}

.home-plan-note {
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}

.home-plan-actions {
  margin-top: auto;
  display: flex;
  justify-content: flex-end;
  padding-top: 12px;
}

.home-plan-card.is-popular {
  background: #ffffff;
  border-color: rgba(17, 24, 39, 0.28);
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.10);
}

.home-plan-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

/* =========================
   Partners + Shipping cards (Avion/Tren)
   ========================= */

.home-partners-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-partners-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 900px) {
  .home-partners-layout {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: start;
  }
}

.home-partner-tile {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--card-soft);
  padding: 12px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.home-partner-logo {
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.home-partner-text {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}

.home-shipping-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.home-shipping-card {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--card-soft);
  padding: 14px;
  box-shadow: var(--shadow-soft);

  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.home-shipping-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.home-shipping-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);

  background: var(--accent);
  color: #fff;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);
  flex: 0 0 auto;
}

.home-shipping-icon svg {
  width: 28px;
  height: 28px;
  display: block;
}

.home-shipping-title {
  font-weight: 950;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: var(--text);
}

.home-shipping-meta {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.home-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: -0.01em;

  background: rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(15, 23, 42, 0.14);
  color: var(--text);
}

.home-shipping-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.home-shipping-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.home-shipping-list li {
  margin-bottom: 6px;
}

.home-shipping-price {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: #ffffff;
  padding: 12px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.home-shipping-price-label {
  font-weight: 950;
  font-size: 0.85rem;
  color: var(--text);
}

.home-shipping-price-value {
  margin-top: 6px;
  font-weight: 950;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.home-shipping-price-sub {
  margin-top: 6px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}

.home-price-table {
  margin-top: 8px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15, 23, 42, 0.10);
  overflow: hidden;
}

.home-price-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 10px;
  background: #fff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.home-price-row:nth-child(even) {
  background: rgba(15, 23, 42, 0.02);
}

.home-price-row:last-child {
  border-bottom: none;
}

.home-price-cell {
  font-size: 0.84rem;
  color: var(--text);
  font-weight: 800;
}

.home-shipping-tip {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(15, 23, 42, 0.03);
  padding: 12px;
}

.home-tip-title {
  font-weight: 950;
  font-size: 0.85rem;
  color: var(--text);
}

.home-tip-text {
  margin-top: 6px;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--muted);
}

/* =========================
   Services carousel
   ========================= */

.home-services-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-carousel {
  position: relative;
}

.home-carousel-track {
  display: flex;
  gap: 12px;

  overflow-x: auto;
  -webkit-overflow-scrolling: touch;

  scroll-snap-type: x mandatory;
  padding: 8px 44px 12px 44px;
}

.home-carousel-track:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.10);
  border-radius: var(--radius-xl);
}

.home-service-card {
  scroll-snap-align: start;

  flex: 0 0 86%;
  max-width: 420px;

  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: #ffffff;
  box-shadow: var(--shadow-soft);

  padding: 14px;
  min-height: 220px;

  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 900px) {
  .home-service-card {
    flex: 0 0 320px;
    max-width: 320px;
  }
}

.home-service-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;

  background: var(--accent);
  color: #ffffff;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);
}

.home-service-icon svg {
  width: 28px;
  height: 28px;
  display: block;
}

.home-service-title {
  font-weight: 950;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  color: var(--text);
}

.home-service-text {
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--muted);
}

.home-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 38px;
  height: 38px;
  border-radius: 999px;

  border: 1px solid rgba(15, 23, 42, 0.18);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(6px);

  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.10);
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-weight: 950;
  color: var(--text);
}

.home-carousel-btn:hover {
  border-color: rgba(15, 23, 42, 0.28);
}

.home-carousel-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.home-carousel-btn.prev { left: 8px; }
.home-carousel-btn.next { right: 8px; }

@media (max-width: 520px) {
  .home-carousel-track {
    padding: 8px 10px 12px 10px;
  }

  /* Pe mobile: swipe, fără butoane */
  .home-carousel-btn {
    display: none;
  }
}

/* =========================
   Newsletter / Footer (existente)
   ========================= */

.home-newsletter-form {
  max-width: 520px;
}

.home-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.home-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 900px) {
  .home-footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.home-footer-logo {
  font-weight: 900;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-size: 0.82rem;
  margin-bottom: 8px;
}

.home-footer-title {
  font-weight: 900;
  font-size: 0.92rem;
  margin-bottom: 8px;
}

.home-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.home-footer-links a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 0.85rem;
}

.home-footer-links a:hover {
  opacity: 0.85;
}

.home-footer-bottom {
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  padding: 6px 0 10px 0;
}

/* Legal badges (ANPC/SOL) */
.home-legal-icons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  width: 100%;
}

.home-legal-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.home-legal-icon {
  width: min(260px, 100%);
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: #fff;
}

@media (min-width: 900px) {
  .home-legal-icons {
    align-items: flex-start;
  }
}

/* Auth integration (homepage) */
.home-auth-head {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}
