/*
Theme Name: AlHumaidhi Architects
Theme URI: https://alhumaidhiarchitects.com
Description: قالب معماري فاخر يطابق تصميم موقع AlHumaidhi Architects الأصلي. تصميم حديث وأنيق مع تركيز على الصور والمحتوى.
Version: 2.0.0
Author: AlHumaidhi Architects
Author URI: https://alhumaidhiarchitects.com
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: alhumaidhi-architects
Domain Path: /languages
Requires at least: 5.9
Requires PHP: 7.4
Tested up to: 6.4
*/

/* ============================================
   ALHUMAIDHI ARCHITECTS THEME - MODERN DESIGN
   ============================================ */

/* ============================================
   1. ROOT VARIABLES & COLOR PALETTE
   ============================================ */

:root {
  /* Primary Colors - Modern Neutral */
  --primary-dark: #1a1a1a;
  --primary-medium: #4a4a4a;
  --primary-light: #7a7a7a;
  --primary-lighter: #a4a4a4;
  
  /* Background Colors */
  --bg-white: #ffffff;
  --bg-light: #f5f5f5;
  --bg-dark: #1a1a1a;
  
  /* Accent & Border Colors */
  --border-light: #e0e0e0;
  --border-medium: #d0d0d0;
  --accent-beige: #d4cec7;
  
  /* Typography Colors */
  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-muted: #7a7a7a;
  --text-light: #ffffff;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  
  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 700;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ============================================
   2. RESET & GLOBAL STYLES
   ============================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-white);
  letter-spacing: 0.5px;
}

/* ============================================
   3. TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-normal);
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: 3rem;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

h2 {
  font-size: 2rem;
  line-height: 1.2;
}

h3 {
  font-size: 1.5rem;
  line-height: 1.25;
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1rem;
}

h6 {
  font-size: 0.875rem;
}

p {
  margin-bottom: var(--spacing-md);
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 14px;
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition-normal);
}

a:hover {
  color: var(--text-secondary);
}

em, i {
  font-style: italic;
}

strong, b {
  font-weight: var(--font-weight-bold);
}

/* ============================================
   4. BUTTONS
   ============================================ */

button,
.button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--text-primary);
  background-color: transparent;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: var(--font-weight-normal);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-normal);
}

button:hover,
.button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
input[type="reset"]:hover {
  background-color: var(--text-primary);
  color: var(--bg-white);
}

/* ============================================
   5. FORMS
   ============================================ */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="search"],
textarea,
select {
  width: 100%;
  padding: 0.75rem 0;
  border: none;
  border-bottom: 1px solid var(--border-light);
  background-color: transparent;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  transition: border-color var(--transition-normal);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-bottom-color: var(--text-primary);
}

label {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* ============================================
   6. IMAGES & MEDIA
   ============================================ */

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

figure {
  margin: 0;
  margin-bottom: var(--spacing-lg);
}

figcaption {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: var(--spacing-sm);
}

/* ============================================
   7. HEADER & NAVIGATION
   ============================================ */

.site-header {
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  padding: var(--spacing-md) 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.site-branding {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.site-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.site-title {
  font-size: 14px;
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.site-description {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 2px;
}

.main-navigation {
  display: flex;
  gap: var(--spacing-lg);
}

.main-navigation a {
  font-size: 12px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-primary);
  transition: color var(--transition-normal);
  font-weight: var(--font-weight-normal);
}

.main-navigation a:hover,
.main-navigation a.current-menu-item {
  color: var(--text-secondary);
}

/* ============================================
   8. HERO SECTION
   ============================================ */

.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-color: var(--bg-light);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
}

.hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--spacing-2xl);
  background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
  color: var(--text-light);
}

/* ============================================
   9. PROJECTS GRID
   ============================================ */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin: var(--spacing-2xl) 0;
}

.project-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background-color: var(--bg-light);
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform var(--transition-slow);
}

.project-item:hover .project-image {
  transform: scale(1.05);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  display: flex;
  align-items: flex-end;
  padding: var(--spacing-lg);
  transition: background var(--transition-normal);
}

.project-item:hover .project-overlay {
  background: rgba(0, 0, 0, 0.3);
}

.project-info {
  color: var(--text-light);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.project-item:hover .project-info {
  opacity: 1;
}

/* ============================================
   10. FOOTER
   ============================================ */

.site-footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: var(--spacing-2xl) 0;
  margin-top: var(--spacing-2xl);
}

.site-footer a {
  color: var(--text-light);
}

.site-footer a:hover {
  color: var(--border-medium);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-widget h3 {
  color: var(--text-light);
  font-size: 12px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: var(--spacing-md);
  font-weight: var(--font-weight-bold);
}

.footer-widget p,
.footer-widget a {
  font-size: 12px;
  line-height: 1.8;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-lg);
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  max-width: 1400px;
  margin: 0 auto;
  padding-left: var(--spacing-lg);
  padding-right: var(--spacing-lg);
}

/* ============================================
   11. CONTENT AREA
   ============================================ */

.site-content {
  min-height: calc(100vh - 200px);
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.page-header {
  padding: var(--spacing-2xl) 0;
  margin-bottom: var(--spacing-2xl);
}

.page-header h1 {
  font-size: 2.5rem;
}

/* ============================================
   12. CONTAINER & LAYOUT
   ============================================ */

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

/* ============================================
   13. RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .main-navigation {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .hero-section {
    height: 60vh;
  }

  .site-header-inner {
    flex-direction: column;
    gap: var(--spacing-md);
  }

  .main-navigation {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   14. UTILITY CLASSES
   ============================================ */

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-left {
  text-align: left;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.p-0 { padding: 0; }
.p-1 { padding: var(--spacing-xs); }
.p-2 { padding: var(--spacing-sm); }
.p-3 { padding: var(--spacing-md); }
.p-4 { padding: var(--spacing-lg); }
.p-5 { padding: var(--spacing-xl); }

.text-muted {
  color: var(--text-muted);
}

.text-secondary {
  color: var(--text-secondary);
}

/* ============================================
   15. WORDPRESS SPECIFIC
   ============================================ */

.wp-block-image {
  margin: var(--spacing-lg) 0;
}

.wp-block-quote {
  margin: var(--spacing-lg) 0;
  padding-left: var(--spacing-lg);
  border-left: 2px solid var(--border-light);
}

.wp-block-separator {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: var(--spacing-lg) 0;
}

.wp-block-button__link {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--text-primary);
  background-color: transparent;
  color: var(--text-primary);
  font-size: 12px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  transition: all var(--transition-normal);
}

.wp-block-button__link:hover {
  background-color: var(--text-primary);
  color: var(--bg-white);
}

/* ============================================
   16. ANIMATIONS
   ============================================ */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn var(--transition-normal);
}

.slide-in-up {
  animation: slideInUp var(--transition-slow);
}

/* ============================================
   17. PRINT STYLES
   ============================================ */

@media print {
  body {
    background-color: white;
    color: black;
  }

  a {
    text-decoration: underline;
  }

  .site-header,
  .site-footer {
    display: none;
  }
}
