/* =====================================================
   DEEN CORPORATION - Premium White + Gold Theme
   Apparel Manufacturing & Export | Sialkot, Pakistan
   ===================================================== */

:root {
  --gold: #c9a227;
  --gold-dark: #a8861f;
  --gold-light: #e8d48b;
  --black: #1a1a1a;
  --dark: #2c2c2c;
  --gray: #666;
  --light-gray: #f5f5f5;
  --border: #e5e5e5;
  --white: #ffffff;
  --success: #28a745;
  --danger: #dc3545;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 8px;
  --transition: 0.3s ease;
  --font: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Top Bar ---------- */
.top-bar {
  background: var(--black);
  color: var(--white);
  font-size: 13px;
  padding: 8px 0;
  text-align: center;
}
.top-bar span { margin: 0 12px; opacity: 0.9; }
.top-bar .gold { color: var(--gold); }

/* ---------- Navbar ---------- */
.navbar {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.logo {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--black);
}
.logo span { color: var(--gold); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
  border-radius: 4px;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); background: rgba(201,162,39,0.08); }
.nav-social {
  display: flex;
  gap: 10px;
  margin-left: 16px;
}
.nav-social a {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--light-gray);
  color: var(--dark);
  font-size: 14px;
}
.nav-social a:hover { background: var(--gold); color: var(--white); }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--black);
  transition: var(--transition);
}

/* ---------- Hero Slider ---------- */
.hero {
  position: relative;
  height: 520px;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a1a 0%, #3a3a3a 100%);
}
.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 0.8s ease;
  background-size: cover;
  background-position: center;
}
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 600px;
  padding: 40px 20px;
}
.hero-content h1 {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}
.hero-content h1 span { color: var(--gold); }
.hero-content p {
  font-size: 17px;
  opacity: 0.9;
  margin-bottom: 28px;
}
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}
.btn-gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
  margin-left: 12px;
}
.btn-outline:hover { background: var(--white); color: var(--black); }
.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-outline-gold:hover { background: var(--gold); color: var(--white); }
.hero-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}
.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
}
.hero-dots button.active { background: var(--gold); }

/* ---------- Sections ---------- */
.section { padding: 70px 0; }
.section-title {
  text-align: center;
  margin-bottom: 48px;
}
.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
}
.section-title h2 span { color: var(--gold); }
.section-title p {
  color: var(--gray);
  max-width: 560px;
  margin: 0 auto;
}
.section-alt { background: var(--light-gray); }

/* ---------- Category Cards ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cat-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 260px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.cat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.cat-card:hover img { transform: scale(1.08); }
.cat-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: var(--white);
}
.cat-card h3 { font-size: 20px; margin-bottom: 4px; }
.cat-card p { font-size: 13px; opacity: 0.85; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: var(--transition);
}
.service-card:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.service-card .icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: rgba(201,162,39,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--gold);
}
.service-card h4 { font-size: 16px; margin-bottom: 8px; }
.service-card p { font-size: 13px; color: var(--gray); }

/* ---------- Product Cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.product-card .img-wrap {
  height: 220px;
  overflow: hidden;
  background: var(--light-gray);
  position: relative;
}
.product-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.product-card:hover .img-wrap img { transform: scale(1.06); }
.product-card .badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--gold);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 3px;
}
.product-card .info { padding: 16px; }
.product-card .info h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-card .info .sku { font-size: 12px; color: var(--gray); margin-bottom: 8px; }
.product-card .info p {
  font-size: 13px;
  color: var(--gray);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Stats ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-item h3 {
  font-size: 36px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 4px;
}
.stat-item p { color: var(--gray); font-size: 14px; }

/* ---------- Trust Icons ---------- */
.trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.trust-item {
  padding: 20px;
}
.trust-item .icon {
  font-size: 32px;
  color: var(--gold);
  margin-bottom: 12px;
}
.trust-item h4 { font-size: 15px; margin-bottom: 6px; }
.trust-item p { font-size: 13px; color: var(--gray); }

