/*
Theme Name: Almasayel
Theme URI: https://almasayel.net
Author: Almasayel For Marketing
Description: Almasayel official WordPress WooCommerce theme - Elementor compatible
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
WooCommerce: true
License: GNU General Public License v2 or later
Text Domain: almasayel
*/

/* ═══════════════════════════════════════════
   ALMASAYEL – CSS VARIABLES
   ═══════════════════════════════════════════ */
:root {
  --alm-primary:       #1B3C6B;   /* Navy blue - main brand */
  --alm-primary-dark:  #132d52;
  --alm-accent:        #D4A843;   /* Gold/amber accent */
  --alm-accent-dark:   #b8902e;
  --alm-white:         #ffffff;
  --alm-off-white:     #F8F7F4;
  --alm-light-gray:    #f0eeea;
  --alm-gray-200:      #E8E6E1;
  --alm-gray-400:      #9CA3AF;
  --alm-gray-600:      #6B7280;
  --alm-gray-700:      #374151;
  --alm-gray-800:      #1F2937;
  --alm-dark:          #111827;
  --alm-green:         #16a34a;
  --alm-radius:        0.5rem;
  --alm-radius-lg:     1rem;
  --alm-max-w:         1200px;
  --alm-px:            clamp(1.25rem, 4vw, 2.5rem);
  --alm-transition:    0.3s ease;
  --alm-shadow:        0 4px 24px rgba(27,60,107,0.10);
  --alm-shadow-hover:  0 8px 40px rgba(27,60,107,0.18);
}

/* ═══════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  color: var(--alm-gray-800);
  background: var(--alm-white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--alm-transition); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.alm-container {
  max-width: var(--alm-max-w);
  margin: 0 auto;
  padding: 0 var(--alm-px);
  width: 100%;
}

.alm-section {
  padding: 80px 0;
}

.alm-section-sm {
  padding: 60px 0;
}

/* ═══════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════ */
.alm-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--alm-primary);
  background: rgba(27,60,107,0.08);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.alm-eyebrow--accent {
  color: var(--alm-accent-dark);
  background: rgba(212,168,67,0.12);
}

.alm-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--alm-dark);
}

.alm-title--xl {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
}

.alm-title em {
  font-style: normal;
  color: var(--alm-primary);
}

.alm-subtitle {
  font-size: 1rem;
  color: var(--alm-gray-600);
  line-height: 1.7;
  max-width: 520px;
}

/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */
.alm-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: var(--alm-transition);
  white-space: nowrap;
  cursor: pointer;
}

.alm-btn--primary {
  background: var(--alm-primary);
  color: var(--alm-white);
  border: 2px solid var(--alm-primary);
}
.alm-btn--primary:hover {
  background: var(--alm-primary-dark);
  border-color: var(--alm-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27,60,107,0.3);
}

.alm-btn--outline {
  background: transparent;
  color: var(--alm-primary);
  border: 2px solid var(--alm-primary);
}
.alm-btn--outline:hover {
  background: var(--alm-primary);
  color: var(--alm-white);
  transform: translateY(-2px);
}

.alm-btn--accent {
  background: var(--alm-accent);
  color: var(--alm-white);
  border: 2px solid var(--alm-accent);
}
.alm-btn--accent:hover {
  background: var(--alm-accent-dark);
  border-color: var(--alm-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212,168,67,0.35);
}

.alm-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ═══════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════ */
.alm-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: var(--alm-white);
  box-shadow: 0 1px 12px rgba(0,0,0,0.08);
  transition: background var(--alm-transition), box-shadow var(--alm-transition);
}

.alm-header.scrolled {
  box-shadow: 0 2px 20px rgba(27,60,107,0.12);
}

.alm-header-inner {
  max-width: var(--alm-max-w);
  margin: 0 auto;
  padding: 0 var(--alm-px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 32px;
}

/* Logo */
.alm-logo { display: flex; align-items: center; flex-shrink: 0; }
.alm-logo img { height: 48px; width: auto; }
.alm-logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--alm-primary);
  letter-spacing: -0.02em;
}

/* Nav */
.alm-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.alm-nav a {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--alm-gray-700);
  border-radius: var(--alm-radius);
  position: relative;
  white-space: nowrap;
}

