/* ============================================
   JTM Sourcing — Modern Brand Site
   Colors: Deep navy #0f1629, Accent purple #6c3ce0, Warm white #fafafa
   ============================================ */

:root {
  --navy: #0f1629;
  --navy-light: #1a2340;
  --purple: #6c3ce0;
  --purple-light: #8b5cf6;
  --purple-glow: rgba(108, 60, 224, 0.15);
  --gold: #f4a623;
  --white: #ffffff;
  --off-white: #fafafa;
  --gray-50: #f8f9fb;
  --gray-100: #eef0f4;
  --gray-200: #dde1e8;
  --gray-400: #9ca3af;
  --gray-600: #6b7280;
  --gray-800: #374151;
  --text: #1f2937;
  --text-light: #6b7280;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(15, 22, 41, 0.08);
  --shadow-lg: 0 12px 48px rgba(15, 22, 41, 0.12);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn--primary {
  background: var(--purple);
  color: var(--white);
  border-color: var(--purple);
}
.btn--primary:hover {
  background: var(--purple-light);
  border-color: var(--purple-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108, 60, 224, 0.35);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.8);
}

.btn--outline {
  background: transparent;
  color: var(--purple);
  border-color: var(--purple);
}
.btn--outline:hover {
  background: var(--purple);
  color: var(--white);
  transform: translateY(-2px);
}

.btn--lg { padding: 16px 36px; font-size: 1.05rem; }

.btn--nav {
  background: var(--purple);
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: 50px;
}
.btn--nav:hover { background: var(--purple-light); }

/* ---- Nav ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}
.nav.scrolled {
  background: rgba(15, 22, 41, 0.95);
  backdrop-filter: blur(20px);
  padding: 10px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

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

.nav__logo img { height: 40px; width: auto; filter: brightness(0) invert(1); }
.nav.scrolled .nav__logo img { height: 36px; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav__links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}
.nav__links a:hover { color: var(--white); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
}
.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,22,41,0.92) 0%, rgba(15,22,41,0.7) 50%, rgba(108,60,224,0.3) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 0 24px;
  margin: 0 auto;
  padding-top: 120px;
}

.hero__tag {
  display: inline-block;
  padding: 6px 16px;
  background: var(--purple-glow);
  border: 1px solid rgba(108,60,224,0.3);
  border-radius: 50px;
  color: var(--purple-light);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 24px;
}
.hero__accent {
  background: linear-gradient(135deg, var(--purple-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 560px;
}

.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; }

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}
.hero__scroll span {
  color: rgba(255,255,255,0.4);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ---- Trust Bar ---- */
.trust {
  background: var(--navy);
  padding: 48px 0;
}
.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.trust__number {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--purple-light);
}
.trust__label {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---- Section Headers ---- */
.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: var(--purple-glow);
  border: 1px solid rgba(108,60,224,0.2);
  border-radius: 50px;
  color: var(--purple);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-tag--light {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
}
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ---- Services ---- */
.services { padding: 100px 0; background: var(--off-white); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.card--service {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--gray-100);
  transition: var(--transition);
}
.card--service:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(108,60,224,0.2);
}
.card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--purple-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card__icon svg { width: 28px; height: 28px; color: var(--purple); }
.card--service h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--navy);
}
.card--service p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---- Showcase / Gallery Scroll ---- */
.showcase { padding: 100px 0 60px; }
.showcase__scroll {
  overflow: hidden;
  width: 100%;
  position: relative;
}
.showcase__track {
  display: flex;
  gap: 16px;
  animation: scroll 40s linear infinite;
  width: max-content;
}
.showcase__item {
  flex: 0 0 300px;
  height: 300px;
  border-radius: var(--radius);
  overflow: hidden;
}
.showcase__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.showcase__item:hover img { transform: scale(1.05); }

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---- Process ---- */
.process { padding: 100px 0; background: var(--off-white); }
.process__grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
}
.process__step {
  flex: 1;
  max-width: 320px;
  text-align: center;
  padding: 40px 24px;
}
.process__num {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 900;
  color: var(--purple-light);
  opacity: 0.3;
  margin-bottom: 16px;
}
.process__step h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}
.process__step p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}
.process__arrow {
  display: flex;
  align-items: center;
  padding-top: 60px;
}
.process__arrow svg { width: 32px; color: var(--gray-200); }

/* ---- CTA Block (Company Stores) ---- */
.cta-block {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}
.cta-block__bg {
  position: absolute;
  inset: 0;
}
.cta-block__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cta-block__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,22,41,0.95), rgba(108,60,224,0.85));
}
.cta-block__content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}
.cta-block__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}
.cta-block__text {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 32px;
}
.cta-block__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 40px;
}
.cta-block__feat {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
  font-weight: 500;
}
.cta-block__feat::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(108,60,224,0.5);
  border: 2px solid var(--purple-light);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}

