/* ==========================================================================
   SRPDC — Shared Stylesheet
   All design tokens, base typography, layout primitives, and shared
   components (nav, hero, cards, buttons, footer) live here.
   ========================================================================== */

/* Google Fonts — Source Sans 3 (display) + DM Sans (body). Matches PropTrack
   and MyGoProSe font stack for cross-platform consistency. */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300;1,9..40,400&family=Source+Sans+3:wght@300;400;500;600;700;800&display=swap');

/* --------------------------------------------------------------------------
   Design System Tokens
   -------------------------------------------------------------------------- */
:root {
  --ink:      #0A0F1E;
  --paper:    #F4F6FF;
  --blue:     #1A56DB;
  --blue2:    #1240A8;
  --accent:   #00D4FF;
  --muted:    #64748B;
  --border:   #DDE4F5;
  --card:     #FFFFFF;
  --tag-bg:   #EBF2FF;

  /* Typography — two-font system (Source Sans 3 + DM Sans). Matches PropTrack
     and MyGoProSe. --font-mono is intentionally aliased to --font-body so any
     legacy reference falls back gracefully without loading a third face. */
  --font-display: 'Source Sans 3', 'DM Sans', sans-serif;
  --font-body:    'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:    var(--font-body);

  /* Spacing scale */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;

  /* Layout */
  --content-max: 1100px;
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   22px;

  /* Transitions */
  --t-fast: 160ms ease;
  --t-base: 240ms ease;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; height: auto; }

a { color: var(--blue); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--blue2); }

/* Headings — Source Sans 3, tight tracking */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 var(--space-sm) 0;
  color: var(--ink);
}

h1 { font-size: clamp(2.5rem, 5.5vw, 4.5rem); font-weight: 700; letter-spacing: -0.04em; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.75rem); font-weight: 700; }
h3 { font-size: 1.35rem; }

p { margin: 0 0 var(--space-sm) 0; font-weight: 400; }

/* Section eyebrow labels & badges — small uppercase markers above headings.
   Source Sans 3 at weight 600 with wide tracking reads as a confident,
   editorial label against the DM Sans body copy. */
.eyebrow,
.tag {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}

.eyebrow {
  display: inline-block;
  margin-bottom: var(--space-sm);
}

/* Inline label utility — code/URL-style inline labels (proptrack.net etc) */
.mono {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Layout Primitives
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 3.5rem 0;
}

@media (min-width: 768px) {
  section { padding: 5rem 0; }
  .container { padding: 0 2rem; }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform var(--t-fast), background var(--t-fast),
              color var(--t-fast), border-color var(--t-fast);
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover { background: var(--blue2); color: #fff; }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }

.btn-ghost-light {
  background: transparent;
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.25);
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }

.btn-accent {
  background: var(--accent);
  color: var(--ink);
}
.btn-accent:hover { background: #6EE5FF; color: var(--ink); }

/* --------------------------------------------------------------------------
   Navigation — sticky, dark ink
   -------------------------------------------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: #fff;
}
.nav-logo:hover { color: var(--accent); }
.nav-logo .dot { color: var(--accent); }

.nav-links {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.75rem;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a:hover { color: #fff; }
.nav-links a.active { color: #fff; }

.nav-cta { font-size: 0.9rem; padding: 0.6rem 1.2rem; }

/* Mobile menu toggle */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--t-base), opacity var(--t-base);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (min-width: 880px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
}

/* Mobile drop-down panel */
.nav-mobile {
  display: none;
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 1.5rem 1.5rem;
}
.nav-mobile.open { display: block; }
.nav-mobile ul {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.nav-mobile a {
  color: rgba(255, 255, 255, 0.85);
  padding: 0.6rem 0;
  display: block;
  font-size: 1rem;
}
.nav-mobile a:hover { color: var(--accent); }

@media (min-width: 880px) {
  .nav-mobile { display: none !important; }
}

/* --------------------------------------------------------------------------
   Hero — dark ink, large Source Sans 3 headline
   -------------------------------------------------------------------------- */
.hero {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
  padding: 5rem 0 6rem;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 10%, rgba(0, 212, 255, 0.12), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(26, 86, 219, 0.18), transparent 50%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.25rem, 5vw, 4.05rem);
  margin-bottom: 1.5rem;
}
.hero h1 .accent { color: var(--accent); font-weight: 700; }

.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: rgba(244, 246, 255, 0.78);
  font-weight: 400;
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.25);
  color: var(--accent);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.75rem;
}
.hero-eyebrow .pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.6); }
  70%  { box-shadow: 0 0 0 10px rgba(0, 212, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0); }
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 700ms ease forwards;
}
.fade-in.delay-1 { animation-delay: 120ms; }
.fade-in.delay-2 { animation-delay: 240ms; }
.fade-in.delay-3 { animation-delay: 360ms; }
.fade-in.delay-4 { animation-delay: 480ms; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; animation: none; }
  .hero-eyebrow .pulse { animation: none; }
  html { scroll-behavior: auto; }
}

