/*
Theme Name: Client A — PetaCore Landing
Theme URI: https://hastechs.com
Author: Hastechs IT Solutions
Author URI: https://hastechs.com
Description: Custom WordPress theme converted from static HTML/CSS for client-a testing.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: client-a-theme
*/

/* ============================================================
   PetaCore Design System — Colors & Type
   ------------------------------------------------------------
   Mirrors petacore-tokens.css. Imported here directly since
   WordPress only auto-recognizes style.css as the theme stylesheet.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --brand:           #0078d4;
  --brand-hover:     #106ebe;
  --brand-contrast:  #ffffff;
  --brand-subtle:    #e5f1fb;

  --accent:          #0f5fd4;
  --accent-light:    #e0ebff;
  --accent-hover:    #0a4bab;

  --primary-50:  #f0f5ff;
  --primary-100: #e0ebff;
  --primary-200: #b8d4fe;
  --primary-300: #85b8fd;
  --primary-400: #4d96fa;
  --primary-500: #1a73e8;
  --primary-600: #0f5fd4;
  --primary-700: #0a4bab;
  --primary-800: #063a87;
  --primary-900: #042c6a;

  --bg-page:           #f8f9fc;
  --bg-surface:        #ffffff;
  --bg-surface-hover:  #f3f4f6;
  --bg-elevated:       #f3f4f6;
  --bg-sidebar:        #ffffff;
  --bg-topnav:         #ffffff;
  --bg-input:          #f9fafb;
  --bg-table-header:   #f8f9fa;
  --bg-card:           #ffffff;

  --border-default:  #e5e7eb;
  --border-light:    #f3f4f6;
  --border-sidebar:  #e5e7eb;

  --text-primary:    #111827;
  --text-secondary:  #6b7280;
  --text-tertiary:   #9ca3af;
  --text-on-primary: #ffffff;

  --success:    #059669;
  --success-bg: #ecfdf5;
  --warning:    #d97706;
  --warning-bg: #fffbeb;
  --danger:     #dc2626;
  --danger-bg:  #fef2f2;

  --shadow-card:     0 1px 3px 0 rgba(0,0,0,0.06), 0 1px 2px -1px rgba(0,0,0,0.03);
  --shadow-card-hover: 0 4px 12px 0 rgba(0,0,0,0.08);
  --shadow-sidebar:  1px 0 3px 0 rgba(0,0,0,0.04);
  --shadow-dropdown: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);

  --radius-sm:   4px;
  --radius-md:   6px;
  --radius-lg:   8px;
  --radius-xl:   12px;
  --radius-2xl:  16px;
  --radius-full: 9999px;

  --space-0:  0px;
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  --font-sans: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont,
               'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Cascadia Code', 'Roboto Mono',
               Menlo, Consolas, monospace;

  --weight-light:    300;
  --weight-regular:  400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;

  --leading-tight:   1.2;
  --leading-snug:    1.35;
  --leading-normal:  1.5;
  --leading-relaxed: 1.65;

  --text-2xs: 10px;
  --text-xs:  11px;
  --text-sm:  13px;
  --text-base:14px;
  --text-md:  15px;
  --text-lg:  18px;
  --text-xl:  20px;
  --text-2xl: 24px;
  --text-3xl: 30px;
  --text-4xl: 36px;
}

.dark {
  --bg-page:          #111827;
  --bg-surface:       #1f2937;
  --bg-surface-hover: #374151;
  --bg-elevated:      #374151;
  --bg-sidebar:        #111827;
  --bg-topnav:        #1f2937;
  --bg-input:         #374151;
  --bg-table-header:  #1f2937;
  --bg-card:          #1f2937;

  --border-default: #374151;
  --border-light:   #4b5563;
  --border-sidebar: #1f2937;

  --text-primary:   #f9fafb;
  --text-secondary: #d1d5db;
  --text-tertiary:  #9ca3af;

  --accent:        #60a5fa;
  --accent-light:  #1e3a5f;
  --accent-hover:  #93c5fd;

  --brand:          #4cc2ff;
  --brand-hover:    #83d1ff;
  --brand-contrast: #0b1320;
  --brand-subtle:   #0f2a44;

  --success:    #34d399;
  --success-bg: #064e3b;
  --warning:    #fbbf24;
  --warning-bg: #78350f;
  --danger:     #f87171;
  --danger-bg:  #7f1d1d;

  --shadow-card:     0 1px 3px 0 rgba(0,0,0,0.3);
  --shadow-dropdown: 0 10px 15px -3px rgba(0,0,0,0.4);
}

/* ============================================================
   Page-specific layout (converted from inline <style> in
   the original static index.html)
   ============================================================ */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg-surface);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
code, .mono { font-family: var(--font-mono); font-size: 0.9em; }

/* ---------- Layout ---------- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 80px 0; }
section + section { border-top: 1px solid var(--border-default); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-default);
  backdrop-filter: saturate(180%) blur(6px);
}
.nav {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; object-fit: contain; }
.brand-name { font-size: 15px; }
.brand-name .small { color: var(--text-tertiary); font-weight: 400; font-size: 12px; margin-left: 4px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  font-size: 14px;
}
.nav-links a {
  color: var(--text-secondary);
}
.nav-links a:hover { color: var(--text-primary); text-decoration: none; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}
.btn-primary {
  background: var(--accent);
  color: var(--brand-contrast);
}
.btn-primary:hover { background: var(--accent-hover); color: var(--brand-contrast); text-decoration: none; }
.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-default);
}
.btn-secondary:hover { background: var(--bg-surface-hover); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  background: var(--bg-page);
  border-bottom: 1px solid var(--border-default);
  padding: 96px 0 88px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-light);
  padding: 5px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}
h1.hero-title {
  font-size: 44px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  max-width: 720px;
}
.hero-sub {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 640px;
  margin: 0 0 32px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Trust strip ---------- */
