/* ============================================
   MERCANTA TRADING — Industrial Luxury
   Dark charcoal + warm amber/gold
   Fonts: DM Serif Display (display) + Outfit (body)
   ============================================ */

:root {
  --color-bg: #0e0e0e;
  --color-bg-elevated: #161616;
  --color-bg-card: #1a1a1a;
  --color-bg-card-hover: #1f1f1f;
  --color-surface: #222222;
  --color-border: #2a2a2a;
  --color-border-light: #333333;

  --color-text: #f0ece4;
  --color-text-muted: #9a958c;
  --color-text-dim: #6b665e;

  --color-accent: #c8954c;
  --color-accent-light: #daa96a;
  --color-accent-dark: #a67535;
  --color-accent-glow: rgba(200, 149, 76, 0.15);

  --font-display: "DM Serif Display", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;

  --container-max: 1200px;
  --section-pad: clamp(80px, 10vw, 140px);
  --gap: clamp(16px, 2vw, 24px);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
}

input, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ==================== UTILITIES ==================== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

.section {
  padding: var(--section-pad) 0;
}

.section__header {
  margin-bottom: clamp(48px, 6vw, 72px);
}

.section__label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 16px;
  position: relative;
  padding-left: 32px;
}

.section__label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 20px;
  height: 1px;
  background: var(--color-accent);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-text);
}

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  padding: 16px 36px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

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

.btn--primary:hover {
  background: var(--color-accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(200, 149, 76, 0.3);
}

/* Reveal animation */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== NAVIGATION ==================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 clamp(20px, 4vw, 40px);
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

.nav.scrolled {
  background: rgba(14, 14, 14, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--color-border);
}

.nav__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav__logo {
  display: flex;
  align-items: center;
  z-index: 10;
}

.nav__logo-img {
  height: 52px;
  width: auto;
}

.nav__links {
  display: flex;
  gap: 36px;
}

.nav__link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
  position: relative;
}

.nav__link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width var(--transition);
}

.nav__link:hover {
  color: var(--color-text);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-btn {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-text-dim);
  padding: 4px 6px;
  transition: color var(--transition-fast);
}

.lang-btn.active {
  color: var(--color-accent);
}

.lang-btn:hover {
  color: var(--color-text);
}

.lang-divider {
  color: var(--color-text-dim);
  font-size: 0.7rem;
}

.nav__cta {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-bg);
  background: var(--color-accent);
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav__cta:hover {
  background: var(--color-accent-light);
}

/* Burger */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  z-index: 10;
}

.nav__burger span {
  display: block;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: var(--transition);
}

.nav__burger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav__burger.open span:nth-child(2) {
  opacity: 0;
}
.nav__burger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav */
.nav__mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-bg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.nav__mobile.open {
  opacity: 1;
  pointer-events: all;
}

.nav__mobile-link {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-text);
  transition: color var(--transition-fast);
}

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

.lang-switch--mobile {
  margin-top: 12px;
}

.nav__cta--mobile {
  margin-top: 12px;
  padding: 14px 32px;
  font-size: 0.95rem;
}

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

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}

.hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(200, 149, 76, 0.08), transparent),
    radial-gradient(ellipse 60% 80% at 80% 60%, rgba(200, 149, 76, 0.05), transparent),
    linear-gradient(180deg, var(--color-bg) 0%, rgba(14,14,14,0.6) 50%, var(--color-bg) 100%);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.008) 2px,
    rgba(255, 255, 255, 0.008) 4px
  );
}

.hero__grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.3;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.4'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 780px;
  padding: 0 clamp(20px, 4vw, 40px);
  animation: heroFadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  padding: 8px 20px;
  border-radius: 100px;
  margin-bottom: 32px;
  animation: heroFadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 24px;
  animation: heroFadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.hero__sub {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--color-text-muted);
  margin-bottom: 40px;
  font-weight: 300;
  animation: heroFadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both;
}

.hero__cta {
  animation: heroFadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.hero__scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ==================== STATS ==================== */
.stats {
  padding: clamp(40px, 6vw, 72px) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-elevated);
}

.stats__grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(32px, 5vw, 72px);
}

.stats__item {
  text-align: center;
}

.stats__number {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--color-accent);
  line-height: 1;
}

.stats__plus {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--color-accent);
}

.stats__label {
  display: block;
  margin-top: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

.stats__divider {
  width: 1px;
  height: 48px;
  background: var(--color-border-light);
}

/* ==================== ABOUT ==================== */
.about {
  background: var(--color-bg);
}

.about__content {
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 6vw, 72px);
}

.about__text p {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--color-text-muted);
  max-width: 720px;
  line-height: 1.8;
}

.about__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.about__card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: clamp(28px, 3vw, 40px);
  transition: var(--transition);
}

.about__card:hover {
  background: var(--color-bg-card-hover);
  border-color: var(--color-border-light);
  transform: translateY(-4px);
}

