/* main.css — base styles and layout primitives */

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  color: var(--color-text);
  background-color: var(--color-bg);
}

/* ── Typography ──────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  line-height: 1.2;
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

p {
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ── Layout ──────────────────────────────────────── */

.container,
.section__container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.section {
  padding-block: var(--space-24);
}

/* ── Components ──────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  letter-spacing: 0.02em;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-teal);
  color: var(--color-navy);
}

.btn--primary:hover {
  background: #00e5c8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 201, 177, 0.3);
}

.btn--outline {
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.btn--outline:hover {
  border-color: var(--color-teal);
  color: var(--color-teal);
}

/* ── Utilities ───────────────────────────────────── */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ── Responsive ──────────────────────────────────── */

@media (max-width: 768px) {
  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }

  .container,
  .section__container {
    padding-inline: var(--space-4);
  }

  .section {
    padding-block: var(--space-16);
  }
}

/* ── Footer ──────────────────────────────────────── */

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding: 64px 48px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand-logo {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  font-size: var(--text-xl);
  color: var(--color-text);
  margin-bottom: 8px;
}

.footer-brand-tagline {
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: var(--weight-medium);
  line-height: 1.4;
  margin-bottom: 4px;
}

.footer-col-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: 16px;
}

.footer-brand-desc {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-top: 12px;
  max-width: 280px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a,
.footer-contact a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--color-text);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}

.footer-contact-note {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.store-badge-link {
  display: inline-block;
  margin-top: 8px;
}

.store-badge-img {
  height: 32px;
  width: auto;
  display: block;
  opacity: 0.85;
  transition: opacity 0.15s ease;
}

.store-badge-img:hover {
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 48px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 24px 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 20px 24px;
  }
}

/* ── Task 2f — Skip link ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  padding: 8px 16px;
  background: var(--color-teal);
  color: var(--color-navy);
  font-weight: 700;
  border-radius: 0 0 8px 8px;
  z-index: 10000;
  transition: top 0.2s ease;
  text-decoration: none;
  font-size: 0.875rem;
}
.skip-link:focus {
  top: 0;
  outline: 3px solid var(--color-navy);
  outline-offset: 2px;
}
