/*
Theme Name:        HalalRegTech Child
Theme URI:         https://halalregtech.com
Description:       HalalRegTech child theme for Kadence. Brand tokens, RTL support, AAOIFI-compliant UI.
Author:            HalalRegTech
Author URI:        https://halalregtech.com
Template:          kadence
Version:           1.0.0
Requires at least: 6.4
Requires PHP:      8.2
Text Domain:       halalregtech
Tags:              two-columns, custom-colors, custom-logo, custom-menu, rtl-language-support, sticky-post, threaded-comments, translation-ready
*/

/* ============================================
   HalalRegTech — Brand Design Tokens
   ============================================ */
:root {
  --hrt-green:        #0F6E4E;
  --hrt-green-dark:   #0A4A35;
  --hrt-green-soft:   rgba(15, 110, 78, 0.08);
  --hrt-ink:          #0B1220;
  --hrt-slate:        #475569;
  --hrt-mist:         #F4F6F8;
  --hrt-gold:         #C9A24B;
  --hrt-red:          #B42318;
  --hrt-white:        #FFFFFF;

  --hrt-radius-sm:    8px;
  --hrt-radius:       12px;
  --hrt-radius-lg:    16px;

  --hrt-shadow-sm: 0 1px 2px rgba(11,18,32,.06);
  --hrt-shadow-md: 0 6px 24px rgba(11,18,32,.08);
  --hrt-shadow-lg: 0 20px 48px rgba(11,18,32,.12);

  --hrt-font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --hrt-font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --hrt-font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --hrt-font-arabic:  'IBM Plex Sans Arabic', 'Tajawal', system-ui, sans-serif;
}

/* ============================================
   Typography
   ============================================ */
body {
  font-family: var(--hrt-font-body);
  color: var(--hrt-ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--hrt-font-heading);
  color: var(--hrt-ink);
  letter-spacing: -0.01em;
  font-weight: 700;
}

h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: clamp(26px, 3.5vw, 40px); line-height: 1.15; }
h3 { font-size: 22px; line-height: 1.3; }
p  { color: var(--hrt-slate); font-size: 17px; }

code, pre, .wp-block-code {
  font-family: var(--hrt-font-mono);
  font-size: 14px;
}

/* ============================================
   Buttons (Kadence overrides)
   ============================================ */
.wp-block-button .wp-block-button__link {
  background: var(--hrt-green);
  color: #fff;
  border-radius: var(--hrt-radius-sm);
  font-weight: 600;
  padding: 14px 22px;
  font-size: 15px;
  border: none;
  transition: all .15s ease;
  text-decoration: none;
}
.wp-block-button .wp-block-button__link:hover {
  background: var(--hrt-green-dark);
  transform: translateY(-1px);
  box-shadow: var(--hrt-shadow-md);
}
.wp-block-button.is-style-ghost .wp-block-button__link {
  background: transparent;
  color: var(--hrt-green);
  border: 1.5px solid var(--hrt-green);
}
.wp-block-button.is-style-ghost .wp-block-button__link:hover {
  background: var(--hrt-green);
  color: #fff;
}

/* ============================================
   Hero section (used on home + product pages)
   ============================================ */
.hrt-hero {
  padding: 96px 24px 80px;
  background: radial-gradient(ellipse at 50% 0%, var(--hrt-green-soft), transparent 60%);
}
.hrt-hero h1 { margin-bottom: 24px; }
.hrt-hero-sub { font-size: 19px; max-width: 580px; margin-bottom: 32px; }
.hrt-eyebrow {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--hrt-green-soft);
  color: var(--hrt-green);
  font-size: 13px !important;
  font-weight: 600;
  margin-bottom: 20px !important;
}

/* CTA band */
.hrt-cta-band {
  background: linear-gradient(135deg, var(--hrt-green), var(--hrt-green-dark));
  color: #fff;
  border-radius: 20px;
  padding: 64px 32px;
  text-align: center;
  margin: 64px 0;
}
.hrt-cta-band h2, .hrt-cta-band p { color: #fff; }
.hrt-cta-band .wp-block-button__link {
  background: #fff;
  color: var(--hrt-green-dark);
}
.hrt-cta-band .wp-block-button__link:hover {
  background: var(--hrt-gold);
  color: var(--hrt-ink);
}

/* ============================================
   Cards / columns
   ============================================ */
.wp-block-column {
  background: #fff;
  border: 1px solid rgba(11, 18, 32, 0.08);
  border-radius: var(--hrt-radius);
  padding: 28px;
  transition: all .2s ease;
}
.wp-block-column:hover {
  border-color: var(--hrt-green);
  box-shadow: var(--hrt-shadow-md);
  transform: translateY(-2px);
}
.wp-block-columns { gap: 24px; }

/* ============================================
   Header / site identity
   ============================================ */
.site-header {
  border-bottom: 1px solid rgba(15, 110, 78, 0.08);
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(12px);
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--hrt-ink);
  color: #9aa6b8;
}
.site-footer h2, .site-footer h3, .site-footer h4, .site-footer h5 {
  color: #fff;
  font-size: 13px !important;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.site-footer a { color: #9aa6b8; }
.site-footer a:hover { color: #fff; }

/* ============================================
   Code blocks
   ============================================ */
.wp-block-code {
  background: var(--hrt-ink);
  color: #dde3ec;
  border-radius: var(--hrt-radius);
  padding: 24px;
  line-height: 1.7;
  overflow-x: auto;
}

/* ============================================
   Forms
   ============================================ */
.wpforms-field input[type="text"],
.wpforms-field input[type="email"],
.wpforms-field select,
.wpforms-field textarea {
  border-radius: var(--hrt-radius-sm);
  border: 1px solid rgba(11,18,32,.15);
  padding: 12px 14px;
  min-height: 44px;
  font-family: inherit;
  font-size: 15px;
}
.wpforms-field input:focus, .wpforms-field select:focus, .wpforms-field textarea:focus {
  border-color: var(--hrt-green);
  outline: 2px solid var(--hrt-green-soft);
  outline-offset: 0;
}
.wpforms-submit {
  background: var(--hrt-green) !important;
  color: #fff !important;
  border-radius: var(--hrt-radius-sm) !important;
  font-weight: 600 !important;
  padding: 14px 24px !important;
  border: none !important;
}

/* ============================================
   Accessibility / focus
   ============================================ */
a:focus-visible, button:focus-visible, .wp-block-button__link:focus-visible {
  outline: 3px solid var(--hrt-green);
  outline-offset: 2px;
  border-radius: var(--hrt-radius-sm);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
  .hrt-hero { padding: 64px 16px 48px; }
  .wp-block-columns { flex-direction: column !important; gap: 16px; }
}
