/*
Theme Name: Theme Alheri
Theme URI: https://alheri.ng
Author: ALHERI LENDING COMPANY LTD
Author URI: https://alheri.ng
Description: Custom lightweight WordPress theme designed for ALHERI LENDING COMPANY LTD vehicle pledge loans in Nigeria. Optimized for mobile-first speed, WPML multi-language, ACF dynamic fields, and Google SEO.
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: theme-alheri
Tags: custom-theme, blue, mobile-first, lightweight, seo, vehicle-loans

------------------------------------------------------------------
文件说明：主题主样式表文件 (Theme Main Stylesheet)
优化版本：调亮蓝色主色调，增强整体布局间距与网格排版，补充完整 Utility 类
------------------------------------------------------------------
*/

/* ----------------------------------------------------------------
   1. 全局设计变量 (Global Design Tokens - Lighter Blue Palette)
---------------------------------------------------------------- */
:root {
  --alheri-primary: #2563eb;
  /* 企业主色调：明亮皇家蓝色 (Bright Vibrant Royal Blue) */
  --alheri-primary-dark: #1d4ed8;
  /* 主色调悬停深蓝 */
  --alheri-primary-hover: #1e40af;
  /* 按钮点击深蓝 */
  --alheri-primary-light: #eff6ff;
  /* 极浅蓝背景底色 */
  --alheri-primary-border: #bfdbfe;
  /* 浅蓝边框色 */
  --alheri-secondary: #0f172a;
  /* 保持深色文字与底栏 */
  --alheri-accent-green: #25D366;
  /* WhatsApp 官方高对比绿 */
  --alheri-accent-green-hover: #1ebd56;
  --alheri-text-main: #1e293b;
  /* 主正文深色字 */
  --alheri-text-muted: #64748b;
  /* 辅助灰色字 */
  --alheri-bg-light: #f8fafc;
  /* 整体背景浅底 */
  --alheri-bg-white: #ffffff;
  /* 纯白底色 */
  --alheri-border: #e2e8f0;
  /* 通用边框线色 */
  --alheri-shadow: 0 10px 30px rgba(37, 99, 235, 0.08);
  /* 柔和悬浮阴影 */
  --alheri-shadow-hover: 0 16px 36px rgba(37, 99, 235, 0.15);
  --alheri-radius: 12px;
  /* 现代大气圆角 */
  --alheri-font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --alheri-font-heading: 'Outfit', 'Inter', system-ui, sans-serif;
}

/* ----------------------------------------------------------------
   2. 基础重置与页面容器 (Reset & Layout Container)
---------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  font-family: var(--alheri-font-family);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--alheri-text-main);
  background-color: var(--alheri-bg-light);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}

/* ----------------------------------------------------------------
   全局弹窗/菜单激活时禁止背景滚动 (Strict Modal Scroll Lock)
---------------------------------------------------------------- */
html.modal-open,
body.modal-open {
  overflow: hidden !important;
  height: 100vh !important;
  touch-action: none !important;
  -webkit-overflow-scrolling: auto !important;
}