/* ---------- About / Intro ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-grid img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: 360px;
  object-fit: cover;
}
.about-text h2 { font-size: 28px; margin-bottom: 16px; }
.about-text h2 span { color: var(--gold); }
.about-text p { color: var(--gray); margin-bottom: 12px; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.gallery-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
}
.gallery-grid img:hover { opacity: 0.85; transform: scale(1.02); }

/* ---------- Video ---------- */
.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 800px;
  margin: 0 auto;
}
.video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ---------- Forms ---------- */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--dark);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 14px;
  transition: var(--transition);
  background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,162,39,0.15);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 400;
  font-size: 14px;
  cursor: pointer;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: var(--transition);
}
.checkbox-group label:has(input:checked),
.checkbox-group label.checked {
  border-color: var(--gold);
  background: rgba(201,162,39,0.1);
  color: var(--gold-dark);
}
.checkbox-group input { width: auto; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-info .item {
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
}
.contact-info .item .icon {
  width: 44px;
  height: 44px;
  background: rgba(201,162,39,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 18px;
  flex-shrink: 0;
}
.contact-info .item h4 { font-size: 14px; margin-bottom: 2px; }
.contact-info .item p { font-size: 14px; color: var(--gray); }

/* ---------- Footer ---------- */
.footer {
  background: var(--black);
  color: rgba(255,255,255,0.8);
  padding: 50px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}
.footer h4 {
  color: var(--white);
  font-size: 15px;
  margin-bottom: 16px;
  position: relative;
}
.footer h4::after {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background: var(--gold);
  margin-top: 8px;
}
.footer p, .footer a { font-size: 13px; line-height: 1.8; }
.footer a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 16px 0;
  text-align: center;
  font-size: 12px;
  opacity: 0.7;
}
.footer .logo { color: var(--white); margin-bottom: 12px; }

/* ---------- Floating WhatsApp ---------- */
.float-wa {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  z-index: 999;
  transition: var(--transition);
}
.float-wa:hover { transform: scale(1.1); }

/* ---------- Products Page Layout ---------- */
.products-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  padding: 40px 0;
}
.sidebar {
  background: var(--light-gray);
  border-radius: var(--radius);
  padding: 24px;
  height: fit-content;
  position: sticky;
  top: 90px;
}
.sidebar h3 {
  font-size: 16px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
}
.sidebar .cat-list a {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 4px;
  margin-bottom: 2px;
  color: var(--dark);
}
.sidebar .cat-list a:hover,
.sidebar .cat-list a.active {
  background: var(--gold);
  color: var(--white);
}
.sidebar .sub-list {
  padding-left: 16px;
  margin-bottom: 8px;
}
.sidebar .sub-list a { font-size: 13px; color: var(--gray); }
.products-main h2 { font-size: 24px; margin-bottom: 24px; }

/* ---------- Product Detail ---------- */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 40px 0;
}
.detail-img {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--light-gray);
  height: 420px;
}
.detail-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-info h1 { font-size: 28px; margin-bottom: 8px; }
.detail-info .meta {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--gray);
}
.detail-info .meta .cat-badge {
  background: rgba(201,162,39,0.15);
  color: var(--gold-dark);
  padding: 2px 10px;
  border-radius: 3px;
  font-weight: 600;
}
.detail-info .desc {
  color: var(--gray);
  margin-bottom: 24px;
  line-height: 1.7;
}
.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }

/* Inquiry Modal / Steps */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.show { display: flex; }
.modal {
  background: var(--white);
  border-radius: var(--radius);
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
}
.modal .close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--gray);
}
.modal h2 { font-size: 22px; margin-bottom: 8px; }
.modal .step-indicator {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}
.modal .step-indicator span {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
}
.modal .step-indicator span.active { background: var(--gold); }
.choice-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.choice-card {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}
.choice-card:hover, .choice-card.selected {
  border-color: var(--gold);
  background: rgba(201,162,39,0.06);
}
.choice-card h3 { font-size: 18px; margin-bottom: 8px; }
.choice-card p { font-size: 13px; color: var(--gray); }

/* ---------- Blog ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.blog-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.blog-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.blog-card .body { padding: 20px; }
.blog-card .date { font-size: 12px; color: var(--gold); margin-bottom: 6px; }
.blog-card h3 { font-size: 16px; margin-bottom: 8px; }
.blog-card p {
  font-size: 13px;
  color: var(--gray);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Page Header ---------- */
.page-header {
  background: linear-gradient(135deg, #1a1a1a, #333);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}
.page-header h1 { font-size: 36px; margin-bottom: 8px; }
.page-header p { opacity: 0.8; }

/* ---------- Alert / Toast ---------- */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 14px 24px;
  border-radius: 6px;
  color: white;
  font-size: 14px;
  z-index: 3000;
  transform: translateX(120%);
  transition: transform 0.3s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.toast.show { transform: translateX(0); }
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }

/* ---------- Empty State ---------- */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray);
}
.empty-state h3 { margin-bottom: 8px; color: var(--dark); }

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row, .trust-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .products-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .detail-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    gap: 0;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a { width: 100%; padding: 12px 16px; }
  .nav-social { margin: 12px 0 0; }
  .hero { height: 420px; }
  .hero-content h1 { font-size: 28px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .choice-cards { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .section { padding: 50px 0; }
}

@media (max-width: 480px) {
  .cat-grid, .product-grid, .gallery-grid { grid-template-columns: 1fr; }
  .services-grid, .stats-row, .trust-row, .footer-grid { grid-template-columns: 1fr; }
  .btn-outline { margin-left: 0; margin-top: 10px; display: block; }
  .hero-content .btn { display: block; width: 100%; margin: 8px 0; }
  .top-bar span { display: block; margin: 2px 0; }
}
