/*
Theme Name: Al Marzaan Consulting
Theme URI: https://almarzaan.com/
Author: Al Marzaan Engineering Team
Author URI: https://almarzaan.com/
Description: High-performance, lightweight custom WordPress theme for Al Marzaan Management Consultancies, Dubai. Built with zero page-builder bloat, inlined critical CSS, self-hosted typography, and structured schema.org data for maximum PageSpeed (90+ mobile) and Core Web Vitals compliance.
Version: 2.1.0
Requires at least: 5.8
Tested up to: 7.0
Requires PHP: 7.4
Text Domain: almarzaan
*/

:root {
  /* Brand Color Palette */
  --color-primary: #0b192c;
  --color-primary-dark: #060e1a;
  --color-primary-light: #162a45;
  --color-accent: #c5a880;
  --color-accent-hover: #b39368;
  --color-accent-light: #f6efe3;
  --color-accent-glow: rgba(197, 168, 128, 0.25);
  --color-slate: #1e293b;
  --color-muted: #64748b;
  --color-muted-light: #94a3b8;
  --color-border: #e2e8f0;
  --color-border-dark: #26364d;
  --color-bg-light: #f8fafc;
  --color-surface: #ffffff;
  --color-surface-dark: #0f2038;
  --color-text: #0f172a;
  --color-text-secondary: #475569;
  --color-text-inverse: #f8fafc;
  --color-whatsapp: #25d366;
  --color-whatsapp-dark: #128c7e;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Spacing Scale */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;
  --space-4xl: 6rem;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.03);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  --shadow-gold: 0 4px 14px 0 rgba(197, 168, 128, 0.35);

  /* Transitions & Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --container-max: 1240px;
  --container-narrow: 840px;
}

/* CSS Reset & Core Baseline */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: var(--color-bg-light);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Accessible focus ring */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--color-accent);
  color: var(--color-primary-dark);
  padding: 0.5rem 1rem;
  font-weight: 700;
  z-index: 9999;
  border-radius: var(--radius-sm);
  transition: top var(--transition-fast);
}
.skip-link:focus {
  top: 1rem;
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2.25rem, 4vw + 1rem, 3.5rem); }
h2 { font-size: clamp(1.75rem, 2.5vw + 0.5rem, 2.5rem); }
h3 { font-size: clamp(1.25rem, 1.5vw + 0.5rem, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 0.95rem; }

p {
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: var(--color-accent);
}

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

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
.container-narrow {
  max-width: var(--container-narrow);
}

/* Section Wrapper */
.section {
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
  position: relative;
}
@media (max-width: 768px) {
  .section {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
  }
}

.section-dark {
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
}
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 {
  color: #ffffff;
}
.section-dark p {
  color: #94a3b8;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  background: rgba(197, 168, 128, 0.12);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
  border: 1px solid rgba(197, 168, 128, 0.3);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto var(--space-2xl) auto;
}
.section-header.text-left {
  text-align: left;
  margin-left: 0;
}
.section-header .section-title {
  margin-bottom: 0.75rem;
}
.section-header .section-desc {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
}
.section-dark .section-header .section-desc {
  color: #cbd5e1;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-align: center;
  white-space: nowrap;
  line-height: 1.2;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-primary-dark);
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover {
  background-color: var(--color-accent-hover);
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(197, 168, 128, 0.45);
}

.btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: #ffffff;
  transform: translateY(-2px);
}

.btn-navy {
  background-color: var(--color-primary);
  color: #ffffff;
}
.btn-navy:hover {
  background-color: var(--color-primary-light);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-whatsapp {
  background-color: var(--color-whatsapp);
  color: #ffffff;
}
.btn-whatsapp:hover {
  background-color: var(--color-whatsapp-dark);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

/* Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-gold { color: var(--color-accent); }
.d-none { display: none; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}