.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 56px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  overflow: hidden;
}
.trust-cell {
  padding: 20px 24px;
  border-right: 1px solid var(--border-default);
}
.trust-cell:last-child { border-right: none; }
.trust-cell .label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  margin-bottom: 6px;
}
.trust-cell .value {
  font-size: 15px;
  color: var(--text-primary);
  font-weight: 500;
}
.trust-cell .value.mono { font-size: 13px; }

/* ---------- Section headings ---------- */
.section-head { margin-bottom: 48px; max-width: 720px; }
.section-overline {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 12px;
}
h2.section-title {
  font-size: 30px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
}
.section-sub {
  font-size: 16px;
  color: var(--text-secondary);
  margin: 0;
}

/* ---------- Surfaces grid (product) ---------- */
.surfaces {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.surface-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}
.surface-card .icon-wrap {
  width: 36px; height: 36px;
  border-radius: var(--radius-md);
  background: var(--accent-light);
  color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.surface-card h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
}
.surface-card .url {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: 14px;
}
.surface-card p {
  color: var(--text-secondary);
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.55;
}
.surface-card ul {
  margin: auto 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border-light);
  padding-top: 14px;
}
.surface-card li {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.surface-card li svg {
  color: var(--success);
  flex-shrink: 0;
}

/* ---------- Features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 32px;
}
.feature .icon-wrap {
  width: 32px; height: 32px;
  border-radius: var(--radius-md);
  background: var(--brand-subtle);
  color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.feature h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
}
.feature p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
}

/* ---------- Audience ---------- */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.audience-card {
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 20px;
  background: var(--bg-surface);
}
.audience-card .icon-wrap {
  width: 28px; height: 28px;
  color: var(--accent);
  margin-bottom: 12px;
}
.audience-card h4 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
}
.audience-card p {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ---------- WhatsApp section ---------- */
.whatsapp-section { background: var(--bg-page); }
.whatsapp-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.whatsapp-explain p {
  color: var(--text-secondary);
  margin: 0 0 14px;
  line-height: 1.6;
}
.whatsapp-explain p strong { color: var(--text-primary); font-weight: 600; }
.wa-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 28px;
}
.wa-flow {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
.wa-flow li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
}
.wa-flow li:last-child { border-bottom: none; padding-bottom: 0; }
.wa-flow li:first-child { padding-top: 0; }
.wa-flow li::before {
  counter-increment: step;
  content: counter(step);
  background: var(--accent);
  color: var(--brand-contrast);
  width: 22px; height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  margin-top: 2px;
}
.wa-flow .step-title { font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.wa-flow .step-body { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

/* ---------- About ---------- */
.about-layout {
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: 56px;
  align-items: start;
}
.about-layout p {
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0 0 14px;
}
.stat-card {
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  padding: 24px;
  margin-bottom: 12px;
}
.stat-card .label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  margin-bottom: 6px;
}
.stat-card .value {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 500;
}
.stat-card .value.mono { font-family: var(--font-mono); font-size: 13px; }

/* ---------- Contact ---------- */
.contact-section { background: var(--bg-page); }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.contact-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.contact-card .icon-wrap {
  width: 36px; height: 36px;
  border-radius: var(--radius-md);
  background: var(--brand-subtle);
  color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.contact-card .label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  margin-bottom: 6px;
}
.contact-card .value {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
  word-break: break-word;
}
.contact-card .value a { color: var(--text-primary); }
.contact-card .sub {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ---------- Legal sections ---------- */
.legal-section h2 {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.legal-meta {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 28px;
}
.legal-body h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 32px 0 8px;
}
.legal-body p,
.legal-body li {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.65;
}
.legal-body p { margin: 0 0 12px; max-width: 760px; }
.legal-body ul { padding-left: 20px; margin: 0 0 16px; max-width: 760px; }
.legal-body li { margin-bottom: 6px; }
.legal-body strong { color: var(--text-primary); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-default);
  padding: 48px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.footer-col h5 {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  margin: 0 0 12px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  color: var(--text-secondary);
  font-size: 13px;
}
.footer-col a:hover { color: var(--text-primary); }
.footer-brand p {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.55;
  margin: 12px 0 0;
  max-width: 320px;
}
.footer-bottom {
  border-top: 1px solid var(--border-default);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-tertiary);
  font-size: 12px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links a:not(.btn) { display: none; }
  h1.hero-title { font-size: 34px; }
  .hero { padding: 64px 0 56px; }
  section { padding: 56px 0; }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .trust-cell { border-right: none; border-bottom: 1px solid var(--border-default); }
  .trust-cell:nth-child(2n) { border-right: none; }
  .trust-cell:last-child, .trust-cell:nth-last-child(2) { border-bottom: none; }
  .surfaces, .features, .audience-grid, .contact-grid { grid-template-columns: 1fr; }
  .whatsapp-layout, .about-layout { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 560px) {
  .trust { grid-template-columns: 1fr; }
  .trust-cell { border-bottom: 1px solid var(--border-default); }
  .trust-cell:last-child { border-bottom: none; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Icon sizing helper */
[data-lucide] { width: 18px; height: 18px; stroke-width: 1.8; }
.icon-wrap [data-lucide] { width: 18px; height: 18px; }
.surface-card .icon-wrap [data-lucide] { width: 20px; height: 20px; }
.audience-card .icon-wrap [data-lucide] { width: 22px; height: 22px; stroke-width: 1.8; }

/* WordPress admin bar offset fix for sticky header */
body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 600px) {
  body.admin-bar .site-header { top: 46px; }
}
