/**
 * Noor Noorani Wheels - Official Theme Component Stylesheet
 *
 * @package Noor_Noorani_Wheels
 * @version 1.0.0
 */

/* ==========================================================================
   1. TOP ANNOUNCEMENT BAR
   ========================================================================== */
.nn-top-bar {
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 12px;
  padding: 8px 0;
  color: var(--text-secondary);
  position: relative;
  z-index: 40;
}

.nn-top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nn-top-bar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nn-badge-pulse {
  width: 8px;
  height: 8px;
  background-color: var(--whatsapp-green);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  animation: nn-pulse 2s infinite;
}

@keyframes nn-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.nn-top-bar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nn-top-guarantee {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-secondary);
}

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

.nn-top-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold-primary);
  font-weight: 600;
}

@media (max-width: 900px) {
  .nn-top-bar-right {
    display: none;
  }
}

/* ==========================================================================
   2. MAIN HEADER & NAVIGATION
   ========================================================================== */
.nn-header {
  background-color: rgba(7, 9, 14, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.nn-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nn-brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nn-brand-emblem-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 164, 50, 0.2) 0%, rgba(13, 17, 26, 0.8) 100%);
  border: 1px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 16px rgba(232, 164, 50, 0.2);
}

.nn-brand-emblem {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nn-brand-text {
  display: flex;
  flex-direction: column;
}

.nn-brand-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #FFFFFF;
  line-height: 1.1;
  text-transform: uppercase;
}

.nn-brand-subtitle {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.2px;
  color: var(--gold-primary);
  text-transform: uppercase;
  margin-top: 2px;
}

/* Desktop Navigation */
.nn-desktop-nav {
  display: flex;
  align-items: center;
}

.nn-nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nn-nav-list li a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nn-nav-list li a:hover,
.nn-nav-list li.current-menu-item > a {
  color: #FFFFFF;
  background-color: rgba(255, 255, 255, 0.05);
}

.nn-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

@media (max-width: 1100px) {
  .nn-desktop-nav {
    display: none;
  }
}

@media (max-width: 640px) {
  .nn-hide-sm {
    display: none !important;
  }
}

/* Hamburger Button */
.nn-hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 10px 8px;
}

.nn-hamburger-line {
  width: 100%;
  height: 2px;
  background-color: #FFFFFF;
  border-radius: 2px;
  transition: all 0.3s ease;
}

@media (max-width: 1100px) {
  .nn-hamburger-btn {
    display: flex;
  }
}

/* ==========================================================================
   3. MOBILE DRAWER MENU
   ========================================================================== */
.nn-mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  display: none;
}

.nn-mobile-drawer.active {
  display: block;
}

.nn-mobile-drawer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.nn-mobile-drawer-inner {
  position: absolute;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 85vw;
  height: 100%;
  background-color: var(--bg-secondary);
  border-left: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  padding: 24px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nn-mobile-drawer.active .nn-mobile-drawer-inner {
  transform: translateX(0);
}

.nn-mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.nn-drawer-close-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
}
.nn-drawer-close-btn:hover {
  color: #FFFFFF;
}

.nn-mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nn-mobile-nav-list li a {
  display: block;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease;
}

.nn-mobile-nav-list li a:hover {
  background-color: var(--bg-card);
  color: var(--gold-primary);
}

.nn-mobile-drawer-footer {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.nn-mobile-contact-block {
  margin-bottom: 16px;
}

.nn-mobile-phone-link {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--gold-primary);
}

/* ==========================================================================
   4. HERO BANNER
   ========================================================================== */
.nn-hero-banner {
  position: relative;
  min-height: 520px;
  padding: 60px 0 80px;
  background-color: var(--bg-primary);
  background-image: url('../images/showroom_banner_1787137127559.webp');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
}

.nn-hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(7, 9, 14, 0.85) 0%, rgba(7, 9, 14, 0.95) 100%);
  pointer-events: none;
}

.nn-hero-container {
  position: relative;
  z-index: 2;
}

.nn-hero-content {
  max-width: 800px;
}

.nn-hero-badge-wrap {
  margin-bottom: 16px;
}

.nn-hero-title {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.15;
  color: #FFFFFF;
  margin-bottom: 16px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.nn-hero-subtitle {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 28px;
  max-width: 680px;
}

.nn-hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .nn-hero-banner {
    min-height: auto;
    padding: 40px 0 50px;
  }
  .nn-hero-title {
    font-size: 30px;
  }
  .nn-hero-subtitle {
    font-size: 15px;
  }
  .nn-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .nn-hero-actions .nn-btn {
    width: 100%;
  }
}

/* ==========================================================================
   5. TRUST SECTION
   ========================================================================== */