/* --------------------------------------------------------------------------
   Section Heading Block
   -------------------------------------------------------------------------- */
.section-head {
  max-width: 720px;
  margin: 0 auto 3rem;
  text-align: center;
}
.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
}

/* --------------------------------------------------------------------------
   Card Grid — generic
   -------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .card-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  /* cols-2x2: balanced 2x2 grid that stays 2-wide on desktop (used by 4-card services section) */
  .card-grid.cols-2x2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}

/* --------------------------------------------------------------------------
   Service Card
   -------------------------------------------------------------------------- */
.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  transition: transform var(--t-base), border-color var(--t-base),
              box-shadow var(--t-base);
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--blue);
  box-shadow: 0 18px 40px -20px rgba(26, 86, 219, 0.35);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--tag-bg);
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.service-icon svg { width: 26px; height: 26px; }

.service-card h3 {
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.service-card p {
  color: var(--muted);
  margin-bottom: 1.5rem;
  flex: 1;
}

.link-arrow {
  font-weight: 500;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
}
.link-arrow::after {
  content: '→';
  transition: transform var(--t-fast);
}
.link-arrow:hover::after { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   Portfolio Card
   -------------------------------------------------------------------------- */
.portfolio-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px -25px rgba(10, 15, 30, 0.25);
}

.portfolio-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 0.5rem;
}
.portfolio-head .tag {
  background: var(--tag-bg);
  color: var(--blue);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}

.portfolio-card h3 {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.portfolio-card .lead {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.75rem;
}
.tech-stack span {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  background: #F1F5FB;
  color: var(--ink);
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  border: 1px solid var(--border);
}

/* --------------------------------------------------------------------------
   Why SRPDC — trust strip
   -------------------------------------------------------------------------- */
.why-section { background: #fff; }

.why-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .why-grid { grid-template-columns: repeat(4, 1fr); } }

.why-item {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--paper);
}
.why-item .num {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: var(--blue);
  display: block;
  margin-bottom: 0.5rem;
}
.why-item h3 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}
.why-item p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

/* --------------------------------------------------------------------------
   CTA Banner — full-width blue
   -------------------------------------------------------------------------- */
.cta-banner {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue2) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 90% 50%, rgba(0, 212, 255, 0.2), transparent 50%);
  pointer-events: none;
}
.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.cta-inner h2 { color: #fff; margin-bottom: 1rem; }
.cta-inner p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: rgba(244, 246, 255, 0.7);
  padding: 3.5rem 0 2rem;
}
.footer-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .footer-inner {
    grid-template-columns: 1.5fr 1fr 1fr;
    align-items: start;
  }
}

.footer-brand .nav-logo { font-size: 1.5rem; display: inline-block; margin-bottom: 0.75rem; }
.footer-brand p {
  font-size: 0.92rem;
  color: rgba(244, 246, 255, 0.55);
  max-width: 320px;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 1rem;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-col a {
  color: rgba(244, 246, 255, 0.78);
  font-size: 0.95rem;
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  max-width: var(--content-max);
  margin: 2.5rem auto 0;
  padding: 1.5rem 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(244, 246, 255, 0.5);
}
@media (min-width: 640px) {
  .footer-bottom { flex-direction: row; align-items: center; }
}

/* --------------------------------------------------------------------------
   Nav logo — SVG image variant (replaces the original text .nav-logo in
   the site header on all pages). Footer brand still uses the text-based
   .nav-logo so the existing rule above continues to apply there.
   -------------------------------------------------------------------------- */
.nav-logo-link { display: flex; align-items: center; text-decoration: none; }
.nav-logo-img  { height: 38px; width: auto; display: block; }

/* --------------------------------------------------------------------------
   Faith & Mission — hero tagline + footer scripture (used on index.html
   and hosting.html; .hero-mission sits in the hero stack just below the
   subheading, .footer-faith sits between .footer-inner and .footer-bottom)
   -------------------------------------------------------------------------- */
.hero-mission {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 1.5rem;
  font-family: var(--font-body);
}
.footer-faith {
  font-size: 0.78rem;
  font-style: italic;
  color: var(--muted);
  text-align: center;
  margin-bottom: 0.75rem;
  opacity: 0.7;
}

/* --------------------------------------------------------------------------
   Utility
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