a {
  color: var(--alheri-primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover,
a:focus {
  color: var(--alheri-primary-dark);
}

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

ul,
ol {
  list-style: none;
}

/* 页面主框架容器 (Container - Generous Width & Spacing) */
.container {
  width: 100%;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.75rem;
  padding-right: 1.75rem;
}

/* ----------------------------------------------------------------
   3. 排版与标题间距 (Typography & Heading Spacing)
---------------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6,
.section-title,
.page-title {
  font-family: var(--alheri-font-heading);
  color: var(--alheri-secondary);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 0.85rem;
  letter-spacing: -0.3px;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.45rem;
}

h4 {
  font-size: 1.2rem;
}

@media (min-width: 768px) {
  h1 {
    font-size: 3.25rem;
  }

  h2 {
    font-size: 2.35rem;
  }

  h3 {
    font-size: 1.65rem;
  }
}

p {
  margin-bottom: 1.15rem;
}

p:last-child {
  margin-bottom: 0;
}

/* ----------------------------------------------------------------
   4. 通用工具类 (Comprehensive Layout & Utility Classes)
---------------------------------------------------------------- */
/* 上下外边距 Margin Utilities */
.mb-0 {
  margin-bottom: 0 !important;
}

.mb-1 {
  margin-bottom: 0.5rem !important;
}

.mb-2 {
  margin-bottom: 0.85rem !important;
}

.mb-3 {
  margin-bottom: 1.5rem !important;
}

.mb-4 {
  margin-bottom: 2.25rem !important;
}

.mb-5 {
  margin-bottom: 3.5rem !important;
}

.mt-0 {
  margin-top: 0 !important;
}

.mt-1 {
  margin-top: 0.5rem !important;
}

.mt-2 {
  margin-top: 0.85rem !important;
}

.mt-3 {
  margin-top: 1.5rem !important;
}

.mt-4 {
  margin-top: 2.25rem !important;
}

.mt-5 {
  margin-top: 3.5rem !important;
}

.my-3 {
  margin-top: 1.5rem !important;
  margin-bottom: 1.5rem !important;
}

.my-4 {
  margin-top: 2.25rem !important;
  margin-bottom: 2.25rem !important;
}

.my-5 {
  margin-top: 3.5rem !important;
  margin-bottom: 3.5rem !important;
}

.mx-auto {
  margin-left: auto !important;
  margin-right: auto !important;
}

.ml-2 {
  margin-left: 0.75rem !important;
}

/* 内边距 Padding Utilities */
.p-3 {
  padding: 1.25rem !important;
}

.p-4 {
  padding: 2rem !important;
}

.p-5 {
  padding: 3rem !important;
}

.py-1 {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

.py-2 {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

.py-3 {
  padding-top: 2rem !important;
  padding-bottom: 2rem !important;
}

.py-4 {
  padding-top: 3.25rem !important;
  padding-bottom: 3.25rem !important;
}

.py-5 {
  padding-top: 4.5rem !important;
  padding-bottom: 4.5rem !important;
}

.px-4 {
  padding-left: 2rem !important;
  padding-right: 2rem !important;
}

.pt-3 {
  padding-top: 1.5rem !important;
}

.pt-4 {
  padding-top: 2.25rem !important;
}

.pb-3 {
  padding-bottom: 1.5rem !important;
}

/* 文本对齐与颜色 Utilities */
.text-center {
  text-align: center !important;
}

.text-left {
  text-align: left !important;
}

.text-right {
  text-align: right !important;
}

.text-primary {
  color: var(--alheri-primary) !important;
}

.text-white {
  color: #ffffff !important;
}

.text-white-80 {
  color: rgba(255, 255, 255, 0.85) !important;
}

.text-muted {
  color: var(--alheri-text-muted) !important;
}

.font-weight-bold {
  font-weight: 700 !important;
}

/* 容器与宽度控制 Utilities */
.max-w-700 {
  max-width: 720px !important;
}

.max-w-800 {
  max-width: 840px !important;
}

.w-100 {
  width: 100% !important;
}

.h-100 {
  height: 100% !important;
}

/* Flexbox 布局 Utilities */
.d-flex {
  display: flex !important;
}

.flex-column {
  flex-direction: column !important;
}

.align-items-center {
  align-items: center !important;
}

.justify-content-between {
  justify-content: space-between !important;
}

.justify-content-center {
  justify-content: center !important;
}

/* 背景与边框 Utilities */
.bg-white {
  background-color: var(--alheri-bg-white) !important;
}

.bg-light {
  background-color: var(--alheri-bg-light) !important;
}

.bg-primary {
  background-color: var(--alheri-primary) !important;
}

.bg-primary-light {
  background-color: var(--alheri-primary-light) !important;
}

.rounded-box {
  border-radius: var(--alheri-radius) !important;
}

.border-top {
  border-top: 1px solid var(--alheri-border) !important;
}

.border-left-primary {
  border-left: 5px solid var(--alheri-primary) !important;
}

/* ----------------------------------------------------------------
   5. 核心按钮组件 (Core Buttons & Components)
---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.85rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--alheri-radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  gap: 0.6rem;
  line-height: 1.2;
}

.btn-lg {
  padding: 1.1rem 2.25rem;
  font-size: 1.1rem;
}

.btn-sm {
  padding: 1.1rem 2.25rem;
  font-size: 0.9rem;
}

.btn-primary {
  background-color: var(--alheri-primary);
  color: var(--alheri-bg-white) !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  background-color: var(--alheri-primary-dark);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

.btn-whatsapp {
  background-color: var(--alheri-accent-green);
  color: var(--alheri-bg-white) !important;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background-color: var(--alheri-accent-green-hover);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--alheri-primary);
  color: var(--alheri-primary) !important;
}

.btn-outline:hover {
  background-color: var(--alheri-primary);
  color: var(--alheri-bg-white) !important;
}

.btn-outline.text-white.border-white {
  border-color: rgba(255, 255, 255, 0.6) !important;
  color: #ffffff !important;
}

.btn-outline.text-white.border-white:hover {
  background-color: rgba(255, 255, 255, 0.15) !important;
  border-color: #ffffff !important;
}

.btn-block {
  display: flex;
  width: 100%;
}

/* 卡片样式 (Card Styling) */
.alheri-card {
  background-color: var(--alheri-bg-white);
  border: 1px solid var(--alheri-border);
  border-radius: var(--alheri-radius);
  padding: 2rem 2.25rem;
  box-shadow: var(--alheri-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.alheri-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--alheri-shadow-hover);
}

/* 页面主框架 */
.site-content {
  flex: 1 0 auto;
}