/*
Theme Name: Numerraa
Theme URI: https://numerraa.com
Author: Numerraa Financial Consulting
Author URI: https://numerraa.com
Description: Professional financial consulting theme for Numerraa — KSA-focused bookkeeping, audit support, and Virtual CFO services. Built for ZATCA compliance, IFRS standards, and Saudi market.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: Private
Text Domain: numerraa
Tags: business, consulting, finance, professional, saudi-arabia
*/

/* ============================================================
   NUMERRAA THEME — MASTER STYLESHEET
   Brand: Blue #2E6DA4 | Charcoal #3D3D3D
   Fonts: DM Serif Display + DM Sans
   ============================================================ */

/* ── CSS Custom Properties ── */
:root {
  --blue:          #2E6DA4;
  --blue-dark:     #1e4f7a;
  --blue-deeper:   #0d2d4a;
  --blue-mid:      #4a87bc;
  --blue-light:    #e8f2fb;
  --blue-pale:     #f0f7ff;
  --charcoal:      #3D3D3D;
  --charcoal-light:#5a5a5a;
  --charcoal-pale: #7a7a7a;
  --off-white:     #f8f9fb;
  --white:         #ffffff;
  --border:        #e2e8f0;
  --border-dark:   #cbd5e1;
  --text-muted:    #6b7280;
  --success:       #16a34a;
  --radius-sm:     6px;
  --radius-md:     10px;
  --radius-lg:     16px;
  --radius-xl:     24px;
  --shadow-sm:     0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:     0 4px 16px rgba(46,109,164,0.10);
  --shadow-lg:     0 12px 40px rgba(46,109,164,0.14);
  --transition:    all 0.22s ease;
  --max-width:     1200px;
  --section-pad:   90px 5%;
  --font-sans:     'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif:    'DM Serif Display', Georgia, serif;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--blue-dark); }
ul, ol { list-style: none; }
button, input, textarea, select { font-family: inherit; }

/* ── Typography Scale ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.15;
  color: var(--charcoal);
}
h1 { font-size: clamp(36px, 5vw, 62px); }
h2 { font-size: clamp(28px, 3.5vw, 44px); }
h3 { font-size: clamp(20px, 2.5vw, 26px); }
h4 { font-size: 20px; font-family: var(--font-sans); font-weight: 600; }
h5 { font-size: 16px; font-family: var(--font-sans); font-weight: 600; }
p { line-height: 1.75; color: var(--text-muted); margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ── Layout Utilities ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 5%;
}
.section { padding: var(--section-pad); }
.section--light { background: var(--off-white); }
.section--dark { background: var(--blue-deeper); }
.section--blue { background: var(--blue); }
.text-center { text-align: center; }
.text-white { color: var(--white) !important; }
.text-blue { color: var(--blue) !important; }

/* ── Section Labels ── */
.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.section-label--white { color: rgba(255,255,255,0.55); }
.section-title { margin-bottom: 16px; }
.section-sub {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 560px;
}
.section-header { margin-bottom: 56px; }
.section-header--center { text-align: center; }
.section-header--center .section-sub { margin: 0 auto; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--blue-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-secondary {
  background: var(--white);
  color: var(--blue);
  border: 1.5px solid var(--blue);
}
.btn-secondary:hover {
  background: var(--blue-light);
  color: var(--blue-dark);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.4);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
  color: var(--white);
}
.btn-white {
  background: var(--white);
  color: var(--blue);
}
.btn-white:hover {
  background: var(--blue-light);
  color: var(--blue-dark);
  transform: translateY(-2px);
}
.btn-lg { padding: 16px 36px; font-size: 15px; }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-group { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ── Cards ── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: var(--transition);
}
.card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.card--flat:hover { transform: none; box-shadow: none; }

/* ── Icon Box ── */
.icon-box {
  width: 52px;
  height: 52px;
  background: var(--blue-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  flex-shrink: 0;
}
.icon-box svg { width: 24px; height: 24px; color: var(--blue); }
.icon-box--white { background: rgba(255,255,255,0.15); }
.icon-box--white svg { color: var(--white); }

/* ── Badge / Tag ── */
.badge {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
}
.badge-group { display: flex; flex-wrap: wrap; gap: 8px; }

/* ── Stat Grid ── */
.stat-grid { display: grid; gap: 20px; }
.stat-grid--3 { grid-template-columns: repeat(3, 1fr); }
.stat-grid--4 { grid-template-columns: repeat(4, 1fr); }
.stat-item { text-align: center; }
.stat-num { font-family: var(--font-serif); font-size: 40px; color: var(--blue); line-height: 1; margin-bottom: 6px; }
.stat-label { font-size: 13px; color: var(--text-muted); }

/* ── Divider ── */
.divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ── Form Elements ── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--charcoal); margin-bottom: 6px; }
.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--charcoal);
  background: var(--white);
  transition: border-color 0.2s;
  outline: none;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(46,109,164,0.1);
}
.form-textarea { resize: vertical; min-height: 120px; }

/* ── WP Alignment Classes ── */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin: 0 auto 1em; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: var(--text-muted); margin-top: 6px; }

/* ── Screen Reader ── */
.screen-reader-text {
  clip: rect(1px,1px,1px,1px);
  position: absolute;
  height: 1px; width: 1px;
  overflow: hidden;
}

/* ── Skip Link ── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--blue);
  color: white;
  padding: 8px 16px;
  z-index: 9999;
}
.skip-link:focus { top: 0; }

/* ── Responsive Helpers ── */
@media (max-width: 768px) {
  :root { --section-pad: 60px 5%; }
  .stat-grid--3, .stat-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .btn-group { flex-direction: column; align-items: flex-start; }
}
