/* ============================================================
   SOS Services Hub — style.css
   Seek Or Seekh Studios · service.seekorseekh.com
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0a0a0a;
  --bg-card: #111111;
  --bg-card-hover: #181818;
  --border: #1e1e1e;
  --border-hover: #333333;
  --text-primary: #f0f0f0;
  --text-secondary: #888888;
  --text-muted: #555555;
  --accent: #ffffff;
  --radius: 14px;
  --font-heading: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-heading);
  background-color: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  min-height: 100dvh;
}

/* --- Page Container --- */
.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 2rem 1.25rem;
  max-width: 720px;
  margin: 0 auto;
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- Header --- */
.header {
  text-align: center;
  padding: 1.5rem 0 2rem;
  width: 100%;
}

.logo-container {
  margin-bottom: 1rem;
}

.logo {
  height: 36px;
  width: auto;
  opacity: 0.95;
}

.tagline {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* --- Services --- */
.services {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* --- Group --- */
.group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.group-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-left: 0.25rem;
}

/* --- Grid --- */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.625rem;
}

/* --- Card --- */
.card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.125rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.card:hover,
.card:focus-visible {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.card:active {
  transform: translateY(0);
  box-shadow: none;
}

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

/* Card Icon */
.card-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
}

/* Card Body */
.card-body {
  flex: 1;
  min-width: 0;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 0.975rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.card-desc {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--text-secondary);
}

/* Card Arrow */
.card-arrow {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: color 0.25s ease, transform 0.25s ease;
}

.card:hover .card-arrow {
  color: var(--text-primary);
  transform: translateX(3px);
}

/* --- Footer --- */
.footer {
  margin-top: auto;
  padding-top: 3rem;
  padding-bottom: 1rem;
  text-align: center;
}

.footer p {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* --- Staggered Fade-In for Cards --- */
.group:nth-child(1) { animation: fadeIn 0.6s ease-out 0.1s both; }
.group:nth-child(2) { animation: fadeIn 0.6s ease-out 0.2s both; }
.group:nth-child(3) { animation: fadeIn 0.6s ease-out 0.3s both; }

/* ============================================================
   Responsive — Tablet & Desktop
   ============================================================ */

/* 2-column grid on wider screens */
@media (min-width: 520px) {
  .grid {
    grid-template-columns: 1fr 1fr;
  }

  .page {
    padding: 3rem 2rem;
  }

  .logo {
    height: 44px;
  }
}

/* Larger desktop tweaks */
@media (min-width: 768px) {
  .page {
    padding: 4rem 2rem;
    max-width: 800px;
  }

  .logo {
    height: 48px;
  }

  .card {
    padding: 1.25rem 1.5rem;
  }

  .card-title {
    font-size: 1.05rem;
  }

  .card-desc {
    font-size: 0.75rem;
  }

  .services {
    gap: 2.5rem;
  }
}

/* Large screens */
@media (min-width: 1024px) {
  .page {
    max-width: 860px;
  }

  .header {
    padding: 2rem 0 3rem;
  }
}