.nn-trust-section {
  padding: 32px 0;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

.nn-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.nn-trust-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.nn-trust-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background-color: rgba(232, 164, 50, 0.1);
  border: 1px solid rgba(232, 164, 50, 0.25);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nn-trust-title {
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 2px;
}

.nn-trust-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

@media (max-width: 1024px) {
  .nn-trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .nn-trust-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   6. SECTION HEADERS & CONTENT SECTIONS
   ========================================================================== */
.nn-inventory-section,
.nn-services-section,
.nn-location-section {
  padding: 64px 0;
}

.nn-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
  gap: 20px;
}

.nn-section-header.nn-text-center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.nn-section-title {
  font-size: 30px;
  font-weight: 800;
  color: #FFFFFF;
  margin-top: 8px;
}

.nn-section-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  margin-top: 6px;
  max-width: 600px;
}

/* Category Cards */
.nn-category-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.nn-category-header {
  margin-bottom: 20px;
}
.nn-card-title {
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 10px 0 6px;
}

/* Service Cards */
.nn-service-card {
  display: flex;
  flex-direction: column;
}
.nn-service-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(232, 164, 50, 0.12);
  border: 1px solid var(--border-gold);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.nn-service-title {
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 8px;
}
.nn-service-link {
  display: inline-block;
  margin-top: 16px;
  font-weight: 600;
  font-size: 14px;
  color: var(--gold-primary);
}

/* Location Card */
.nn-location-card {
  padding: 40px;
  background: linear-gradient(145deg, #131926 0%, #0D111A 100%);
  border: 1px solid var(--border-gold);
}
.nn-location-title {
  font-size: 28px;
  margin: 12px 0 8px;
}
.nn-location-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 24px 0;
  padding: 16px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 14px;
}
.nn-location-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ==========================================================================
   7. PAGE HEADERS & ARTICLES
   ========================================================================== */
.nn-page-header {
  padding: 50px 0 40px;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 40px;
}
.nn-page-title {
  font-size: 36px;
  font-weight: 800;
  color: #FFFFFF;
  margin-top: 8px;
}
.nn-page-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin-top: 8px;
  max-width: 720px;
}

.nn-page-content-wrapper {
  padding-bottom: 60px;
}

.nn-article-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  color: var(--text-primary);
}

.nn-entry-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
}
.nn-entry-content p {
  margin-bottom: 20px;
}
.nn-entry-content h2, .nn-entry-content h3 {
  margin: 32px 0 16px;
  color: #FFFFFF;
}

.nn-content-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  padding-bottom: 60px;
}
@media (max-width: 900px) {
  .nn-content-layout {
    grid-template-columns: 1fr;
  }
}

/* Forms */
.nn-form-group {
  margin-bottom: 18px;
}
.nn-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.nn-input, .nn-textarea, .nn-range {
  width: 100%;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: #FFFFFF;
  font-family: inherit;
  font-size: 14px;
}
.nn-input:focus, .nn-textarea:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(232, 164, 50, 0.15);
}

/* ==========================================================================
   8. FOOTER BANNER & FOOTER
   ========================================================================== */
.nn-footer-banner {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 50px 0;
}
.nn-footer-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.nn-footer-banner-title {
  font-size: 26px;
  font-weight: 800;
  margin: 10px 0 6px;
}
.nn-footer-banner-desc {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 650px;
}
.nn-footer-banner-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
@media (max-width: 900px) {
  .nn-footer-banner-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .nn-footer-banner-actions {
    width: 100%;
    flex-direction: column;
  }
}

.nn-footer {
  background-color: #040508;
  padding: 60px 0 28px;
  color: var(--text-secondary);
  font-size: 14px;
}

.nn-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1.3fr;
  gap: 36px;
  margin-bottom: 48px;
}

.nn-footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.nn-footer-about {
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 13px;
}

.nn-footer-cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background-color: rgba(232, 164, 50, 0.08);
  border: 1px solid rgba(232, 164, 50, 0.2);
  color: var(--gold-primary);
  font-size: 12px;
  font-weight: 600;
}

.nn-footer-heading {
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nn-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nn-footer-links li a {
  color: var(--text-secondary);
  font-size: 13px;
}
.nn-footer-links li a:hover {
  color: var(--gold-primary);
}

.nn-footer-contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.nn-footer-contact-item svg {
  color: var(--gold-primary);
  flex-shrink: 0;
  margin-top: 2px;
}
.nn-footer-contact-item strong {
  color: #FFFFFF;
  font-size: 13px;
}
.nn-footer-contact-item p {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.nn-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
}
.nn-footer-badges {
  display: flex;
  gap: 8px;
}

@media (max-width: 1024px) {
  .nn-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .nn-footer-grid {
    grid-template-columns: 1fr;
  }
  .nn-footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
