﻿/*
Theme Name: BahyGroup
Theme URI: https://bahygroup.com
Author: BahyGroup
Author URI: https://bahygroup.com
Description: BahyGroup corporate theme — single-page architecture, bilingual (AR/EN), no external plugins. Built with custom bilingual system, custom meta boxes, and scroll-triggered animations. Brand kit: 8-component logo system.
Version: 1.5.2
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: Proprietary
Text Domain: bahygroup
Tags: custom-colors, custom-menu, editor-style, full-width-template, rtl-language-support, theme-options, translation-ready

BahyGroup v1.0 — built 2026-07-10.
*/

/* ========================================================================
   CSS Custom Properties (Design Tokens)
   ======================================================================== */

:root {
    /* Brand Colors — extracted from logos-kit/01-logo-full-dark.png */
    --bg-dark-navy:       #0B1A3A;   /* primary dark bg */
    --bg-deep-blue:       #1E3A8A;   /* secondary deep blue */
    --bg-cyan:            #3FBDD1;   /* primary cyan accent */
    --bg-cyan-light:      #5FCEDC;   /* light cyan */
    --bg-cyan-glow:       #6FE0EF;   /* glow effect */

    --text-on-dark:       #FFFFFF;
    --text-on-light:      #0B1A3A;
    --text-muted-dark:    rgba(255, 255, 255, 0.7);
    --text-muted-light:   rgba(11, 26, 58, 0.6);

    /* Gradients */
    --gradient-primary:   linear-gradient(135deg, var(--bg-cyan) 0%, var(--bg-deep-blue) 100%);
    --gradient-bar:       linear-gradient(90deg, var(--bg-cyan-light) 0%, var(--bg-deep-blue) 100%);
    --gradient-radial:    radial-gradient(ellipse at center, var(--bg-deep-blue) 0%, var(--bg-dark-navy) 100%);

    /* Surface */
    --surface-light:      #FFFFFF;
    --surface-light-alt:  #F8FAFC;
    --surface-dark:       #0B1A3A;
    --surface-dark-alt:   #142850;
    --border-light:       #E2E8F0;
    --border-dark:        rgba(255, 255, 255, 0.1);

    /* Service Colors (8 distinct) */
    --service-1-web:      #3B82F6;  /* Blue */
    --service-2-mobile:   #6366F1;  /* Indigo */
    --service-3-ai:       #06B6D4;  /* Cyan */
    --service-4-ecom:     #10B981;  /* Emerald */
    --service-5-mkt:      #F43F5E;  /* Rose */
    --service-6-design:   #F59E0B;  /* Amber */
    --service-7-video:    #D946EF;  /* Fuchsia */
    --service-8-admin:    #8B5CF6;  /* Violet */

    /* Typography */
    --font-en-heading:    'Space Grotesk', system-ui, -apple-system, sans-serif;
    --font-en-body:       'Inter', system-ui, -apple-system, sans-serif;
    --font-en-display:    'Cabinet Grotesk', 'Space Grotesk', sans-serif;
    --font-ar-heading:    'Cairo', 'Tajawal', sans-serif;
    --font-ar-body:       'Tajawal', 'Cairo', sans-serif;

    /* Type Scale (Mobile → Desktop) */
    --text-hero:          clamp(2.5rem, 5vw, 4.5rem);
    --text-h1:            clamp(2rem, 4vw, 3rem);
    --text-h2:            clamp(1.875rem, 3vw, 2.25rem);
    --text-h3:            clamp(1.5rem, 2.5vw, 1.875rem);
    --text-h4:            1.25rem;
    --text-body:          1rem;
    --text-small:         0.875rem;
    --text-tiny:          0.75rem;

    /* Spacing */
    --space-xs:           0.25rem;
    --space-sm:           0.5rem;
    --space-md:           1rem;
    --space-lg:           1.5rem;
    --space-xl:           2rem;
    --space-2xl:          3rem;
    --space-3xl:          4rem;
    --space-4xl:          6rem;
    --space-5xl:          8rem;

    /* Layout */
    --container-max:      1280px;
    --container-narrow:   960px;
    --radius-sm:          0.375rem;
    --radius-md:          0.5rem;
    --radius-lg:          1rem;
    --radius-xl:          1.5rem;
    --radius-full:        9999px;

    /* Shadows */
    --shadow-sm:          0 1px 2px rgba(11, 26, 58, 0.05);
    --shadow-md:          0 4px 6px rgba(11, 26, 58, 0.07), 0 2px 4px rgba(11, 26, 58, 0.06);
    --shadow-lg:          0 10px 15px rgba(11, 26, 58, 0.1), 0 4px 6px rgba(11, 26, 58, 0.05);
    --shadow-xl:          0 20px 25px rgba(11, 26, 58, 0.1), 0 10px 10px rgba(11, 26, 58, 0.04);
    --shadow-glow-cyan:   0 0 30px rgba(63, 189, 209, 0.4);
    --shadow-glow-blue:   0 0 40px rgba(30, 58, 138, 0.3);

    /* Animation */
    --ease-out:           cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out:        cubic-bezier(0.65, 0, 0.35, 1);
    --ease-bounce:        cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast:      150ms;
    --duration-base:      300ms;
    --duration-slow:      500ms;

    /* Z-Index */
    --z-base:             1;
    --z-dropdown:         100;
    --z-sticky:           200;
    --z-header:           300;
    --z-modal:            400;
    --z-toast:            500;

    /* Breakpoints (for reference; used in @media) */
    /* mobile:  default  */
    /* md:      768px    */
    /* lg:      1024px   */
    /* xl:      1280px   */
    /* 2xl:     1536px   */
}

/* Light mode (default) */
:root,
[data-theme="light"] {
    --bg-page:            var(--surface-light);
    --bg-elevated:        var(--surface-light-alt);
    --text-primary:       var(--text-on-light);
    --text-secondary:     var(--text-muted-light);
    --border-default:     var(--border-light);
}

/* Dark mode */
[data-theme="dark"] {
    --bg-page:            var(--surface-dark);
    --bg-elevated:        var(--surface-dark-alt);
    --text-primary:       var(--text-on-dark);
    --text-secondary:     var(--text-muted-dark);
    --border-default:     var(--border-dark);
}

/* Auto-detect: dark mode if user prefers */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg-page:            var(--surface-dark);
        --bg-elevated:        var(--surface-dark-alt);
        --text-primary:       var(--text-on-dark);
        --text-secondary:     var(--text-muted-dark);
        --border-default:     var(--border-dark);
    }
}

/* ========================================================================
   Base Reset
   ======================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-en-body);
    font-size: var(--text-body);
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-page);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    overflow-x: hidden;
    transition: background var(--duration-base) var(--ease-out),
                color var(--duration-base) var(--ease-out);
}

body.lang-ar {
    font-family: var(--font-ar-body);
    direction: rtl;
    text-align: right;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out);
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-en-heading);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

body.lang-ar h1,
body.lang-ar h2,
body.lang-ar h3,
body.lang-ar h4,
body.lang-ar h5,
body.lang-ar h6 {
    font-family: var(--font-ar-heading);
    letter-spacing: 0;
}

/* ========================================================================
   Utility Classes
   ======================================================================== */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.container-narrow {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.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;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
