/* TradeSurplus Construction Web Style */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-dark: #1a1e26; /* Dark slate from screenshot */
  --bg-dark-secondary: #11141a;
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-light: #9ca3af;
  --accent: #f59e0b; /* Yellow/Orange TradeSurplus color */
  --accent-hover: #d97706;
  --accent-light: #fffbeb;
  --border-color: #d1d5db; /* Clean grey border */
  --border-light: #e5e7eb;
  --radius-sm: 0px; /* Sharp commercial box feel from screenshots */
  --radius-md: 4px;
  --radius-lg: 6px;
  --transition: all 0.2s ease-out;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  color: var(--text-primary);
}

/* Header (White background as in screenshot) */
header {
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #111827;
}

.logo-icon {
  width: 24px;
  height: 24px;
  background-color: var(--accent);
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.logo-icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
}

.nav-links a:hover {
  color: var(--accent);
}

.contact-btn-header {
  background-color: var(--bg-dark);
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.contact-btn-header:hover {
  background-color: #000000;
}

/* Hero Section (Dark Slate + Dot Grid Pattern) */
.hero {
  background-color: var(--bg-dark);
  color: #ffffff;
  padding: 6.5rem 2rem;
  position: relative;
  text-align: left;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1.2px, transparent 0);
  background-size: 18px 18px;
  pointer-events: none;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #d1d5db;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.hero-badge::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 2px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 1.5rem;
  color: #ffffff;
  text-transform: uppercase;
}

.hero h1 span {
  color: var(--accent);
}

