/**
 * MeteoinfoCentrala — CGP, mobile-first
 */
:root {
  color-scheme: dark;

  --mi-cyan: #05a5ce;
  --mi-red: #e2273e;
  --mi-yellow: #fbb006;

  --bg-deep: #1a1a1a;
  --bg-card: rgba(51, 51, 51, 0.94);
  --accent: #fbb006;
  --accent-glow: rgba(251, 176, 6, 0.35);
  --blue: #05a5ce;
  --text: #f2f2f2;
  --muted: #999999;
  --border: #4d4d4d;
  --radius: 14px;
  --font: "Nunito Sans", system-ui, -apple-system, sans-serif;

  --page-pad-x: max(1rem, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --touch-min: 48px;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-deep);
}

body {
  overflow-x: hidden;
}

.hero-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
      180deg,
      rgba(26, 26, 26, 0.6) 0%,
      rgba(26, 26, 26, 0.95) 50%,
      var(--bg-deep) 100%
    ),
    radial-gradient(ellipse at 50% 0%, rgba(5, 165, 206, 0.14), transparent 60%);
  pointer-events: none;
}

.page {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: calc(0.75rem + env(safe-area-inset-top, 0px)) var(--page-pad-x) 1.25rem;
}

.site-header {
  display: flex;
  align-items: center;
  padding: 0.25rem 0 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
  min-height: var(--touch-min);
}

.logo img {
  height: 40px;
  width: auto;
  flex-shrink: 0;
}

.logo-text h1 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.logo-text span {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.3;
}

.hero {
  text-align: center;
  padding: 0.5rem 0 1.25rem;
}

.hero h2 {
  margin: 0 0 0.5rem;
  font-size: 1.45rem;
  line-height: 1.2;
  font-weight: 800;
}

.hero h2 em {
  font-style: normal;
  color: var(--accent);
}

.hero .lead {
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: 22rem;
}

.product-grid {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.product-card {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.65rem 0.85rem;
  padding: 1rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.15s, background 0.15s;
}

.product-card:active {
  background: rgba(60, 60, 60, 0.95);
}

.product-icon {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
}

.product-card-body {
  flex: 1;
  min-width: 0;
}

.product-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.product-card p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

.product-card .btn {
  width: 100%;
  margin-top: 0.35rem;
  min-height: var(--touch-min);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #d99a05);
  color: #1a1508;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer {
  text-align: center;
  padding: 1rem 0 0.5rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer a {
  color: var(--blue);
  text-decoration: none;
}

/* Tablet+ */
@media (min-width: 640px) {
  .page {
    padding-top: calc(1rem + env(safe-area-inset-top, 0px));
    padding-bottom: 2rem;
  }

  .logo img {
    height: 48px;
  }

  .logo-text h1 {
    font-size: 1.35rem;
  }

  .hero h2 {
    font-size: clamp(1.5rem, 4vw, 2.1rem);
  }

  .hero .lead {
    font-size: 1rem;
    max-width: 36rem;
  }

  .product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .product-card {
    flex-direction: column;
  }

  .product-card .btn {
    width: auto;
    align-self: flex-start;
  }

  .product-card:hover {
    border-color: rgba(5, 165, 206, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  }

  .product-card--accent:hover {
    border-color: rgba(251, 176, 6, 0.45);
  }
}

@media (min-width: 900px) {
  .hero {
    padding: 1rem 0 2rem;
  }

  .product-card {
    padding: 1.35rem;
  }

  .product-card p {
    font-size: 0.9rem;
  }
}
