/*
Theme Name: PulseData Labs
Theme URI: https://pulsedatalabs.com/
Author: PulseData Labs
Description: Custom theme for PulseData Labs — AI, Data Engineering, DevOps, Salesforce, Mobile and Application Development services.
Version: 1.0.2
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: pulsedata
*/

:root {
  --ink: #0F1A2A;
  --ink-2: #17243A;
  --ink-line: #263550;
  --ground: #F5F6F3;
  --card: #FFFFFF;
  --line: #E1E4DE;
  --muted: #4A5566;
  --muted-on-dark: #C3CBD6;
  --accent: #1F64A8;
  --accent-dark: #174E85;
  --accent-light: #8EC3EC;
  --bright: #4FA8EC;
  --tag: #E6EEF7;
  --display: 'Sora', system-ui, sans-serif;
  --body: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* Keep section tops clear of the sticky header when jumping from the menu */
main section[id] { scroll-margin-top: 96px; }
.admin-bar main section[id] { scroll-margin-top: 128px; }
#engagement, #about, #clients { padding-top: 24px; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; width: auto; height: auto; clip: auto; background: #fff; padding: 10px 14px; z-index: 100; }
:focus-visible { outline: 3px solid var(--bright); outline-offset: 2px; }

/* Eyebrow + section heads */
.eyebrow { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.on-dark .eyebrow, .eyebrow.light { color: var(--accent-light); }
.section-title { font-size: clamp(2rem, 3.4vw, 2.75rem); line-height: 1.12; }
.lede { font-size: 17px; color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; text-decoration: none; padding: 16px 26px; border-radius: 8px; border: 1px solid transparent; line-height: 1.2; }
.btn-light { background: var(--accent-light); color: var(--ink); }
.btn-light:hover { background: #A9D2F1; color: var(--ink); }
.btn-ghost { color: #fff; border-color: #3A4659; font-weight: 500; }
.btn-ghost:hover { color: #fff; border-color: #6B7890; }
.btn-accent { background: var(--accent); color: #fff; padding: 12px 20px; font-size: 15px; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.admin-bar .site-header { top: 32px; }
.site-header .wrap { padding: 12px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); padding: 6px 0; }
.brand:hover { color: var(--ink); }
.brand-text { display: flex; flex-direction: column; gap: 2px; }
.brand-name { font-family: var(--display); font-size: 23px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.brand-name span { color: var(--accent); }
.brand-sub { font-family: var(--mono); font-size: 10px; letter-spacing: 0.42em; color: var(--muted); }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 15px; font-weight: 500; }
.main-nav a:not(.btn) { color: #2B3646; text-decoration: none; }
.main-nav a:not(.btn):hover { color: var(--accent); }
.main-nav ul.menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }

/* Hero */
.hero { background: var(--ink); color: #fff; padding: 72px 24px 112px; }
.hero .wrap { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero-copy { flex: 1 1 520px; min-width: 0; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.06; letter-spacing: -0.025em; }
.hero-lede { margin-top: 28px; max-width: 560px; font-size: 19px; color: var(--muted-on-dark); }
.hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-tiles { flex: 1 1 380px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hero-tile { background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 12px; padding: 22px; text-decoration: none; color: #fff; }
.hero-tile:hover { color: #fff; border-color: #3C5076; }
.hero-tile .num { font-family: var(--mono); font-size: 12px; color: #8C99AD; }
.hero-tile .name { margin-top: 10px; font-family: var(--display); font-size: 18px; font-weight: 600; line-height: 1.3; }

/* Services */
.services { padding: 104px 24px 40px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 48px; }
.section-head > div { max-width: 640px; }
.section-head .lede { max-width: 440px; }
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.service-card { display: flex; flex-direction: column; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.service-card:hover { color: var(--ink); border-color: var(--accent); transform: translateY(-2px); }
.service-card h3 { margin-top: 4px; font-size: 22px; }
.service-card p { font-size: 16px; color: var(--muted); }
.service-card .more { margin-top: auto; padding-top: 8px; font-weight: 600; font-size: 15px; color: var(--accent); }
.icon { width: 40px; height: 40px; color: var(--accent); }

/* Approach */
.approach { padding: 96px 24px; }
.approach .section-title { margin-bottom: 48px; max-width: 640px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border-top: 2px solid var(--ink); }
.step { padding: 28px 28px 0 0; }
.step .label { font-family: var(--mono); font-size: 14px; color: var(--accent); }
.step p { margin-top: 12px; font-size: 16px; color: var(--muted); }

/* Engagement */
.engagement { padding: 0 24px 96px; }
.engagement .section-title { margin-bottom: 16px; max-width: 680px; }
.engagement .lede { margin-bottom: 40px; max-width: 640px; }
.models { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.model { border-radius: var(--radius); padding: 40px; display: flex; flex-direction: column; gap: 16px; background: var(--card); border: 1px solid var(--line); }
.model.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.model .kicker { font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.model.dark .kicker { color: var(--accent-light); }
.model h3 { font-size: 28px; }
.model p { color: var(--muted); }
.model.dark p { color: var(--muted-on-dark); }
.model ul { margin: 8px 0 0; padding-left: 20px; font-size: 16px; line-height: 1.8; color: #2B3646; }
.model.dark ul { color: #E4E8EE; }

/* About */
.about { padding: 0 24px 96px; }
.about-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 48px; display: flex; flex-direction: column; gap: 40px; }
.about-top { display: flex; flex-wrap: wrap; gap: 40px; }
.about-top > div:first-child { flex: 1 1 320px; min-width: 0; }
.about-top h2 { font-size: 32px; line-height: 1.15; }
.about-body { flex: 2 1 480px; min-width: 0; line-height: 1.7; color: var(--muted); }
.about-body p + p { margin-top: 16px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border-top: 1px solid var(--line); }
.stat { padding: 28px 24px 0 0; }
.stat .value { font-family: var(--display); font-size: 44px; font-weight: 600; letter-spacing: -0.03em; color: var(--accent); line-height: 1.2; }
.stat .label { margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--muted); }

/* Testimonial */
.testimonial { padding: 0 24px 104px; }
.testimonial figure { margin: 0; display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; border-top: 2px solid var(--ink); padding-top: 40px; }
.quote-mark { width: 56px; height: 56px; flex: none; color: var(--accent); }
.testimonial .quote-body { flex: 1 1 560px; min-width: 0; }
.testimonial blockquote { margin: 0; font-family: var(--display); font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 500; line-height: 1.4; letter-spacing: -0.015em; }
.testimonial figcaption { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 600; font-size: 17px; }
.who { display: flex; flex-direction: column; gap: 2px; }
.who strong { font-size: 17px; }
.who span { font-size: 15px; color: var(--muted); }
.tags { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 13px; font-weight: 500; background: var(--tag); border-radius: 999px; padding: 6px 12px; }

/* Contact */
.contact { background: var(--ink); color: #fff; padding: 104px 24px; }
.contact .wrap { max-width: 760px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.contact p.lede { margin-top: 20px; font-size: 18px; color: var(--muted-on-dark); }
.contact .btn { margin-top: 40px; font-size: 18px; padding: 18px 30px; }

/* Footer */
.site-footer { background: #0A121E; color: #8C99AD; padding: 28px 24px; font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer a { color: #C3CBD6; }

/* Inner pages (service detail, generic pages) */
.page-hero { background: var(--ink); color: #fff; padding: 72px 24px 64px; }
.page-hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1.1; }
.page-hero .lede { margin-top: 20px; max-width: 720px; font-size: 19px; color: var(--muted-on-dark); }
.page-hero .icon { width: 52px; height: 52px; color: var(--accent-light); margin-bottom: 20px; }
.entry { padding: 72px 24px 96px; }
.entry .wrap { max-width: 800px; }
.entry-content { font-size: 18px; line-height: 1.75; color: #2B3646; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2 { font-size: 28px; margin-top: 1.8em; color: var(--ink); }
.entry-content h3 { font-size: 22px; margin-top: 1.5em; color: var(--ink); }
.entry-content ul { padding-left: 22px; }
.entry-cta { margin-top: 56px; padding: 32px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.entry-cta p { font-family: var(--display); font-size: 20px; font-weight: 600; }
.post-list { display: grid; gap: 20px; }

@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header { position: static; }
  .hero { padding: 48px 20px 72px; }
  .services, .approach { padding-left: 20px; padding-right: 20px; }
  .about-card, .model { padding: 28px; }
  .service-card { padding: 26px; }
  .tags { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .service-card { transition: none; }
}