.hero p {
  font-size: 1.15rem;
  color: #9ca3af;
  max-width: 650px;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  background-color: var(--accent);
  color: #000000;
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

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

.btn-secondary {
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.btn-secondary:hover {
  border-color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
}

/* Si Të Blesh Section (Light grey + two cards) */
.how-to-buy-section {
  background-color: #eaecef; /* Styled light grey */
  padding: 5rem 2rem;
  text-align: center;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.how-to-buy-title {
  font-size: 1.85rem;
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.how-to-buy-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 4px;
  background-color: var(--accent);
}

.how-to-buy-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 1.5rem auto 3rem auto;
}

.buy-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.buy-card {
  background-color: #ffffff;
  padding: 3rem 2rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.buy-icon {
  width: 50px;
  height: 50px;
  background-color: var(--accent);
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}

.buy-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.buy-card-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.buy-card-detail {
  font-size: 1.35rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 0.5rem;
}

.buy-card-link {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 500;
}

.buy-card-link:hover {
  color: var(--accent-hover);
}

/* Inventory Section Header layout (Split) */
.catalog-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.catalog-header-block {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.catalog-title-wrapper h2 {
  font-size: 2.2rem;
  text-transform: uppercase;
  font-weight: 800;
  line-height: 1;
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.catalog-title-wrapper h2::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: var(--accent);
}

.catalog-filter-wrapper {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
  max-width: 800px;
}

.search-wrapper {
  position: relative;
  width: 100%;
}

.search-wrapper input {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  font-family: var(--font-family);
  font-size: 0.95rem;
  outline: none;
}

.search-wrapper input:focus {
  border-color: #000000;
}

.search-wrapper svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  fill: var(--text-light);
  pointer-events: none;
}

.filter-chips {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.filter-btn {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  background-color: #f3f4f6;
  border-color: #9ca3af;
}

.filter-btn.active {
  background-color: var(--bg-dark);
  border-color: var(--bg-dark);
  color: #ffffff;
}

/* Product Catalog Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.product-card {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  border-color: #9ca3af;
}

.product-image-container {
  height: 230px;
  background-color: #f3f4f6; /* Clean background for photo */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.product-image-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-placeholder-svg {
  width: 55%;
  height: 55%;
}

.product-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background-color: rgba(17, 24, 39, 0.85);
  color: #ffffff;
  padding: 0.25rem 0.5rem;
  border-radius: 2px;
  font-size: 0.7rem;
  font-weight: 700;
}

.product-info {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-brand {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.product-title {
  font-size: 1.1rem;
  color: #111827;
  margin-bottom: 0.5rem;
  font-weight: 800;
}

.product-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-specs {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.spec-tag {
  background-color: #f9fafb;
  color: var(--text-secondary);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  border: 1px solid #e5e7eb;
}

.product-action {
  width: 100%;
  background-color: var(--bg-dark);
  color: #ffffff;
  border: none;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem; /* increased to prevent mobile zoom */
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-family);
  transition: var(--transition);
}

.product-action:hover {
  background-color: var(--accent);
  color: #000000;
}

.product-action svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Empty State */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  background-color: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid #e5e7eb;
}

.no-results svg {
  width: 48px;
  height: 48px;
  fill: var(--text-light);
  margin-bottom: 1rem;
}

.no-results h3 {
  font-size: 1.35rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

/* Map Section (Leaflet container integration) */
.map-section {
  border-top: 1px solid #e5e7eb;
  padding: 5rem 2rem;
  background-color: #ffffff;
}

.map-container-layout {
  max-width: 1200px;
  margin: 0 auto;
}

.map-title {
  font-size: 1.85rem;
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 2.5rem;
  position: relative;
  display: inline-block;
}

.map-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 50px;
  height: 4px;
  background-color: var(--accent);
}

.map-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: stretch;
}

.map-details-card {
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
}

.map-detail-item {
  display: flex;
  gap: 1rem;
}

.map-detail-icon {
  color: var(--accent);
  flex-shrink: 0;
}

.map-detail-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.map-detail-text h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.map-detail-text p {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
}

.map-detail-text a {
  color: var(--accent-hover);
  text-decoration: underline;
}

.map-wrapper {
  height: 400px;
  border: 1px solid #e5e7eb;
  position: relative;
}

#map {
  width: 100%;
  height: 100%;
}

/* Inquiry Modal Overlay & Styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-out;
  padding: 1.5rem;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background-color: #ffffff;
  max-width: 90vw; /* responsive width */
  width: 100%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: scale(0.95);
  transition: transform 0.2s ease-out;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-header {
  background-color: var(--bg-dark);
  color: #ffffff;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #ffffff;
}

.modal-close {
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  font-size: 1.5rem;
}

.modal-close:hover {
  color: #ffffff;
}

.modal-body {
  padding: 1.5rem;
}

.modal-product-summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: #f3f4f6;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
}

.modal-product-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  background-color: #ffffff;
}

.modal-product-details h4 {
  font-size: 0.95rem;
  color: #111827;
}

.modal-product-details p {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  color: var(--text-secondary);
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  font-family: var(--font-family);
  font-size: 0.9rem;
  outline: none;
}

.form-group input:focus, .form-group textarea:focus {
  border-color: #000000;
}

.submit-btn {
  width: 100%;
  background-color: var(--accent);
  color: #000000;
  border: none;
  padding: 0.85rem;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.submit-btn:hover {
  background-color: var(--accent-hover);
}

.success-state {
  text-align: center;
  padding: 1.5rem 0.5rem;
}

.success-icon {
  width: 48px;
  height: 48px;
  background-color: #ecfdf5;
  color: #059669;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem auto;
}

.success-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.success-state h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.success-state p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

/* Footer Section */
footer {
  background-color: var(--bg-dark-secondary);
  color: #9ca3af;
  padding: 4rem 2rem 2rem 2rem;
  font-size: 0.85rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo span {
  color: var(--accent);
}

.footer-logo svg {
  width: 22px;
  height: 22px;
  fill: var(--accent);
}

.footer-links h4 {
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid #1f2937;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .map-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 1rem;
  }
  .nav-links {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }
  .contact-btn-header {
    display: none;
  }
  .catalog-header-block {
    flex-direction: column;
    align-items: flex-start;
  }
  .catalog-filter-wrapper {
    align-items: flex-start;
    max-width: 100%;
  }
  .filter-chips {
    justify-content: flex-start;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}
