/* ========================================================================
   Halli Group — styles.css
   Premium dark aesthetic matching Halcheck design language
   ======================================================================== */

:root {
  --bg: #050508;
  --text: #e8e8ed;
  --text-muted: #71717a;
  --accent: #f59e0b;
  --border: rgba(255, 255, 255, 0.08);
  --card-bg: rgba(255, 255, 255, 0.04);
  --card-hover: rgba(255, 255, 255, 0.06);

  --max-width: 1120px;
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-body: var(--font-display);
}

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

html, body {
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===== Header ======================================================== */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
}

.site-header__logo img {
  height: 48px;
  width: auto;
  display: block;
}

.site-header__est {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ===== Hero ========================================================== */

.hero {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem 4rem;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(245, 158, 11, 0.08) 0%, rgba(245, 158, 11, 0.02) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: breathe 8s ease-in-out infinite;
}

.hero__badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border-radius: 100px;
  border: 1px solid rgba(245, 158, 11, 0.2);
  background: rgba(245, 158, 11, 0.05);
  color: var(--accent);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.hero__badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero__headline,
.hero__sub,
.portfolio {
  position: relative;
  z-index: 1;
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 1.25rem;
  padding: 0.1em 0;
}

.hero__headline .accent {
  color: var(--accent);
}

.hero__sub {
  color: var(--text-muted);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  max-width: 32rem;
  margin: 0 auto 4rem;
  line-height: 1.7;
}

/* ===== Portfolio cards =============================================== */

.portfolio {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
  max-width: 800px;
}

.card {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 1.75rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-align: left;
  transition: border-color 300ms ease, background 300ms ease, transform 300ms ease;
  position: relative;
  overflow: hidden;
}

.card:hover,
.card:focus-visible {
  border-color: rgba(245, 158, 11, 0.3);
  background: var(--card-hover);
  transform: translateY(-2px);
}

.card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.card__number {
  color: var(--accent);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  opacity: 0.5;
  margin-bottom: 1.25rem;
}

.card__content {
  flex: 1;
}

.card__title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.card__subtitle {
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.card__desc {
  color: var(--text-muted);
  font-size: 0.8125rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.card__link {
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  transition: color 200ms ease;
}

.card:hover .card__link,
.card:focus-visible .card__link {
  color: var(--accent);
}

/* ===== Divider ======================================================= */

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.08), transparent);
}

/* ===== Footer ======================================================== */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-footer__logo {
  height: 20px;
  width: auto;
  opacity: 0.5;
}

.site-footer__social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-footer__social a {
  color: var(--text-muted);
  transition: color 200ms ease;
  display: flex;
  align-items: center;
}

.site-footer__social a:hover {
  color: var(--accent);
}

.site-footer__meta {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.site-footer__meta a {
  color: var(--text-muted);
  transition: color 200ms ease;
}

.site-footer__meta a:hover,
.site-footer__meta a:focus-visible {
  color: var(--accent);
}

.site-footer__meta a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* ===== Motion ========================================================= */

@keyframes breathe {
  0%, 100% { opacity: 0; }
  50%      { opacity: 0.8; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__glow {
    animation: none;
    opacity: 0;
  }
}

/* ===== Legal pages ==================================================== */

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
}

.legal h1 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.legal .updated {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 3rem;
}

.legal h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.legal p, .legal li {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.legal ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.legal li {
  margin-bottom: 0.4rem;
}

.legal a {
  color: var(--text);
  border-bottom: 1px solid rgba(245, 245, 247, 0.25);
}

.legal a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.legal strong {
  color: var(--text);
  font-weight: 500;
}

/* ===== Responsive ===================================================== */

@media (max-width: 640px) {
  .site-header {
    padding: 1rem;
    justify-content: center;
  }
  .site-header__est {
    display: none;
  }
  .hero {
    flex: 0 0 auto;
    justify-content: flex-start;
    padding: 3rem 1rem;
  }
  .hero__sub {
    margin-bottom: 3rem;
  }
  .portfolio {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
  .card {
    min-height: auto;
  }
  .site-footer {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 1rem;
    text-align: center;
  }
}