.about__card-icon {
  width: 48px;
  height: 48px;
  color: var(--color-accent);
  margin-bottom: 20px;
}

.about__card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 12px;
  font-weight: 400;
}

.about__card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ==================== SERVICES ==================== */
.services {
  background: var(--color-bg-elevated);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.services__card {
  position: relative;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: clamp(32px, 3vw, 44px);
  transition: var(--transition);
  overflow: hidden;
}

.services__card:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3), 0 0 0 1px var(--color-accent);
}

.services__card-number {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 4rem);
  color: var(--color-border);
  line-height: 1;
  margin-bottom: 24px;
  transition: color var(--transition);
}

.services__card:hover .services__card-number {
  color: var(--color-accent-glow);
}

.services__card-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 16px;
}

.services__card-text {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.services__card-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.services__card:hover .services__card-line {
  width: 100%;
}

/* ==================== PRODUCTS ==================== */
.products {
  background: var(--color-bg);
}

.products__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}

.products__card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  transition: var(--transition);
  cursor: pointer;
}

.products__card:hover {
  border-color: var(--color-border-light);
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.3);
}

.products__card-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.products__card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.products__card:hover .products__card-image img {
  transform: scale(1.06);
}

.products__card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--color-bg-card) 0%, transparent 50%);
}

.products__card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
}

.products__card-body h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
}

.products__card-arrow {
  width: 24px;
  height: 24px;
  color: var(--color-text-dim);
  transition: var(--transition);
}

.products__card:hover .products__card-arrow {
  color: var(--color-accent);
  transform: translate(2px, -2px);
}

/* ==================== CONTACT ==================== */
.contact {
  background: var(--color-bg-elevated);
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 6vw, 80px);
  align-items: start;
}

.contact__tagline {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin-top: 20px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact__detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact__detail svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--color-accent);
  margin-top: 2px;
}

.contact__detail div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact__detail strong {
  font-weight: 600;
  font-size: 0.95rem;
}

.contact__detail span {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.contact__detail a {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

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

/* Form */
.contact__form {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
}

.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  width: 0;
  height: 0;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  margin-bottom: var(--gap);
}

.form__group {
  position: relative;
}

.form__group--full {
  margin-bottom: var(--gap);
}

.form__group label {
  position: absolute;
  top: -8px;
  left: 12px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--color-text-dim);
  background: var(--color-bg-card);
  padding: 0 6px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px);
  transition: var(--transition-fast);
}

.form__group input:focus + label,
.form__group textarea:focus + label,
.form__group input:not(:placeholder-shown) + label,
.form__group textarea:not(:placeholder-shown) + label {
  opacity: 1;
  transform: translateY(0);
}

.form__group input,
.form__group textarea {
  width: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  transition: border-color var(--transition-fast);
  outline: none;
}

.form__group input::placeholder,
.form__group textarea::placeholder {
  color: var(--color-text-dim);
}

.form__group input:focus,
.form__group textarea:focus {
  border-color: var(--color-accent);
}

.form__group textarea {
  resize: vertical;
  min-height: 100px;
}

.cf-turnstile {
  margin-bottom: 24px;
}

.form__submit {
  width: 100%;
  justify-content: center;
  font-size: 0.95rem;
  padding: 16px 32px;
}

.form__status {
  margin-top: 16px;
  font-size: 0.9rem;
  text-align: center;
  min-height: 24px;
}

.form__status--success {
  color: #4ade80;
}

.form__status--error {
  color: #f87171;
}

/* ==================== FOOTER ==================== */
.footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding: clamp(48px, 6vw, 72px) 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: clamp(32px, 4vw, 64px);
  padding-bottom: clamp(40px, 5vw, 64px);
}

.footer__brand .nav__logo {
  margin-bottom: 16px;
}

.footer__brand .nav__logo-img {
  height: 44px;
}

.footer__desc {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  max-width: 320px;
  line-height: 1.7;
}

.footer__col h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 20px;
  color: var(--color-text);
}

.footer__col a,
.footer__col p {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 10px;
  transition: color var(--transition-fast);
  line-height: 1.6;
}

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

.footer__bottom {
  border-top: 1px solid var(--color-border);
  padding: 24px 0;
  text-align: center;
}

.footer__bottom p {
  font-size: 0.78rem;
  color: var(--color-text-dim);
  letter-spacing: 0.02em;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .products__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav__links,
  .nav__actions {
    display: none;
  }

  .nav__burger {
    display: flex;
  }

  .nav__mobile {
    display: flex;
  }

  .about__cards {
    grid-template-columns: 1fr;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .stats__grid {
    flex-direction: column;
    gap: 28px;
  }

  .stats__divider {
    width: 48px;
    height: 1px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .form__row {
    grid-template-columns: 1fr;
  }

  .products__grid {
    grid-template-columns: 1fr;
  }
}