/* ---- Categories ---- */
.categories { padding: 100px 0; }
.categories__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cat-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1;
  display: block;
}
.cat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.cat-card:hover img { transform: scale(1.08); }
.cat-card__label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(transparent, rgba(15,22,41,0.85));
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
}

/* ---- FAQ ---- */
.faq { padding: 100px 0; background: var(--off-white); }
.faq__list {
  max-width: 720px;
  margin: 0 auto;
}
.faq__item {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 12px;
  border: 1px solid var(--gray-100);
  overflow: hidden;
  transition: var(--transition);
}
.faq__item[open] {
  border-color: rgba(108,60,224,0.2);
  box-shadow: var(--shadow);
}
.faq__item summary {
  padding: 20px 24px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--navy);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--purple);
  font-weight: 300;
  transition: var(--transition);
}
.faq__item[open] summary::after {
  transform: rotate(45deg);
}
.faq__item p {
  padding: 0 24px 20px;
  color: var(--text-light);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ---- Final CTA ---- */
.final-cta {
  padding: 100px 0;
  text-align: center;
  background: var(--navy);
}
.final-cta__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}
.final-cta__text {
  color: rgba(255,255,255,0.65);
  font-size: 1.1rem;
  margin-bottom: 32px;
}

/* ---- Footer ---- */
.footer {
  background: #0a0f1e;
  padding: 64px 0 0;
  color: rgba(255,255,255,0.6);
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer__logo {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 16px;
}
.footer__brand p { font-size: 0.9rem; line-height: 1.7; max-width: 280px; }
.footer__links h4,
.footer__contact h4 {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.footer__links a,
.footer__contact a {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 10px;
  transition: var(--transition);
}
.footer__links a:hover,
.footer__contact a:hover { color: var(--white); }

.footer__bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 0.8rem;
}

/* ---- Page Templates (inner pages) ---- */
.page-hero {
  padding: 160px 0 80px;
  background: var(--navy);
  text-align: center;
}
.page-hero__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}
.page-hero__sub {
  color: rgba(255,255,255,0.65);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
}

.page-content { padding: 80px 0; }
.page-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 20px;
  max-width: 720px;
}
.page-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--navy);
  margin-bottom: 16px;
  margin-top: 48px;
}

/* Gallery page */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  padding: 80px 0;
}
.gallery-grid__item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
}
.gallery-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-grid__item:hover img { transform: scale(1.05); }

/* Products page */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  padding: 80px 0;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-100);
  transition: var(--transition);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.product-card__img {
  aspect-ratio: 1;
  overflow: hidden;
}
.product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-card__body { padding: 20px; }
.product-card__name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 4px;
}
.product-card__price {
  color: var(--purple);
  font-weight: 600;
  font-size: 1.1rem;
}
.product-card__note {
  color: var(--text-light);
  font-size: 0.8rem;
  margin-top: 4px;
}

/* Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding: 80px 0;
  align-items: start;
}
.contact-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--navy);
  margin-bottom: 16px;
}
.contact-info p {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 32px;
}
.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 1rem;
  color: var(--text);
}
.contact-detail svg { width: 20px; color: var(--purple); flex-shrink: 0; }

.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow);
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
  background: var(--gray-50);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px var(--purple-glow);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* Company store features */
.store-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 80px 0;
}
.store-feat {
  text-align: center;
  padding: 48px 32px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
  transition: var(--transition);
}
.store-feat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.store-feat__icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--purple-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.store-feat__icon svg { width: 32px; height: 32px; color: var(--purple); }
.store-feat h3 {
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 8px;
}
.store-feat p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .categories__grid { grid-template-columns: repeat(2, 1fr); }
  .store-features { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed;
    top: 0; right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--navy);
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 0;
    transition: right 0.4s ease;
    box-shadow: -4px 0 20px rgba(0,0,0,0.3);
  }
  .nav__links.open { right: 0; }
  .nav__links li { width: 100%; }
  .nav__links a {
    display: block;
    padding: 14px 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .nav__links .btn--nav {
    margin-top: 16px;
    text-align: center;
    border-bottom: none;
  }

  .hero__content { padding: 0 20px; padding-top: 100px; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; }
  .hero__scroll { display: none; }

  .trust__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .services__grid { grid-template-columns: 1fr; }
  .process__grid { flex-direction: column; align-items: center; }
  .process__arrow { display: none; }
  .categories__grid { grid-template-columns: 1fr 1fr; }
  .cta-block__features { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 480px) {
  .trust__grid { grid-template-columns: 1fr 1fr; }
  .categories__grid { grid-template-columns: 1fr; }
}
