/*
Theme Name: OfficialAPIs
Theme URI: https://officialapis.com
Author: OfficialAPIs
Description: WordPress port of the OfficialAPIs marketing site matching officialapis.com.
Version: 1.3.1
Text Domain: officialapis
*/

/* =========================================================
   Brand greens matched to Lovable demo (#007a50)
   brand-50  #eefcf6
   brand-100 #d8f5e6
   brand-500 #00b26d
   brand-600 #007a50   ← primary CTA green (ditto lovable)
   brand-700 #006644
   brand-900 #033a34
   body      #f9fafb / text #1f2937
   footer    #111827
   ========================================================= */

:root {
  --oa-brand-50: #eefcf6;
  --oa-brand-100: #d8f5e6;
  --oa-brand-500: #00b26d;
  --oa-brand-600: #007a50;
  --oa-brand-700: #006644;
  --oa-brand-900: #033a34;
  --oa-gray-50: #f9fafb;
  --oa-gray-100: #f3f4f6;
  --oa-gray-400: #9ca3af;
  --oa-gray-500: #6b7280;
  --oa-gray-600: #4b5563;
  --oa-gray-700: #374151;
  --oa-gray-800: #1f2937;
  --oa-gray-900: #111827;
  --oa-ink: #111827;
  --oa-text: #1f2937;
  --oa-line: #f3f4f6;
}

.oa-brand-shadow {
  box-shadow: 0 10px 15px -3px rgba(0, 122, 80, 0.3) !important;
}

/* Kill WP admin-bar top gap */
html {
  margin-top: 0 !important;
  font-family: Inter, sans-serif;
}
#wpadminbar {
  display: none !important;
}
body.admin-bar {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Full-site body — download gray-50 + teal wash */
body.antialiased,
body {
  font-family: 'Inter', 'Outfit', 'Segoe UI', sans-serif !important;
  color: var(--oa-text) !important;
  background:
    radial-gradient(circle at 15% 50%, rgba(7, 94, 84, 0.1), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(7, 94, 84, 0.15), transparent 25%),
    var(--oa-gray-50) !important;
}

.mono {
  font-family: 'JetBrains Mono', monospace !important;
}

.font-heading,
h1.font-heading,
h2.font-heading,
h3.font-heading,
h4.font-heading {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif !important;
}

.font-extrabold { font-weight: 800 !important; }
.font-bold { font-weight: 700 !important; }
.font-semibold { font-weight: 600 !important; }
.font-medium { font-weight: 500 !important; }
.font-normal { font-weight: 400 !important; }

/* ---- Remap primary / brand / blue accents → download teal ---- */
.text-primary,
.text-brand-blue,
.text-blue-600,
.text-blue-700,
a.text-blue-600,
.hover\:text-blue-600:hover {
  color: var(--oa-brand-600) !important;
}

.bg-primary,
.bg-blue-600,
.bg-blue-700,
.hover\:bg-blue-600:hover,
.hover\:bg-blue-700:hover,
.hover\:bg-primary:hover,
.hover\:bg-primary\/90:hover {
  background-color: var(--oa-brand-600) !important;
}

.bg-primary-hover,
.hover\:bg-primary-hover:hover {
  background-color: var(--oa-brand-700) !important;
}

.bg-primary-light,
.bg-primary\/10,
.bg-primary\/5,
.bg-blue-50,
.bg-blue-100,
.hover\:bg-blue-50:hover {
  background-color: var(--oa-brand-50) !important;
}

.border-primary,
.border-blue-200,
.border-blue-600,
.hover\:border-blue-200:hover {
  border-color: var(--oa-brand-600) !important;
}

.border-primary\/20,
.border-primary\/50 {
  border-color: rgba(7, 94, 84, 0.25) !important;
}

.text-brand-ink {
  color: var(--oa-ink) !important;
}
.text-brand-text {
  color: var(--oa-gray-600) !important;
}
.border-brand-line,
.border-brand-line\/90 {
  border-color: var(--oa-gray-100) !important;
}

/* Selection */
.selection\:bg-primary-light::selection,
::selection {
  background-color: var(--oa-brand-100);
  color: var(--oa-ink);
}

/* Sticky header is in-flow — clamp hero top pad (templates used fixed-nav sizes) */
.oa-site-header ~ main,
.oa-site-header + section,
.oa-site-header + header:not(.oa-site-header) {
  padding-top: 3rem !important;
}
@media (min-width: 1024px) {
  .oa-site-header ~ main,
  .oa-site-header + section,
  .oa-site-header + header:not(.oa-site-header) {
    padding-top: 3.5rem !important;
  }
}

/* Utilities missing from compiled app.css — without these, section py-20 collapses to 0 */
.pt-10 { padding-top: 2.5rem !important; }
.py-20 {
  padding-top: 5rem !important;
  padding-bottom: 5rem !important;
}
.mb-14 { margin-bottom: 3.5rem !important; }
@media (min-width: 1024px) {
  .lg\:pt-12 { padding-top: 3rem !important; }
  .lg\:py-20 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
  }
  .lg\:py-24 {
    padding-top: 6rem !important;
    padding-bottom: 6rem !important;
  }
}