.alm-nav a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--alm-primary);
  border-radius: 2px;
  transition: width var(--alm-transition);
}

.alm-nav a:hover,
.alm-nav a.current-menu-item {
  color: var(--alm-primary);
}

.alm-nav a:hover::after,
.alm-nav a.current-menu-item::after {
  width: 60%;
}

/* Header Actions */
.alm-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* WooCommerce cart icon */
.alm-cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--alm-light-gray);
  color: var(--alm-primary);
  transition: var(--alm-transition);
}
.alm-cart-btn:hover {
  background: var(--alm-primary);
  color: var(--alm-white);
}
.alm-cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--alm-accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

/* Mobile hamburger */
.alm-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px;
  cursor: pointer;
}
.alm-burger span {
  display: block;
  height: 2px;
  background: var(--alm-primary);
  border-radius: 2px;
  transition: var(--alm-transition);
}

/* Mobile nav */
.alm-mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99998;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--alm-transition);
}
.alm-mobile-nav.open {
  opacity: 1;
  pointer-events: all;
}
.alm-mobile-nav-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 280px;
  height: 100%;
  background: var(--alm-white);
  padding: 24px;
  transform: translateX(-100%);
  transition: transform var(--alm-transition);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.alm-mobile-nav.open .alm-mobile-nav-panel {
  transform: translateX(0);
}
.alm-mobile-nav a {
  display: block;
  padding: 12px 16px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--alm-gray-700);
  border-radius: var(--alm-radius);
  border-bottom: 1px solid var(--alm-gray-200);
}
.alm-mobile-nav a:hover { color: var(--alm-primary); background: var(--alm-light-gray); }
.alm-mobile-close {
  align-self: flex-end;
  font-size: 1.5rem;
  color: var(--alm-gray-600);
  cursor: pointer;
  margin-bottom: 16px;
  line-height: 1;
}

/* ═══════════════════════════════════════════
   FLOAT ACTIONS
   ═══════════════════════════════════════════ */
.alm-float-stack {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 9990;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.alm-float-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
}
.alm-float-actions.visible {
  max-height: 200px;
  opacity: 1;
}

.alm-float-action-item {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform var(--alm-transition), box-shadow var(--alm-transition);
}
.alm-float-action-item:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgba(0,0,0,0.25); }
.alm-float-action-item--wa { background: #25D366; }
.alm-float-action-item--contact { background: var(--alm-primary); }
.alm-float-action-item svg { width: 22px; height: 22px; }

.alm-float-toggle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--alm-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(27,60,107,0.35);
  transition: transform var(--alm-transition), background var(--alm-transition);
  cursor: pointer;
  border: none;
}
.alm-float-toggle:hover { transform: scale(1.08); background: var(--alm-primary-dark); }
.alm-float-toggle svg { width: 24px; height: 24px; }
.alm-float-toggle .icon-close { display: none; }
.alm-float-toggle.open .icon-open { display: none; }
.alm-float-toggle.open .icon-close { display: block; }

/* ═══════════════════════════════════════════
   ELEMENTOR OVERRIDES
   ═══════════════════════════════════════════ */
.elementor-section.elementor-section-boxed > .elementor-container {
  max-width: var(--alm-max-w);
}

.elementor-widget-wrap {
  --e-global-color-primary: var(--alm-primary);
  --e-global-color-secondary: var(--alm-accent);
  --e-global-color-text: var(--alm-gray-800);
}

/* ═══════════════════════════════════════════
   WOOCOMMERCE BASE
   ═══════════════════════════════════════════ */
.woocommerce .button,
.woocommerce button.button {
  background: var(--alm-primary);
  color: var(--alm-white);
  border-radius: 50px;
  padding: 12px 28px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: var(--alm-transition);
}
.woocommerce .button:hover,
.woocommerce button.button:hover {
  background: var(--alm-primary-dark);
  color: var(--alm-white);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .alm-nav { display: none; }
  .alm-burger { display: flex; }
  .alm-mobile-nav { display: block; }
}

@media (max-width: 768px) {
  .alm-section { padding: 56px 0; }
  .alm-header-inner { height: 60px; }
  .alm-logo img { height: 38px; }
}
