/*
Theme Name: Muneeb Production
Theme URI: https://yourwebsite.com/muneeb-production
Author: Muneeb
Author URI: https://yourwebsite.com
Description: A premium Elementor-compatible WordPress theme inspired by artisan craftsmanship and luxury manufacturing.
Version: 1.0.0
License: GPL v2 or later
Text Domain: muneeb-production
*/

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  --color-primary: #1a1a1a;
  --color-secondary: #c9a962;
  --color-white: #ffffff;
  --color-gray-100: #f8f8f8;
  --color-gray-200: #f0f0f0;
  --color-gray-300: #e0e0e0;
  --color-gray-600: #606060;
  
  --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --container-max: 1200px;
  --space-4: 1rem;
  --space-6: 1.5rem;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-primary);
  background-color: var(--color-white);
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ============================================
   CONTAINER
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 8px 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
}

/* ============================================
   HEADER & LOGO
   ============================================ */
.header-logo-area {
  padding: 20px 0;
  text-align: center;
  background-color: var(--color-white);
}

.site-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 0;
}

.site-title a {
  color: var(--color-primary);
}

.site-description {
  font-size: 12px;
  color: var(--color-gray-600);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 5px;
}

/* ============================================
   NAVIGATION - DESKTOP
   ============================================ */
.main-navigation {
  background-color: var(--color-primary);
  position: relative;
}

.main-navigation .container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  position: relative;
}

.nav-menu > li > a {
  display: block;
  padding: 15px 20px;
  color: var(--color-white);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.3s;
}

.nav-menu > li > a:hover {
  color: var(--color-secondary);
}

/* Dropdown Menu */
.nav-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--color-primary);
  min-width: 200px;
  list-style: none;
  padding: 10px 0;
  margin: 0;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  z-index: 1000;
}

.nav-menu li:hover > .sub-menu {
  display: block;
}

.nav-menu .sub-menu a {
  display: block;
  padding: 10px 20px;
  color: var(--color-white);
  font-size: 14px;
  transition: all 0.3s;
}

.nav-menu .sub-menu a:hover {
  background-color: rgba(255,255,255,0.1);
  color: var(--color-secondary);
}

/* ============================================
   MOBILE MENU TOGGLE
   ============================================ */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-white);
  padding: 15px;
  cursor: pointer;
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
}

/* ============================================
   RESPONSIVE - TABLET & MOBILE
   ============================================ */
@media screen and (max-width: 768px) {
  
  /* Show mobile toggle button */
  .menu-toggle {
    display: block;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
  }
  
  /* Hide desktop menu by default */
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-primary);
    flex-direction: column;
    padding: 10px 0;
    z-index: 999;
  }
  
  /* Show menu when active */
  .nav-menu.active {
    display: flex;
  }
  
  .nav-menu > li > a {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  
  /* Mobile dropdown */
  .nav-menu .sub-menu {
    position: static;
    display: none;
    background-color: rgba(0,0,0,0.2);
    box-shadow: none;
    padding-left: 20px;
  }
  
  .nav-menu li:hover > .sub-menu {
    display: none;
  }
  
  .nav-menu li.menu-open > .sub-menu {
    display: block;
  }
  
  /* Container padding */
  .container {
    padding: 0 15px;
  }
  
  /* Typography */
  .site-title {
    font-size: 18px;
  }
  
  /* Hero section */
  .hero-section {
    min-height: 400px;
    height: 50vh;
  }
  
  .hero-title {
    font-size: 28px !important;
  }
  
  .hero-subtitle {
    font-size: 14px !important;
  }
  
  /* Grid layouts */
  .blog-grid,
  .portfolio-grid {
    grid-template-columns: 1fr !important;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  /* Two column layouts */
  .two-column,
  .contact-section {
    grid-template-columns: 1fr !important;
  }
  
  /* Footer */
  .footer-widgets {
    grid-template-columns: 1fr !important;
    text-align: center;
  }
  
  /* Page title */
  .page-title {
    font-size: 28px !important;
  }
  
  /* Section padding */
  .section {
    padding: 40px 0 !important;
  }
  
  .section-lg {
    padding: 60px 0 !important;
  }
}

/* Tablet specific */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  
  .footer-widgets {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  position: relative;
  height: 80vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 30px;
  font-weight: 300;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--color-primary);
}