/* ---- Header (download nav) ---- */
header.sticky,
.oa-site-header {
  background-color: rgba(255, 255, 255, 0.8) !important;
  border-bottom: 1px solid var(--oa-gray-100) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.oa-site-header .oa-nav-link,
.oa-site-header a.text-brand-text {
  color: var(--oa-gray-600) !important;
}
.oa-site-header a:not(.oa-btn-start):not(.oa-btn-demo):hover,
.oa-site-header .hover\:text-brand-blue:hover {
  color: var(--oa-brand-600) !important;
}
.oa-site-header a.oa-btn-start,
.oa-site-header a.oa-btn-start:visited {
  color: #fff !important;
}
.oa-site-header a.oa-btn-start:hover,
.oa-site-header a.oa-btn-start:focus,
.oa-site-header a.oa-btn-start:focus-visible,
.oa-site-header a.oa-btn-start:active {
  color: #fff !important;
  background-color: var(--oa-brand-700) !important;
  border-color: var(--oa-brand-700) !important;
}

.oa-btn-demo {
  color: var(--oa-brand-600) !important;
  background: transparent !important;
  border: 2px solid var(--oa-brand-600) !important;
  border-radius: 0.75rem !important;
  padding: 0.5rem 1.25rem !important; /* py-2 px-5 */
  line-height: 1.25 !important;
  white-space: nowrap;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 2.5rem !important;
}
.oa-btn-demo:hover {
  background-color: var(--oa-brand-50) !important;
}

.oa-btn-start {
  /* Lovable demo green — hardcode so cache/vars cannot drift */
  background-color: #007a50 !important;
  color: #f9fdfb !important;
  border: 2px solid #007a50 !important;
  border-radius: 0.75rem !important;
  padding: 0.625rem 1.25rem !important; /* py-2.5 px-5 */
  box-shadow: 0 10px 15px -3px rgba(0, 122, 80, 0.3) !important;
  line-height: 1.25 !important;
  white-space: nowrap;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 2.5rem !important;
}
.oa-btn-start:hover,
.oa-btn-start:focus,
.oa-btn-start:active {
  background-color: #006644 !important;
  border-color: #006644 !important;
  color: #f9fdfb !important;
}
.oa-site-header a.oa-btn-start,
.oa-site-header a.oa-btn-start:visited,
.oa-site-header a.oa-btn-start:hover,
.oa-site-header a.oa-btn-start:focus,
.oa-site-header a.oa-btn-start:focus-visible,
.oa-site-header a.oa-btn-start:active {
  background-color: #007a50 !important;
  border-color: #007a50 !important;
  color: #f9fdfb !important;
}
.oa-site-header a.oa-btn-start:hover,
.oa-site-header a.oa-btn-start:focus,
.oa-site-header a.oa-btn-start:focus-visible,
.oa-site-header a.oa-btn-start:active {
  background-color: #006644 !important;
  border-color: #006644 !important;
}

/* Meta partner badge icon (Font Awesome brands) — keep blue like download page */
.oa-site-footer .fab.fa-meta,
.oa-site-footer i.fa-meta {
  font-family: "Font Awesome 6 Brands" !important;
  font-weight: 400 !important;
  font-style: normal !important;
  color: #3b82f6 !important; /* text-blue-500 */
  font-size: 0.875rem !important;
  line-height: 1 !important;
  display: inline-block !important;
}

/* Footer App Store / Google Play badges — match official badge look */
.oa-site-footer .oa-store-row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 0.75rem !important;
  margin-top: 0 !important;
}
.oa-site-footer a.oa-store-btn,
.oa-site-footer a.oa-store-btn:visited,
.oa-site-footer a.oa-store-btn:hover,
.oa-site-footer a.oa-store-btn:focus,
.oa-site-footer a.oa-store-btn:active {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0.7rem !important;
  min-width: 148px !important;
  height: 44px !important;
  padding: 0 0.9rem 0 0.75rem !important;
  border-radius: 8px !important;
  background: #000 !important;
  border: 1px solid #a6a6a6 !important;
  color: #fff !important;
  text-decoration: none !important;
  box-shadow: none !important;
  transform: none !important;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.oa-site-footer a.oa-store-btn:hover,
.oa-site-footer a.oa-store-btn:focus {
  opacity: 0.92;
  transform: translateY(-1px);
  color: #fff !important;
  background: #000 !important;
  border-color: #a6a6a6 !important;
}
.oa-store-icon {
  width: 22px !important;
  height: 22px !important;
  display: block !important;
  flex-shrink: 0 !important;
}
.oa-store-apple-svg {
  width: 20px !important;
  height: 24px !important;
  display: block !important;
  flex-shrink: 0 !important;
  color: #fff !important;
}
.oa-store-copy {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 1px !important;
  line-height: 1 !important;
}
.oa-store-kicker {
  font-size: 9px !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em !important;
  color: #fff !important;
  white-space: nowrap !important;
}
.oa-store-name {
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em !important;
  color: #fff !important;
  white-space: nowrap !important;
}

/* Active nav chips */
.oa-site-header .bg-blue-50,
header .bg-blue-50 {
  background-color: var(--oa-brand-50) !important;
}
.oa-site-header .text-brand-blue,
header .text-brand-blue {
  color: var(--oa-brand-600) !important;
}

/* ---- Footer (download gray-900) ---- */
.oa-site-footer {
  background-color: var(--oa-gray-900) !important;
  color: #ffffff !important;
  border-top: 1px solid var(--oa-gray-800) !important;
}
.oa-site-footer .text-gray-400,
.oa-site-footer .oa-footer-link {
  color: var(--oa-gray-400) !important;
}
.oa-site-footer a.oa-footer-link:hover,
.oa-site-footer a:not(.oa-store-btn):not(.oa-store-badge):hover {
  color: #2dd4bf !important;
}
.oa-site-footer a.oa-store-btn:hover .oa-store-kicker,
.oa-site-footer a.oa-store-btn:hover .oa-store-name,
.oa-site-footer a.oa-store-btn:hover .oa-store-apple-svg {
  color: #fff !important;
}
.oa-site-footer .text-gray-500 {
  color: var(--oa-gray-500) !important;
}
.oa-site-footer .bg-gray-800 {
  background-color: var(--oa-gray-800) !important;
}
.oa-site-footer .border-gray-700 {
  border-color: var(--oa-gray-700) !important;
}
.oa-site-footer .border-gray-800 {
  border-color: var(--oa-gray-800) !important;
}
.oa-site-footer .text-gray-300 {
  color: #d1d5db !important;
}
.oa-site-footer h3,
.oa-site-footer h4,
.oa-site-footer .text-white,
.oa-site-footer span.font-bold {
  color: #ffffff !important;
}

/* FAQ / dark sections — keep slate, tint accents teal */
.faq-icon,
.text-emerald-400 {
  color: #34d399 !important;
}

/* Shared chrome — teal-first */
.hero-grid {
  background-image:
    linear-gradient(to right, rgba(7, 94, 84, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(7, 94, 84, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
}
.gradient-ring {
  background: linear-gradient(120deg, #075E54, #0a8074, #34a853);
}
.hero-panel {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, #033a34 0%, #075E54 55%, #0a8074 100%);
  color: #f8fafc;
}
.hero-panel::after {
  content: '';
  position: absolute;
  inset: -40% auto auto -20%;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(10, 128, 116, 0.28), transparent 70%);
  pointer-events: none;
}
.neo-card {
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
  background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
}
.neo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(17, 24, 39, 0.12);
  transition: all 0.2s ease;
}
.accent-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: 999px;
  border: 1px solid var(--oa-brand-100);
  background: var(--oa-brand-50);
  color: var(--oa-brand-600);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
}
.soft-section {
  border-radius: 1.25rem;
  border: 1px solid #e5e7eb;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(6px);
}

/* Gradient text accents used in heroes */
.from-blue-400,
.from-blue-500,
.from-blue-600 {
  --tw-gradient-from: #0a8074 var(--tw-gradient-from-position) !important;
  --tw-gradient-to: rgb(10 128 116 / 0) var(--tw-gradient-to-position) !important;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important;
}
.to-primary,
.to-green-400 {
  --tw-gradient-to: #34d399 var(--tw-gradient-to-position) !important;
}

/* Shadow tints */
.shadow-primary\/30,
.shadow-lg.shadow-primary\/30,
.shadow-blue-500\/30 {
  --tw-shadow-color: rgba(7, 94, 84, 0.3) !important;
}

/* Phosphor icons must keep their icon font */
i.ph,
i.ph-fill,
i[class^="ph-"],
i[class*=" ph-"] {
  font-family: 'Phosphor', 'Phosphor-Fill' !important;
  font-style: normal !important;
  font-weight: normal !important;
  speak: never;
  display: inline-block;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
}
i.ph-fill,
i[class*="ph-fill"] {
  font-family: 'Phosphor-Fill' !important;
}
