/*
Theme Name: Marzoky
Theme URI: https://marzoky.com
Author: Marzoky Agency
Author URI: https://marzoky.com
Description: A modern, clean, minimal WordPress theme for Marzoky — a Digital Marketing & Services Agency. Fully compatible with Elementor and the Gutenberg block editor. Includes custom post types for Services and Case Studies, custom page templates, and a full set of pre-built page layouts.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: marzoky
Tags: agency, business, marketing, elementor, full-site-editing, block-editor, custom-colors, custom-logo, custom-menu, featured-images, responsive-layout, threaded-comments, translation-ready
*/

/* =========================================================
   CSS Custom Properties (Design Tokens)
   ========================================================= */
:root {
  /* Brand colors */
  --color-primary: #0A0A0A;
  --color-accent: #6C63FF;
  --color-accent-hover: #5a52e0;
  --color-secondary: #00D4AA;
  --color-secondary-hover: #00b894;
  --color-background: #F9F9FB;
  --color-surface: #FFFFFF;
  --color-text: #1A1A2E;
  --color-text-muted: #5a5a6e;
  --color-border: #e6e6ec;
  --color-dark-surface: #111114;

  /* Typography */
  --font-heading: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Spacing scale */
  --space-2xs: 0.25rem;
  --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;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(10, 10, 10, 0.04);
  --shadow-md: 0 4px 16px rgba(10, 10, 10, 0.06);
  --shadow-lg: 0 12px 32px rgba(10, 10, 10, 0.10);

  /* Layout */
  --container-max: 1280px;
  --container-pad: 1rem;

  /* Section padding — fluid by viewport */
  --section-py: clamp(2.5rem, 5vw + 1rem, 4.5rem);
  --section-py-tight: clamp(1.25rem, 2vw + 0.5rem, 2rem);

  /* Transitions */
  --t-fast: 150ms ease;
  --t-base: 250ms ease;

  /* Minimum tap target size — WCAG AAA */
  --tap: 44px;
}

@media (min-width: 768px) { :root { --container-pad: 1.5rem; } }
@media (min-width: 1280px) { :root { --container-pad: 2rem; } }
@media (min-width: 1536px) { :root { --container-max: 1440px; } }

/* =========================================================
   Base / Reset
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(15px, 0.4vw + 14px, 16px);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-text);
  margin: 0 0 var(--space-md);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 { font-size: clamp(1.75rem, 5vw + 0.5rem, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw + 0.75rem, 2.5rem); }
h3 { font-size: clamp(1.125rem, 1.2vw + 0.75rem, 1.5rem); }
h4 { font-size: clamp(1rem, 0.5vw + 0.85rem, 1.125rem); }

p { margin: 0 0 var(--space-md); color: var(--color-text-muted); }

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

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

button { font-family: inherit; cursor: pointer; }

::selection { background-color: var(--color-accent); color: #fff; }

/* Accessibility — focus visible */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  width: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-sm) var(--space-md);
  z-index: 100;
}
.skip-link:focus { left: var(--space-md); top: var(--space-md); }
