/*
Theme Name: Mdinamzalat Renovation & Painting
Theme URI: https://mdinamzalat.com/
Author: Senior WordPress Developer & UI/UX Designer
Author URI: https://mdinamzalat.com/
Description: قوالب ووردبريس مخصصة وعالية التحويل لخدمات الدهانات والديكورات والترميم بشرق الرياض (حي الرمال، البيان، القادسية، الخليج، المونسية).
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mdinamzalat
Domain Path: /languages/
Tags: rtl-language-support, custom-page-templates, local-business, portfolio, responsive-layout, theme-options

Mdinamzalat Renovation & Painting WordPress Theme
Designed specifically for home improvement, interior/exterior paints, decor, and renovation services in Saudi Arabia.
*/

/* Core Reset & Fallback Styles */
:root {
  --color-primary: #0f172a;
  --color-primary-light: #1e293b;
  --color-accent: #d97706;
  --color-accent-hover: #b45309;
  --color-accent-light: #fef3c7;
  --color-whatsapp: #25d366;
  --color-whatsapp-dark: #128c7e;
  --color-text: #334155;
  --color-text-light: #64748b;
  --color-bg-light: #f8fafc;
  --color-white: #ffffff;
  --color-border: #e2e8f0;
  --font-family-base: 'Tajawal', system-ui, -apple-system, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 35px -10px rgba(15, 23, 42, 0.12);
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

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

html {
  direction: rtl;
  text-align: right;
  font-family: var(--font-family-base);
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--color-bg-light);
  color: var(--color-text);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Floating Action Buttons Stack */
.floating-buttons {
  position: fixed !important;
  bottom: 28px !important;
  left: 24px !important;
  top: auto !important;
  right: auto !important;
  transform: none !important;
  z-index: 99999 !important;
  display: flex !important;
  flex-direction: column-reverse !important;
  gap: 14px !important;
}

.floating-buttons a,
.floating-buttons .floating-btn,
.floating-buttons a.floating-phone,
.floating-buttons a.floating-whatsapp {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 56px !important;
  height: 56px !important;
  border-radius: 50% !important;
  font-size: 1.6rem !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28) !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

.floating-buttons a:hover,
.floating-buttons .floating-btn:hover {
  transform: scale(1.12) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.38) !important;
  color: #ffffff !important;
}

.floating-buttons a.floating-whatsapp {
  background-color: #25d366 !important;
}

.floating-buttons a.floating-phone-1 {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  background-color: #d97706 !important;
}

.floating-buttons a.floating-phone-2 {
  background-color: #0284c7 !important;
}

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .portfolio-item {
    height: 165px !important;
    border-radius: 8px !important;
  }
  .portfolio-overlay {
    padding: 10px !important;
  }
  .portfolio-cat {
    font-size: 0.72rem !important;
    margin-bottom: 2px !important;
  }
  .portfolio-title {
    font-size: 0.8rem !important;
    line-height: 1.2 !important;
  }
  .floating-buttons {
    bottom: 20px !important;
    left: 16px !important;
    gap: 12px !important;
  }
  .floating-buttons a,
  .floating-buttons .floating-btn {
    width: 50px !important;
    height: 50px !important;
    font-size: 1.4rem !important;
  }
}
