/* global.css — Tayo Host PHP site */

/* ── Geist Variable font (self-hosted) ─────────────────────────────────────── */
@font-face {
  font-family: 'Geist';
  src: url('/assets/fonts/geist-variable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ── Google Fonts: Outfit + DM Sans ────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@600;700;800;900&family=DM+Sans:wght@400;500;600&display=swap');

/* ── Reset & base ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: 'Geist', 'DM Sans', system-ui, sans-serif;
  color: #1f2937;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; }

/* ── CSS custom properties ──────────────────────────────────────────────────── */
:root {
  --brand-blue:     #4285F4;
  --brand-orange:   #FF6E00;
  --brand-navy:     #0d1a35;
  --brand-offwhite: #F0F0EB;
  --brand-border:   #e5e7eb;
  --brand-muted:    #6b7280;
  --brand-body:     #1f2937;
}

/* ── Skip link ──────────────────────────────────────────────────────────────── */
.th-skip-link {
  position: absolute;
  top: -9999px;
  left: 0;
  background: var(--brand-blue);
  color: #fff;
  padding: .5rem 1rem;
  font-size: .9rem;
  font-weight: 600;
  z-index: 9999;
  text-decoration: none;
}
.th-skip-link:focus { top: 0; }

/* ── Focus visible ──────────────────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
}

/* ── Shared button classes ──────────────────────────────────────────────────── */
.th-btn-orange {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: var(--brand-orange);
  color: #fff;
  padding: .78rem 1.55rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  box-shadow: 0 4px 18px rgba(255,110,0,.28);
  transition: box-shadow .2s, transform .15s;
}
.th-btn-orange:hover { box-shadow: 0 6px 26px rgba(255,110,0,.4); transform: translateY(-1px); }

.th-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: transparent;
  color: var(--brand-navy);
  border: 1.5px solid var(--brand-border);
  padding: .78rem 1.55rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background .2s, border-color .2s;
}
.th-btn-outline:hover { background: var(--brand-offwhite); border-color: var(--brand-blue); }

.th-btn-blue {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: var(--brand-blue);
  color: #fff;
  padding: .78rem 1.55rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: opacity .2s;
}
.th-btn-blue:hover { opacity: .9; }

.th-btn-wa {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: #25D366;
  color: #fff;
  padding: .78rem 1.55rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: opacity .2s;
}
.th-btn-wa:hover { opacity: .9; }

/* ── Pill badges ────────────────────────────────────────────────────────────── */
.th-pill-blue {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: rgba(66,133,244,.1);
  color: var(--brand-blue);
  font-size: .75rem;
  font-weight: 700;
  padding: .3rem .75rem;
  border-radius: 9999px;
  letter-spacing: .05em;
}
.th-pill-orange {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: rgba(255,110,0,.1);
  color: var(--brand-orange);
  font-size: .75rem;
  font-weight: 700;
  padding: .3rem .75rem;
  border-radius: 9999px;
  letter-spacing: .05em;
}

/* ── Card hover ─────────────────────────────────────────────────────────────── */
.th-card {
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  border: 1px solid var(--brand-border);
}
.th-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.09);
  border-color: var(--brand-blue) !important;
}

/* ── Font utilities ─────────────────────────────────────────────────────────── */
.th-outfit { font-family: 'Outfit', sans-serif !important; }
.th-dmsans { font-family: 'DM Sans', sans-serif !important; }

/* ── TopBar animation keyframes ─────────────────────────────────────────────── */
@keyframes th-slideOutUp { from{transform:translateY(0);opacity:1} to{transform:translateY(-100%);opacity:0} }
@keyframes th-slideInUp  { from{transform:translateY(100%);opacity:0} to{transform:translateY(0);opacity:1} }