.btn-light {
  background-color: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
}

.btn-light:hover {
  background-color: transparent;
  color: var(--color-white);
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: 80px 0;
}

.section-lg {
  padding: 120px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 15px;
}

.section-title p {
  color: var(--color-gray-600);
  max-width: 600px;
  margin: 0 auto;
}

.bg-light {
  background-color: var(--color-gray-100);
}

/* ============================================
   GRID LAYOUTS
   ============================================ */
.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
}

/* ============================================
   CARDS
   ============================================ */
.blog-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-gray-200);
}

.blog-image {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.blog-card:hover .blog-image img {
  transform: scale(1.05);
}

.blog-content {
  padding: 20px;
}

.blog-meta {
  font-size: 12px;
  color: var(--color-gray-600);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.blog-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.blog-title a:hover {
  color: var(--color-secondary);
}

.blog-excerpt {
  font-size: 14px;
  color: var(--color-gray-600);
}

/* Portfolio */
.portfolio-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.portfolio-item:hover img {
  transform: scale(1.1);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-title {
  color: var(--color-white);
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Gallery */
.gallery-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 15px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: var(--color-white);
  font-size: 12px;
  text-transform: uppercase;
  text-align: center;
}

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 80px 0;
  text-align: center;
}

.page-title {
  font-size: 42px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-white);
  margin: 0;
}

/* ============================================
   CONTACT
   ============================================ */
.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
}

.contact-info-icon {
  width: 50px;
  height: 50px;
  background-color: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  flex-shrink: 0;
}

.contact-info-content h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 5px;
}

.contact-info-content p {
  margin: 0;
  color: var(--color-gray-600);
  font-size: 14px;
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid var(--color-gray-300);
  font-family: inherit;
  font-size: 16px;
  transition: border-color 0.3s;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 60px 0 30px;
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.footer-widget-title {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-white);
  margin-bottom: 20px;
}

.footer-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-widget li {
  margin-bottom: 10px;
}

.footer-widget a {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  transition: color 0.3s;
}

.footer-widget a:hover {
  color: var(--color-white);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-copyright {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-copyright a {
  color: rgba(255,255,255,0.7);
}

.footer-copyright a:hover {
  color: var(--color-white);
}

/* ============================================
   UTILITY
   ============================================ */
.text-center { text-align: center; }
.bg-dark { background-color: var(--color-primary); color: var(--color-white); }
.bg-white { background-color: var(--color-white); }
.mt-4 { margin-top: 20px; }
.mb-4 { margin-bottom: 20px; }

/* ============================================
   ACCESSIBILITY
   ============================================ */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 10px 20px;
  z-index: 999999;
}

.skip-link:focus {
  top: 10px;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
  margin-top: 40px;
  text-align: center;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 10px 15px;
  margin: 0 5px;
  border: 1px solid var(--color-gray-300);
  font-size: 14px;
}

.pagination a:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.pagination .current {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

/* ============================================
   404 PAGE
   ============================================ */
.error-404 {
  text-align: center;
  padding: 80px 20px;
}

.error-code {
  font-size: 120px;
  font-weight: 300;
  line-height: 1;
  margin-bottom: 20px;
  color: var(--color-primary);
}

.error-title {
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.error-message {
  color: var(--color-gray-600);
  margin-bottom: 30px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   SCROLL TO TOP
   ============================================ */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--color-primary);
  color: var(--color-white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 999;
}

.scroll-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background-color: var(--color-secondary);
}
